joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45bdb0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, edx
test esi, esi
not eax
je 0x45bde2
lea esp, [esp]
test cl, 3
je 0x45bde2
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4aecd0]
add ecx, 1
sub esi, 1
jne 0x45bdc0
cmp esi, 0x20
push ebx
push edi
jb 0x45bfcc
mov edi, esi
shr edi, 5
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x4af0d0]
xor edx, dword [ebx*4 + 0x4af4d0]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x4aecd0]
add ecx, 4
xor edx, dword [eax*4 + 0x4af8d0]
add ecx, 4
xor edx, dword [ecx - 8]
add ecx, 4
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x4af0d0]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x4af4d0]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x4aecd0]
add ecx, 4
xor eax, dword [edx*4 + 0x4af8d0]
add ecx, 4
xor eax, dword [ecx - 0x10]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x4af0d0]
xor edx, dword [ebx*4 + 0x4af4d0]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x4aecd0]
xor edx, dword [eax*4 + 0x4af8d0]
xor edx, dword [ecx - 0xc]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x4af0d0]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x4af4d0]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x4aecd0]
xor eax, dword [edx*4 + 0x4af8d0]
xor eax, dword [ecx - 8]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x4af0d0]
xor edx, dword [ebx*4 + 0x4af4d0]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x4aecd0]
xor edx, dword [eax*4 + 0x4af8d0]
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x4af0d0]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x4af4d0]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x4aecd0]
and edx, 0xff
xor eax, dword [edx*4 + 0x4af8d0]
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x4af0d0]
xor edx, dword [ebx*4 + 0x4af4d0]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x4aecd0]
add ecx, 4
xor edx, dword [eax*4 + 0x4af8d0]
sub esi, 0x20
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x4af0d0]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x4af4d0]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x4aecd0]
and edx, 0xff
xor eax, dword [edx*4 + 0x4af8d0]
sub edi, 1
jne 0x45bdf2
cmp esi, 4
jb 0x45c019
mov edx, esi
shr edx, 2
xor eax, dword [ecx]
add ecx, 4
mov edi, eax
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x4af0d0]
movzx ebx, ah
xor edi, dword [ebx*4 + 0x4af4d0]
mov ebx, eax
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4aecd0]
and eax, 0xff
xor edi, dword [eax*4 + 0x4af8d0]
sub esi, 4
sub edx, 1
mov eax, edi
jne 0x45bfd6
test esi, esi
pop edi
pop ebx
je 0x45c03d
nop
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4aecd0]
add ecx, 1
sub esi, 1
jne 0x45c020
not eax
pop esi
ret
Function at 0x45f67f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x49df2a
call fcn.00481d6d
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.0045ee43
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x45f6ca
call fcn.0045ee43
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x45f6db
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x45f6e8
or eax, 0xffffffff
jmp 0x45f844
mov ecx, esi
call fcn.0045f1d1
mov dword [ebp - 0x14], eax
call fcn.004653b3
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x45f766
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x45f766
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x45f766
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.00433ac2
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x45f766
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x45f766
mov ecx, ebx
call fcn.00468957
test eax, eax
je 0x45f766
push 0
mov ecx, ebx
call fcn.00468972
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.00466daa
push dword [ebp - 0x14]
call fcn.0046530b
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.0045f487
xor edi, edi
cmp eax, edi
je 0x45f7c3
test byte [esi + 0x3c], 0x10
je 0x45f7ad
push 4
pop edi
mov ecx, esi
call fcn.00468814
test ax, 0x100
je 0x45f7a3
push 5
pop edi
push edi
mov ecx, esi
call fcn.00464ed3
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x45f7c3
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00468b45
or dword [ebp - 4], 0xffffffff
jmp 0x45f7ee
cmp dword [ebp - 0x28], edi
je 0x45f7fc
push 1
mov ecx, ebx
call fcn.00468972
cmp dword [ebp - 0x2c], edi
je 0x45f80c
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x45f825
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x45f825
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.0045f20b
cmp dword [esi + 0x58], edi
je 0x45f841
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.00481e12
ret
Function at 0x4663a8
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4663e1
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00435eaa
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00402fd4
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x467e0f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x467e52
call fcn.0045ee43
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x467e52
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x467e6d
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.004679c9
test ebx, ebx
mov esi, eax
je 0x467e6b
test edi, edi
je 0x467e6b
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x469ad0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4d0620]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0xc]
jne 0x469b0d
push 0x4a8118
push 4
push eax
call fcn.0047e75f
push eax
call fcn.004017df
add esp, 0x10
jmp 0x469b1f
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x469b8a
push edi
call fcn.00481eba
mov edi, dword [eax]
call fcn.00481eba
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.00481e60
add esp, 0x18
mov ebx, eax
call fcn.00481eba
cmp dword [eax], 0
je 0x469b6a
call fcn.00481eba
push dword [eax]
call fcn.0045e045
pop ecx
jmp 0x469b71
call fcn.00481eba
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x469b8a
cmp ebx, esi
jae 0x469b8a
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x469b8c
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0047b9fe
leave
ret
Function at 0x46b7e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x46b826
call fcn.0045ee43
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x46b826
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x46b869
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x46b852
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x46b852
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x46b866
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x46d4dd
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x46d4e7
call fcn.0045d9b7
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.0048124b
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x46d514
mov esi, dword [esi + 0xc]
call fcn.00481ecd
push esi
push dword [eax]
push 1
call fcn.004607d9
pop esi
ret 8

Function at 0x47b9fe
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4d0620]
jne 0x47ba08
repz ret
jmp fcn.004840fc
Function at 0x48327e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x4832bb
cmp dword [ebp + 0x14], edi
je 0x4832bb
cmp ecx, edi
jne 0x4832c2
call fcn.00481eba
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0047f239
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4832d6
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x4832f7
cmp ebx, 0xffffffff
je 0x4832e6
push ebx
push edi
push ecx
call fcn.0047e7d0
add esp, 0xc
cmp esi, edi
je 0x4832a3
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4832a3
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x483313
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x48331a
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x48340b
test word [esi + 0xc], 0x10c
je 0x48336e
mov eax, dword [esi + 4]
test eax, eax
je 0x48336e
jl 0x48346c
cmp ebx, eax
mov edi, ebx
jb 0x48333f
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x483413
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0047bc45
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x483403
cmp ebx, dword [ebp - 0xc]
jb 0x4833db
cmp dword [ebp - 0xc], 0
je 0x483398
mov ecx, closesocket
xor edx, edx
cmp ebx, ecx
jbe 0x48338d
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x483394
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4833a3
mov eax, closesocket
cmp ebx, eax
ja 0x4833a3
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x48343f
push eax
push dword [ebp - 8]
push esi
call fcn.00482fc1
pop ecx
push eax
call fcn.004926b6
add esp, 0xc
test eax, eax
je 0x48347e
cmp eax, 0xffffffff
je 0x48346c
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x483403
push esi
call fcn.00491fd5
cmp eax, 0xffffffff
pop ecx
je 0x483470
cmp dword [ebp - 4], 0
je 0x48343f
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x483322
mov eax, dword [ebp + 0x14]
jmp 0x4832bd
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x48342a
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0047e7d0
add esp, 0xc
call fcn.00481eba
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x4832b3
cmp dword [ebp + 0xc], 0xffffffff
je 0x483455
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0047e7d0
add esp, 0xc
call fcn.00481eba
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x4832b3
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x4832bd
or dword [esi + 0xc], 0x10
jmp 0x483470
Function at 0x487e1a
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4d0f98]
je 0x487e35
inc edi
cmp edi, 0x17
jb 0x487e26
cmp edi, 0x17
jae 0x487fb5
push ebp
push 3
call fcn.004943bb
cmp eax, 1
pop ecx
je 0x487f81
push 3
call fcn.004943bb
test eax, eax
pop ecx
jne 0x487e69
cmp dword [0x4d0610], 1
je 0x487f81
cmp ebx, 0xfc
je 0x487fb4
push 0x4aa260
mov ebx, 0x314
push ebx
mov ebp, 0x4ec118
push ebp
call fcn.0047fbea
add esp, 0xc
test eax, eax
je 0x487e9f
push esi
push esi
push esi
push esi
push esi
call fcn.0047f13d
add esp, 0x14
push 0x104
mov esi, 0x4ec131
push esi
push 0
mov byte [0x4ec235], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x487ee3
push 0x4aa248
push 0x2fb
push esi
call fcn.0047fbea
add esp, 0xc
test eax, eax
je 0x487ee3
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0047f13d
add esp, 0x14
push esi
call fcn.0047be60
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x487f28
push esi
call fcn.0047be60
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4ec42c
push 0x4aa244
sub ecx, eax
push ecx
push eax
call fcn.00488745
add esp, 0x14
test eax, eax
je 0x487f28
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0047f13d
add esp, 0x14
jmp 0x487f2a
xor esi, esi
push 0x4aa240
push ebx
push ebp
call fcn.0047fedd
add esp, 0xc
test eax, eax
je 0x487f4a
push esi
push esi
push esi
push esi
push esi
call fcn.0047f13d
add esp, 0x14
push dword [edi*8 + 0x4d0f9c]
push ebx
push ebp
call fcn.0047fedd
add esp, 0xc
test eax, eax
je 0x487f6c
push esi
push esi
push esi
push esi
push esi
call fcn.0047f13d
add esp, 0x14
push 0x12010
push 0x4aa218
push ebp
call fcn.004941fe
add esp, 0xc
jmp 0x487fb4
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x487fb4
cmp ebp, 0xffffffff
je 0x487fb4
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4d0f9c]
push dword [esi]
call fcn.0047be60
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4941fe
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00484d33
xor ebx, ebx
cmp dword [0x4ec6a8], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4942d4
push 0x4aae08
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4943b4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4aadfc
push edi
call esi
cmp eax, ebx
je 0x4943b4
push eax
call fcn.00484cc5
mov dword [esp], 0x4aadec
push edi
mov dword [0x4ec6a8], eax
call esi
push eax
call fcn.00484cc5
mov dword [esp], 0x4aadd8
push edi
mov dword [0x4ec6ac], eax
call esi
push eax
call fcn.00484cc5
mov dword [0x4ec6b0], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004825e4
test eax, eax
pop ecx
pop ecx
je 0x4942a2
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0047f13d
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4942d4
push 0x4aadbc
push edi
call esi
push eax
call fcn.00484cc5
cmp eax, ebx
pop ecx
mov dword [0x4ec6b8], eax
je 0x4942d4
push 0x4aada4
push edi
call esi
push eax
call fcn.00484cc5
pop ecx
mov dword [0x4ec6b4], eax
mov eax, dword [0x4ec6b4]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x494359
cmp dword [0x4ec6b8], ecx
je 0x494359
push eax
call fcn.00484d3c
push dword [0x4ec6b8]
mov esi, eax
call fcn.00484d3c
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x494359
cmp edi, ebx
je 0x494359
call esi
cmp eax, ebx
je 0x494326
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x494326
test byte [ebp - 0x18], 1
jne 0x494359
lea eax, [ebp - 0x10]
push eax
call fcn.0048261b
test eax, eax
pop ecx
je 0x494341
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0047f13d
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x494350
or dword [ebp + 0x10], 0x200000
jmp 0x494394
or dword [ebp + 0x10], 0x40000
jmp 0x494394
mov eax, dword [0x4ec6ac]
cmp eax, dword [ebp - 8]
je 0x494394
push eax
call fcn.00484d3c
cmp eax, ebx
pop ecx
je 0x494394
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x494394
mov eax, dword [0x4ec6b0]
cmp eax, dword [ebp - 8]
je 0x494394
push eax
call fcn.00484d3c
cmp eax, ebx
pop ecx
je 0x494394
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4ec6a8]
call fcn.00484d3c
cmp eax, ebx
pop ecx
je 0x4943b4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4943b6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x49a314
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4d0620]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0049a2a9
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0047e7d0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x49a363
cmp dword [ebp - 0x1c], 5
jb 0x49a37b
jmp 0x49a377
cmp dword [ebp - 0x10], 1
jne 0x49a37b
cmp dword [ebp - 0x1c], 4
ja 0x49a377
jne 0x49a37b
cmp dword [ebp - 0x18], 0
jbe 0x49a37b
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4abdfc
call fcn.0049a19a
test eax, eax
jge 0x49a39c
mov byte [0x4f008c], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0047b9fe
add ebp, 0x78
leave
ret

Function at 0x49bb30
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add dl, dl
jne 0x49bb4b
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x49bb3c
add dl, dl
jne 0x49bb56
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x49bba2
xor eax, eax
add dl, dl
jne 0x49bb63
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x49bc44
add dl, dl
jne 0x49bb72
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x49bb7d
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x49bb88
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x49bb93
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x49bb9d
push edi
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
jmp 0x49bb42
mov eax, 1
add dl, dl
jne 0x49bbb0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x49bbbb
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x49bba7
sub eax, 2
jne 0x49bbec
mov ecx, 1
add dl, dl
jne 0x49bbd2
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x49bbdd
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x49bbc9
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x49bb42
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x49bc03
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x49bc0e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x49bbfa
cmp eax, 0x7d00
jae 0x49bc31
cmp eax, 0x500
jb 0x49bc2c
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x49bb42
cmp eax, 0x7f
ja 0x49bc37
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x49bb42
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x49bc60
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x49bb42
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret
Function at 0x403658
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00406ddc
test esi, esi
jne 0x403690
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00406f18
jmp 0x4036ae
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040353c
mov edi, eax
test esi, esi
je 0x4036ae
cmp dword [ebx], 0
je 0x4036ae
dec esi
jmp 0x403697
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x4036e4
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x4044c8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x70f024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x404560
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x404540
xor eax, eax
push ebp
push 0x404539
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 0x404598
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404540
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x70f024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x70f024], ax
mov esp, ebp
pop ebp
ret