joyce8/EMBER2024-capa huggingface dataset:
Function at 0x605f80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], 8
lea esi, [ebp + 8]
movzx edx, byte [esi]
xor ebx, ebx
mov eax, 7
mov ecx, eax
movzx edi, dl
shr edi, cl
mov ecx, edi
and cl, 1
xor bl, cl
dec eax
test eax, eax
jne 0x605f9b
and dl, 1
cmp bl, dl
sete al
inc esi
dec dword [ebp - 4]
jne 0x605f91
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8
Function at 0x40324c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x40325b
pop dword [ebp - 0x44]
mov eax, 0x9a4b97e7
add eax, 0x65f49a74
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x8c8e8e9a
add dword [ebp - 0x54], 0xc1c3b6b1
mov dword [ebp - 0x50], 0xba2834ce
sub dword [ebp - 0x50], 0x87f4e889
mov dword [ebp - 0x4c], 0xcc5cb7f1
add dword [ebp - 0x4c], 0x7fef8c3d
mov dword [ebp - 0x48], 0xe2189fcd
add dword [ebp - 0x48], 0x1de76033
lea eax, [ebp - 0x54]
push eax
mov eax, 0x392c25a3
sub eax, 0x38eba52b
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0x47c3c233
add dword [ebp - 0x54], 0x2caea723
mov dword [ebp - 0x50], 0xfb3ef6c4
sub dword [ebp - 0x50], 0xb9d2954f
mov dword [ebp - 0x4c], 0x18842e0f
add dword [ebp - 0x4c], 0x4aeb3e5d
mov dword [ebp - 0x48], 0xf3ff3776
add dword [ebp - 0x48], 0xc00c88a
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x378a4
push 0
call eax
mov ecx, 0xa06c320e
add ecx, 0x5f9417fb
mov esi, eax
mov edi, 0x459200
add edi, dword [ebp - 0x44]
mov ebx, 0x819584f9
sub ebx, 0xabff7fd9
xor dword [ebp - 0x24], 0xaaaf06f
mov edx, dword [edi]
xor dword [ebp - 0x34], 0xf85e0d00
add edx, ebx
xor dword [ebp - 0x3c], 0x46e10323
mov dword [esi], edx
mov dword [ebp - 0x3c], 0xcfed1c20
add esi, 4
add edi, 0xbc6827a4
sub edi, 0xbc6827a0
loop 0x403372
add eax, 0x8a12a08d
add eax, 0x75ee7a6a
mov ebx, eax
add eax, 5
mov ecx, 0x4f314091
add ecx, 0xb10ebf6f
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x587d7c7d
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x1e9a1026
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x402c54
Capabilities:
Delete directory
Get common file path
Get file attributes
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x104c
call fcn.0040dec0
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax]
mov eax, dword [eax + 4]
xor ebx, ebx
cmp dword [0x441b78], 0x594
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], eax
jne 0x402ca4
push 0x4026c8
push 0x4026d8
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointA]
push 0x4026f4
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
mov eax, dword [0x4374a8]
mov dword [ebp - 0x28], eax
mov eax, dword [0x4374ac]
mov dword [ebp - 0x30], eax
push edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
call fcn.00402c4d
mov eax, dword [0x4374b0]
add dword [ebp - 0x10], 0x23f
mov dword [ebp - 0x2c], eax
mov eax, dword [0x4374b4]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0x20
jmp 0x402ce3
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, esi
shl eax, 4
cmp dword [0x441b78], 0xc
mov dword [ebp - 4], eax
jne 0x402d45
push ebx
lea eax, [ebp - 0x84c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
mov word [ebp - 0x1c], ax
lea edi, [ebp - 0x1a]
stosw word es:[edi], ax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x104c]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
lea eax, [ebp - 0x38]
push eax
push ebx
lea eax, [ebp - 0x4c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
mov eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov eax, dword [0x441b78]
cmp eax, 0xfa9
jne 0x402d61
mov dword [0x441114], 0xedeb2e40
cmp eax, 0x3eb
jne 0x402d6e
mov dword [0x440ac0], ebx
mov ecx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov edx, esi
shr edx, cl
lea eax, [edi + esi]
mov dword [ebp - 0x18], eax
mov dword [0x441110], 0xf4ea3dee
add edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x18]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
cmp dword [0x441b78], 0x213
mov dword [ebp - 0x18], edx
jne 0x402dae
push 0x402710
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov eax, dword [ebp - 0x18]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
mov eax, dword [ebp - 8]
lea ecx, [ebp - 4]
call fcn.00402c47
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add dword [ebp - 0x10], 0x61c88647
mov eax, edx
shr eax, cl
lea esi, [edi + edx]
add eax, dword [ebp - 0x30]
xor eax, esi
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0x14], eax
dec dword [ebp - 0x20]
jne 0x402ce0
cmp dword [0x441b78], 0xa6d
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp + 8]
mov dword [esi], eax
pop edi
jne 0x402e18
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov edx, dword [ebp - 8]
mov dword [esi + 4], edx
pop esi
pop ebx
leave
ret 4
Function at 0x402e21
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x441b78]
mov ecx, dword [0x440ac8]
sub esp, 0x544
push ebx
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x402e94
mov edi, ecx
mov ebx, eax
cmp dword [0x441b78], 0x959
jne 0x402e88
push esi
call dword [sym.imp.KERNEL32.dll_TlsFree]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
lea eax, [ebp - 0x140]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
push 0x402748
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerW]
push esi
lea eax, [ebp - 0x540]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push edi
call fcn.00402c54
add edi, 8
dec ebx
jne 0x402e45
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4031bc
Capabilities:
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x424
push ebx
push esi
xor esi, esi
cmp dword [0x441b78], 0x400
push edi
jne 0x40320e
push esi
push esi
call fcn.004035b6
push esi
push esi
call fcn.004035b6
push esi
push esi
push esi
call fcn.00403e50
add esp, 0x14
mov dword [esp + 4], esi
mov dword [esp], esi
call fcn.00402bc2
fstp st(0)
push esi
call fcn.00403ed5
pop ecx
push esi
call fcn.00403c67
pop ecx
mov eax, dword [0x437b34]
mov dword [0x441b78], eax
mov eax, dword [0x437b0c]
mov dword [0x441b7c], eax
call fcn.00402eb3
mov dword [esp + 0x10], esi
mov ebx, 0x2b259d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor eax, eax
mov dword [esp + 0x1c], esi
lea edi, [esp + 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
push esi
lea eax, [esp + 0x3c]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp dword [esp + 0x10], ebx
jle 0x403275
cmp dword [esp + 0x18], 0x785074d5
jne 0x403283
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0x1c1b
jl 0x403230
xor edi, edi
push esi
lea eax, [esp + 0x34]
push eax
push esi
push 0x402a44
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
push 0x402a80
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
cmp edi, ebx
jle 0x4032b2
cmp dword [esp + 0x18], 0x785074d5
jne 0x4032bb
inc edi
cmp edi, 0x11915
jl 0x403285
mov eax, dword [0x440ac8]
mov dword [0x44110c], eax
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x404840
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4360d8]
jne 0x40484a
repz ret
jmp fcn.00408c1a
Function at 0x4088d5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00405a9c
and dword [ebp - 4], 0
cmp dword [0x4383b8], 0
mov ebx, eax
jne 0x408986
push 0x401b18
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408a37
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401b0c
push edi
call esi
test eax, eax
je 0x408a37
push eax
call fcn.00405a2a
mov dword [esp], 0x401afc
push edi
mov dword [0x4383b8], eax
call esi
push eax
call fcn.00405a2a
mov dword [esp], 0x401ae8
push edi
mov dword [0x4383bc], eax
call esi
push eax
call fcn.00405a2a
mov dword [esp], 0x401acc
push edi
mov dword [0x4383c0], eax
call esi
push eax
call fcn.00405a2a
pop ecx
mov dword [0x4383c8], eax
test eax, eax
je 0x408986
push 0x401ab4
push edi
call esi
push eax
call fcn.00405a2a
pop ecx
mov dword [0x4383c4], eax
mov eax, dword [0x4383c4]
cmp eax, ebx
je 0x4089de
cmp dword [0x4383c8], ebx
je 0x4089de
push eax
call fcn.00405aa5
push dword [0x4383c8]
mov esi, eax
call fcn.00405aa5
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4089de
test edi, edi
je 0x4089de
call esi
test eax, eax
je 0x4089d5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4089d5
test byte [ebp - 0xc], 1
jne 0x4089de
or dword [ebp + 0x10], 0x200000
jmp 0x408a17
mov eax, dword [0x4383bc]
cmp eax, ebx
je 0x408a17
push eax
call fcn.00405aa5
pop ecx
test eax, eax
je 0x408a17
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x408a17
mov eax, dword [0x4383c0]
cmp eax, ebx
je 0x408a17
push eax
call fcn.00405aa5
pop ecx
test eax, eax
je 0x408a17
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4383b8]
call fcn.00405aa5
pop ecx
test eax, eax
je 0x408a37
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408a39
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x63250a4a
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
mov ecx, 0x17b2406f
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219

Function at 0x432003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..rsrc
nop
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x432072
nop
mov ebx, 0x40c7d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x5d8c4375
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x432060
nop
nop
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4320d2
nop
nop
mov ebx, 0x42f314
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x736162a8
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x401b10
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401b3d
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
jne 0x401b50
pop esi
pop ebp
pop ebx
ret
push edi
push esi
call sub.MFC42.DLL_operatornew
mov ecx, esi
mov ebp, eax
mov edx, ecx
xor eax, eax
mov edi, ebp
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x18]
push eax
push esi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
pop edi
jne 0x401b89
pop esi
pop ebp
pop ebx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x14]
mov ecx, esi
call sub.MFC42.DLL_CString::Empty
push ebp
mov ecx, esi
call sub.MFC42.DLL_CString::operator
pop esi
pop ebp
mov eax, 1
pop ebx
ret

Function at 0x401bb0
Capabilities:
Connect to http server
Send data
Send http request

Disassembly:
sub esp, 0x3c
push ebx
push ebp
push esi
push str.InternetOpenA
push str.wininet.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push 0
push 0
push 0
push str.Mozilla_4.0__compatible_
call eax
test eax, eax
mov dword [esp + 0xc], eax
jne 0x401beb
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
push 0
push 0
push 3
push 0
push 0
push ecx
push edx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov ebp, eax
test ebp, ebp
jne 0x401c13
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
mov ecx, dword [esp + 0x54]
push 0
lea eax, [esp + 0x14]
push 0x4000000
push eax
push 0x404754
push str.HTTP_1.1
push ecx
push str.POST
push ebp
mov dword [esp + 0x30], str.text_txt
mov dword [esp + 0x34], 0
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ebx, eax
test ebx, ebx
jne 0x401c57
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
push edi
push 0xa0000000
lea edx, [esp + 0x20]
mov ecx, 0xc
mov esi, str.Content_Type:_application_x_www_form_urlencoded
lea edi, [esp + 0x20]
push 0xffffffffffffffff
push edx
rep movsd dword es:[edi], dword [esi]
push ebx
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
mov edx, dword [esp + 0x5c]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push eax
push eax
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
pop edi
jne 0x401cac
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3c
ret
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push ebp
call esi
mov eax, dword [esp + 0xc]
push eax
call esi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x3c
ret
Function at 0x42eb40
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x23000]
push edi
or ebp, 0xffffffff
jmp 0x42eb62
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x42eb69
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x42eb58
mov eax, 1
add ebx, ebx
jne 0x42eb7b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x42eb70
jne 0x42eb8c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42eb70
xor ecx, ecx
sub eax, 3
jb 0x42eba0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42ec12
mov ebp, eax
add ebx, ebx
jne 0x42ebab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x42ebb8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42ebdc
inc ecx
add ebx, ebx
jne 0x42ebc8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42ebbd
jne 0x42ebd9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42ebbd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42ebfc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42ebed
jmp 0x42eb5e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42ebfc
add edi, ecx
jmp 0x42eb5e
pop esi
mov edi, esi
mov ecx, 0xb60
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42ec1a
cmp byte [edi], 9
jne 0x42ec1a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x42ec1f
lea edi, [esi + 0x2b000]
mov eax, dword [edi]
or eax, eax
je 0x42ec8e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3b848]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3b8e8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42ec4c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3b8ec]
or eax, eax
je 0x42ec88
mov dword [ebx], eax
add ebx, 4
jmp 0x42ec69
call dword [esi + 0x3b8f0]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x42ecbf
cmp al, 0xef
ja 0x42ecb2
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x42ec94
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x42eca1
popal
jmp 0x41595c
Function at 0x402b90
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x468008], 0x8088405
inc edx
mov dword [ebx + 0x468008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x402fe8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x468024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403080
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403060
xor eax, eax
push ebp
push 0x403059
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 0x40309c
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 0x403060
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x468024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x468024], ax
mov esp, ebp
pop ebp
ret

Function at 0x403d44
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46a044], 0
je 0x403da5
cmp word [0x46a218], 0xd7b2
jne 0x403d6d
cmp dword [0x46a220], 0
jbe 0x403d6d
mov eax, 0x46a214
call dword [0x46a230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x468070
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 0x403dcc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x468034], 0
jne 0x403dc1
push 0
push 0x468068
push 0x468070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405150
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 0x405380
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4051d3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405380
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4051d3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40539c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40525c
xor eax, eax
push ebp
push 0x405255
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00404f98
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 0x40523a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4053bc
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40523a
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 0x40525c
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 0x405376
cmp byte [ebp - 0xd], 0
jne 0x4052a3
cmp byte [ebp - 0x12], 0
je 0x405376
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4052bc
dec ebx
cmp byte [ebx], 0x2e
je 0x4052cb
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4052bb
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405376
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405308
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 0x405376
cmp byte [ebp - 0xd], 0
je 0x405376
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 0x405376
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