joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47c010
Capabilities:
Log keystrokes

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x14]
mov ebx, ecx
push esi
push edi
mov edi, edx
movzx eax, word [edi]
cmp eax, 0x41
je 0x47c029
cmp eax, 0x61
jne 0x47c086
cmp word [edi + 2], 0
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
jne 0x47c08e
cmp word [ecx], 0
jne 0x47c08e
cmp word [eax], 0
jne 0x47c08e
cmp word [ebp], 0
jne 0x47c08e
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x47c086
cmp byte [ebx + 0xea], 0
jne 0x47c06b
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x47c086
push esi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x47c07f
push 9
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
test dl, dl
jne 0x47c0bf
cmp word [edi], 0
jne 0x47c0bf
cmp word [ecx], 0
jne 0x47c0bf
cmp word [eax], 0
jne 0x47c0bf
cmp word [ebp], 0
jne 0x47c0bf
mov ecx, ebx
call fcn.0047c7d0
test eax, eax
jne 0x47c0db
pop edi
pop esi
pop ebp
pop ebx
ret
push dword [esp + 0x28]
push dword [esp + 0x28]
push 0
push edx
push ebp
push eax
push ecx
mov edx, edi
mov ecx, ebx
call fcn.0047c620
add esp, 0x1c
jmp 0x47c0b6
pop edi
pop esi
pop ebp
mov ecx, eax
pop ebx
jmp fcn.0047c150
Function at 0x47c150
Capabilities:
Find taskbar
Log keystrokes

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
test esi, esi
jne 0x47c161
xor eax, eax
pop esi
add esp, 0xc
ret
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push edi
push 0
push esi
call ebp
mov edi, eax
mov dword [esp + 0x14], edi
cmp edi, dword [0x4de014]
je 0x47c190
mov ecx, esi
call fcn.0047d150
test al, al
je 0x47c190
pop edi
pop ebp
xor eax, eax
pop esi
add esp, 0xc
ret
push ebx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebx, eax
test ebx, ebx
jne 0x47c1ab
push eax
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov ebx, eax
push esi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x47c1bf
push 9
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
cmp esi, ebx
jne 0x47c1cd
pop ebx
pop edi
pop ebp
mov eax, esi
pop esi
add esp, 0xc
ret
cmp byte [0x4dc0ee], 0
jne 0x47c1e7
mov edx, ebx
mov ecx, esi
call fcn.0047c0f0
test eax, eax
jne 0x47c2dc
mov byte [esp + 0x12], 0
mov byte [esp + 0x13], 0
test ebx, ebx
je 0x47c248
push 0
push ebx
call ebp
mov ebp, eax
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x47c250
cmp dword [0x4de014], ebp
je 0x47c22d
mov ecx, ebx
call fcn.0047d150
test al, al
jne 0x47c22d
push 1
push ebp
push dword [0x4de014]
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [esp + 0x12]
test edi, edi
je 0x47c250
cmp ebp, edi
je 0x47c250
push 1
push edi
push ebp
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [esp + 0x13]
jmp 0x47c250
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
xor edi, edi
mov edx, ebx
mov ecx, esi
call fcn.0047c0f0
mov ebp, eax
test ebp, ebp
jne 0x47c299
inc edi
cmp edi, 5
jl 0x47c252
push 0xffc3d44d
push eax
push eax
push eax
mov dl, 0x12
lea ecx, [eax + 2]
call fcn.00413e60
push 0xffc3d44d
push ebp
push ebp
push ebp
mov dl, 0x12
lea ecx, [ebp + 2]
call fcn.00413e60
add esp, 0x20
mov edx, ebx
mov ecx, esi
call fcn.0047c0f0
mov ebp, eax
cmp byte [esp + 0x12], 0
mov edi, dword [esp + 0x14]
mov ebx, dword [sym.imp.USER32.dll_AttachThreadInput]
je 0x47c2b5
push 0
push edi
push dword [0x4de014]
call ebx
cmp byte [esp + 0x13], 0
je 0x47c2c5
push 0
push dword [esp + 0x1c]
push edi
call ebx
test ebp, ebp
je 0x47c2da
push esi
call dword [sym.imp.USER32.dll_BringWindowToTop]
pop ebx
pop edi
mov eax, ebp
pop ebp
pop esi
add esp, 0xc
ret
xor eax, eax
pop ebx
pop edi
pop ebp
pop esi
add esp, 0xc
ret
Function at 0x47c3e0
Capabilities:
Check for time delay via gettickcount
Terminate process

Disassembly:
cmp byte [esp + 4], 0
push ebx
push esi
push edi
mov ebx, edx
mov esi, ecx
je 0x47c43d
lea eax, [esp + 0x10]
push eax
push 0x1f4
push 2
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
jne 0x47c44a
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x47c44a
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x47c44a
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x47c44a
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
xor edi, edi
test ebx, ebx
cmovns edi, ebx
test edi, edi
je 0x47c4a4
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebp
call ebx
mov edx, 1
mov dword [esp + 0x14], eax
mov ecx, 0x8000012f
call fcn.004016e0
mov ebp, dword [sym.imp.USER32.dll_IsWindow]
push esi
call ebp
test eax, eax
je 0x47c4a3
add edi, dword [esp + 0x14]
call ebx
mov ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x47c4a3
mov edx, 1
mov ecx, 0x8000012f
call fcn.004016e0
push esi
call ebp
test eax, eax
jne 0x47c482
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x47c620
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x11c64
call fcn.004ab360
mov eax, edx
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
mov dword [esp + 8], eax
movzx eax, word [eax]
push edi
mov edi, ecx
cmp eax, 0x41
je 0x47c651
cmp eax, 0x61
jne 0x47c6a9
mov ecx, dword [esp + 0xc]
cmp word [ecx + 2], 0
jne 0x47c6a9
cmp word [ebx], 0
jne 0x47c6a9
cmp word [edx], 0
jne 0x47c6a9
cmp word [esi], 0
jne 0x47c6a9
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x47c690
cmp byte [edi + 0xea], 0
jne 0x47c690
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
neg eax
sbb eax, eax
and esi, eax
cmp byte [ebp + 0x18], 0
je 0x47c6a0
test esi, esi
je 0x47c6a0
mov dword [edi + 0xc4], esi
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ax, ax
jne 0x47c6cb
cmp word [ebx], ax
jne 0x47c6cb
cmp word [edx], ax
jne 0x47c6cb
cmp word [esi], ax
jne 0x47c6cb
mov ecx, edi
call fcn.0047c7d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x10]
call fcn.00437130
push esi
push edx
push ebx
push dword [esp + 0x18]
push edi
call fcn.0047d2d0
test eax, eax
je 0x47c78a
test byte [esp + 0x10], 2
mov al, byte [ebp + 0x14]
mov byte [esp + 0x1839], al
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x1848], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x184c], eax
je 0x47c793
mov eax, dword [esp + 0x102c]
cmp eax, 0xffff
je 0x47c762
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x47c78a
cmp byte [edi + 0xea], 0
jne 0x47c75b
push dword [esp + 0x102c]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x47c75b
push 0xfffffffffffffff0
push dword [esp + 0x1030]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x40000000
je 0x47c78a
mov eax, dword [esp + 0x102c]
cmp dword [esp + 0x1860], eax
je 0x47c77b
lea ecx, [esp + 0x10]
mov dword [esp + 0x1860], eax
call fcn.0047d6f0
push 0
lea ecx, [esp + 0x14]
call fcn.0047d7b0
test eax, eax
jne 0x47c7a3
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
push eax
push 0x47c840
call dword [sym.imp.USER32.dll_EnumWindows]
cmp byte [ebp + 0x18], 0
mov eax, dword [esp + 0x1840]
je 0x47c7ba
test eax, eax
je 0x47c7ba
mov dword [edi + 0xc4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47d6f0
Capabilities:
Get graphical window text

Disassembly:
push ecx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x1850]
test ecx, ecx
je 0x47d7ab
mov eax, dword [esi]
test eax, eax
je 0x47d7ab
push edi
test al, 1
jne 0x47d71d
mov eax, dword [esi + 0x100c]
cmp word [eax], 0
je 0x47d737
push 0x7fff
lea edi, [esi + 0x1858]
push edi
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x47d737
mov word [edi], ax
test byte [esi], 4
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
je 0x47d751
lea eax, [esi + 0x1854]
push eax
push dword [esi + 0x1850]
call edi
test byte [esi], 0x20
je 0x47d78d
lea eax, [esp + 8]
push eax
push dword [esi + 0x1850]
call edi
test eax, eax
je 0x47d78d
movzx eax, byte [esi + 0x1828]
lea edx, [esi + 0x11a58]
push eax
push ecx
mov ecx, dword [esp + 0x10]
call fcn.00454f10
add esp, 8
test eax, eax
jne 0x47d78d
mov word [esi + 0x11a58], ax
test byte [esi], 8
pop edi
je 0x47d7ab
push 0x101
lea eax, [esi + 0x11856]
push eax
push dword [esi + 0x1850]
call dword [sym.imp.USER32.dll_GetClassNameW]
pop esi
pop ecx
ret

Function at 0x47e290
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x11c68
call fcn.004ab360
push ebx
push esi
mov esi, ecx
cmp dword [esi + 8], 0
je 0x47e3e9
push 0
call fcn.0047e400
test eax, eax
jne 0x47e2c1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push dword [0x4d89c0]
mov ebx, eax
mov ecx, esi
push ebx
call fcn.0047e4a0
mov edx, dword [0x4de00c]
xor ecx, ecx
test eax, eax
cmovne edx, ecx
lea ecx, [esp + 0x10]
mov dword [0x4de00c], edx
call fcn.00437130
cmp byte [ebp + 8], 0
je 0x47e305
mov byte [esp + 0x1839], 0
test edx, edx
je 0x47e30d
mov byte [esp + 0x1839], 1
mov eax, dword [0x4de008]
mov dword [esp + 0x1848], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x1850], eax
lea eax, [esp + 0x10]
push eax
push 0x47e530
mov dword [esp + 0x1854], edx
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 0x1840]
test eax, eax
je 0x47e3bc
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push 0x47d090
mov dword [esp + 0x14], 0
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [esp + 0xc]
test esi, esi
je 0x47e37e
mov ecx, dword [esp + 0x1840]
call fcn.0047dc70
mov dword [esp + 0x1840], esi
jmp 0x47e385
mov esi, dword [esp + 0x1840]
mov ecx, esi
call fcn.0047c150
mov ecx, dword [esp + 0x1840]
call fcn.0047dc70
mov eax, dword [0x4d89c0]
mov ecx, dword [eax + 0x54]
cmp ecx, 0xffffffff
jle 0x47e3e9
mov edx, 1
call fcn.004016e0
mov eax, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x4de00c]
test eax, eax
je 0x47e3e9
cmp eax, 1
mov dword [0x4de00c], 0
setg al
test al, al
je 0x47e3e9
mov ecx, ebx
call fcn.0047dc70
push 0
mov ecx, esi
call fcn.0047e290
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x401340
Capabilities:
Create process on windows

Disassembly:
push edi
push esi
xor eax, eax
push ebx
mov ecx, 0x11
sub esp, 0x90
lea ebx, [esp + 0x4c]
lea esi, [esp + 0x3c]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov edi, ebx
mov dword [esp + 0x48], 0
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x4c], 0x44
mov dword [esp], eax
call sub.msvcrt.dll__strdup
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x8000000
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0
call sub.KERNEL32.dll_CreateProcessA
sub esp, 0x28
test eax, eax
je 0x40142e
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], 0x1388
mov dword [esp], eax
call sub.KERNEL32.dll_WaitForSingleObject
sub esp, 8
lea eax, [esp + 0x38]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call sub.KERNEL32.dll_GetExitCodeProcess
sub esp, 8
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov eax, dword [esp + 0x38]
add esp, 0x90
pop ebx
pop esi
pop edi
ret

Function at 0x401440
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x1c
call sub.KERNEL32.dll_GetConsoleWindow
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.USER32.dll_ShowWindow
sub esp, 8
mov dword [esp], str.calc.exe
call fcn.00401340
xor eax, eax
add esp, 0x1c
ret 0x10

Function at 0x4016a0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x28
mov ebx, dword [sym.imp.msvcrt.dll__iob]
lea eax, [esp + 0x34]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
add ebx, 0x40
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
mov dword [esp + 0x1c], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x1c]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]
Function at 0x40201c
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40205b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40205b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40205b
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40205b
cmp dword [ecx + 0x74], 0xe
jbe 0x40205b
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x402e68
Capabilities:
Query or enumerate registry value

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

Function at 0x403b80
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x41904c], 0
je 0x403be1
cmp word [0x419220], 0xd7b2
jne 0x403ba9
cmp dword [0x419228], 0
jbe 0x403ba9
mov eax, 0x41921c
call dword [0x419238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x418068
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 0x403c08
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41802c], 0
jne 0x403bfd
push 0
push 0x418060
push 0x418068
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405110
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405340
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405193
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405340
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405193
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40535c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40521c
xor eax, eax
push ebp
push 0x405215
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00404f4c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4051fa
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x40537c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4051fa
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40521c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x405336
cmp byte [ebp - 0xd], 0
jne 0x405263
cmp byte [ebp - 0x12], 0
je 0x405336
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40527c
dec ebx
cmp byte [ebx], 0x2e
je 0x40528b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40527b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405336
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4052c8
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405336
cmp byte [ebp - 0xd], 0
je 0x405336
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405336
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4059d0
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 0x405a36
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.00403f70
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402a70
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405a20
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405a3d
lea eax, [ebp - 0x10]
call fcn.00403d00
ret

Function at 0x409ddc
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 0x409e15
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403df0
jmp 0x409e1e
mov eax, ebx
mov edx, esi
call fcn.00403d54
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40a4dc
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40a354
mov eax, dword [0x418574]
cmp byte [eax], 0
je 0x40a558
mov eax, dword [0x41847c]
call fcn.00402900
call fcn.004027b0
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.0040772c
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 0x40a5a0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40a58e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x418454]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x419668]
call fcn.00404ef4
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 0x4013c0
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0xc]
mov al, byte [ecx + 0x43]
test al, al
jne 0x401418
mov al, byte [esi + 0xa]
test al, al
mov eax, dword [esi + 0x10]
je 0x4013da
add eax, 0xc
push eax
push ecx
call fcn.004048f0
mov al, byte [esi + 0xa]
add esp, 8
test al, al
jne 0x401418
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 4]
push 0
push 0x18
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jge 0x401418
push 0x84
push str.srcClient.cpp
push str.write
call fcn.00406bf0
add esp, 0xc
pop esi
ret

Function at 0x402d90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x413dbe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov edi, dword [esp + 0x20]
mov edx, dword [edi + 0x30]
mov esi, ecx
xor ebx, ebx
cmp edx, ebx
setg al
xor ecx, ecx
mov cx, word [edi + 0x3e]
mov dword [esp + 0xc], esi
push eax
push ecx
mov ecx, esi
call fcn.00405170
lea eax, [esi + 0x38]
push ebx
push eax
mov dword [esp + 0x20], ebx
mov dword [esi], 0x415758
call fcn.00406c20
lea eax, [esi + 0x40]
push ebx
push eax
call fcn.00406c20
lea eax, [esi + 0x48]
push ebx
push eax
call fcn.00406c20
lea eax, [esi + 0x50]
push ebx
push eax
call fcn.00406c20
lea eax, [esi + 0x58]
push ebx
push eax
call fcn.00406c20
lea eax, [esi + 0x60]
push ebx
push eax
call fcn.00406c20
mov edx, dword [esp + 0x54]
mov dword [esi + 0xc], edi
mov dword [esi + 0x84], edx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x80], ebx
mov eax, dword [edi + 0x1c]
push eax
call fcn.00409097
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x10], eax
mov edx, dword [ecx + 0x1c]
push edx
push eax
call fcn.00408b40
mov dword [0x41af4c], ebx
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x34]
add esp, 0x3c
cmp ecx, 1
jne 0x402ed0
cmp byte [eax + 0x46], bl
je 0x402ed0
cmp byte [eax + 0x4a], bl
push 8
jne 0x402e89
call fcn.00409097
add esp, 4
mov dword [esp + 0x20], eax
cmp eax, ebx
mov byte [esp + 0x18], 1
je 0x402eb3
mov edx, dword [esi + 0xc]
mov ecx, dword [edx + 0x1c]
mov edx, dword [edx]
push ecx
push edx
mov ecx, eax
call fcn.00401490
jmp 0x402eb5
call fcn.00409097
add esp, 4
mov dword [esp + 0x20], eax
cmp eax, ebx
mov byte [esp + 0x18], 2
je 0x402eb3
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + 0x1c]
push edx
push 0x41a0c8
mov ecx, eax
call fcn.004014e0
jmp 0x402eb5
xor eax, eax
mov ecx, eax
mov byte [esp + 0x18], bl
mov dword [esi + 0x80], eax
call fcn.00401510
test al, al
jne 0x402ed0
mov eax, dword [esi + 0xc]
mov byte [eax + 0x46], bl
mov ecx, dword [esp + 0x10]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8