joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4020e0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x402140
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x40539c]
test esi, esi
jle 0x402240
mov eax, dword [0x4053a0]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x402170
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x4021ef
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x402160
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x402267
mov eax, dword [0x4053a0]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x4053a0]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x402247
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x4021e8
sub eax, 4
and eax, 0xfffffffb
jne 0x4021f6
add dword [0x40539c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
add ebx, dword [0x4053a0]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x4021e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
xor esi, esi
jmp 0x40217a
mov eax, dword [0x4053a0]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
nop
Function at 0x402720
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4053b8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4053b0]
sub esp, 4
test ebx, ebx
je 0x402775
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40276e
test esi, esi
je 0x40276e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402750
mov dword [esp], 0x4053b8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x246d58d1
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
push esi
push edi
xor esi, esi
mov edi, dword [ebp + 0x10]
push edi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call fcn.246d64f8
add esp, 4
test eax, eax
jne 0x246d58fe
push esi
push edi
call fcn.246d62da
add esp, 8
lea eax, [ebp - 0x34]
push eax
push edi
call fcn.246d5886
add esp, 8
test eax, eax
je 0x246d5a2d
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x138]
push eax
push str.CLSID_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0xc]
lea edx, [ebp - 8]
xor esi, esi
push ecx
push edx
push esi
lea eax, [ebp - 0x138]
push 0x2001f
push esi
push section..data
push esi
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x246d5a2d
mov eax, dword [ebp + 0xc]
cmp eax, esi
jne 0x246d597e
push dword [ebp + 8]
push str._s_Object
lea ecx, [ebp - 0x138]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x246d598c
push eax
lea ecx, [ebp - 0x138]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
lea ecx, [ebp - 0x138]
push eax
xor edi, edi
push ecx
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 1
push edi
push edi
push dword [ebp - 8]
call esi
test eax, eax
jne 0x246d5a2d
lea eax, [ebp - 0xc]
lea ecx, [ebp - 4]
push eax
push ecx
push edi
push 0x2001f
push edi
push section..data
push edi
push 0x246d8c80
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x246d5a2d
push 0x104
lea eax, [ebp - 0x138]
push eax
push dword [0x246da2fc]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x246d5a2d
inc eax
lea ecx, [ebp - 0x138]
push eax
push ecx
push 1
push edi
push edi
push dword [ebp - 4]
call esi
test eax, eax
jne 0x246d5a2d
cmp dword [ebp + 0x14], edi
je 0x246d5a4f
push 0xa
push str.Apartment
push 1
push edi
push str.ThreadingModel
push dword [ebp - 4]
call esi
test eax, eax
je 0x246d5a5d
cmp dword [ebp - 8], 0
je 0x246d5a3c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], 0
je 0x246d5a4b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x246d5a74
push str.ThreadingModel
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x246d6423
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push esi
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x246d644c
xor eax, eax
jmp 0x246d64a4
xor esi, esi
push esi
lea eax, [ebp - 8]
push esi
lea ecx, [ebp - 0x10c]
mov dword [ebp - 8], 0x104
push esi
push esi
push eax
push ecx
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x246d6488
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 4]
call fcn.246d6423
add esp, 8
test eax, eax
jne 0x246d644e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp eax, 1
sbb eax, eax
neg eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x246d64a9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov esi, str.HELP
lea edi, [ebp - 8]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x246d64c7
xor eax, eax
jmp 0x246d64f2
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov esi, eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add esi, eax
cmp esi, edi
jae 0x246d64f0
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x246d6645
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push ebx
push esi
push edi
push 0x246da318
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x246da2f8]
mov ebx, dword [ebp + 8]
test edi, edi
je 0x246d667d
test ebx, ebx
je 0x246d67e8
cmp dword [0x246da234], ebx
je 0x246d67e8
cmp word [0x246d8490], 0
je 0x246d67e8
test ebx, ebx
jne 0x246d6695
mov ebx, dword [0x246da234]
push 5
lea eax, [ebp - 8]
push eax
push 3
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x246d67e8
mov esi, 0x104
lea eax, [ebp - 0x418]
push esi
push eax
push 0x3e9
push dword [0x246da2fc]
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
je 0x246d67e8
lea eax, [ebp - 8]
lea ecx, [ebp - 0x418]
push eax
lea edx, [ebp - 0x210]
push ecx
push str._s_s.DLL
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [ebp - 0x314]
push esi
push ecx
push dword [0x246da2fc]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x10c]
lea edx, [ebp - 0x210]
push ecx
lea eax, [ebp - 0x314]
push edx
push eax
call fcn.246d6603
add esp, 0xc
lea ecx, [ebp - 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
jne 0x246d67e8
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 2
jle 0x246d6799
lea eax, [ebp - 8]
lea ecx, [ebp - 0x418]
push eax
lea edx, [ebp - 0x210]
mov byte [ebp - 6], 0
push ecx
push str._s_s.DLL
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [ebp - 0x10c]
lea edx, [ebp - 0x210]
lea eax, [ebp - 0x314]
push ecx
push edx
push eax
call fcn.246d6603
add esp, 0xc
lea ecx, [ebp - 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
jne 0x246d67f2
mov eax, dword [0x246da234]
push 5
and ax, 0x3ff
lea ecx, [ebp - 8]
or ah, 4
push ecx
movzx edx, ax
push 3
push edx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x246d67e8
lea eax, [ebp - 0x10c]
lea esi, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [ebp + eax - 0x113]
lea eax, [ebp - 0x10c]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
jne 0x246d67f2
mov edi, dword [0x246da2fc]
cmp dword [0x246da2f8], 0
jne 0x246d680d
test ebx, ebx
je 0x246d6807
cmp dword [0x246da234], ebx
jne 0x246d680d
mov dword [0x246da2f8], edi
push 0x246da318
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x246d7325
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov dword [ebp - 4], eax
cmp eax, 9
jge 0x246d7344
xor eax, eax
jmp 0x246d7390
lea eax, [ebp - 0xcc]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.246d7394
add esp, 0xc
lea ecx, [ebp - 4]
lea edx, [ebp - 0xcc]
push ecx
push edx
push 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x246d738d
push dword [ebp + 0x10]
lea ecx, [ebp - 0xcc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
cmp eax, 1
sbb eax, eax
neg eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x246d7394
Capabilities:
Encode data using xor

Disassembly:
push ebx
xor eax, eax
mov ecx, dword [esp + 8]
push esi
push edi
mov edx, ecx
push ebp
cmp byte [ecx], al
je 0x246d73aa
inc edx
cmp byte [edx], 0
jne 0x246d73a4
dec edx
mov esi, dword [esp + 0x1c]
mov edi, esi
cmp edx, ecx
jb 0x246d73bf
mov bl, byte [edx]
dec edx
mov byte [edi], bl
inc edi
cmp edx, ecx
jae 0x246d73b5
mov byte [edi], 0
mov edi, esi
cmp byte [esi], 0
je 0x246d73cf
inc edi
cmp byte [edi], 0
jne 0x246d73c9
dec edi
mov ebx, ecx
cmp byte [ecx], 0
je 0x246d73dd
inc ebx
cmp byte [ebx], 0
jne 0x246d73d7
dec ebx
mov ebp, esi
cmp ebx, ecx
jbe 0x246d73f7
mov dl, byte [ebp]
xor dl, byte [ecx]
inc ecx
mov byte [ebp], dl
inc ebp
movsx edx, dl
add eax, edx
cmp ebx, ecx
ja 0x246d73e4
mov ecx, esi
cmp edi, esi
jbe 0x246d7403
inc ecx
dec edi
cmp edi, ecx
ja 0x246d73fd
dec ecx
mov edi, 0xa
sub edx, edx
div edi
add dl, 0x61
mov edi, dword [esp + 0x18]
cmp ecx, esi
jb 0x246d7430
mov al, byte [esi]
and al, 0xf
add al, dl
mov byte [edi], al
inc edi
mov al, byte [esi]
inc esi
sar al, 4
add al, dl
mov byte [edi], al
inc edi
cmp esi, ecx
jbe 0x246d7418
pop ebp
mov byte [edi], 0
pop edi
pop esi
pop ebx
ret
Function at 0x403120
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004046a0
test esi, esi
jne 0x403157
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.00404790
jmp 0x403178
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402fbc
mov dword [esp], eax
test esi, esi
je 0x403178
cmp dword [ebx], 0
je 0x403178
dec esi
jmp 0x40315f
add esp, 0x10c
pop esi
pop ebx
ret

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

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

Function at 0x403744
Capabilities:
Query or enumerate registry value

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

Function at 0x404498
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x434044], 0
je 0x4044f9
cmp word [0x434218], 0xd7b2
jne 0x4044c1
cmp dword [0x434220], 0
jbe 0x4044c1
mov eax, 0x434214
call dword [0x434230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x432070
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 0x404520
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x432034], 0
jne 0x404515
push 0
push 0x432068
push 0x432070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404654
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.00402d20
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x434045], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x40461c
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4061f4
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 0x40625a
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.00404910
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403338
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406244
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406261
lea eax, [ebp - 0x10]
call fcn.004046a0
ret

Function at 0x40d214
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 0x40d24d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404790
jmp 0x40d256
mov eax, ebx
mov edx, esi
call fcn.004046f4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40d260
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 0x40d281
mov al, byte [esp]
jmp 0x40d283
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40d918
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40d780
mov eax, dword [0x433bb0]
cmp byte [eax], 0
je 0x40d994
mov eax, dword [0x433a54]
call fcn.00403228
call fcn.00402ee8
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.0040a9bc
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 0x40d9dc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d9ca
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x433a24]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x434660]
call fcn.00405684
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 0x40e6dc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40e740
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404910
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040a4ac
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e747
lea eax, [ebp - 0xc]
call fcn.004046a0
ret

Function at 0x419c8c
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.00419ab8
dec esi
jne 0x419cae
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x41bfbc
Capabilities:
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push ebp
push 0x41c14c
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x70], 0
jne 0x41c136
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
mov edx, dword [ebp - 4]
mov dword [edx + 0x84], eax
jmp 0x41c129
mov eax, dword [ebp - 4]
add eax, 0x98
xor edx, edx
call fcn.0041dedc
mov eax, dword [ebp - 4]
add eax, 0x98
push eax
mov eax, dword [ebp - 4]
add eax, 0x6c
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x7c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
push eax
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x41c088
xor eax, eax
push ebp
push 0x41c081
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x6c]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x7c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x78]
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov eax, dword [ebp - 4]
call fcn.0041c47c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41c129
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa8]
push eax
call sub.kernel32.dll_ResetEvent
ret
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x58], ebx
cmp ebx, 0xea
jne 0x41c11a
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x84]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x7c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x78]
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov eax, dword [ebp - 4]
add eax, 0x84
push eax
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
push eax
call sub.kernel32.dll_PeekNamedPipe
test eax, eax
je 0x41c10d
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x84]
mov eax, dword [ebp - 4]
cmp esi, dword [eax + 0x80]
jbe 0x41c129
mov edx, esi
mov eax, dword [ebp - 4]
add eax, 0x7c
call fcn.00402d70
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
mov edx, dword [ebp - 4]
mov dword [edx + 0x80], eax
jmp 0x41c129
call sub.kernel32.dll_GetLastError
mov edx, dword [ebp - 4]
mov dword [edx + 0x58], eax
jmp 0x41c136
cmp ebx, 0x3e5
jne 0x41c136
mov eax, dword [ebp - 4]
mov byte [eax + 0x70], 1
mov eax, dword [ebp - 4]
cmp byte [eax + 0x70], 0
je 0x41bff7
pop dword fs:[0]
add esp, 8
push 0x41c153
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x70]
ret
Function at 0x41c27c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov dword [ebp - 4], eax
mov byte [ebp - 5], 1
mov eax, dword [ebp - 4]
cmp byte [eax + 0x71], 0
jne 0x41c39b
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x94]
push eax
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
jne 0x41c397
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x64]
call fcn.0041d548
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x68], ebx
test ebx, ebx
je 0x41c39b
mov eax, dword [ebp - 4]
add eax, 0xac
xor edx, edx
call fcn.0041dedc
mov eax, dword [ebp - 4]
add eax, 0xac
push eax
mov eax, dword [ebp - 4]
add eax, 0x60
push eax
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x68]
mov eax, dword [ebx + 4]
push eax
mov eax, dword [ebx]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
push eax
call sub.kernel32.dll_WriteFile_1
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
call sub.kernel32.dll_GetLastError
mov esi, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x58], esi
test bl, bl
je 0x41c380
xor eax, eax
push ebp
push 0x41c379
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
push eax
call sub.kernel32.dll_FlushFileBuffers
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x60]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x54]
mov edx, 0x467
mov eax, dword [ebp - 4]
call fcn.0041bf88
mov eax, dword [ebp - 4]
add eax, 0x68
call fcn.0041e074
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41c39b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xbc]
push eax
call sub.kernel32.dll_ResetEvent
ret
cmp esi, 0x3e5
jne 0x41c391
mov eax, dword [ebp - 4]
mov byte [eax + 0x71], 1
jmp 0x41c39b
mov byte [ebp - 5], 0
jmp 0x41c39b
mov byte [ebp - 5], 1
mov al, byte [ebp - 5]
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x41cadc
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x41cbae
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
add eax, 0x80
push eax
push 0x3e8
push 0
push 0
push 0xff
push 6
push 0x40000003
lea edx, [ebp - 8]
mov eax, 0x41ab54
call fcn.0040619c
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x58]
call fcn.00404968
mov eax, dword [ebp - 8]
call fcn.00404b60
push eax
call sub.kernel32.dll_CreateNamedPipeA
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x54], ebx
xor eax, eax
push ebp
push 0x41cb91
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.0041dff8
test al, al
je 0x41cb6b
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x50], edx
jmp 0x41cb76
call sub.kernel32.dll_GetLastError
mov edx, dword [ebp - 4]
mov dword [edx + 0x50], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41cb98
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
call fcn.0041dff8
mov ebx, eax
ret