joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44425c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
xor edx, edx
mov dword [ebp - 0xc], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4443dc
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0xc]
mov edx, 0x400
call fcn.00404004
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00403cd0
push eax
mov eax, dword [ebp - 0xc]
call fcn.00403e94
push eax
push 0
push 0
push 0
xor ecx, ecx
mov edx, 0x28
mov eax, 7
call fcn.00413238
push eax
push ebx
call sub.KERNEL32.DLL_DeviceIoControl
test eax, eax
je 0x4442e9
mov eax, dword [ebp - 0xc]
call fcn.00403e94
mov esi, eax
mov eax, dword [esi + 0x18]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x1c]
mov dword [ebp - 4], eax
jmp 0x4443c6
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00403cd0
push eax
mov eax, dword [ebp - 0xc]
call fcn.00403e94
push eax
push 0
push 0
push 0
xor ecx, ecx
xor edx, edx
mov eax, 7
call fcn.00413238
push eax
push ebx
call sub.KERNEL32.DLL_DeviceIoControl
test eax, eax
je 0x4443c6
mov eax, dword [ebp - 0xc]
call fcn.00403e94
mov esi, eax
mov eax, dword [esi + 0x14]
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x10]
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0xc]
xor edx, edx
push edx
push eax
mov eax, dword [esi]
mov edx, dword [esi + 4]
call fcn.00405f24
call fcn.00405f24
call fcn.00405f24
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
push ebx
call sub.KERNEL32.DLL_SetFilePointer
mov esi, eax
mov dword [ebp - 0x18], esi
cmp esi, 0xffffffff
jne 0x444392
call fcn.00406384
mov eax, dword [eax + 0x10]
test eax, eax
jne 0x4443c6
push 0
lea eax, [ebp - 0x1c]
push eax
push 0x200
mov eax, dword [ebp - 0xc]
call fcn.00403e94
push eax
push ebx
call sub.KERNEL32.DLL_ReadFile_2
test eax, eax
je 0x4443c6
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
add eax, 0x200
adc edx, 0
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
jmp 0x44435d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4443e3
lea eax, [ebp - 0xc]
call fcn.00403a50
ret

Function at 0x444a88
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xc], 0
jne 0x444aa1
xor edx, edx
mov eax, ebx
call fcn.004449cc
push 0
lea eax, [esp + 4]
push eax
push edi
push esi
mov eax, dword [ebx + 8]
push eax
call sub.KERNEL32.DLL_ReadFile_2
mov eax, dword [esp]
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x444abc
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xc], 0
jne 0x444ad8
mov edx, 1
mov eax, ebx
call fcn.004449cc
push 0
lea eax, [esp + 4]
push eax
push edi
push esi
mov eax, dword [ebx + 8]
push eax
call sub.KERNEL32.DLL_WriteFile_2
mov eax, dword [esp]
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x44547c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00403e84
mov eax, dword [ebp - 8]
call fcn.00403e84
xor eax, eax
push ebp
push 0x44556b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x445578
mov eax, dword [ebp - 4]
call fcn.00403e94
push eax
push 0
call sub.KERNEL32.DLL_FindResourceA
mov ebx, eax
test ebx, ebx
jbe 0x445550
push ebx
push 0
call sub.KERNEL32.DLL_LoadResource
test eax, eax
jbe 0x445550
push eax
call sub.KERNEL32.DLL_LockResource
mov esi, eax
test esi, esi
je 0x445550
mov dl, 1
mov eax, dword [0x4448c0]
call fcn.0044492c
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x445549
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.00444978
mov eax, dword [ebp - 0xc]
call fcn.00444b20
mov eax, dword [ebp - 0xc]
call fcn.00444a38
push ebx
push 0
call sub.KERNEL32.DLL_SizeofResource
mov ecx, eax
mov edx, esi
mov eax, dword [ebp - 0xc]
call fcn.00444abc
mov eax, dword [ebp - 0xc]
call fcn.00444a74
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x445550
mov eax, dword [ebp - 0xc]
call fcn.00402dc8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x445572
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403a74
ret

Function at 0x4458f8
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
cmp dword [0x44aa0c], 0x270
jl 0x4459c9
cmp dword [0x44aa0c], 0x271
jne 0x44591f
mov eax, 0x1105
call fcn.004458b4
mov ecx, 0xe3
mov eax, 0x44bccc
mov edx, dword [eax]
and edx, 0x80000000
mov ebx, dword [eax + 4]
and ebx, 0x7fffffff
or edx, ebx
mov ebx, edx
shr ebx, 1
xor ebx, dword [eax + 0x634]
and edx, 1
xor ebx, dword [edx*4 + 0x44aa10]
mov dword [eax], ebx
add eax, 4
dec ecx
jne 0x445929
mov ecx, 0x18c
mov eax, 0x44c058
mov edx, dword [eax]
and edx, 0x80000000
mov ebx, dword [eax + 4]
and ebx, 0x7fffffff
or edx, ebx
mov ebx, edx
shr ebx, 1
xor ebx, dword [eax - 0x38c]
and edx, 1
xor ebx, dword [edx*4 + 0x44aa10]
mov dword [eax], ebx
add eax, 4
dec ecx
jne 0x445962
mov edx, dword [0x44c688]
and edx, 0x80000000
mov eax, dword [0x44bccc]
and eax, 0x7fffffff
or edx, eax
mov eax, edx
shr eax, 1
xor eax, dword [0x44c2fc]
and edx, 1
xor eax, dword [edx*4 + 0x44aa10]
mov dword [0x44c688], eax
xor eax, eax
mov dword [0x44aa0c], eax
mov eax, dword [0x44aa0c]
mov edx, dword [eax*4 + 0x44bccc]
inc dword [0x44aa0c]
mov eax, edx
shr eax, 0xb
xor edx, eax
mov eax, edx
shl eax, 7
and eax, 0x9d2c5680
xor edx, eax
mov eax, edx
shl eax, 0xf
and eax, 0xefc60000
xor edx, eax
mov eax, edx
shr eax, 0x12
xor edx, eax
mov eax, edx
pop ebx
ret
Function at 0x40b5d1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4221b0]
jne 0x40b5db
repz ret
jmp fcn.0040d2fc

Function at 0x40b89b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4221b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040862a
and dword [ebp - 0x14], 0
cmp dword [0x422eb0], 0
mov dword [ebp - 0x18], eax
jne 0x40b94e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40b9f6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40b9f6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x422eb0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x422eb4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x422eb8], eax
call edi
push eax
call esi
mov dword [0x422ec0], eax
test eax, eax
je 0x40b94e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x422ebc], eax
mov eax, dword [0x422ebc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40b9a7
cmp dword [0x422ec0], ecx
je 0x40b9a7
push eax
call esi
push dword [0x422ec0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40b9a7
test ebx, ebx
je 0x40b9a7
call edi
test eax, eax
je 0x40b99e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40b99e
test byte [ebp - 8], 1
jne 0x40b9a7
or dword [ebp + 0x10], 0x200000
jmp 0x40b9da
mov eax, dword [0x422eb4]
cmp eax, dword [ebp - 0x18]
je 0x40b9da
push eax
call esi
test eax, eax
je 0x40b9da
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40b9da
mov eax, dword [0x422eb8]
cmp eax, dword [ebp - 0x18]
je 0x40b9da
push eax
call esi
test eax, eax
je 0x40b9da
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x422eb0]
call esi
test eax, eax
je 0x40b9f6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40b9f8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b5d1
leave
ret
Function at 0x40686f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x460114], 0
jne 0x4068ad
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406883
mov dword [ecx*4 + 0x460110], eax
inc ecx
cmp ecx, 0x100
jl 0x40687e
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x4068da
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x460110]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x4068bb
not eax
pop ebp
ret 0xc

Function at 0x401ae0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0x40406c], eax
push str.Riched32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push str.mifedount
push str.Deltapo
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401b33
xor eax, eax
jmp 0x401b4e
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x406c2b
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
shr eax, 2
test eax, eax
push edi
mov edi, dword [esp + 0x14]
jle 0x406c66
push ebx
movzx edx, byte [ecx]
xor ebx, ebx
inc ecx
mov bh, byte [ecx]
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
dec eax
jne 0x406c43
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x406c82
dec esi
je 0x406c7b
dec esi
jne 0x406c87
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor edx, edx
mov dh, byte [ecx]
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, edi
pop edi
pop esi
ret 0xc
Function at 0x402f50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x45d020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402fe8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402fc8
xor eax, eax
push ebp
push 0x402fc1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403004
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402fc8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x45d020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x45d020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403de0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45f044], 0
je 0x403e41
cmp word [0x45f218], 0xd7b2
jne 0x403e09
cmp dword [0x45f220], 0
jbe 0x403e09
mov eax, 0x45f214
call dword [0x45f230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45d06c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403e68
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45d030], 0
jne 0x403e5d
push 0
push 0x45d064
push 0x45d06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4052b4
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4054e4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405337
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4054e4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405337
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405500
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4053c0
xor eax, eax
push ebp
push 0x4053b9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004050fc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40539e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405520
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40539e
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4053c0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4054da
cmp byte [ebp - 0xd], 0
jne 0x405407
cmp byte [ebp - 0x12], 0
je 0x4054da
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405420
dec ebx
cmp byte [ebx], 0x2e
je 0x40542f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40541f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4054da
inc ebx
cmp byte [ebp - 0x12], 0
je 0x40546c
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4054da
cmp byte [ebp - 0xd], 0
je 0x4054da
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4054da
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4053c0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4054e4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405337
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4054e4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405337
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405500
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4053c0
xor eax, eax
push ebp
push 0x4053b9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004050fc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40539e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405520
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40539e
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4053c0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4054da
cmp byte [ebp - 0xd], 0
jne 0x405407
cmp byte [ebp - 0x12], 0
je 0x4054da
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405420
dec ebx
cmp byte [ebx], 0x2e
je 0x40542f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40541f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4054da
inc ebx
cmp byte [ebp - 0x12], 0
je 0x40546c
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4054da
cmp byte [ebp - 0xd], 0
je 0x4054da
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4054da
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405bac
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405c12
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004041cc
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402b14
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405bfc
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405c19
lea eax, [ebp - 0x10]
call fcn.00403f5c
ret

Function at 0x40ad9c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40add5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040404c
jmp 0x40adde
mov eax, ebx
mov edx, esi
call fcn.00403fb0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40ade8
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40ae09
mov al, byte [esp]
jmp 0x40ae0b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b490
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b308
mov eax, dword [0x45eaa4]
cmp byte [eax], 0
je 0x40b50c
mov eax, dword [0x45e8c0]
call fcn.00402980
call fcn.00402824
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.004085fc
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40b554
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b542
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x45e86c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x45f660]
call fcn.004050c0
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40bda8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40be7e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00403ff4
lea eax, [ebp - 8]
call fcn.0040446c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.0040441c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40be68
mov eax, ebx
call fcn.004026bc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40be61
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.0040441c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40be4b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40be90
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40be4b
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40be68
mov eax, dword [ebp - 0x10]
call fcn.004026dc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40be85
lea eax, [ebp - 8]
call fcn.00403f5c
ret

Function at 0x40c2fc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40c360
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004041cc
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408114
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c367
lea eax, [ebp - 0xc]
call fcn.00403f5c
ret

Function at 0x41a788
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x45f8cc
cmp dword [edi], 0
jne 0x41a804
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x45f8c8]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x45d3f8
mov ecx, 2
call fcn.004028b8
mov edx, 0x41a760
lea eax, [esi + 5]
call fcn.0041a780
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041a780
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41a7d9
mov dword [0x45f8c8], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41ba18
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41ba1e
ret