joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420da0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4365c6
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x40
mov eax, dword [0x4b3040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x3c], edi
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x40], 0
push 0
push 0x439668
mov dword [ebp - 0x44], esi
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.00405d80
mov dword [ebp - 4], 1
cmp dword [edi + 0xc], 0
je 0x420eb8
mov edx, dword [ebx + 0xc]
lea eax, [edi + 4]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], edx
cmp dword [edx + 0x14], 0xf
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x34], eax
jbe 0x420e4c
mov eax, dword [edx]
mov dword [ebp - 0x30], eax
xor ecx, ecx
mov edi, 0x811c9dc5
cmp dword [edx + 0x10], ecx
jbe 0x420e77
mov edx, dword [ebp - 0x30]
mov esi, dword [ebp - 0x34]
nop
movzx eax, byte [ecx + edx]
inc ecx
xor eax, edi
imul edi, eax, 0x1000193
cmp ecx, esi
jb 0x420e60
mov esi, dword [ebp - 0x44]
mov edx, dword [ebx + 0xc]
push edi
mov edi, dword [ebp - 0x38]
lea eax, [ebp - 0x48]
push edx
push eax
mov ecx, edi
call fcn.004173a0
mov eax, dword [eax + 4]
test eax, eax
jne 0x420e91
mov eax, dword [edi + 4]
mov ecx, dword [ebp - 0x3c]
cmp eax, dword [ecx + 8]
je 0x420eb8
add eax, 0x20
lea ecx, [ebp - 0x2c]
cmp ecx, eax
je 0x420eb8
cmp dword [eax + 0x14], 0xf
mov ecx, dword [eax + 0x10]
jbe 0x420eae
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00406160
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x40], 1
cmp esi, eax
je 0x420efe
cmp dword [ebp - 0x18], 0xf
mov ecx, esi
push dword [ebp - 0x1c]
cmova eax, dword [ebp - 0x2c]
push eax
call fcn.00406160
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x420f34
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x420f2a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x420f2a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00432cef
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00432cb1
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
Function at 0x4246f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov ecx, dword [0x4b4218]
push ebx
push esi
push edi
push dword [0x4b4370]
lea ecx, [ecx + 4]
call fcn.0041b7b0
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0xc], eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, eax
push 0xa
call ebx
call esi
sub eax, edi
cmp eax, 0x4e20
ja 0x42474d
push dword [esp + 0xc]
call fcn.00420a50
test al, al
jne 0x424763
push 0xa
call ebx
call esi
sub eax, edi
cmp eax, 0x4e20
jbe 0x424731
push str.Aow_has_reached_limit_timeout
call fcn.00406040
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4247a0
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436b1b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x144
mov eax, dword [0x4b3040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0x25
lea eax, [ebp - 0x120]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x42482b
push str.SHGetSpecialFolderPathA_failed
call fcn.00406040
add esp, 4
mov dword [ebp - 0x140], 0
xorps xmm0, xmm0
mov dword [ebp - 0x13c], 0
movups xmmword [ebp - 0x150], xmm0
push 0
push 0x439668
jmp 0x424863
xorps xmm0, xmm0
mov dword [ebp - 0x140], 0
lea ecx, [ebp - 0x120]
mov dword [ebp - 0x13c], 0
movups xmmword [ebp - 0x150], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x424852
sub ecx, edx
lea eax, [ebp - 0x120]
push ecx
push eax
lea ecx, [ebp - 0x150]
call fcn.00405d80
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x13c]
mov eax, edx
mov ecx, dword [ebp - 0x140]
sub eax, ecx
push 0x12
push str.driversetchosts
cmp eax, 0x12
jb 0x4248c1
cmp edx, 0xf
lea esi, [ebp - 0x150]
lea eax, [ecx + 0x12]
cmova esi, dword [ebp - 0x150]
add esi, ecx
mov dword [ebp - 0x140], eax
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + 0x12], 0
lea eax, [ebp - 0x150]
jmp 0x4248db
mov byte [ebp - 0x154], 0
lea ecx, [ebp - 0x150]
push dword [ebp - 0x154]
push 0x12
call fcn.0040a2e0
mov dword [ebp - 0x128], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x138], xmm0
mov dword [ebp - 0x124], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x138], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x128], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x13c]
cmp ecx, 0xf
jbe 0x424961
mov edx, dword [ebp - 0x150]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x424957
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x424957
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00432cef
add esp, 8
cmp dword [ebp - 0x124], 0xf
lea eax, [ebp - 0x138]
mov dword [ebp - 0x140], 0
cmova eax, dword [ebp - 0x138]
push eax
mov dword [ebp - 0x13c], 0xf
mov byte [ebp - 0x150], 0
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__unlink]
add esp, 4
lea eax, [ebp - 0x138]
push 0
push 0
push eax
call fcn.00406290
mov ecx, dword [ebp - 0x124]
cmp ecx, 0xf
jbe 0x4249e6
mov edx, dword [ebp - 0x138]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4249dc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4249dc
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00432cef
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00432cb1
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x428dc0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1fffffff
sub esp, 0x10
bsr ecx, eax
push ebx
push esi
push edi
mov edi, 1
mov eax, edi
shl eax, cl
mov ecx, dword [ebp + 8]
cmp ecx, eax
jbe 0x428dec
push str.invalid_hash_bucket_count
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
lea eax, [ecx - 1]
mov esi, dword [0x4b4354]
or eax, 1
mov dword [ebp - 8], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
mov ecx, 0x4b435c
lea eax, [edi + edi]
push eax
call fcn.00403b80
mov eax, dword [0x4b4354]
lea ebx, [edi - 1]
mov dword [0x4b4368], ebx
mov dword [0x4b436c], edi
mov eax, dword [eax]
mov ecx, eax
cmp eax, esi
je 0x428f26
movzx edx, byte [eax + 8]
xor edx, 0x811c9dc5
mov ecx, dword [ecx]
imul edi, edx, 0x1000193
movzx edx, byte [eax + 9]
xor edi, edx
movzx edx, byte [eax + 0xa]
imul edi, edi, 0x1000193
xor edi, edx
movzx edx, byte [eax + 0xb]
imul edi, edi, 0x1000193
xor edi, edx
mov edx, dword [0x4b435c]
imul edi, edi, 0x1000193
and edi, ebx
mov ebx, dword [edx + edi*8]
lea edx, [edx + edi*8]
mov dword [ebp - 0xc], edx
cmp ebx, esi
jne 0x428e84
mov dword [edx], eax
mov dword [edx + 4], eax
jmp 0x428ef1
mov edx, dword [edx + 4]
mov edi, dword [eax + 8]
cmp edi, dword [edx + 8]
jne 0x428ebe
mov edx, dword [edx]
mov dword [ebp - 4], edx
cmp edx, eax
je 0x428eb6
mov ebx, dword [eax + 4]
mov esi, dword [ebp - 4]
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp - 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
mov edx, dword [ebp - 0xc]
mov dword [edx + 4], eax
jmp 0x428ef1
cmp ebx, edx
je 0x428ece
mov edx, dword [edx + 4]
cmp edi, dword [edx + 8]
je 0x428f02
cmp ebx, edx
jne 0x428ec2
mov ebx, dword [eax + 4]
mov dword [ebp - 4], ebx
mov dword [ebx], ecx
mov ebx, dword [ecx + 4]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov dword [edx + 4], ebx
mov edx, dword [ebp - 4]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0xc]
mov dword [eax + 4], edi
mov dword [edx], eax
mov eax, ecx
cmp ecx, esi
je 0x428f26
mov ebx, dword [0x4b4368]
jmp 0x428e32
mov ebx, dword [eax + 4]
mov edx, dword [edx]
mov dword [ebp - 4], edx
mov esi, edx
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp - 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
jmp 0x428ef1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x430940
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], edx
push esi
push edi
mov edi, ecx
test ebx, ebx
jne 0x430960
mov dword [edi], 1
jmp 0x430a2c
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
push 2
push 0
push 0
push ebx
call esi
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__ftelli64]
add esp, 0x14
mov dword [ebp - 4], edx
mov ebx, eax
push 0
push 0
push 0
push dword [ebp + 8]
call esi
mov eax, dword [ebp - 4]
add esp, 0x10
test eax, eax
jg 0x4309a3
jl 0x430999
test ebx, ebx
jae 0x4309a3
mov eax, 2
jmp 0x430a2a
xor ecx, ecx
cmp ecx, eax
jne 0x430a25
lea eax, [ebx + 1]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
jne 0x4309c7
mov dword [edi], 3
jmp 0x430a2c
push dword [ebp + 8]
push ebx
push 1
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp eax, ebx
je 0x4309ed
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov dword [edi], 2
jmp 0x430a2c
mov edx, ebx
mov ecx, esi
call fcn.0042e360
cmp eax, 1
jne 0x430a02
mov byte [ebx + esi], 0
mov ebx, dword [ebp - 4]
push dword [ebp + 0x14]
sub esp, 8
push eax
mov eax, dword [ebp - 8]
mov edx, eax
push ecx
push ebx
push esi
push eax
mov ecx, edi
call fcn.004306e0
add esp, 0x20
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 3
mov dword [edi], eax
mov dword [edi + 4], 0
mov eax, edi
mov dword [edi + 8], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4325f0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x13c
mov eax, dword [0x4b3040]
xor eax, esp
mov dword [esp + 0x138], eax
push ebx
push esi
push edi
push 0
push 2
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
test esi, esi
jne 0x43263e
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x138]
xor ecx, esp
call fcn.00432cb1
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x128
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x43268a
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
push dword [esp + 0x14]
lea eax, [esp + 0x40]
push eax
call edi
add esp, 8
test eax, eax
je 0x432682
lea eax, [esp + 0x18]
push eax
push esi
call ebx
test eax, eax
jne 0x432662
jmp 0x43268a
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x144]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00432cb1
mov esp, ebp
pop ebp
ret
Function at 0x4326b0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x164
mov eax, dword [0x4b3040]
xor eax, esp
mov dword [esp + 0x160], eax
push ebx
push esi
push edi
xor ebx, ebx
mov dword [esp + 0x14], ecx
push ebx
push 2
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
test edi, edi
jne 0x4326ff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x160]
xor ecx, esp
call fcn.00432cb1
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x128
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32First]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x432797
nop dword [eax]
push dword [esp + 0x14]
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add esp, 8
test eax, eax
jne 0x432787
push dword [esp + 0x20]
push eax
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x432781
push 0x2c
lea eax, [esp + 0x144]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_K32GetProcessMemoryInfo]
test eax, eax
je 0x432776
mov eax, dword [esp + 0x14c]
cmp eax, ebx
jbe 0x432776
mov ebx, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
jmp 0x432787
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x432720
push edi
call esi
mov ecx, dword [esp + 0x16c]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00432cb1
mov esp, ebp
pop ebp
ret
Function at 0x4327c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437d4d
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x4b3040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00407a70
push 3
push 0x4ab4fc
push ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.0040ac30
cmp dword [ebp - 0x18], 0xf
lea eax, [ebp - 0x2c]
xorps xmm0, xmm0
mov dword [ebp - 0x68], 0x3c
cmova eax, dword [ebp - 0x2c]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x68]
push eax
movlpd qword [ebp - 0x44], xmm0
movlpd qword [ebp - 0x3c], xmm0
movlpd qword [ebp - 0x34], xmm0
mov dword [ebp - 0x64], 0x40
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], str.cmd.exe
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x432876
or esi, 0xffffffff
jmp 0x432899
push esi
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x4328cf
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4328c5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4328c5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00432cef
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00432cb1
mov esp, ebp
pop ebp
ret

Function at 0x43372f
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x43376e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43376e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43376e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x43376e
cmp dword [ecx + 0x74], 0xe
jbe 0x43376e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x403138
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 0x403174
movzx eax, 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 0x403194
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00405340
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x40343c
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.004050d0
test esi, esi
jne 0x403472
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.004051c0
jmp 0x403490
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403340
mov edi, eax
test esi, esi
je 0x403490
cmp dword [ebx], 0
je 0x403490
dec esi
jmp 0x403479
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x403f84
Capabilities:
Query or enumerate registry value

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

Function at 0x404e9c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4dd048], 0
je 0x404efd
cmp word [0x4dd21c], 0xd7b2
jne 0x404ec5
cmp dword [0x4dd224], 0
jbe 0x404ec5
mov eax, 0x4dd218
call dword [0x4dd234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
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
push 0x404f24
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4d7030], 0
jne 0x404f19
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405054
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x4d7038], 0
je 0x40507a
mov edx, esi
mov eax, ebx
call dword [0x4d7038]
jmp 0x405089
mov eax, 8
call fcn.00402f30
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4dd049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x40501c
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x4093fc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40944e
test eax, edx
je 0x409451
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x409411
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x409437
add ecx, 4
js 0x409427
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x409434
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x40945d
test edx, edx
jne 0x409404
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405560
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409f7d
test al, 0x10
je 0x409f81
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405560
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409fa1
test al, 0x10
jne 0x409fa5
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40a0f4
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405560
push eax
call sub.kernel32.dll_GetFileAttributesA
pop ebx
ret

Function at 0x40a108
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00405560
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x40a12a
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40d238
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 0x40d271
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004051c0
jmp 0x40d27a
mov eax, ebx
mov edx, esi
call fcn.00405124
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40d284
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 0x40d2a6
movzx eax, byte [esp]
jmp 0x40d2a8
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret