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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c8f68
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x642490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x60], 0
lea ecx, [ebp - 0x5c]
call fcn.00410520
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x64]
movzx ecx, byte [eax + 0x4e]
test ecx, ecx
je 0x45aa05
mov dword [ebp - 0x68], 1
jmp 0x45aa0c
mov dword [ebp - 0x68], 0
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x14], edx
push 4
lea eax, [ebp - 0x14]
push eax
push 1
push 6
mov ecx, dword [ebp - 0x64]
mov edx, dword [ecx + 0x30]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov byte [ebp - 0x5c], 1
push 0x615283
lea ecx, [ebp - 0x58]
call fcn.00408bc0
lea eax, [ebp - 0x5c]
push eax
mov ecx, dword [ebp + 8]
call fcn.0041b560
mov ecx, dword [ebp - 0x60]
or ecx, 1
mov dword [ebp - 0x60], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.00409aa0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00588661
mov esp, ebp
pop ebp
ret 4
Function at 0x46fb75
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x46fbba
call fcn.0047a575
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x46fbba
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x46fbd6
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0047a70e
mov ebx, eax
test edi, edi
je 0x46fbd4
test esi, esi
je 0x46fbd4
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x475f5b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.0047a575
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x475f92
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.00475fb3
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4f0c5d
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.004799c8
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x4f0c99
call fcn.004f0e7c
mov dword [esi + 0xc], 1
jmp 0x4f0c9e
call fcn.004f0e7c
cmp dword [esi], 0
je 0x4f0ce7
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x4f0cc1
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.0046fc2d
jmp 0x4f0cd2
push 0xff
mov ecx, esi
call fcn.00413cc0
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.0046db1d
jmp 0x4f0d0b
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x4f0d0b
push dword [esi]
push dword [ebp - 4]
call fcn.0047d0fa
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4f0dd1
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.004f0e7c
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4f0e19
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0046fc2d
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0046db1d
jmp 0x4f0e24
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0047d0fa
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x553556
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.005843a9
call fcn.0047a5c9
cmp dword [eax + 0x14], 0
jne 0x553571
mov ecx, esi
pop esi
jmp fcn.0055295c
pop esi
ret

Function at 0x55fd3d
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.004c0943
call fcn.0047a5c9
cmp dword [eax + 0x14], 0
jne 0x55fd58
mov ecx, esi
pop esi
jmp fcn.0055f626
pop esi
ret
Function at 0x5a07f5
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x642490]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00592dee
mov dword [ebp - 0x14], eax
cmp dword [0x64f8c8], esi
jne 0x5a08e8
push 0x800
push esi
push 0x60b170
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x5a0875
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x5a09c8
push esi
push esi
push 0x60b170
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x5a09c8
push 0x60b188
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x5a09c8
push eax
call ebx
push 0x60b194
push edi
mov dword [0x64f8c8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x60b1a4
push edi
mov dword [0x64f8cc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x64f8d0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x64f8d8], eax
test eax, eax
je 0x5a08e5
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x64f8d4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x5a090d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x5a0900
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x5a0922
push 4
pop eax
jmp 0x5a09ca
cmp dword [ebp - 0x14], esi
je 0x5a0922
push dword [0x64f8c8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x5a0907
mov eax, dword [0x64f8d4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x5a0980
cmp dword [0x64f8d8], edi
je 0x5a0980
push eax
call ebx
push dword [0x64f8d8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x5a0980
test eax, eax
je 0x5a0980
call ecx
test eax, eax
je 0x5a0975
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x5a0975
test byte [ebp - 8], 1
jne 0x5a0980
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x5a09b0
mov eax, dword [0x64f8cc]
cmp eax, edi
je 0x5a09ad
push eax
call ebx
test eax, eax
je 0x5a09ad
call eax
mov esi, eax
test esi, esi
je 0x5a09ad
mov eax, dword [0x64f8d0]
cmp eax, edi
je 0x5a09ad
push eax
call ebx
test eax, eax
je 0x5a09ad
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x64f8c8]
call ebx
test eax, eax
je 0x5a09c8
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x5a09ca
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00588661
mov esp, ebp
pop ebp
ret
Function at 0x5b06b2
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x418010
Capabilities:
Query or enumerate registry value

Disassembly:
mov al, byte [0x634042]
mov ecx, dword [0x634034]
sub esp, 0x14
mov edx, dword [0x63403c]
and ecx, 4
and edx, 0xc
push ebx
mov bl, byte [0x634049]
xor bl, al
mov eax, dword [0x634030]
add eax, ecx
mov ecx, dword [0x634038]
mov dword [0x634030], eax
mov eax, dword [0x634048]
and eax, 0xff
push esi
imul edx, eax
xor ecx, edx
push 0
mov byte [0x634049], bl
mov dword [0x634038], ecx
call sub.comdlg32.dll_FindTextW
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x637c3c
mov esi, eax
call fcn.00629cfa
add esp, 4
test eax, eax
je 0x418089
pop esi
xor eax, eax
pop ebx
add esp, 0x14
ret
mov ecx, dword [0x634030]
mov eax, dword [0x634034]
mov dword [esp + 0x18], 0
mov ebx, 1
lea edx, [ecx + ecx]
mov dword [esp + 8], 0
or edx, eax
lea eax, [esp + 8]
mov dword [esp + 0x14], edx
push eax
fild qword [esp + 0x18]
push ebx
push 0
push str.CLSIDa893aa73_054f_4dbc_9e53_f4ee5fe07fd3InProcServer32
push SysReAllocStringLen
fadd qword [0x634058]
fstp qword [0x634058]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov dword [0x63cf5c], eax
jne 0x418152
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
push ecx
push 0x637c3c
push edx
push eax
mov dword [esp + 0x1c], eax
push eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x24], 0x208
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov dword [0x63cf5c], eax
jne 0x41811a
cmp dword [esp + 0xc], ebx
je 0x41811c
xor bl, bl
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x418133
pop esi
xor eax, eax
pop ebx
add esp, 0x14
ret
mov eax, dword [0x63cf5c]
test eax, eax
jne 0x418152
test esi, esi
jle 0x41814c
and esi, 0xffff
or esi, 0x80070000
mov dword [0x63cf5c], esi
pop esi
mov eax, 0x80004005
pop ebx
add esp, 0x14
ret
Function at 0x62b0e5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x6343e8
cmp edx, dword [eax]
je 0x62b107
add eax, 8
inc ecx
cmp eax, 0x634478
jl 0x62b0f8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x6343e8]
jne 0x62b235
mov eax, dword [0x63cf74]
cmp eax, 1
je 0x62b20f
test eax, eax
jne 0x62b138
cmp dword [0x634310], 1
je 0x62b20f
cmp edx, 0xfc
je 0x62b235
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x62b16f
lea eax, [ebp - 0x1a4]
push 0x630be0
push eax
call fcn.0062bad0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0062bf60
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x62b1b2
lea eax, [ebp - 0x1a4]
push eax
call fcn.0062bf60
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x630bdc
push edi
call fcn.0062de30
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x630bc0
push eax
call fcn.0062bad0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0062bae0
lea eax, [ebp - 0xa0]
push 0x630bbc
push eax
call fcn.0062bae0
push dword [esi + 0x6343ec]
lea eax, [ebp - 0xa0]
push eax
call fcn.0062bae0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x630b94
push eax
call fcn.0062dda4
add esp, 0x2c
pop edi
jmp 0x62b235
lea eax, [ebp + 8]
lea esi, [esi + 0x6343ec]
push 0
push eax
push dword [esi]
call fcn.0062bf60
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x45c523
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x67706c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
xor edi, edi
cmp byte [0x6811b4], 0
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
jne 0x45c595
push 0x664c74
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x45c587
push str.GlobalMemoryStatusEx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x6811b0], eax
jmp 0x45c58c
mov eax, dword [0x6811b0]
mov byte [0x6811b4], 1
jmp 0x45c59a
mov eax, dword [0x6811b0]
test eax, eax
je 0x45c5f4
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x48], 0x40
push ecx
call eax
mov eax, dword [ebp - 0x40]
mov dword [esi], eax
mov eax, dword [ebp - 0x3c]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x34]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x30]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x28]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x28], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x2c], eax
jmp 0x45c63a
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x20
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword [esi], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x20], ecx
mov ecx, dword [ebp - 0xc]
mov dword [esi + 4], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00487463
leave
ret
Function at 0x45d88c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x4c
mov eax, 0x59055d
call fcn.00487e33
and dword [ebp - 4], 0
xor esi, esi
and dword [ebp - 0x54], 0
mov dword [ebp - 0x50], esi
xor ebx, ebx
lea ecx, [ebp + 8]
inc ebx
mov byte [ebp - 4], bl
call fcn.0045d46c
test al, al
je 0x45d8fa
push ebx
call fcn.00487725
mov esi, eax
pop ecx
mov dword [ebp - 0x48], esi
mov byte [ebp - 4], 2
mov ecx, dword [0x6811d8]
test ecx, ecx
je 0x45d8d7
push ecx
call fcn.0046a8c6
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x4c]
and dword [ebp - 0x48], 0
push dword [ebp - 0x48]
and dword [ebp - 0x4c], 0
push esi
call fcn.0045dfa6
mov eax, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x48]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], esi
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp + 8]
call fcn.0045ce22
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 4
call fcn.00453190
push 0
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00583040
add esp, 0xc
lea ecx, [ebp - 0x44]
call fcn.0044e0e0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.0044e0e0
cmp dword [ebp - 0x4c], 3
je 0x45d98a
cmp dword [ebp - 0x4c], 9
jne 0x45d977
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp + 8]
call fcn.0045ce22
cmp dword [eax + 0x14], 8
jb 0x45d961
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [ebp - 0x2c]
mov edi, eax
call fcn.0044e0e0
cmp edi, 0xffffffff
jne 0x45d97f
test esi, esi
je 0x45d9a9
mov ecx, esi
jmp 0x45d9a4
mov eax, 0x410
and edi, eax
cmp edi, eax
jne 0x45d977
test esi, esi
je 0x45d9ab
mov ecx, esi
call fcn.004599df
jmp 0x45d9ab
call fcn.004599df
xor bl, bl
lea ecx, [ebp + 8]
call fcn.0044e0e0
mov al, bl
call fcn.00487d80
ret

Function at 0x4609f5
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x6811c0]
sub esp, 0x24
test eax, eax
jne 0x460a25
push 0x24
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00497f00
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x20]
mov dword [0x6811c0], eax
leave
ret

Function at 0x460a27
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x6811bc]
sub esp, 0x24
test eax, eax
jne 0x460a57
push 0x24
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00497f00
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 8]
mov dword [0x6811bc], eax
leave
ret
Function at 0x4702a0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
sub esp, 0x28
mov eax, dword [0x67706c]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push 0x6810e4
mov edx, str.SYSTEMCurrentControlSetServices_
lea ecx, [esp + 0x10]
call fcn.00450a80
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x4702cd
mov eax, dword [eax]
lea ecx, [esp + 8]
push ecx
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov edx, dword [esp + 0x20]
test eax, eax
setne bl
cmp edx, 8
jb 0x47031b
mov ecx, dword [esp + 0xc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x470311
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x470381
push edx
push ecx
call fcn.00487ad0
add esp, 8
test bl, bl
je 0x470331
xor al, al
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00487463
add esp, 0x28
ret
cmp dword [0x678bcc], 8
mov ecx, 0x678bb8
mov eax, dword [0x678bc8]
cmovae ecx, dword [0x678bb8]
add eax, eax
push eax
push ecx
push 1
push 0
push str.Description
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [esp + 8]
test eax, eax
sete bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x24]
mov al, bl
pop ebx
xor ecx, esp
call fcn.00487463
add esp, 0x28
ret
call fcn.004a0555
int3

Function at 0x471150
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x591e38
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
mov eax, dword [0x67706c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esi + 0xc]
mov byte [ebp - 0x10], 0
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
call fcn.00455908
push 0
push 0
push 0
push 0xa
push 0
push 0
push 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
push 0
mov byte [esi + 8], 1
call fcn.004678f1
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [esi + 0x1c]
call fcn.00471220
test al, al
je 0x471217
mov dword [ebp - 4], 1
cmp byte [ebp - 0x10], 0
je 0x471207
mov edx, dword [ebp - 0x14]
add dword [edx], 0xffffffff
jne 0x471207
xor ecx, ecx
lea eax, [edx + 4]
xchg dword [eax], ecx
lea ecx, [edx + 8]
mov eax, closesocket
lock xadd dword [ecx], eax
test eax, 0x40000000
jne 0x471207
cmp eax, 0x80000000
jle 0x471207
lock bts dword [ecx], 0x1e
jb 0x471207
call fcn.0044835b
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0
call fcn.004aaab7
int3
Function at 0x4726f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push 0
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x47273e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
cmp dword [esi], 0xffffffff
je 0x472724
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
cmp eax, dword [esi]
ja 0x47273e
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x472712
mov eax, esi
pop esi
leave
ret

Function at 0x472759
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [esi], 0x3e8
mov word [esi + 4], bx
mov dword [esi + 8], ebx
cmp dword [eax + 0x14], 8
jb 0x47277a
mov eax, dword [eax]
push eax
push ebx
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov dword [esi + 8], eax
test eax, eax
je 0x4727dd
push ebx
push eax
mov byte [esi + 4], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x4727d4
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov dword [ebp + 8], eax
cmp dword [esi], 0xffffffff
je 0x4727ba
call ebx
sub eax, dword [ebp + 8]
cmp eax, dword [esi]
ja 0x4727d4
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4727ac
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x472b67
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push eax
push eax
push eax
push 4
cmp byte [ebp + 8], al
je 0x472b7b
add ecx, 0x50
jmp 0x472b7e
add ecx, 4
mov eax, dword [ecx]
call dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
pop ebp
ret 4

Function at 0x472d32
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0xbc], 0
je 0x472d42
xor al, al
pop esi
ret
xor ecx, ecx
lea eax, [esi + 4]
push ecx
push ecx
push eax
push 0x4733f7
push ecx
push ecx
mov byte [esi + 0xc], cl
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0x20], eax
pop esi
setne al
ret

Function at 0x472d64
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp byte [esi + 0xc], 0
jne 0x472da8
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x472d97
push 0
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 0x20], 0
mov byte [esi + 0xc], 1
mov al, 1
pop esi
pop ebp
ret 4
Function at 0x473e6d
Capabilities:
Create thread

Disassembly:
push ebx
push esi
xor ebx, ebx
push edi
mov edi, ecx
push ebx
push ebx
push ebx
mov dword [edi], ebx
lea esi, [edi + 8]
mov dword [edi + 4], ebx
mov dword [esi], edi
mov dword [esi + 4], 0x473ec0
mov dword [edi + 0x10], ebx
mov word [edi + 0x30], bx
mov dword [edi + 0x34], ebx
mov dword [edi + 0x38], ebx
push ebx
mov dword [edi + 0x3c], ebx
mov dword [edi + 0x40], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push esi
push 0x4733f7
push ebx
push ebx
mov dword [edi + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi], eax
mov eax, edi
mov byte [edi + 0x30], bl
pop edi
pop esi
pop ebx
ret

Function at 0x4b68cf
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004b623d

Function at 0x4b68da
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004b6478