joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401560
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43ea6d
mov eax, dword fs:[0]
push eax
sub esp, 0x18c
push esi
push edi
mov eax, dword [0x4526e8]
xor eax, esp
push eax
lea eax, [esp + 0x198]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, esi
call fcn.0040c573
push 0
call fcn.0040cb54
test eax, eax
jne 0x4015e1
push 0xffffffffffffffff
push eax
push 0x67
call fcn.0040bde9
xor eax, eax
mov ecx, dword [esp + 0x198]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0
call fcn.0040d48b
add esp, 4
push 0x4473b0
mov ecx, esi
call fcn.0040da00
push str.FilmEverydayacc3lsdfjajf
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401633
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x198]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x14]
push ecx
call fcn.00401860
lea edx, [esp + 0x14]
mov dword [esp + 0x1a0], 0
mov ecx, edx
mov dword [esi + 0x20], edx
call fcn.0040e301
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x1a4], 0xffffffff
call fcn.00401690
xor eax, eax
mov ecx, dword [esp + 0x198]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402080
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x43eb33
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x4526e8]
xor eax, esp
mov dword [esp + 0x74], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4526e8]
xor eax, esp
push eax
lea eax, [esp + 0x8c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x9c]
push 0x63
lea eax, [esp + 0x29]
push 0
mov dword [esp + 0x9c], 0
push eax
mov byte [esp + 0x30], 0
call fcn.0042ac60
mov edx, dword [0x4566e4]
push 0xa
push 0x64
lea ecx, [esp + 0x38]
push ecx
push edx
call fcn.0042875d
add esp, 0x1c
call fcn.00418fbf
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40210c
push 0x80004005
call fcn.00402f80
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x1c]
mov ebx, 1
push ecx
lea edi, [esp + 0xa4]
mov byte [esp + 0x98], bl
call fcn.00402660
lea edx, [esp + 0x28]
push edx
push eax
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0xa4], 2
call fcn.00402580
add esp, 0x10
mov byte [esp + 0x94], 4
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40217c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x28], esp
mov esi, esp
push eax
call fcn.00402fb0
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00401b40
test eax, eax
je 0x4021ea
mov eax, dword [esp + 0x14]
cmp dword [eax - 4], ebx
jle 0x4021c0
mov edx, dword [eax - 0xc]
push edx
lea ecx, [esp + 0x18]
call fcn.00402ca0
mov eax, dword [esp + 0x14]
push eax
call fcn.00428528
add esp, 4
push 0
cmp eax, 0x6ddd00
jb 0x4021da
push eax
mov eax, dword [ebp + 0x20]
push ebx
push eax
jmp 0x4021e4
mov ecx, dword [ebp + 0x20]
push 0x6ddd00
push ebx
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
add dword [0x4566e4], ebx
mov byte [esp + 0x94], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402217
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x94], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40223f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x94], 0xffffffff
mov eax, dword [esp + 0xa0]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40226d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x8c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.004282c3
add esp, 0x84
ret 8
Function at 0x402920
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402939
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402974
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402970
lea ebx, [ebx]
cmp esi, eax
jae 0x402974
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402960
cmp esi, eax
jb 0x40297a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x40d0d7
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 0x40d11d
call fcn.0040a28c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40d11d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x40d160
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 0x40d149
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 0x40d149
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x40d15d
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 0x40e4ef
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0040a28c
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40e526
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0040e111
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x4133c8
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x413401
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0041338b
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0040b6d5
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]
Function at 0x415105
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 0x415148
call fcn.0040a28c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x415148
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x415163
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00414cbc
test ebx, ebx
mov esi, eax
je 0x415161
test edi, edi
je 0x415161
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x41abaa
Capabilities:
Create http request

Disassembly:
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]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x41abd3
call fcn.0040a28c
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]
test eax, eax
mov dword [esi + 8], eax
jne 0x41abf6
push eax
push dword [esi + 4]
call fcn.0041ab1b
push esi
push eax
mov ecx, 0x455868
call fcn.0041a7f5
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x41ee99
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x41eec7
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41eee5
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041ee03
jmp 0x41eee5
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41eee5
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0041ee03
test edi, edi
mov eax, edi
jne 0x41eecf
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4558dc]
test ecx, ecx
je 0x41efa8
jmp 0x41ee98
ret 8

Function at 0x426376
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x42637f
xor eax, eax
jmp 0x4263e8
cmp dword [esp + 8], 0
jne 0x42638b
call fcn.00418ee6
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.0042d6fb
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4263c6
push dword [esi + 0x10]
call fcn.0042d440
test eax, eax
pop ecx
jne 0x4263c6
mov esi, dword [esi + 0xc]
call fcn.0042b9ac
push esi
push dword [eax]
push 1
call fcn.00423bc2
push dword [esi + 0x10]
call fcn.0042d46f
test eax, eax
pop ecx
je 0x4263e5
push dword [esi + 0x10]
call fcn.0042d394
push eax
call fcn.00403400
pop ecx
pop ecx
jmp 0x4263b4
mov eax, edi
pop edi
pop esi
ret 8
Function at 0x4263f1
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x4263fb
call fcn.00418ee6
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.0042d830
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x426428
mov esi, dword [esi + 0xc]
call fcn.0042b9ac
push esi
push dword [eax]
push 1
call fcn.00423bc2
pop esi
ret 8

Function at 0x4282c3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4526e8]
jne 0x4282cd
repz ret
jmp fcn.0042e072

Function at 0x4389b0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0042e2db
xor ebx, ebx
cmp dword [0x456648], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x438a85
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x4389f0
xor eax, eax
jmp 0x438b49
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x44699c
push edi
call esi
cmp eax, ebx
je 0x4389e9
push eax
call fcn.0042e278
mov dword [esp], 0x44698c
push edi
mov dword [0x456648], eax
call esi
push eax
call fcn.0042e278
mov dword [esp], 0x446978
push edi
mov dword [0x45664c], eax
call esi
push eax
call fcn.0042e278
mov dword [0x456650], eax
lea eax, [ebp - 8]
push eax
call fcn.0042b65f
test eax, eax
pop ecx
pop ecx
je 0x438a53
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042ec3f
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x438a85
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0042e278
cmp eax, ebx
pop ecx
mov dword [0x456658], eax
je 0x438a85
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042e278
pop ecx
mov dword [0x456654], eax
mov eax, dword [0x456654]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x438afe
cmp dword [0x456658], esi
je 0x438afe
push eax
call fcn.0042e2e4
pop ecx
call eax
cmp eax, ebx
je 0x438acb
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x456658]
call fcn.0042e2e4
pop ecx
call eax
test eax, eax
je 0x438acb
test byte [ebp - 0x18], 1
jne 0x438afe
lea eax, [ebp - 0xc]
push eax
call fcn.0042b696
test eax, eax
pop ecx
je 0x438ae6
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042ec3f
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x438af5
or dword [ebp + 0x10], 0x200000
jmp 0x438b2f
or dword [ebp + 0x10], 0x40000
jmp 0x438b2f
mov eax, dword [0x45664c]
cmp eax, esi
je 0x438b2f
push eax
call fcn.0042e2e4
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x438b2f
mov eax, dword [0x456650]
cmp eax, esi
je 0x438b2f
push dword [ebp - 4]
push eax
call fcn.0042e2e4
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x456648]
call fcn.0042e2e4
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43cb04
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4526e8]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0043ca99
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.0042ac60
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 0x43cb53
cmp dword [ebp - 0x1c], 5
jb 0x43cb6b
jmp 0x43cb67
cmp dword [ebp - 0x10], 1
jne 0x43cb6b
cmp dword [ebp - 0x1c], 4
ja 0x43cb67
jne 0x43cb6b
cmp dword [ebp - 0x18], 0
jbe 0x43cb6b
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x447200
call fcn.0043c96d
test eax, eax
jge 0x43cb8c
mov byte [0x45679c], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004282c3
add ebp, 0x78
leave
ret
Function at 0x9a6e83
Capabilities:
Check for vm using instruction vpcext

Disassembly:
jmp 0x98d272
mov eax, 1
invalid
push edi
lea esp, [esp + 2]
mov ebx, dword [esp + 0x14]
lea esp, [esp + 0x18]
jmp 0x98d267
mov edx, dword [esp + 8]
push eax
pop bx
push ebp
mov bx, cx
setge bh
jmp 0x9a68e4
pop edx
mov eax, dword [esp + 4]
not bx
xchg dh, bh
lea edx, [ecx*4]
mov dx, 0xca05
jmp 0x9a699c
jmp 0x9a69d5

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

Disassembly:
pushfd
lea esp, [esp + 4]
jmp fcn.009da366
jmp 0x9da251
mov eax, dword [ebp - 4]
neg di
lea edi, [eax - 0x9e]
jmp 0x9d9e0d
cdq
lea edi, [ecx + esi]
sub esp, 0x16
add esp, 0x15
lea esp, [esp + 1]
jmp 0x9d9e45
mov edx, esi
jmp 0x9d9d6a
push edx
jmp 0x9d9d51
add edx, 0x24
mov edi, dword [edx]
pop edx
mov dword [ebp - 0x10], eax
jmp 0x9d9d79
rcl al, cl
mov eax, esp
lea eax, [edi*4]
jmp 0x9d9db8
add eax, ecx
pushal
mov word [esp + 0xd], sp
jmp 0x9d9ddc
mov eax, dword [esi + 0x1c]
sub esp, 1
lea esp, [esp + 1]
add edi, ecx
jmp 0x9d9da2
push ecx
jmp 0x9d9e61
lea esp, [esp + 0x24]
dec ebx
mov dword [ebp - 8], edi
jmp 0x9d9dc6
add eax, ebx
lea edx, reloc.MSVFW32.dll_DrawDibDraw
jmp 0x9d8b3d
js 0x9d8a99
jns 0x9d8b2c
mov edi, eax
clc
lea edx, reloc.MSVFW32.dll_DrawDibDraw
jmp 0x9d9e81
sub eax, edx
mov edi, 0x79bf3a7a
jmp 0x9d9e2f
mov ecx, ebp
lea ecx, [ecx - 0x14]
mov dword [ecx], eax
pop ecx
jmp 0x9d9e23
mov dx, word [esp]
jmp 0x9da0a5
mov eax, dword [ebp - 0x10]
mov edx, dword [esp]
sar edi, 1
mov edx, dword [esp]
jmp 0x9d9e6b
mov edx, dword [eax + edi*4]
xor esi, esi
call 0x9da165
jmp 0x9a7983

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

Disassembly:
movzx eax, word [edi + esi*2]
lea ecx, [ebp*4]
mov ecx, dword [esp]
jmp 0x9da14f
mov dx, 0x3f4a
mov dl, byte [esp]
mov ah, 0xb6
mov eax, dword [ebp - 0x10]
jmp 0x9d8bbd
mov dx, sp
mov dx, cx
mov dx, word [esp]
jmp 0x9da0c6
lea esp, [esp + 4]
jne 0x9d8b7f
je 0x9d8b16
salc
arpl bx, si
xchg esi, eax
mov byte gs:[0xb8148b26], al
add edx, dword [ebp + 8]
call fcn.009d9f39
lea edi, [eax + edi]
mov edx, dword [edi]
pop edi
jmp 0x9da0e8
push edi
mov edi, esi
lea edi, [edi*4]
jmp 0x9da0b0
mov eax, dword [ebp + 0xc]
jmp 0x9da0f8
add edx, dword [ebp + 8]
lea eax, [edi*4]
mov al, dh
mov ah, 0xae
jmp 0x9da0d2
call fcn.009a65bd
push sp
lea esp, [esp]
push word [esp]
jmp 0x9da140
cmp esi, ebx
jmp 0x9da12a
jle 0x9d8bab
jmp 0x9d8b7f
lea esp, [esp + 4]
test eax, eax
je 0x9d8b69
inc esi
jmp 0x9da108
setl cl
jmp 0x9da219

Function at 0xb5fa92
Capabilities:
Get number of processors

Disassembly:
call fcn.00b5f0ae
mov dword [esp + 0x28], edi
lea esp, [esp + 0x28]
mov eax, dword fs:[0x30]
jmp 0xb5fb09
mov eax, dword [eax + 8]
push eax
jmp 0xb5f0a9
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
jmp 0xb5fadb
Function at 0x402a58
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402a95
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402ab5
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404e78
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402c1c
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.00404c08
test esi, esi
jne 0x402c52
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.00404cf8
jmp 0x402c70
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402b30
mov edi, eax
test esi, esi
je 0x402c70
cmp dword [ebx], 0
je 0x402c70
dec esi
jmp 0x402c59
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x403ad4
Capabilities:
Query or enumerate registry value

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

Function at 0x4049e8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x55e04c], 0
je 0x404a49
cmp word [0x55e220], 0xd7b2
jne 0x404a11
cmp dword [0x55e228], 0
jbe 0x404a11
mov eax, 0x55e21c
call dword [0x55e238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x556094
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 0x404a70
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x556034], 0
jne 0x404a65
push 0
push 0x55608c
push 0x556094
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404bbc
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402844
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x55e04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404b84
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4067e4
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 0x406a14
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406867
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406a14
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406867
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406a30
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4068f0
xor eax, eax
push ebp
push 0x4068e9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.0040662c
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 0x4068ce
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406a50
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4068ce
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 0x4068f0
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 0x406a0a
cmp byte [ebp - 0xd], 0
jne 0x406937
cmp byte [ebp - 0x12], 0
je 0x406a0a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406950
dec ebx
cmp byte [ebx], 0x2e
je 0x40695f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40694f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406a0a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x40699c
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 0x406a0a
cmp byte [ebp - 0xd], 0
je 0x406a0a
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 0x406a0a
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