joyce8/EMBER2024-capa huggingface dataset:
Function at 0x461614
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x46162b
add esp, 0xfffffff0
call fcn.00403b90
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00420ed4
mov eax, dword [0x501448]
cmp word [eax + 2], 0
jne 0x461653
mov eax, dword [0x501448]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00462cf0
mov eax, dword [0x501554]
cmp word [eax + 2], 0
jne 0x46166d
mov eax, dword [0x501554]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00462ee8
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x416004]
call fcn.004037fc
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x416004]
call fcn.004037fc
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0x80000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x4233c4]
call fcn.0042ae40
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x4617f4
mov eax, dword [0x501300]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042b210
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x463468
push 0x100
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x501300]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040d850
test eax, eax
je 0x461762
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409568
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d878
test eax, eax
je 0x461776
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, 0x100
call fcn.004048e0
mov eax, dword [0x501138]
cmp byte [eax], 0
jne 0x4617aa
mov eax, ebx
call fcn.0046191c
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00463644
mov eax, ebx
call fcn.00463f84
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4617ea
call fcn.00403be8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x461b90
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x502c34]
cmp dword [eax + 0x30], 0
je 0x461c3a
cmp dword [ebx + 0x94], 0
jne 0x461c34
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x461b20
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x461c34
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x461bfa
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x461c34
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00418abc
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x461c09
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x462718
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x46274d
push 0x100
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404768
jmp 0x46275a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004046cc
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x463820
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x463861
mov eax, esi
call fcn.004498a8
test al, al
je 0x463861
mov eax, dword [ebx + 0x84]
call fcn.004495a4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x463861
push 0
mov eax, dword [ebx + 0x84]
call fcn.004495a4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x486eb4
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x486ee2
mov eax, ebx
call fcn.0048796c
cmp dword [ebx + 0x3c], 0
je 0x486edb
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x486f53
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x486f45
cmp dword [ebx + 8], 0
je 0x486f04
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1ac]
call dword [edx]
test eax, eax
jne 0x486f16
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x486f45
cmp dword [ebx + 8], 0
je 0x486ef7
cmp eax, 3
je 0x486f29
dec eax
jne 0x486ef7
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x486ef7
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x486ef7
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x486f71
cmp dword [ebx + 0x10], 0xcc
je 0x486f71
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00486f7c
pop ebx
ret
Function at 0x4b2edc
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 0x10], 2
jne 0x4b2f01
cmp dword [esp + 4], 5
jb 0x4b2f01
mov al, 1
jmp 0x4b2f03
xor eax, eax
add esp, 0x94
ret
Function at 0x4c3d88
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4c3fe8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x4c3deb
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.004c3850
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040d3c4
cmp al, 1
jne 0x4c3deb
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.004c3b68
test al, al
je 0x4c3f77
cmp dword [ebp - 8], 0
jge 0x4c3e09
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.004c3850
mov eax, dword [ebp - 0x210]
call fcn.00404930
cmp ebx, eax
jge 0x4c3e53
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.004c3850
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x50172c]
and eax, 0xff
bt dword [edx], eax
jae 0x4c3e53
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x4c3e67
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004c3d64
cmp ebx, dword [ebp - 8]
je 0x4c3f69
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, 0x100
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x4c3e93
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403a28
and eax, 0x7f
movzx eax, word [eax*2 + 0x501050]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x4c3f56
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403a28
and eax, 0x7f
movzx eax, word [eax*2 + 0x501050]
push eax
push 0x100
mov eax, dword [ebp - 4]
call fcn.004495a4
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403a28
and eax, 0x7f
movzx eax, word [eax*2 + 0x501050]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.004495a4
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c3f5d
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x4c3fca
cmp dword [ebp - 8], 0
jge 0x4c3f82
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.004c3850
mov eax, dword [ebp - 0x218]
call fcn.00404930
cmp eax, dword [ebp - 8]
jg 0x4c3fbc
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.004c3850
mov eax, dword [ebp - 0x21c]
call fcn.00404930
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004c3d64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c3fef
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.0040469c
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x4031f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x403203
pop dword [ebp - 0x44]
mov eax, 0x403203
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x60714903
sub dword [ebp - 0x54], 0x121f03b8
mov dword [ebp - 0x50], 0xb837407a
add dword [ebp - 0x50], 0x79fc0bcb
mov dword [ebp - 0x4c], 0x47d261ed
sub dword [ebp - 0x4c], 0xfb861dbf
mov dword [ebp - 0x48], 0x8eada7a9
sub dword [ebp - 0x48], 0x8eada7a9
lea eax, [ebp - 0x54]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0xf188e620
sub dword [ebp - 0x54], 0x7d167cca
mov dword [ebp - 0x50], 0x863a9953
sub dword [ebp - 0x50], 0x44ce37de
mov dword [ebp - 0x4c], 0xd741d947
add dword [ebp - 0x4c], 0x8c2d9325
mov dword [ebp - 0x48], 0xf7449c5f
sub dword [ebp - 0x48], 0xf7449c5f
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0x542e5f0e
add eax, 0xac12119a
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x39ded
push 0
call eax
mov ecx, 0x551b
xor edi, edi
add edi, eax
mov edx, 0xbe3c8f68
sub edx, 0xbdfb8f68
add edx, dword [ebp - 0x44]
mov esi, 0xd42a3219
xor dword [ebp - 0x24], 0x78192998
mov ebx, dword [edx]
add dword [ebp - 8], 0x908d138
xor ebx, esi
mov dword [edi], ebx
add edi, 0xdc48f9eb
add edi, 0x23b70619
add edx, 0xf2bbf077
sub edx, 0xf2bbf073
loop 0x403311
add eax, 0xccb0c923
sub eax, 0xccaf81e4
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x8bbfd940
add ecx, 0x748026c0
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x402f60
Capabilities:
Query or enumerate registry value

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

Function at 0x403d2c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45e044], 0
je 0x403d8d
cmp word [0x45e218], 0xd7b2
jne 0x403d55
cmp dword [0x45e220], 0
jbe 0x403d55
mov eax, 0x45e214
call dword [0x45e230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45b06c
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 0x403db4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45b030], 0
jne 0x403da9
push 0
push 0x45b064
push 0x45b06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x403ee0
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.004026cc
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x45e045], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x403ea8
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405bb8
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 0x405c1e
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.0040419c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402b24
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405c08
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405c25
lea eax, [ebp - 0x10]
call fcn.00403f2c
ret

Function at 0x40ad68
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 0x40ada1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040401c
jmp 0x40adaa
mov eax, ebx
mov edx, esi
call fcn.00403f80
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b45c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b2d4
mov eax, dword [0x45d00c]
cmp byte [eax], 0
je 0x40b4d8
mov eax, dword [0x45cd80]
call fcn.00402990
call fcn.00402834
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.004085c8
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 0x40b520
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b50e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x45cd18]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x45e660]
call fcn.004050cc
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 0x40bd74
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40be4a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00403fc4
lea eax, [ebp - 8]
call fcn.0040443c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004043ec
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40be34
mov eax, ebx
call fcn.004026cc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40be2d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004043ec
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40be17
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40be5c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40be17
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40be34
mov eax, dword [ebp - 0x10]
call fcn.004026ec
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40be51
lea eax, [ebp - 8]
call fcn.00403f2c
ret

Function at 0x40c33c
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 0x40c3a0
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.0040419c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004080ac
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c3a7
lea eax, [ebp - 0xc]
call fcn.00403f2c
ret

Function at 0x41a178
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.00419fd0
dec esi
jne 0x41a19a
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x41b2dc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x45e888
cmp dword [edi], 0
jne 0x41b358
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x45e884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x45b3f8
mov ecx, 2
call fcn.004028c8
mov edx, 0x41b2b4
lea eax, [esi + 5]
call fcn.0041b2d4
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041b2d4
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41b32d
mov dword [0x45e884], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41c220
Capabilities:
Stop service

Disassembly:
push ebx
add esp, 0xffffffe4
test al, al
jne 0x41c257
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
push 0xf01ff
push 0x41c25c
push eax
call sub.advapi32.dll_OpenServiceA
mov ebx, eax
push esp
push 1
push ebx
call sub.advapi32.dll_ControlService
push ebx
call sub.advapi32.dll_CloseServiceHandle
add esp, 0x1c
pop ebx
ret

Function at 0x41c7dc
Capabilities:
Terminate process

Disassembly:
push ebx
test edx, edx
jne 0x41c7e8
call sub.kernel32.dll_GetCurrentThreadId_1
mov edx, eax
push edx
push 0
push 0x401
call sub.kernel32.dll_OpenProcess
mov ebx, eax
test ebx, ebx
je 0x41c809
push 0
push ebx
call sub.kernel32.dll_TerminateProcess
push ebx
call sub.kernel32.dll_CloseHandle
pop ebx
ret

Function at 0x41d67c
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x41d742
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, 1
lea eax, [ebp - 0x10]
mov edx, 0x10
call fcn.004069cc
push edi
call sub.ws2_32.dll_htons
mov word [ebp - 0xe], ax
mov word [ebp - 0x10], 2
push 0
call sub.ws2_32.dll_htonl
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x14]
mov eax, esi
call fcn.00407f34
mov eax, dword [ebp - 0x14]
call fcn.004041ec
push eax
lea edx, [ebp - 0x18]
mov eax, esi
call fcn.00407f34
mov eax, dword [ebp - 0x18]
call fcn.004043ec
push eax
push 4
push 0xffff
push ebx
call sub.ws2_32.dll_setsockopt
push 0x10
lea eax, [ebp - 0x10]
push eax
push ebx
call sub.ws2_32.dll_bind
test eax, eax
jge 0x41d712
xor ebx, ebx
jmp 0x41d727
push 2
push ebx
call sub.ws2_32.dll_listen
test eax, eax
jge 0x41d722
xor ebx, ebx
jmp 0x41d727
mov ebx, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41d749
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00403f50
ret
Function at 0x41d754
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
mov eax, ebx
call fcn.004043ec
push eax
call sub.ws2_32.dll_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.00402b04
test ebx, ebx
je 0x41d79f
mov eax, ebx
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
mov cl, byte [edx]
mov byte [esp + 4], cl
mov cl, byte [edx + 1]
mov byte [esp + 5], cl
mov cl, byte [edx + 2]
mov byte [esp + 6], cl
mov al, byte [edx + 3]
mov byte [esp + 7], al
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp]
pop ecx
pop edx
pop ebx
ret

Function at 0x41d7b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov ebx, eax
xor edx, edx
push ebp
push 0x41d8bc
push dword fs:[edx]
mov dword fs:[edx], esp
call fcn.0041da38
mov dword [ebp - 8], eax
mov byte [ebp - 1], 0
cmp dword [ebp - 8], 0
jne 0x41d7e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41d8c6
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x24], 0
lea edx, [ebp - 0x28]
xor ecx, ecx
mov eax, 0x41d8d8
call fcn.0041ca88
xor edx, edx
push ebp
push 0x41d8a7
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.0041d67c
test eax, eax
jne 0x41d835
mov eax, dword [ebp - 8]
push eax
call sub.ws2_32.dll_closesocket
call fcn.00403908
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41d8c6
mov eax, 0x41d8f4
call fcn.0041cb08
lea eax, [ebp - 0x20]
mov edx, 0x10
call fcn.004069cc
mov dword [ebp - 0xc], 0x10
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ws2_32.dll_accept
cmp eax, 0xffffffff
je 0x41d84c
lea edx, [ebp - 0x10]
push edx
push 0
push eax
push 0x41d020
push 0
push 0
call sub.kernel32.dll_CreateThread_1
test eax, eax
jne 0x41d84c
push eax
call sub.kernel32.dll_CloseHandle
jmp 0x41d84c
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret