joyce8/EMBER2024-capa huggingface dataset:
Function at 0x454e1d
Capabilities:
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x5e2500]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
push ebx
xor eax, eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x38], eax
cmp ecx, eax
je 0x454e66
lea edx, [ebp - 0x28]
push edx
push eax
push edi
call fcn.00454823
mov ebx, eax
neg ebx
sbb ebx, ebx
and ebx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], ebx
jmp 0x454e72
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x2c], eax
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x454e84
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0046212a
movzx eax, byte [esi + 0x20]
cmp eax, ebx
je 0x454eb8
test bl, 1
je 0x454eb8
mov ecx, dword [ebp - 0x34]
push eax
push edi
test ecx, ecx
je 0x454ea1
call fcn.00454873
jmp 0x454ea7
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x454eb8
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0046212a
lea eax, [esi + 8]
mov ecx, dword [eax]
or ecx, dword [eax + 4]
je 0x454f8c
lea ecx, [ebp - 0x4c]
push ecx
push eax
call fcn.00454d6a
pop ecx
lea eax, [esi + 0x10]
pop ecx
mov ecx, dword [eax]
or ecx, dword [eax + 4]
je 0x454eee
lea ecx, [ebp - 0x44]
push ecx
push eax
call fcn.00454d6a
pop ecx
lea eax, [ebp - 0x44]
pop ecx
mov dword [ebp - 0x38], eax
mov eax, dword [esi]
or eax, dword [esi + 4]
je 0x454f06
lea eax, [ebp - 0x54]
push eax
push esi
call fcn.00454d6a
pop ecx
pop ecx
lea esi, [ebp - 0x54]
jmp 0x454f09
mov esi, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
xor eax, eax
push eax
push 0x80
push 3
push eax
push 1
push 0xc0000000
push edi
cmp ecx, eax
je 0x454f2a
call fcn.004547af
jmp 0x454f30
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x454f44
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0046212a
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x38]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x454f72
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov dword [ebp - 0x30], eax
call esi
push edi
push dword [ebp - 0x30]
call fcn.0046212a
push ebx
call esi
test eax, eax
jne 0x454f86
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0046212a
mov ebx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x3c]
movzx eax, byte [esi + 0x20]
cmp eax, ebx
je 0x454fc0
test bl, 1
jne 0x454fc0
mov ecx, dword [ebp - 0x34]
push eax
push edi
test ecx, ecx
je 0x454fa9
call fcn.00454873
jmp 0x454faf
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x454fc0
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0046212a
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054dc83
leave
ret 0xc
Function at 0x457530
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x457578
call fcn.0045f83d
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x457578
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x4575bb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x4575a4
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 0x4575a4
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x4575b8
mov ecx, dword [esi + 0x68]
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 0x45e3ac
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x45e3f3
call fcn.0045f83d
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x45e3f3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x45e40f
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0045deac
mov esi, eax
test edi, edi
je 0x45e40d
test ebx, ebx
je 0x45e40d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x45ebf0
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5700d8
call fcn.0055247a
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x45ec15
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x45ec67
call fcn.0044c93b
push eax
lea ecx, [ebp - 0x10]
call fcn.00401d40
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00552584
push eax
call fcn.004012a0
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401700
mov eax, esi
call fcn.00552552
ret 8
Function at 0x461c6a
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0046190e
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x461cb4
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004025f0
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00401cf0
jmp 0x461cbf
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00465e59
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x461cc5
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.0045e4b8
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x461d02
call fcn.0046190e
mov dword [esi + 0xc], 1
jmp 0x461d07
call fcn.0046190e
cmp dword [esi], 0
je 0x461d50
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x461d28
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004025f0
jmp 0x461d3a
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00402020
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00401cf0
jmp 0x461d74
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x461d74
push dword [esi]
push dword [ebp + 8]
call fcn.00465e59
pop esi
pop ebp
ret 0xc

Function at 0x463e7b
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x570f76
call fcn.0055247a
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00404670
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x463edd
call fcn.0045f100
cmp eax, 1
jne 0x463edd
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.0041bfd0
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00403380
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401700
mov dword [ebp + 8], VariantInit
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401700
mov eax, esi
call fcn.00552552
ret 0x10
Function at 0x463f06
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x570f76
call fcn.0055247a
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00404670
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x463f68
call fcn.0045f100
cmp eax, 1
jne 0x463f68
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.0041bfd0
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00403380
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401700
mov dword [ebp + 8], VariantInit
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401700
mov eax, esi
call fcn.00552552
ret 0x14

Function at 0x463f94
Capabilities:
Delete registry key

Disassembly:
push 0
mov eax, 0x570f76
call fcn.0055247a
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00404670
mov esi, dword [ebp + 8]
and dword [ebp - 4], 0
cmp esi, 0x80000000
jne 0x463ff6
call fcn.0045f100
cmp eax, 1
jne 0x463ff6
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.0041bfd0
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00403380
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.00401700
inc esi
mov ecx, dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
test ecx, ecx
je 0x464008
call fcn.00450b80
jmp 0x46400e
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401700
mov eax, esi
call fcn.00552552
ret 0xc

Function at 0x464512
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5e2500]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x464547
xor eax, eax
jmp 0x46459a
lea eax, [ebp - 0x210]
push eax
call fcn.0054f4b0
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x464578
push 0x5805b0
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.005529ff
add esp, 0xc
test eax, eax
jne 0x464543
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.005529ff
add esp, 0xc
test eax, eax
jne 0x464543
lea eax, [ebp - 0x210]
push eax
call fcn.0044b599
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0054dc83
leave
ret
Function at 0x4dcdce
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x4dcde8
call fcn.0045f83d
mov esi, dword [eax + 0xc]
push dword [0x5e7e50]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4dce06
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x4dcdfe
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4dce33
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x4dce00
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.004dccfc
mov esi, eax
jmp 0x4dce25

Function at 0x52cbf1
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0045c897
call fcn.0044b61f
cmp eax, esi
pop esi
jne 0x52cc0d
mov ecx, 0x5e5d98
jmp fcn.00465085
ret

Function at 0x54cbe6
Capabilities:
Delete file
Get file attributes

Disassembly:
pushal
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call 0x54cbf4
mov edx, ebx
lea edi, [0xdef744d5]
and eax, 0xf9ee47d4
lea eax, [0x68c9fe97]
pop ebx
add ebx, 0x96ca
btr edx, ebp
bswap ecx
mov ecx, ebp
add ebx, 0x5715
adc ecx, ebp
inc edi
add ebx, 0x82a5
mov ecx, ebp
test ebx, 0xe8497e17
mov dl, 0x19
add ebx, 0x4de7
shrd eax, ebx, 0x9e
xchg eax, ecx
adc eax, 0x89be5724
add ebx, 0xebc
movsx eax, dh
imul ecx, eax
adc ecx, ebp
add ebx, 0x8f34
shld edi, esi, 0x64
adc ecx, 0x990ee7f4
mov al, 0x1e
add ebx, 0x1357b1
mov ecx, 0x392e8714
cmp al, 0x3e
and eax, 0xd94e2734
push ebx
add ebx, 0xd4f
bt eax, ebx
shl ecx, 1
jmp 0x54cc83
add ebx, 0xa44
xadd eax, ecx
rcl ecx, 1
rcl ecx, 1
sub ebx, 0x67d
movzx edi, bp
jmp 0x54cc9c
inc edi
push ebx
sub ebx, 0
bsf edi, esi
imul edi, esi
lea edi, [0x990ee7f4]
sub ebx, 0x1116
add byte [edi], cl
mov edx, 0xc8871ee0
xchg eax, ecx
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop ebx
mov edx, eax
mov dh, 0x85
adc esi, 0x5e77c455
imul ecx, eax
add eax, eax
shld edi, esi, 0xf5
imul edi, esi, 0x8e6774c5
mov ecx, 0xe99eb704
jmp ebx
Function at 0x54ccb5
Capabilities:
Get file attributes

Disassembly:
pushal
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call 0x54cbf4
mov edx, ebx
lea edi, [0xdef744d5]
and eax, 0xf9ee47d4
lea eax, [0x68c9fe97]
pop ebx
add ebx, 0x96ca
btr edx, ebp
bswap ecx
mov ecx, ebp
add ebx, 0x5715
adc ecx, ebp
inc edi
add ebx, 0x82a5
mov ecx, ebp
test ebx, 0xe8497e17
mov dl, 0x19
add ebx, 0x4de7
shrd eax, ebx, 0x9e
xchg eax, ecx
adc eax, 0x89be5724
add ebx, 0xebc
movsx eax, dh
imul ecx, eax
adc ecx, ebp
add ebx, 0x8f34
shld edi, esi, 0x64
adc ecx, 0x990ee7f4
mov al, 0x1e
add ebx, 0x1357b1
mov ecx, 0x392e8714
cmp al, 0x3e
and eax, 0xd94e2734
push ebx
add ebx, 0xd4f
bt eax, ebx
shl ecx, 1
jmp 0x54cc83
add ebx, 0xa44
xadd eax, ecx
rcl ecx, 1
rcl ecx, 1
sub ebx, 0x67d
movzx edi, bp
jmp 0x54cc9c
inc edi
push ebx
sub ebx, 0
bsf edi, esi
imul edi, esi
lea edi, [0x990ee7f4]
sub ebx, 0x1116
add byte [edi], cl
mov edx, 0xc8871ee0
xchg eax, ecx
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop ebx
mov edx, eax
mov dh, 0x85
adc esi, 0x5e77c455
imul ecx, eax
add eax, eax
shld edi, esi, 0xf5
imul edi, esi, 0x8e6774c5
mov ecx, 0xe99eb704
jmp ebx

Function at 0x54dc83
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5e2500]
jne 0x54dc8d
repz ret
jmp fcn.0055aecc

Function at 0x5509d0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x5509f8
call fcn.00552772
and dword [eax], 0
call fcn.0055275f
mov dword [eax], 0x16
call fcn.00557b0e
or eax, 0xffffffff
pop ebp
ret
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x550a15
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00552785
pop ecx
jmp 0x5509f3
test byte [ebp + 0xc], 0x80
je 0x550a20
and eax, 0xfffffffe
jmp 0x550a23
or eax, 1
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x550a06
xor eax, eax
pop ebp
ret
Function at 0x5633a8
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5e2500]
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.0055727b
and dword [ebp - 0x14], 0
cmp dword [0x5ea460], 0
mov dword [ebp - 0x18], eax
jne 0x56345b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x563503
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5b7708
push ebx
call edi
test eax, eax
je 0x563503
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x5b76f8
push ebx
mov dword [0x5ea460], eax
call edi
push eax
call esi
push 0x5b76e4
push ebx
mov dword [0x5ea464], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x5ea468], eax
call edi
push eax
call esi
mov dword [0x5ea470], eax
test eax, eax
je 0x56345b
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x5ea46c], eax
mov eax, dword [0x5ea46c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x5634b4
cmp dword [0x5ea470], ecx
je 0x5634b4
push eax
call esi
push dword [0x5ea470]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x5634b4
test ebx, ebx
je 0x5634b4
call edi
test eax, eax
je 0x5634ab
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x5634ab
test byte [ebp - 8], 1
jne 0x5634b4
or dword [ebp + 0x10], 0x200000
jmp 0x5634e7
mov eax, dword [0x5ea464]
cmp eax, dword [ebp - 0x18]
je 0x5634e7
push eax
call esi
test eax, eax
je 0x5634e7
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x5634e7
mov eax, dword [0x5ea468]
cmp eax, dword [ebp - 0x18]
je 0x5634e7
push eax
call esi
test eax, eax
je 0x5634e7
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5ea460]
call esi
test eax, eax
je 0x563503
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x563505
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054dc83
leave
ret
Function at 0x4049a8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00407c30
test esi, esi
jne 0x4049de
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.00407db8
jmp 0x4049fc
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040488c
mov edi, eax
test esi, esi
je 0x4049fc
cmp dword [ebx], 0
je 0x4049fc
dec esi
jmp 0x4049e5
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x406970
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00406d68
mov byte [esp], al
cmp byte [esp], 0
jne 0x406afc
test edi, edi
je 0x406afc
mov byte [esp + 1], 0
test ebp, ebp
jle 0x406a33
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x406a0e
cmp edi, 0xffffffff
je 0x4069cf
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4069cf
mov byte [esp], 0
jmp 0x406afc
mov ebx, dword [esi]
cmp ebx, 1
jg 0x406a0e
test ebx, ebx
jne 0x406a04
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.00402824
test eax, eax
jne 0x406a04
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x406afc
call 0x406e8c
dec ebp
test ebp, ebp
jg 0x4069b4
cmp edi, 0xffffffff
je 0x406a33
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x406a31
mov byte [esp], 0
jmp 0x406afc
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40697e
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.00402824
cmp ebx, eax
jne 0x406a33
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00406b6c
mov edx, eax
mov ebx, dword [0x5338f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x406a9a
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x406a98
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x406a9a
xor edi, edi
cmp byte [esp], 0
je 0x406ac3
mov ebx, dword [esi]
test bl, 1
jne 0x406adc
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.00402824
cmp ebx, eax
jne 0x406aa0
mov byte [esp + 1], 1
jmp 0x406adc
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.00402824
cmp ebx, eax
jne 0x406ac3
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x406a4d
cmp byte [esp], 0
je 0x406afc
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40788c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x533058], 0
je 0x4078f3
cmp word [0x533344], 0xd7b2
jne 0x4078b5
cmp dword [0x53334c], 0
jbe 0x4078b5
mov eax, 0x533340
call dword [0x53335c]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x407920
call fcn.004084d8
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x52d032], 0
jne 0x40790f
push 0
push 0x52d9c2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x407aec
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x52d034], 0
je 0x407b17
mov edx, edi
mov eax, esi
call dword [0x52d034]
mov ebx, eax
jmp 0x407b28
mov eax, 8
call fcn.004045e8
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x533059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x407ab4
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x407b5d
mov edx, 8
mov eax, ebx
call fcn.00404604
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40a498
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40a5fd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00407c30
cmp si, word [0x52da00]
jb 0x40a530
cmp si, word [0x52dc00]
ja 0x40a530
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40a530
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x52da00]
jae 0x40a50a
mov edi, ebx
dec edi
jmp 0x40a52b
cmp si, word [ebx*8 + 0x52da00]
jbe 0x40a51a
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40a52b
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x52da04]
call fcn.0040a3a8
jmp 0x40a530
cmp edi, dword [ebp - 8]
jae 0x40a4f4
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40a5df
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40a5df
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040895c
push dword [ebp - 0x160]
push 0x40a618
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040895c
push dword [ebp - 0x164]
push 0x40a628
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040895c
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00408b94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a604
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00407c90
ret