joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10015790
Capabilities:
Get system information on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002528b
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push esi
mov eax, dword [0x1002f00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x80000
mov dword [0x1002fd00], 0x100278d8
mov dword [0x1002fd08], 0x10027a34
push 0
mov dword [ebp - 0x14], 0x1002fd00
mov dword [0x1002fd1c], 1
mov dword [0x1002fd18], 0x100
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
test ecx, ecx
jne 0x10015807
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
lea eax, [ecx + 0x80000]
mov dword [0x1002fd14], ecx
mov dword [0x1002fd10], eax
mov edx, 0x7ff
mov eax, dword [0x1002fd18]
mov dword [0x1002fd0c], ecx
nop dword [eax + eax]
add eax, ecx
mov dword [ecx], eax
mov eax, dword [0x1002fd18]
add ecx, eax
sub edx, 1
jne 0x10015830
mov dword [ecx], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], 0x1002fd20
mov dword [ebp - 0x18], 0x1002fd20
mov dword [ebp - 0x1c], 0x1002fd20
mov dword [0x1002fd20], 0x100266cc
mov dword [0x1002fd24], edx
mov dword [0x1002fd28], edx
mov byte [ebp - 4], 1
mov dword [0x1002fd20], 0x100265d0
mov dword [0x1002fd2c], edx
mov dword [0x1002fd34], edx
mov dword [0x1002fd30], edx
mov dword [0x1002fd38], 0x40
mov byte [ebp - 4], 2
mov dword [0x1002fd38], 0x80
mov byte [ebp - 4], 5
mov dword [0x1002fd3c], edx
mov byte [ebp - 4], 6
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x1002fd50
mov dword [ebp - 0x20], 0x1002fd50
call esi
mov byte [ebp - 4], 7
mov dword [0x1002fd68], 0
mov byte [ebp - 4], 8
push 0x1002fd74
mov dword [ebp - 0x24], 0x1002fd74
call esi
mov byte [ebp - 4], 9
mov dword [0x1002fd8c], 0x3e8
mov dword [ebp - 0x28], 0x1002fda0
mov dword [ebp - 0x2c], 0x1002fda0
mov dword [0x1002fda0], 0x100266cc
mov dword [0x1002fda4], 0
mov dword [0x1002fda8], 0
mov byte [ebp - 4], 0xa
mov dword [0x1002fda0], 0x100265d0
mov dword [0x1002fdac], 0
mov dword [0x1002fdb4], 0
mov dword [0x1002fdb0], 0
mov dword [0x1002fdb8], 0x40
mov byte [ebp - 4], 0xb
mov dword [0x1002fdb8], 0x80
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x3c]
mov dword [0x1002fd94], 0x3e80
mov dword [0x1002fd98], 1
mov dword [0x1002fd9c], 0
lea eax, [eax*2 + 2]
mov dword [0x1002fd90], eax
mov byte [ebp - 4], 0xe
push 0x1002fdbc
call esi
mov byte [ebp - 4], 0xf
push ecx
mov ecx, 0x1002fdd4
call fcn.100148c0
mov byte [ebp - 4], 0x10
mov dword [0x1002fd40], 0
mov dword [0x1002fdfc], 0
movsd xmm0, qword [0x100280b8]
movsd qword [0x1002fd48], xmm0
xorps xmm0, xmm0
mov dword [0x1002fe00], 0
mov dword [0x1002fe04], 0
mov dword [0x1002fe08], 0
mov dword [0x1002fd44], 0
movq qword [0x1002fd6c], xmm0
mov dword [ebp - 4], 0xffffffff
mov eax, 0x1002fd00
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100165b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [esi + 0x14], 0
test ebx, ebx
jne 0x100165cf
pop esi
lea eax, [ebx + 1]
pop ebx
pop ebp
ret 0xc
mov eax, dword [ecx]
push edi
xor edi, edi
call dword [eax]
push dword [ebp + 0x10]
mov ecx, eax
movzx eax, bx
push eax
push ecx
mov dword [ebp + 0xc], ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x100166a5
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0x10], eax
test eax, eax
je 0x100166a5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x1001669c
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [esi + 0x14], 0
cmp dword [esi + 0x10], edi
jl 0x10016680
cmp edi, 1
jne 0x10016645
mov eax, dword [esi + 0xc]
mov cl, byte [ebx]
mov byte [eax], cl
inc dword [esi + 0x14]
jmp 0x10016697
cmp edi, 2
jne 0x10016658
mov eax, dword [esi + 0xc]
movzx ecx, word [ebx]
mov word [eax], cx
add dword [esi + 0x14], edi
jmp 0x10016697
cmp edi, 4
jne 0x10016669
mov eax, dword [esi + 0xc]
mov ecx, dword [ebx]
mov dword [eax], ecx
add dword [esi + 0x14], edi
jmp 0x10016697
cmp edi, 8
jne 0x10016680
mov eax, dword [esi + 0xc]
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
mov dword [eax], ecx
mov dword [eax + 4], edx
add dword [esi + 0x14], edi
jmp 0x10016697
test edi, edi
jle 0x10016697
push edi
mov ecx, esi
call fcn.10018b60
push edi
push ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov edi, 1
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x100169e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x1002fd18]
jg 0x10016a1b
push 0x1002fd1c
call fcn.10019570
mov ecx, dword [0x1002fd14]
add esp, 4
test ecx, ecx
je 0x10016a0d
mov eax, dword [ecx]
mov dword [0x1002fd14], eax
mov dword [0x1002fd1c], 1
test ecx, ecx
jne 0x10016a39
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
test ecx, ecx
jne 0x10016a39
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov eax, ecx
pop esi
pop ebp
ret 4

Function at 0x10016aa0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x1002fd0c]
jb 0x10016b14
cmp esi, dword [0x1002fd10]
jae 0x10016b14
mov eax, dword [ebp + 0xc]
cmp eax, dword [0x1002fd18]
jle 0x10016b29
push edi
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x10016b2d
push dword [0x1002fd18]
push esi
push edi
call sub.VCRUNTIME140.dll_memcpy
push 0x1002fd1c
call fcn.10019570
mov eax, dword [0x1002fd14]
add esp, 0x10
mov dword [esi], eax
mov dword [0x1002fd14], esi
mov esi, edi
mov dword [0x1002fd1c], 1
pop edi
mov eax, esi
pop esi
pop ebp
ret 8
push dword [ebp + 0xc]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
test esi, esi
jne 0x10016b0d
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x10017c10
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10025580
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x1002f00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
test esi, esi
je 0x10017d79
cmp word [esi], 0
je 0x10017d79
lea ecx, [ebp - 0x244]
call fcn.10002cb0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x238], 0
test eax, eax
je 0x10017c87
push eax
mov eax, dword [ebp - 0x234]
lea ecx, [ebp - 0x234]
call dword [eax + 0xc]
movzx eax, word [esi]
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x224], 0
cmp eax, 0x5c
je 0x10017cc0
test ax, ax
je 0x10017cf3
cmp word [esi + 2], 0x3a
jne 0x10017cf3
cmp word [esi + 4], 0x5c
jne 0x10017cf3
push 0x5c
push esi
call dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
add esp, 8
test eax, eax
je 0x10017cf3
cmp eax, esi
jbe 0x10017cdf
cmp word [eax - 2], 0x3a
lea ecx, [eax - 2]
cmovne eax, ecx
sub eax, esi
lea ecx, [ebp - 0x244]
add eax, 2
sar eax, 1
push eax
push esi
call fcn.10019f60
mov edi, dword [ebp - 0x238]
test edi, edi
jne 0x10017d0f
cmp dword [ebp - 0x220], edi
je 0x10017d5a
mov edi, dword [ebp - 0x228]
test edi, edi
je 0x10017d5a
cmp word [edi], 0
je 0x10017d5a
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x10017d5a
cmp word [edi], 0
je 0x10017d38
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp word [ebp - 0x218], 0
mov esi, eax
je 0x10017d63
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
jmp 0x10017d63
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x244]
call fcn.10002f50
mov eax, esi
jmp 0x10017d7b
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002097c
mov esp, ebp
pop ebp
ret
Function at 0x10018e80
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002568d
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x1002f00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x30], vtable.CVolCommonBaseWithMemManager.0
mov dword [ebp - 0x30], vtable.CVolObject.0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], vtable.CVolMem.0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], 0x40
mov dword [ebp - 4], 1
mov eax, dword [ebx + 0x14]
mov esi, dword [ebp - 0x18]
lea edi, [eax*4 + 6]
mov eax, edi
cdq
idiv esi
mov eax, dword [ebp - 0x30]
sub esi, edx
add esi, edi
push esi
mov eax, dword [eax]
cmp eax, method.CWString.virtual_0
jne 0x10018f36
mov ecx, 0x1002fd08
call fcn.10019650
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x10018f3e
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
lea ecx, [ebp - 0x30]
call eax
mov dword [ebp - 0x10], eax
xor ecx, ecx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], edi
mov esi, eax
mov dword [ebp - 0x24], eax
mov word [eax], cx
mov ecx, dword [ebp - 0x14]
mov edi, dword [ebx + 0xc]
xor ebx, ebx
cmp dword [ecx + 0x14], ebx
jle 0x10018f84
nop dword [eax + eax]
movzx eax, byte [edi]
push eax
push str._02X
push esi
call fcn.10016fc0
mov eax, dword [ebp - 0x14]
lea edi, [edi + 1]
inc ebx
add esp, 0xc
add esi, 4
cmp ebx, dword [eax + 0x14]
jl 0x10018f60
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0xc]
test ecx, ecx
jne 0x10018f9b
cmp dword [edi + 0x24], ecx
mov ecx, 0x100269b0
je 0x10018f9b
mov ecx, dword [edi + 0x1c]
cmp eax, ecx
je 0x10018fde
mov dword [edi + 0xc], 0
mov ecx, dword [edi + 0x1c]
test ecx, ecx
je 0x10018fba
mov eax, dword [edi + 0x10]
push ecx
lea ecx, [edi + 0x10]
call dword [eax + 0xc]
mov eax, dword [ebp - 0x10]
mov dword [edi + 0x1c], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x20], 0
cmp word [eax], 0
je 0x10018fde
push eax
lea ecx, [edi + 0x10]
call fcn.10018c10
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x30], vtable.CVolMem.0
mov dword [ebp - 4], 2
mov edx, dword [ebp - 0x24]
test edx, edx
je 0x10019019
mov eax, dword [ebp - 0x30]
push edx
mov eax, dword [eax + 0xc]
cmp eax, method.CWString.virtual_12
jne 0x10019014
mov ecx, 0x1002fd08
call fcn.10019740
jmp 0x10019019
lea ecx, [ebp - 0x30]
call eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov dword [ebp - 0x30], vtable.CVolObject.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1001c1a0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10025bcd
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x1002f00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.SIMDUTF_FORCE_IMPLEMENTATION
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
je 0x1001c28e
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.1001edb0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.1001ade0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x1001c260
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1001c256
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1001c256
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10020ed9
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call sym.DLL.dll_class_simdutf::internal::atomic_ptr_class_simdutf::implementation_const______cdecl_simdutf::get_active_implementation_void_
mov ecx, eax
test esi, esi
je 0x1001c283
xchg dword [ecx], esi
mov eax, dword [ecx]
jmp 0x1001c2c2
mov eax, 0x1002fe98
xchg dword [ecx], eax
mov eax, dword [ecx]
jmp 0x1001c2c2
call fcn.1001c060
mov esi, dword [eax]
mov ebx, dword [eax + 4]
cmp esi, ebx
je 0x1001c2b4
nop dword [eax]
mov edi, dword [esi]
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x10]
test eax, eax
je 0x1001c2b9
add esi, 4
cmp esi, ebx
jne 0x1001c2a0
mov edi, 0x1002fe98
call sym.DLL.dll_class_simdutf::internal::atomic_ptr_class_simdutf::implementation_const______cdecl_simdutf::get_active_implementation_void_
xchg dword [eax], edi
mov eax, dword [eax]
nop
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002097c
mov esp, ebp
pop ebp
ret
Function at 0x738e90
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x306000]
push edi
jmp 0x738eaa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x738eb1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x738ea0
mov eax, 1
add ebx, ebx
jne 0x738ec3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x738ed4
jne 0x738ef3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x738ef3
dec eax
add ebx, ebx
jne 0x738ee0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x738eb8
add ebx, ebx
jne 0x738eef
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x738f45
xor ecx, ecx
sub eax, 3
jb 0x738f0b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x738f7a
sar eax, 1
mov ebp, eax
jmp 0x738f16
add ebx, ebx
jne 0x738f16
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x738ee4
inc ecx
add ebx, ebx
jne 0x738f24
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x738ee4
add ebx, ebx
jne 0x738f31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x738f26
jne 0x738f42
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x738f26
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x738f64
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x738f56
jmp 0x738ea6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x738f64
add edi, ecx
jmp 0x738ea6
pop esi
lea edi, [esi + 0x336000]
mov eax, dword [edi]
or eax, eax
je 0x738fc3
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x33ab34]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x33aba0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x738f81
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x33aba8]
or eax, eax
je 0x738fbd
mov dword [ebx], eax
add ebx, 4
jmp 0x738f9e
call dword [esi + 0x33aba4]
mov ebp, dword [esi + 0x33abac]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x738ff7
sub esp, 0xffffff80
jmp 0x414f20
Function at 0x402e18
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x402e71
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402cb4
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402cb4
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402e5b
inc ebx
jmp 0x402e44
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402e78
lea eax, [ebp - 8]
call fcn.00404518
ret

Function at 0x402e80
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404518
test esi, esi
jne 0x402eb7
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404608
jmp 0x402ed8
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402cb4
mov dword [esp], eax
test esi, esi
je 0x402ed8
cmp dword [ebx], 0
je 0x402ed8
dec esi
jmp 0x402ebf
add esp, 0x10c
pop esi
pop ebx
ret

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

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

Function at 0x4035e0
Capabilities:
Query or enumerate registry value

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

Function at 0x404374
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45f044], 0
je 0x4043d5
cmp word [0x45f218], 0xd7b2
jne 0x40439d
cmp dword [0x45f220], 0
jbe 0x40439d
mov eax, 0x45f214
call dword [0x45f230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45d070
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 0x4043fc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45d034], 0
jne 0x4043f1
push 0
push 0x45d068
push 0x45d070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4062b0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x406316
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404788
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004031a4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406300
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40631d
lea eax, [ebp - 0x10]
call fcn.00404518
ret

Function at 0x40b398
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b3d1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404608
jmp 0x40b3da
mov eax, ebx
mov edx, esi
call fcn.0040456c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b3e4
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b405
mov al, byte [esp]
jmp 0x40b407
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40ba9c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b904
mov eax, dword [0x45e008]
cmp byte [eax], 0
je 0x40bb18
mov eax, dword [0x45de3c]
call fcn.00402fb8
call fcn.00402be0
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408b88
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40bb60
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bb4e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x45ddf0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x45f660]
call fcn.0040571c
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x41ae98
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
lea ebx, [ebp - 0xc]
mov esi, 0x45f880
cmp dword [esi], 0
jne 0x41af3e
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov edx, dword [0x45f87c]
mov dword [eax], edx
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, 0x45d3ec
mov ecx, 2
call fcn.00402c74
mov edx, 0x41ae70
mov eax, dword [ebp - 8]
add eax, 5
call fcn.0041ae90
mov edx, dword [ebp - 8]
mov dword [edx + 6], eax
mov eax, dword [ebp - 8]
add eax, 0xa
mov dword [ebx], eax
mov eax, dword [ebx]
mov byte [eax], 0xe8
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, dword [ebx]
call fcn.0041ae90
mov edx, dword [ebx]
mov dword [edx + 1], eax
mov eax, dword [ebx]
mov edx, dword [esi]
mov dword [eax + 5], edx
mov eax, dword [ebx]
mov dword [esi], eax
add dword [ebx], 0xd
mov eax, dword [ebx]
sub eax, dword [ebp - 8]
cmp eax, 0xffc
jl 0x41af05
mov eax, dword [ebp - 8]
mov dword [0x45f87c], eax
mov eax, dword [esi]
mov dword [ebp - 4], eax
mov eax, dword [esi]
mov dword [ebx], eax
mov eax, dword [ebx]
mov eax, dword [eax + 5]
mov dword [esi], eax
mov eax, dword [ebx]
mov edx, dword [ebp + 8]
mov dword [eax + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 9], edx
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41c474
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41c47a
ret

Function at 0x41e940
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x41e991
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41e978
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41e968
jmp 0x41e991
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x41e979
pop ebx
mov esp, ebp
pop ebp
ret