joyce8/EMBER2024-capa huggingface dataset:
Function at 0x455c75
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x4cd807
call fcn.0049aeba
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x455c9a
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x455ce0
lea ecx, [ebp - 0x10]
call fcn.004019b0
mov ecx, dword [esi + 0x50]
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.004469bf
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401150
mov eax, esi
call fcn.0049af92
ret 8

Function at 0x45a820
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 0x45a868
call fcn.00458744
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x45a868
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x45a8ab
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 0x45a894
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 0x45a894
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x45a8a8
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 0x470946
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x470971
call fcn.00458744
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi + 8], eax
test eax, eax
jne 0x470994
push eax
push dword [esi + 4]
call fcn.004708a7
push esi
push eax
mov ecx, 0x52b508
call fcn.004702e3
mov eax, esi
pop esi
pop ebp
ret 0x18
Function at 0x4720d2
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x4cf850
call fcn.0049aeba
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x20]
mov edi, dword [ebp + 8]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
call fcn.00471d2e
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.004019b0
push dword [esi + 8]
mov edi, dword [edi + 8]
push dword [ebp + 0x10]
mov byte [ebp - 4], 1
push 3
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [esi + 4], eax
test eax, eax
jne 0x472139
push eax
push dword [esi + 8]
call fcn.004708a7
push dword [esi + 0xc]
mov ecx, 0x52b508
push eax
call fcn.004702e3
mov eax, esi
call fcn.0049af92
ret 0x1c

Function at 0x474c39
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x4cfcec
call fcn.0049aeba
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.0040f2b0
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x474c9b
call fcn.00457b47
cmp eax, 1
jne 0x474c9b
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.0045c7ac
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00401f10
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401150
mov dword [ebp + 8], SysReAllocString
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401150
mov eax, esi
call fcn.0049af92
ret 0x10

Function at 0x474cc4
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x4cfd17
call fcn.0049aeba
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.0040f2b0
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x474d26
call fcn.00457b47
cmp eax, 1
jne 0x474d26
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.0045c7ac
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00401f10
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401150
mov dword [ebp + 8], SysReAllocString
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_RegSetValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401150
mov eax, esi
call fcn.0049af92
ret 0x14
Function at 0x474d52
Capabilities:
Delete registry key

Disassembly:
push 0
mov eax, 0x4cfd42
call fcn.0049aeba
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.0040f2b0
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x474db4
call fcn.00457b47
cmp eax, 1
jne 0x474db4
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.0045c7ac
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00401f10
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401150
mov dword [ebp + 8], SysReAllocString
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401150
mov eax, esi
call fcn.0049af92
ret 8

Function at 0x4974ba
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x517774]
jne 0x4974c4
repz ret
jmp fcn.004a74bc

Function at 0x4b1d04
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x4b1d35
call fcn.0049db29
mov dword [eax], esi
call fcn.0049db16
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00497c23
add esp, 0x14
push 0x16
pop eax
jmp 0x4b1d8a
test dword [ebp + 0xc], 0xfffffff9
jne 0x4b1d11
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4b1d62
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0049db3c
pop ecx
call fcn.0049db16
mov eax, dword [eax]
jmp 0x4b1d8a
test al, 0x10
jne 0x4b1d88
test al, 1
je 0x4b1d88
test byte [ebp + 0xc], 2
je 0x4b1d88
call fcn.0049db29
mov dword [eax], 5
call fcn.0049db16
mov dword [eax], 0xd
jmp 0x4b1d59
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4bc6c9
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.004a6df3
and dword [ebp - 4], 0
cmp dword [0x52c37c], 0
mov ebx, eax
jne 0x4bc77a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4bc82b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4eeb1c
push edi
call esi
test eax, eax
je 0x4bc82b
push eax
call fcn.004a6d81
mov dword [esp], 0x4eeb0c
push edi
mov dword [0x52c37c], eax
call esi
push eax
call fcn.004a6d81
mov dword [esp], 0x4eeaf8
push edi
mov dword [0x52c380], eax
call esi
push eax
call fcn.004a6d81
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x52c384], eax
call esi
push eax
call fcn.004a6d81
pop ecx
mov dword [0x52c38c], eax
test eax, eax
je 0x4bc77a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004a6d81
pop ecx
mov dword [0x52c388], eax
mov eax, dword [0x52c388]
cmp eax, ebx
je 0x4bc7d2
cmp dword [0x52c38c], ebx
je 0x4bc7d2
push eax
call fcn.004a6dfc
push dword [0x52c38c]
mov esi, eax
call fcn.004a6dfc
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4bc7d2
test edi, edi
je 0x4bc7d2
call esi
test eax, eax
je 0x4bc7c9
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4bc7c9
test byte [ebp - 0xc], 1
jne 0x4bc7d2
or dword [ebp + 0x10], 0x200000
jmp 0x4bc80b
mov eax, dword [0x52c380]
cmp eax, ebx
je 0x4bc80b
push eax
call fcn.004a6dfc
pop ecx
test eax, eax
je 0x4bc80b
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4bc80b
mov eax, dword [0x52c384]
cmp eax, ebx
je 0x4bc80b
push eax
call fcn.004a6dfc
pop ecx
test eax, eax
je 0x4bc80b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x52c37c]
call fcn.004a6dfc
pop ecx
test eax, eax
je 0x4bc82b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4bc82d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x491fa2
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x491fe1
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x491fe1
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x491fe1
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x491fe1
cmp dword [ecx + 0x74], 0xe
jbe 0x491fe1
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x497a13
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x497ab0
push ebx
push esi
call fcn.004979dc
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00497970
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x497a5d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x497aaf
push edi
push eax
call fcn.00498630
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x497a7d
call fcn.004964d1
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x497aae
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00497970
add esp, 0x20
test eax, eax
jne 0x497a9c
push edi
call fcn.004964d1
jmp 0x497aa4
push ebx
call fcn.004964d1
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x498dad
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4bcab0
push 0x4bcaa8
push str.FlsAlloc
push 0x1f
call fcn.00498c6c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x498de1
push dword [ebp + 8]
mov ecx, esi
call dword [0x49f130]
call esi
jmp 0x498de7
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x498e2b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4bcac0
push 0x4bcab8
push str.FlsGetValue
push 0x21
call fcn.00498c6c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x498e62
push dword [ebp + 8]
mov ecx, esi
call dword [0x49f130]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x498e6a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4bcac8
push 0x4bcac0
push str.FlsSetValue
push 0x22
call fcn.00498c6c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x498ea4
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x49f130]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x49e300
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x49e32d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x49e32d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4012a4
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
and dword [ebp - 0x14], 0
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x14]
push edi
mov dword [ebp - 0x38], esi
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [ebp - 8], eax
mov eax, dword [0x41b5c0]
mov dword [ebp - 0x30], eax
mov eax, dword [0x41b5c4]
mov dword [ebp - 0x34], eax
call fcn.0040129d
mov edi, dword [ebp - 0x14]
mov eax, dword [0x41b5c8]
add edi, 0x23f
mov dword [ebp - 0x28], eax
mov eax, dword [0x41b5cc]
push 0x20
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x2c], eax
pop esi
mov dword [ebp - 0x20], 2
add dword [ebp - 0x20], 3
mov edx, dword [ebp - 8]
mov eax, edx
mov ecx, dword [0xae366c]
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x40132d
push 0x418300
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [0xae366c]
add eax, dword [ebp - 0x28]
cmp ecx, 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0xae3668]
mov dword [ebp - 0x24], 0xedeb2e40
cmove eax, dword [ebp - 0x24]
and dword [ebp - 0x24], 0
cmp ecx, 0x3eb
mov dword [0xae3668], eax
mov eax, dword [0xae35c0]
cmove eax, dword [ebp - 0x24]
mov dword [0xae35c0], eax
lea eax, [edi + edx]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
shr eax, 5
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
and dword [ebp - 0x18], 0
mov dword [0xae3664], 0xf4ea3dee
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x1c]
sub ebx, eax
mov dword [ebp - 0x10], eax
mov eax, ebx
mov dword [ebp - 0x1c], ebx
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1c]
nop
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x20]
mov eax, ebx
shr eax, cl
add eax, dword [ebp - 0x34]
mov dword [ebp - 0x10], eax
xor eax, dword [ebp - 0x24]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 8], eax
add edi, 0x61c88647
mov dword [ebp - 0x14], edi
dec esi
jne 0x4012f5
mov esi, dword [ebp - 0x38]
mov eax, dword [ebp - 8]
pop edi
mov dword [esi + 4], ebx
mov dword [esi], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d5ac
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a35c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004050d5
mov dword [ebp - 0x14], eax
cmp dword [0x43ee20], esi
jne 0x40d69f
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d62c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d77f
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d77f
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d77f
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x43ee20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x43ee24], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x43ee28], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43ee30], eax
test eax, eax
je 0x40d69c
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43ee2c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d6c4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d6b7
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d6d9
push 4
pop eax
jmp 0x40d781
cmp dword [ebp - 0x14], esi
je 0x40d6d9
push dword [0x43ee20]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d6be
mov eax, dword [0x43ee2c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d737
cmp dword [0x43ee30], edi
je 0x40d737
push eax
call ebx
push dword [0x43ee30]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d737
test eax, eax
je 0x40d737
call ecx
test eax, eax
je 0x40d72c
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d72c
test byte [ebp - 8], 1
jne 0x40d737
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d767
mov eax, dword [0x43ee24]
cmp eax, edi
je 0x40d764
push eax
call ebx
test eax, eax
je 0x40d764
call eax
mov esi, eax
test esi, esi
je 0x40d764
mov eax, dword [0x43ee28]
cmp eax, edi
je 0x40d764
push eax
call ebx
test eax, eax
je 0x40d764
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x43ee20]
call ebx
test eax, eax
je 0x40d77f
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d781
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040443b
mov esp, ebp
pop ebp
ret
Function at 0x402840
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004043d8
test esi, esi
jne 0x402876
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004044c8
jmp 0x402894
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004026f4
mov edi, eax
test esi, esi
je 0x402894
cmp dword [ebx], 0
je 0x402894
dec esi
jmp 0x40287d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x403754
Capabilities:
Query or enumerate registry value

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

Function at 0x40425c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x42b044], 0
je 0x4042bd
cmp word [0x42b218], 0xd7b2
jne 0x404285
cmp dword [0x42b220], 0
jbe 0x404285
mov eax, 0x42b214
call dword [0x42b230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x429294
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 0x4042e4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x429028], 0
jne 0x4042d9
push 0
push 0x42928c
push 0x429294
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4058c0
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 0x405af0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405943
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405af0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405943
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405b0c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4059cc
xor eax, eax
push ebp
push 0x4059c5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405708
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 0x4059aa
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405b2c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4059aa
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 0x4059cc
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 0x405ae6
cmp byte [ebp - 0xd], 0
jne 0x405a13
cmp byte [ebp - 0x12], 0
je 0x405ae6
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405a2c
dec ebx
cmp byte [ebx], 0x2e
je 0x405a3b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405a2b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405ae6
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405a78
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 0x405ae6
cmp byte [ebp - 0xd], 0
je 0x405ae6
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 0x405ae6
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