joyce8/EMBER2024-capa huggingface dataset:
Function at 0x455e84
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x455ebc]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x455e9d
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x455eac
or bl, 4
test esi, 0x20000000
je 0x455eb7
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x45c580
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x45c592
add esp, 0xfffffff0
call fcn.00403a78
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041f834
mov eax, dword [0x49910c]
mov dword [eax + 4], ebx
mov dword [eax], 0x45c924
mov eax, dword [0x49911c]
mov dword [eax + 4], ebx
mov dword [eax], 0x45c930
mov eax, ebx
call fcn.0045c93c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4167e8]
call fcn.00403710
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4167e8]
call fcn.00403710
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4167e8]
call fcn.00403710
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4167e8]
call fcn.00403710
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4167e8]
call fcn.00403710
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x458d54
push eax
push 0
push 0
mov eax, dword [0x499330]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x4212b8]
call fcn.00422af0
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x4212b8]
call fcn.00422af0
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x4212b8]
call fcn.00422af0
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0045cd8c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45cc54
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45cc54
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45cc54
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45c6cf
call fcn.00403ad0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x45ca38
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45cbe3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45cbc4
mov dl, 1
mov eax, dword [0x416e4c]
call fcn.00403710
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404550
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45cbb3
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0044a388
test al, al
je 0x45cba6
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x45cbf4
lea eax, [ebp - 0x254]
call fcn.00409dd8
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45cba6
xor eax, eax
push ebp
push 0x45cb9f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x45cc2c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45cb88
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004047c0
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x45cb88
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004047c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45cba6
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45caa9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041b4b0
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45cbea
lea eax, [ebp - 0x260]
call fcn.00404550
ret

Function at 0x45d52c
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x49ac2c]
cmp byte [eax + 0xa5], 0
jne 0x45d59d
cmp dword [0x49ac44], 0
jne 0x45d55e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45d4e8
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x49ac44], eax
cmp dword [0x49ac40], 0
jne 0x45d579
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x49ac40], eax
cmp dword [0x49ac48], 0
jne 0x45d59d
push esp
push 0
push 0
push 0x45d48c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x49ac48], eax
pop edx
ret
Function at 0x45dc30
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x49ac2c]
cmp dword [eax + 0x30], 0
je 0x45dcda
cmp dword [ebx + 0x94], 0
jne 0x45dcd4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45dbc0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45dcd4
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 0x45dc9a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45dcd4
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.00418e18
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45dca9
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45e838
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 0x45e86d
push pe_nt_image_headers32
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.00404640
jmp 0x45e87a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004045a4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45fa44
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45fa85
mov eax, esi
call fcn.00445970
test al, al
je 0x45fa85
mov eax, dword [ebx + 0x84]
call fcn.0044566c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45fa85
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044566c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x463170
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x46319e
mov eax, ebx
call fcn.00463c24
cmp dword [ebx + 0x40], 0
je 0x463197
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x46320f
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x463201
cmp dword [ebx + 8], 0
je 0x4631c0
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 0x4631d2
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x463201
cmp dword [ebx + 8], 0
je 0x4631b3
cmp eax, 3
je 0x4631e5
dec eax
jne 0x4631b3
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 0x4631b3
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4631b3
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x46322d
cmp dword [ebx + 0x14], 0xcc
je 0x46322d
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.00463238
pop ebx
ret
Function at 0x47e36c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [0x4993f8]
mov eax, dword [eax]
call fcn.0045e64c
cmp byte [ebx + 0x290], 0
je 0x47e3a0
cmp byte [ebx + 0x298], 0
je 0x47e3a0
push 0
mov eax, dword [0x4993f8]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
mov eax, ebx
mov si, 0xffe7
call fcn.00403948
pop esi
pop ebx
ret

Function at 0x47ec0c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x47ed2a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
xor esi, esi
lea ebx, [esi + 0x41]
lea eax, [ebp - 4]
mov edx, 0x47ed40
call fcn.004045e8
lea eax, [ebp - 0x2c]
mov edx, ebx
call fcn.00404738
lea eax, [ebp - 0x2c]
mov edx, 0x47ed4c
call fcn.00404818
mov eax, dword [ebp - 0x2c]
call fcn.00404a10
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp ax, 3
jne 0x47ecc5
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x30]
mov edx, ebx
call fcn.00404738
lea eax, [ebp - 0x30]
mov edx, 0x47ed4c
call fcn.00404818
mov eax, dword [ebp - 0x30]
call fcn.00404a10
push eax
mov eax, dword [0x499264]
mov eax, dword [eax]
call eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
add eax, dword [ebp - 0x20]
adc edx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
inc esi
cmp esi, 0x1a
jne 0x47ec43
fild qword [ebp - 0x10]
fdiv dword [0x47ed50]
fdiv dword [0x47ed50]
fdiv dword [0x47ed50]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea edx, [ebp - 0x34]
mov eax, 0x47ed5c
call fcn.0040a8f8
mov edx, dword [ebp - 0x34]
mov eax, edi
mov ecx, 0x47ed6c
call fcn.0040485c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47ed31
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.00404574
lea eax, [ebp - 4]
call fcn.00404550
ret

Function at 0x47f47c
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov byte [ebp - 2], cl
mov byte [ebp - 1], dl
mov ebx, eax
mov eax, 0x40
call fcn.00402ac0
mov dword [ebp - 8], eax
mov edx, 0x40
mov eax, dword [ebp - 8]
call fcn.004073ec
xor eax, eax
push ebp
push 0x47f501
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebp - 8]
mov byte [esi + 0x30], bl
mov al, byte [ebp + 8]
mov byte [esi + 2], al
mov al, byte [ebp - 1]
mov byte [esi + 0xa], al
mov byte [esi + 0xb], 0
mov al, byte [ebp - 2]
mov byte [esi + 0xc], al
mov byte [esi + 0xd], 0
mov byte [esi], 0x32
mov eax, dword [ebp - 8]
push eax
call sub.netapi32.dll_Netbios
mov al, byte [esi + 0x31]
mov byte [ebp - 3], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47f508
mov edx, 0x40
mov eax, dword [ebp - 8]
call fcn.00402af0
ret
Function at 0x484a98
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x415d98]
call fcn.00404eec
xor eax, eax
push ebp
push 0x484bdc
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x498e50], 0
jne 0x484aeb
mov ecx, dword [0x498fcc]
mov dl, 1
mov eax, dword [0x407d3c]
call fcn.0040ccf8
call fcn.00403ee0
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00403150
mov eax, ebx
call fcn.00404db8
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x484bec
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00405fa8
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404dc8
test eax, eax
jle 0x484b83
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x484b7c
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.004047d8
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.004047c0
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00408c20
test eax, eax
jne 0x484b7c
mov ebx, 0x15
jmp 0x484b88
mov ebx, 0x10
jmp 0x484b88
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x498e50]
call fcn.004849f0
mov eax, dword [ebp - 8]
call fcn.004849f0
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00405fc0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x484be3
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404574
lea eax, [ebp - 0x10]
mov edx, dword [0x415d98]
call fcn.00404fbc
ret

Function at 0x48d63c
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
xor edx, edx
mov dword [ebp - 0x108], edx
mov dword [ebp - 0x10c], edx
mov dword [ebp - 0x110], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x48d709
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xff
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetComputerNameA
push 0x48d720
mov eax, dword [0x499354]
mov eax, dword [eax]
push dword [eax + 0x544]
push 0x48d734
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x104]
mov ecx, pe_nt_image_headers32
call fcn.004047c0
push dword [ebp - 0x10c]
push 0x48d748
lea eax, [ebp - 0x110]
call fcn.00490830
push dword [ebp - 0x110]
lea eax, [ebp - 0x108]
mov edx, 6
call fcn.004048d0
mov edx, dword [ebp - 0x108]
mov eax, dword [ebx + 0x368]
call fcn.0043ee88
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48d710
lea eax, [ebp - 0x110]
mov edx, 3
call fcn.00404574
ret
Function at 0x48f17c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov ecx, 7
push 0
push 0
dec ecx
jne 0x48f184
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x48f315
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x18]
mov eax, dword [0x4993f8]
mov eax, dword [eax]
call fcn.0045f3f4
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.0040958c
lea eax, [ebp - 0x14]
mov edx, 0x48f32c
call fcn.00404818
mov eax, dword [ebp - 0x14]
call fcn.004093e0
test al, al
je 0x48f214
lea edx, [ebp - 0x20]
mov eax, dword [0x4993f8]
mov eax, dword [eax]
call fcn.0045f3f4
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call fcn.0040958c
lea eax, [ebp - 0x1c]
mov edx, 0x48f32c
call fcn.00404818
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x2f8]
mov eax, dword [eax + 0x168]
call fcn.00425cac
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x24]
xor eax, eax
call fcn.00402e84
mov eax, dword [ebp - 0x24]
call fcn.00404a10
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov esi, eax
mov eax, esi
call fcn.00402ac0
mov edi, eax
push edi
push esi
push 0
lea edx, [ebp - 0x28]
xor eax, eax
call fcn.00402e84
mov eax, dword [ebp - 0x28]
call fcn.00404a10
push eax
call sub.version.dll_GetFileVersionInfoA
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x48f338
push edi
call sub.version.dll_VerQueryValueA
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebx + 8]
shr eax, 0x10
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x30]
call fcn.00408f90
push dword [ebp - 0x30]
push 0x48f344
mov eax, dword [ebx + 8]
and eax, 0xffff
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x34]
call fcn.00408f90
push dword [ebp - 0x34]
push 0x48f344
mov eax, dword [ebx + 0xc]
shr eax, 0x10
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x38]
call fcn.00408f90
push dword [ebp - 0x38]
push 0x48f344
mov eax, dword [ebx + 0xc]
and eax, 0xffff
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x3c]
call fcn.00408f90
push dword [ebp - 0x3c]
lea eax, [ebp - 0x2c]
mov edx, 7
call fcn.004048d0
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov ecx, 0xff
call fcn.004047ec
mov edx, esi
mov eax, edi
call fcn.00402af0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48f31c
lea eax, [ebp - 0x3c]
mov edx, 0xb
call fcn.00404574
ret
Function at 0x48fc70
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 8
add esp, 0xfffff004
push eax
dec eax
jne 0x48fc79
mov eax, dword [ebp - 4]
add esp, 0xfffffff0
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
push 0
push 0
push 0
push 1
push 0x48fdbc
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], 0
je 0x48fdb1
xor eax, eax
push ebp
push 0x48fdaa
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x80000000
push 0
push 0
mov eax, ebx
call fcn.00404a10
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetOpenUrlA
mov dword [ebp - 8], eax
xor ebx, ebx
mov dword [ebp - 4], 0xfffffffe
push 0xffff
mov ecx, esi
mov dl, 1
mov eax, dword [0x417070]
call fcn.0041ba14
mov dword [ebp - 0x14], eax
cmp dword [ebp - 8], 0
je 0x48fd94
xor eax, eax
push ebp
push 0x48fd8d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xfffffffd
mov esi, 0x8000
mov eax, dword [0x4993f8]
mov eax, dword [eax]
call fcn.0045eb78
jmp 0x48fd54
add ebx, dword [ebp - 0xc]
lea edx, [ebp - 0x8014]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0x10]
mov eax, dword [0x4993f8]
mov eax, dword [eax]
call fcn.0045eb78
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 0x8014]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetReadFile
test eax, eax
je 0x48fd73
cmp dword [ebp - 0xc], 0
ja 0x48fd34
mov dword [ebp - 4], ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48fd94
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48fdb1
mov eax, dword [ebp - 0x14]
call fcn.00403740
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x48fdc4
Capabilities:
Check os version

Disassembly:
push ebx
add esp, 0xffffff6c
mov ebx, eax
mov eax, esp
mov edx, 0x94
call fcn.004073ec
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
mov eax, ebx
mov edx, 0x48feb8
call fcn.004045a4
cmp dword [esp + 0x10], 2
jne 0x48fe55
mov eax, dword [esp + 4]
sub eax, 3
je 0x48fe0d
dec eax
je 0x48fe1e
dec eax
je 0x48fe2c
jmp 0x48fea7
mov eax, ebx
mov edx, 0x48fed0
call fcn.004045a4
jmp 0x48fea7
mov eax, ebx
mov edx, 0x48fee8
call fcn.004045a4
jmp 0x48fea7
mov eax, dword [esp + 8]
sub eax, 1
jb 0x48fe39
je 0x48fe47
jmp 0x48fea7
mov eax, ebx
mov edx, 0x48ff00
call fcn.004045a4
jmp 0x48fea7
mov eax, ebx
mov edx, 0x48ff18
call fcn.004045a4
jmp 0x48fea7
cmp dword [esp + 4], 4
jne 0x48fe71
cmp dword [esp + 8], 0
jne 0x48fe71
mov eax, ebx
mov edx, 0x48ff2c
call fcn.004045a4
jmp 0x48fea7
cmp dword [esp + 4], 4
jne 0x48fe8d
cmp dword [esp + 8], 0xa
jne 0x48fe8d
mov eax, ebx
mov edx, 0x48ff40
call fcn.004045a4
jmp 0x48fea7
cmp dword [esp + 4], 4
jne 0x48fea7
cmp dword [esp + 8], 0x5a
jne 0x48fea7
mov eax, ebx
mov edx, 0x48ff54
call fcn.004045a4
add esp, 0x94
pop ebx
ret
Function at 0x490764
Capabilities:
Shutdown system

Disassembly:
push ebx
add esp, 0xffffffe8
mov ebx, eax
mov edx, 0x49080c
mov eax, dword [0x49af9c]
call fcn.00490d40
mov eax, dword [0x4993f8]
mov eax, dword [eax]
call fcn.0045eb78
push 0x12c
call sub.kernel32.dll_Sleep_1
push esp
push 0xf00ff
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x4907fc
lea eax, [esp + 0xc]
push eax
push 0x49081c
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
mov dword [esp + 8], 1
mov dword [esp + 0x14], 2
xor eax, eax
mov dword [esp + 4], eax
lea eax, [esp + 4]
push eax
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x4907fc
push 0
push ebx
call sub.user32.dll_ExitWindowsEx
add esp, 0x18
pop ebx
ret

Function at 0x490830
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe04
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x49093f
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x490922
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1dc]
push eax
push 2
call sub.wsock32.dll_WSAStartup
push 0x40
lea eax, [ebp - 0x4c]
push eax
call sub.wsock32.dll_gethostname
lea eax, [ebp - 0x4c]
push eax
call sub.wsock32.dll_gethostbyname
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x490892
call fcn.00403f8c
jmp 0x490929
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
mov dword [ebp - 0x1fc], eax
mov byte [ebp - 0x1f8], 0
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 1]
mov dword [ebp - 0x1f4], eax
mov byte [ebp - 0x1f0], 0
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 2]
mov dword [ebp - 0x1ec], eax
mov byte [ebp - 0x1e8], 0
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 3]
mov dword [ebp - 0x1e4], eax
mov byte [ebp - 0x1e0], 0
lea edx, [ebp - 0x1fc]
mov ecx, 3
mov eax, 0x490954
call fcn.00409e70
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004045a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x490929
call sub.wsock32.dll_WSACleanup
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x490946
lea eax, [ebp - 8]
call fcn.00404550
ret

Function at 0x490e30
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, eax
mov dword [ebp - 8], 0xff
mov eax, dword [ebp - 8]
call fcn.00402ac0
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x490e92
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
jne 0x490e72
mov eax, 0x490ea0
mov dword [ebp - 4], eax
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00404748
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x490e99
mov eax, dword [ebp - 4]
call fcn.00402af0
ret