joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10007210
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], 1
mov dword [ebp - 4], 0
push ebx
push esi
push edi
test eax, eax
jne 0x10007262
mov ebx, dword [ebp + 8]
lea eax, [ebp - 8]
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
push eax
push 0xfffffffffffffffb
push 0xffff
push ebx
call esi
push 4
mov edi, eax
lea eax, [ebp - 4]
push eax
push 4
push 0xffff
push ebx
call esi
or eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x1000729b
mov ebx, dword [ebp + 8]
lea eax, [ebp - 4]
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
push eax
push 0xfffffffffffffffb
push 0xffff
push ebx
call esi
push 4
mov edi, eax
lea eax, [ebp - 4]
push eax
push 4
push 0xffff
push ebx
call esi
or eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x100072d4
mov ebx, dword [ebp + 8]
lea eax, [ebp - 4]
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
push eax
push 0xfffffffffffffffb
push 0xffff
push ebx
call esi
push 4
mov edi, eax
lea eax, [ebp - 8]
push eax
push 4
push 0xffff
push ebx
call esi
or eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10008080
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x180], 0
jne 0x1000813e
mov ebx, dword [sym.imp.WS2_32.dll_recv]
push 0
push dword [esi + 0x2c]
push dword [esi + 0x5c]
push dword [esi + 0x1c]
call ebx
mov edi, eax
test edi, edi
jle 0x100080f4
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [esi]
mov ecx, esi
push edi
push dword [esi + 0x5c]
call dword [edx + 0x98]
cmp eax, 2
jne 0x100080fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 0x4c7
cmove eax, ecx
mov dword [esi + 0xc], 1
mov dword [esi + 0x10], 4
mov dword [esi + 0x14], eax
xor eax, eax
pop edi
mov dword [esi + 0x18], 1
pop esi
pop ebx
ret
cmp edi, 0xffffffff
je 0x10008131
test edi, edi
je 0x1000810f
cmp dword [esi + 0x180], 0
je 0x10008098
pop edi
pop esi
mov eax, 1
pop ebx
ret
pop edi
mov dword [esi + 0xc], 1
xor eax, eax
mov dword [esi + 0x10], 5
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 1
pop esi
pop ebx
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x100080d6
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x401cb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x401d0b
cmp byte [esi + ebx - 1], 0xa
je 0x401cdf
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x4030f8], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x402280
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.unk_20
call sym.unk_22
call sym.unk_18
mov esi, dword [eax]
call sym.unk_19
mov edi, dword [eax]
call sym.unk_21
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
inc eax
mov dword [esp], eax
call sym.unk_23
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop
Function at 0x401a6c
Capabilities:
Hash data using sha1

Disassembly:
push edi
xor eax, eax
mov dword [0x403080], eax
xor eax, eax
mov dword [0x403084], eax
mov edi, 0x403040
mov ecx, 0x10
rep stosd dword es:[edi], eax
mov eax, 0x403088
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
pop edi
ret
Function at 0x100024d7
Capabilities:
Delete file

Disassembly:
mov eax, 0x1000cdf9
call fcn.10007e4c
sub esp, 0x440
lea ecx, [ebp - 0x14]
call fcn.10001000
and dword [ebp - 4], 0
push 1
call fcn.1000218b
pop ecx
push 0
call fcn.1000218b
pop ecx
call fcn.10003480
test eax, eax
je 0x100025e1
lea ecx, [ebp - 0x448]
call fcn.10006884
mov byte [ebp - 4], 1
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx eax, word [ebp - 0x22]
imul eax, eax, 0x1f
movzx ecx, word [ebp - 0x1e]
add eax, ecx
mov dword [ebp - 0x44c], eax
push 0x10010508
lea ecx, [ebp - 0x14]
call fcn.10001581
lea ecx, [ebp - 0x14]
call fcn.1000141e
movzx eax, al
test eax, eax
jne 0x1000257b
lea ecx, [ebp - 0x14]
call fcn.1000141e
movzx eax, al
test eax, eax
jne 0x1000257b
lea ecx, [ebp - 0x14]
call fcn.10001bf8
push eax
lea ecx, [ebp - 0x448]
call fcn.1000697a
push str.HKEY_LOCAL_MACHINESOFTWAREClassesCLSID0E5CBF21_D15F_11d0_8301_00AA005B4
lea ecx, [ebp - 0x14]
call fcn.10001581
push str.383InProcServer32_
lea ecx, [ebp - 0x14]
call fcn.100017f8
lea ecx, [ebp - 0x14]
call fcn.10001bf8
push eax
lea ecx, [ebp - 0x448]
call fcn.1000697a
push 0x1001058c
push str.QDZQ
lea ecx, [ebp - 0x448]
call fcn.10006953
push 0
lea eax, [ebp - 0x44c]
push eax
lea ecx, [ebp - 0x448]
call fcn.10006d48
and byte [ebp - 4], 0
lea ecx, [ebp - 0x448]
call fcn.10006900
push 0x10011a20
lea ecx, [ebp - 0x14]
call fcn.10001549
push str.iprep
lea ecx, [ebp - 0x14]
call fcn.100017f8
push 0x100105a4
lea ecx, [ebp - 0x14]
call fcn.100017f8
lea ecx, [ebp - 0x14]
call fcn.1000141e
movzx eax, al
test eax, eax
jne 0x10002626
lea ecx, [ebp - 0x14]
call fcn.10001bf8
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x10011a20
lea ecx, [ebp - 0x14]
call fcn.10001549
push 0x100105ac
lea ecx, [ebp - 0x14]
call fcn.100017f8
push 0x100105b0
lea ecx, [ebp - 0x14]
call fcn.100017f8
push str.date
lea ecx, [ebp - 0x14]
call fcn.100017f8
push 0x100105bc
lea ecx, [ebp - 0x14]
call fcn.100017f8
lea ecx, [ebp - 0x14]
call fcn.1000141e
movzx eax, al
test eax, eax
jne 0x100026c1
lea ecx, [ebp - 0x14]
call fcn.1000141e
movzx eax, al
test eax, eax
jne 0x100026c1
lea ecx, [ebp - 0x14]
call fcn.1000141e
movzx eax, al
test eax, eax
jne 0x100026c1
lea ecx, [ebp - 0x14]
call fcn.1000141e
movzx eax, al
test eax, eax
jne 0x100026c1
lea ecx, [ebp - 0x14]
call fcn.1000141e
movzx eax, al
test eax, eax
jne 0x100026c1
lea ecx, [ebp - 0x14]
call fcn.10001bf8
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.100010fa
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret

Function at 0x10002eb3
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push edi
and dword [ebp - 0x54], 0
push 0x10
pop ecx
xor eax, eax
lea edi, [ebp - 0x50]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x54], 0x44
cmp dword [ebp + 0xc], 0
je 0x10002edc
mov dword [ebp - 0x4c], str.WinSta0Default
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
xor eax, eax
pop edi
leave
ret
Function at 0x10004835
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 0x14]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x10004856
xor eax, eax
jmp 0x100048ad
lea eax, [ebp - 0xc]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov dword [ebp - 0x10], 1
mov dword [ebp - 4], 2
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x10004898
xor eax, eax
jmp 0x100048ad
push 0
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x100048aa
xor eax, eax
jmp 0x100048ad
push 1
pop eax
leave
ret
Function at 0x100048af
Capabilities:
Get file size
Timestomp file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x170
mov dword [ebp - 0x158], 1
cmp dword [ebp + 0xc], 0
jne 0x100048cf
xor eax, eax
jmp 0x10004aea
lea eax, [ebp - 0x140]
push eax
mov ecx, dword [ebp + 8]
call fcn.10001bf8
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x14c], 0xffffffff
je 0x1000498d
push dword [ebp - 0x14c]
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
mov ecx, dword [ebp + 8]
call fcn.10001bf8
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x15c], eax
cmp dword [ebp - 0x15c], 0xffffffff
je 0x1000498d
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x164]
push eax
push dword [ebp - 0x15c]
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x10004967
mov eax, dword [ebp - 0x154]
cmp eax, dword [0x10010098]
je 0x1000497a
push 0
push dword [ebp - 0x15c]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, dword [ebp + 0x10]
je 0x10004981
and dword [ebp - 0x158], 0
push dword [ebp - 0x15c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x158], 0
jne 0x100049a0
cmp dword [ebp + 0x14], 0
je 0x10004ae7
and dword [ebp - 0x16c], 0
cmp dword [0x10011aa0], 0
je 0x10004a1b
mov eax, dword [ebp + 0xc]
cmp eax, dword [0x10011aa0]
je 0x10004a1b
push dword [ebp + 0x10]
call fcn.10006ff0
pop ecx
mov dword [ebp - 0x16c], eax
cmp dword [ebp - 0x16c], 0
je 0x10004a19
and dword [ebp - 0x170], 0
jmp 0x100049e9
mov eax, dword [ebp - 0x170]
inc eax
mov dword [ebp - 0x170], eax
mov eax, dword [ebp - 0x170]
cmp eax, dword [ebp + 0x10]
jae 0x10004a19
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x170]
movzx eax, byte [eax]
movzx ecx, byte [0x100119c8]
xor eax, ecx
mov ecx, dword [ebp - 0x16c]
add ecx, dword [ebp - 0x170]
mov byte [ecx], al
jmp 0x100049dc
jmp 0x10004a24
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x16c], eax
cmp dword [ebp - 0x16c], 0
jne 0x10004a34
xor eax, eax
jmp 0x10004aea
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov ecx, dword [ebp + 8]
call fcn.10001bf8
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x15c], eax
cmp dword [ebp - 0x15c], 0xffffffff
je 0x10004acc
push 0
push 0
push 0
push dword [ebp - 0x15c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x168]
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x16c]
push dword [ebp - 0x15c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [0x10010098]
mov dword [ebp - 0x154], eax
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x154]
push eax
push dword [ebp - 0x15c]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [ebp - 0x15c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x16c]
je 0x10004ae7
push dword [ebp - 0x16c]
call fcn.10006fa8
pop ecx
xor eax, eax
jmp 0x10004aea
push 1
pop eax
leave
ret
Function at 0x100051eb
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, 0x1000d149
call fcn.10007e4c
sub esp, 0x30
lea ecx, [ebp - 0x1c]
call fcn.10001000
and dword [ebp - 4], 0
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
je 0x100052e1
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x100052d8
mov eax, dword [ebp - 0x24]
cmp eax, dword [0x10010098]
jne 0x100052d8
push 0
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [0x10011a18], eax
push dword [0x10011a18]
call fcn.10006ff0
pop ecx
mov dword [0x10011a98], eax
cmp dword [0x10011a94], 0
je 0x100052d8
push 0
lea eax, [ebp - 0x34]
push eax
push dword [0x10011a18]
push dword [0x10011a98]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100052a7
cmp dword [ebp - 0x34], 0x64
jae 0x100052d8
push dword [0x10011a98]
call fcn.10006fa8
pop ecx
and dword [0x10011a98], 0
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x38], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.100010fa
mov eax, dword [ebp - 0x38]
jmp 0x100052f7
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x3c], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.100010fa
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x10006d48
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0x64
mov dword [ebp - 8], 1
push str.DWORD
mov eax, dword [ebp - 0xc]
add eax, 0x14
push eax
call fcn.1000686e
pop ecx
pop ecx
movzx eax, al
test eax, eax
je 0x10006d80
xor eax, eax
jmp 0x10006e3c
mov eax, dword [ebp - 0xc]
add eax, 0x1c
push eax
push 0xf003f
push 0
mov ecx, dword [ebp - 0xc]
add ecx, 4
call fcn.10001bf8
push eax
mov eax, dword [ebp - 0xc]
push dword [eax + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10006dd1
mov eax, dword [ebp - 0xc]
add eax, 0x1c
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 4
call fcn.10001bf8
push eax
mov eax, dword [ebp - 0xc]
push dword [eax + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x10006dd1
xor eax, eax
jmp 0x10006e3c
cmp dword [ebp + 0xc], 0
je 0x10006e04
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push 0
push 0
mov ecx, dword [ebp - 0xc]
add ecx, 0xc
call fcn.10001bf8
push eax
mov eax, dword [ebp - 0xc]
push dword [eax + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x10006e02
and dword [ebp - 8], 0
jmp 0x10006e2d
push 4
push dword [ebp + 8]
push 4
push 0
mov ecx, dword [ebp - 0xc]
add ecx, 0xc
call fcn.10001bf8
push eax
mov eax, dword [ebp - 0xc]
push dword [eax + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x10006e2d
and dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
push dword [eax + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
leave
ret 8

Function at 0x10006e40
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 4
call fcn.10001bf8
push eax
mov eax, dword [ebp - 0xc]
push dword [eax + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov ecx, dword [ebp - 0xc]
add ecx, 0xc
call fcn.10001bf8
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov dword [ebp - 4], eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], 0
jne 0x10006e91
push 1
pop eax
jmp 0x10006e93
xor eax, eax
leave
ret
Function at 0x1000b915
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x10011148
cmp edx, dword [eax]
je 0x1000b937
add eax, 8
inc ecx
cmp eax, 0x100111d8
jl 0x1000b928
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x10011148]
jne 0x1000ba65
mov eax, dword [0x10011b04]
cmp eax, 1
je 0x1000ba3f
test eax, eax
jne 0x1000b968
cmp dword [0x10011b08], 1
je 0x1000ba3f
cmp edx, 0xfc
je 0x1000ba65
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1000b99f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.10007f20
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.10006ea0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x1000b9e2
lea eax, [ebp - 0x1a4]
push eax
call fcn.10006ea0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x1000e570
push edi
call fcn.10009470
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.10007f20
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.10007f30
lea eax, [ebp - 0xa0]
push 0x1000e550
push eax
call fcn.10007f30
push dword [esi + 0x1001114c]
lea eax, [ebp - 0xa0]
push eax
call fcn.10007f30
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.1000c3b5
add esp, 0x2c
pop edi
jmp 0x1000ba65
lea eax, [ebp + 8]
lea esi, [esi + 0x1001114c]
push 0
push eax
push dword [esi]
call fcn.10006ea0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x10045bc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.01006b68
test esi, esi
jne 0x10045f4
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW_1
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.01006ca4
jmp 0x1004612
call sub.KERNEL32.DLL_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.010044a0
mov edi, eax
test esi, esi
je 0x1004612
cmp dword [ebx], 0
je 0x1004612
dec esi
jmp 0x10045fb
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x1005ecc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x1115050], 0
je 0x1005f2d
cmp word [0x111532c], 0xd7b2
jne 0x1005ef5
cmp dword [0x1115334], 0
jbe 0x1005ef5
mov eax, 0x1115328
call dword [0x1115344]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
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 0x1005f58
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x1112030], 0
jne 0x1005f49
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x10060b8
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 [0x1112034], 0
je 0x10060de
mov edx, esi
mov eax, ebx
call dword [0x1112034]
jmp 0x10060ed
mov eax, 8
call fcn.010041e8
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x1115051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x1006080
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.KERNEL32.DLL_CreateThread_1
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x1008950
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x1008ab7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.01006b68
cmp si, word [0x11127dc]
jb 0x10089ea
cmp si, word [0x11129dc]
ja 0x10089ea
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x10089ea
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x11127dc]
jae 0x10089c4
mov edi, ebx
dec edi
jmp 0x10089e5
cmp si, word [ebx*8 + 0x11127dc]
jbe 0x10089d4
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x10089e5
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x11127e0]
call fcn.01008860
jmp 0x10089ea
cmp edi, dword [ebp - 0xc]
jae 0x10089ae
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x1008a99
push 2
movzx eax, si
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x1008a99
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW_1
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW_1
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.01006d68
push dword [ebp - 0x164]
push 0x1008ad4
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.01006d68
push dword [ebp - 0x168]
push 0x1008ae4
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.01006d68
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.01007120
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1008abe
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.01006b60
ret
Function at 0x1008c70
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x1008d75
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x1117b58
call sub.KERNEL32.DLL_EnterCriticalSection_1
cmp bx, word [0x1117b70]
jne 0x1008cbc
mov eax, esi
mov edx, 0x1117b74
mov ecx, 0x55
call fcn.01006d68
push 0x1117b58
call sub.KERNEL32.DLL_LeaveCriticalSection_1
jmp 0x1008d5f
push 0x1117b58
call sub.KERNEL32.DLL_LeaveCriticalSection_1
mov eax, esi
xor edx, edx
call fcn.01006b68
push 2
movzx eax, bx
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x1008d2d
cmp byte [0x1117b54], 0
je 0x1008cf2
mov edx, esi
mov eax, ebx
call fcn.01008b50
jmp 0x1008d2d
mov edx, esi
mov eax, ebx
call fcn.01008950
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
cmp bx, ax
je 0x1008d2d
cmp dword [esi], 0
je 0x1008d16
mov eax, esi
mov edx, 0x1008d90
call fcn.01006f7c
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.01008950
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.01006f7c
push 0x1117b58
call sub.KERNEL32.DLL_EnterCriticalSection_1
mov word [0x1117b70], bx
push 0xaa
mov eax, dword [esi]
call fcn.01006bf4
push eax
push 0x1117b74
call sub.KERNEL32.DLL_lstrcpynW
push 0x1117b58
call sub.KERNEL32.DLL_LeaveCriticalSection_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1008d7c
lea eax, [ebp - 4]
call fcn.01006b58
ret