joyce8/EMBER2024-capa huggingface dataset:
Function at 0x479504
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 0x4796af
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x479690
mov dl, 1
mov eax, dword [0x419920]
call fcn.00403314
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404158
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x47967f
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.00466ea0
test al, al
je 0x479672
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, 0x4796c0
lea eax, [ebp - 0x254]
call fcn.004098b8
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x479672
xor eax, eax
push ebp
push 0x47966b
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 0x4796f8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x479654
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004043c8
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 0x479654
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004043c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x479672
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x479575
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041e358
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 0x4796b6
lea eax, [ebp - 0x260]
call fcn.00404158
ret

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

Disassembly:
push ecx
mov eax, dword [0x4dfbf4]
cmp byte [eax + 0xa5], 0
jne 0x47a055
cmp dword [0x4dfc0c], 0
jne 0x47a016
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x479fa0
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4dfc0c], eax
cmp dword [0x4dfc08], 0
jne 0x47a031
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4dfc08], eax
cmp dword [0x4dfc10], 0
jne 0x47a055
push esp
push 0
push 0
push 0x479f44
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4dfc10], eax
pop edx
ret
Function at 0x47a14c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x47a163
add esp, 0xfffffff0
call fcn.004036a8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00424ae8
mov eax, dword [0x4debb0]
cmp word [eax + 2], 0
jne 0x47a18b
mov eax, dword [0x4debb0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0047b7e0
mov eax, dword [0x4ded04]
cmp word [eax + 2], 0
jne 0x47a1a5
mov eax, dword [0x4ded04]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0047b9d8
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4192bc]
call fcn.00403314
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4192bc]
call fcn.00403314
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], 0xff000018
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 [0x42708c]
call fcn.0042f140
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x47a32c
mov eax, dword [0x4dea04]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042f510
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x47bf88
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4dea04]
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.0040d298
test eax, eax
je 0x47a29a
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409244
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d2c0
test eax, eax
je 0x47a2ae
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, pe_nt_image_headers32
call fcn.004043c8
mov eax, dword [0x4de770]
cmp byte [eax], 0
jne 0x47a2e2
mov eax, ebx
call fcn.0047a454
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.0047c164
mov eax, ebx
call fcn.0047cb28
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x47a322
call fcn.00403700
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47a6d4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4dfbf4]
cmp dword [eax + 0x30], 0
je 0x47a77e
cmp dword [ebx + 0x94], 0
jne 0x47a778
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x47a664
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x47a778
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 0x47a73e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x47a778
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.0041bc14
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x47a74d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x47b2e0
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 0x47b315
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.00404248
jmp 0x47b322
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004041ac
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x47c340
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x47c381
mov eax, esi
call fcn.00462424
test al, al
je 0x47c381
mov eax, dword [ebx + 0x84]
call fcn.00462120
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x47c381
push 0
mov eax, dword [ebx + 0x84]
call fcn.00462120
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x486230
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x48625e
mov eax, ebx
call fcn.00486ce4
cmp dword [ebx + 0x40], 0
je 0x486257
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4862cf
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4862c1
cmp dword [ebx + 8], 0
je 0x486280
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 0x486292
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4862c1
cmp dword [ebx + 8], 0
je 0x486273
cmp eax, 3
je 0x4862a5
dec eax
jne 0x486273
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 0x486273
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x486273
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4862ed
cmp dword [ebx + 0x14], 0xcc
je 0x4862ed
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.004862f8
pop ebx
ret
Function at 0x49ddac
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x49ddb4
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x49dfa6
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x49dfbc
mov eax, esi
call fcn.0049bc38
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.004041ac
lea ecx, [ebp - 0x10]
mov edx, 0x49dfd0
mov eax, esi
call fcn.0049bc38
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.004041ac
lea ecx, [ebp - 0x14]
mov edx, 0x49dfe8
mov eax, esi
call fcn.0049bc38
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.004041ac
lea ecx, [ebp - 0x18]
mov edx, 0x49e004
mov eax, esi
call fcn.0049bc38
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]

Function at 0x4a4d38
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x4a4d92
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.004a4d28
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.00480e30
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.00480a30
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a4d99
lea eax, [ebp - 4]
call fcn.00404158
ret

Function at 0x4ae734
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc10
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x3f0], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4ae7ee
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404864
mov eax, dword [0x4de884]
cmp byte [eax], 0
je 0x4ae7a3
push esi
call sub.user32.dll_GetWindowTextLengthW
mov edx, eax
inc edx
mov eax, ebx
call fcn.00404bc4
mov eax, dword [ebx]
call fcn.004049f0
push eax
mov eax, dword [ebx]
call fcn.004049e0
push eax
push esi
call sub.user32.dll_GetWindowTextW
mov eax, dword [ebx]
call fcn.004049f0
mov edx, eax
dec edx
mov eax, ebx
call fcn.00404bc4
jmp 0x4ae7d5
lea eax, [ebp - 0x3e9]
push eax
push 0x3e8
push 0xd
push esi
call sub.user32.dll_SendMessageA
lea edx, [ebp - 0x3f0]
lea eax, [ebp - 0x3e9]
call fcn.00409448
mov edx, dword [ebp - 0x3f0]
mov eax, ebx
call fcn.004049d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ae7f5
lea eax, [ebp - 0x3f0]
call fcn.00404158
ret

Function at 0x4b195c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x4b19b6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [esi + 0x2c8], ecx
mov dword [esi + 0x2cc], edx
mov eax, dword [edx + 0x4c]
mov dword [esi + 0x2bc], eax
mov eax, dword [eax + 0x44]
mov dword [esi + 0xc], eax
mov edx, dword [esi + 0x2c8]
mov eax, esi
call fcn.004b19c0
mov eax, dword [esi + 0x2c8]
mov edx, dword [eax + 0x30]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x68]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b19bd
ret
Function at 0x4b72a4
Capabilities:
Capture webcam image

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov edi, edx
mov ebx, eax
mov eax, dword [ebx + 0x50]
push eax
call sub.user32.dll_IsWindow
test eax, eax
jne 0x4b72da
jmp 0x4b7380
push 0xfffffffffffffff0
mov eax, dword [ebx + 0x50]
push eax
call sub.user32.dll_GetWindowLongA
mov esi, eax
mov eax, esp
push eax
push 0
push 0x419
mov eax, dword [ebx + 0x50]
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
test esi, 2
jbe 0x4b731e
mov edx, dword [ebx + 0x4c]
cmp dword [edx + 0x168], 0
je 0x4b731e
mov eax, dword [ebx + 0x4c]
mov eax, dword [eax + 0x168]
mov eax, dword [eax + 0x14]
jmp 0x4b732e
mov edx, dword [ebx + 0x4c]
mov edx, dword [edx + 0x164]
test edx, edx
je 0x4b732e
mov eax, dword [edx + 0x14]
test eax, eax
je 0x4b7347
push eax
push 2
push 5
mov edx, dword [edi + 0x10]
lea ecx, [esp + 0xc]
mov eax, ebx
call fcn.004b3c48
jmp 0x4b7380
mov dl, 1
mov eax, dword [0x4268ec]
call fcn.00428830
mov esi, eax
mov edx, dword [edi + 0x10]
mov eax, esi
call fcn.004292a0
mov eax, dword [ebx + 0x4c]
mov edx, dword [eax + 0xbc]
mov eax, dword [esi + 0x10]
call fcn.004283e0
mov edx, esp
mov eax, esi
call fcn.00428f34
mov eax, esi
call fcn.00403344
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x4b99a0
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
push 0
mov eax, ebx
call fcn.00462120
push eax
call sub.user32.dll_ShowWindow
mov byte [ebx + 0x279], 0
xor edx, edx
mov eax, ebx
call fcn.0045b858
pop ebx
ret
Function at 0x4bfa60
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc10
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x3f0], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4bfb1a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404864
mov eax, dword [0x4de884]
cmp byte [eax], 0
je 0x4bfacf
push esi
call sub.user32.dll_GetWindowTextLengthW
mov edx, eax
inc edx
mov eax, ebx
call fcn.00404bc4
mov eax, dword [ebx]
call fcn.004049f0
push eax
mov eax, dword [ebx]
call fcn.004049e0
push eax
push esi
call sub.user32.dll_GetWindowTextW
mov eax, dword [ebx]
call fcn.004049f0
mov edx, eax
dec edx
mov eax, ebx
call fcn.00404bc4
jmp 0x4bfb01
lea eax, [ebp - 0x3e9]
push eax
push 0x3e8
push 0xd
push esi
call sub.user32.dll_SendMessageA
lea edx, [ebp - 0x3f0]
lea eax, [ebp - 0x3e9]
call fcn.00409448
mov edx, dword [ebp - 0x3f0]
mov eax, ebx
call fcn.004049d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bfb21
lea eax, [ebp - 0x3f0]
call fcn.00404158
ret

Function at 0x4bfb28
Capabilities:
Get graphical window text

Disassembly:
push ebx
add esp, 0xfffffc14
mov ebx, edx
mov edx, esp
push edx
push 0x3e8
push 0xd
push eax
call sub.user32.dll_SendMessageA
mov edx, ebx
mov eax, esp
call fcn.00409448
add esp, 0x3ec
pop ebx
ret

Function at 0x4bfce8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff00
mov esi, edx
mov ebp, eax
mov edx, esi
mov eax, dword [ebp + 0x3c]
call dword [ebp + 0x38]
cmp dword [esi + 0xc], 0
jne 0x4bfdae
push esp
call sub.user32.dll_GetKeyboardState
mov eax, esp
call fcn.004729c4
mov ebx, eax
mov dx, word [esi + 4]
mov eax, ebp
call fcn.004bf9a4
mov edi, eax
test edi, edi
je 0x4bfd47
mov al, byte [0x4bfdbc]
cmp al, bl
jne 0x4bfd47
mov edx, edi
mov eax, ebp
call fcn.004bf8dc
mov dword [esi + 0xc], 1
mov byte [ebp + 0x31], 1
jmp 0x4bfdae
cmp byte [ebp + 0x161], 2
jne 0x4bfd72
mov eax, dword [esi + 8]
push eax
movzx ecx, word [esi + 4]
mov eax, dword [0x4dee60]
mov eax, dword [eax]
mov eax, dword [eax + 0x50]
mov edx, 0xb006
call fcn.0045caec
test eax, eax
jne 0x4bfdae
jmp 0x4bfda9
mov edx, dword [0x4decbc]
mov edx, dword [edx]
mov edx, dword [edx + 0x44]
mov eax, dword [ebp + 0x128]
cmp edx, eax
je 0x4bfda9
test byte [eax + 0x2f4], 8
jne 0x4bfda9
mov eax, dword [esi + 8]
push eax
movzx ecx, word [esi + 4]
mov eax, dword [0x4decbc]
mov eax, edx
mov edx, 0xb006
call fcn.0045caec
xor eax, eax
mov dword [esi + 0xc], eax
add esp, 0x100
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4c5e10
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov esi, edx
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, eax
mov eax, dword [0x4dee60]
mov eax, dword [eax]
cmp dword [eax + 0x64], 0
jne 0x4c5eb6
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebx + 0x80]
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0x84]
cdq
cmp edx, dword [esp + 4]
jne 0x4c5e55
cmp eax, dword [esp]
pop edx
pop eax
jae 0x4c5e91
jmp 0x4c5e59
pop edx
pop eax
jge 0x4c5e91
mov eax, dword [0x4dee60]
mov eax, dword [eax]
mov dword [eax + 0x44], 2
call sub.kernel32.dll_GetTickCount
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.004c0bc0
mov eax, dword [ebx + 0xf4]
test eax, eax
je 0x4c5eb6
mov ecx, dword [esp + 4]
mov edx, dword [esp]
mov ebx, dword [eax]
call dword [ebx + 0x40]
jmp 0x4c5eb6
cmp dword [ebx + 0x11c], 0
je 0x4c5eb6
xor edx, edx
mov eax, dword [ebx + 0x58]
call fcn.00437250
push 0
push 0
push 0x10
mov eax, dword [ebx + 0x12c]
push eax
call sub.user32.dll_PostMessageA
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4d0914
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4d0a85
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0x9c], 1
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
jne 0x4d0a6a
lea eax, [ebp - 0x10d]
push eax
push pe_nt_image_headers32
call sub.kernel32.dll_GetTempPathA
lea edx, [ebp - 8]
lea eax, [ebp - 0x10d]
call fcn.00409448
mov dl, 1
mov eax, dword [0x4a8a60]
call fcn.004a8ab8
mov edx, dword [ebp - 4]
mov dword [edx + 0x94], eax
mov dl, 1
mov eax, dword [0x419c34]
call fcn.00403314
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x98]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x94]
call fcn.004a8b34
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x4d0a67
mov dl, 1
mov eax, dword [0x4a9e70]
call fcn.004a9ed8
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x94]
mov edx, 0x4d0a9c
call fcn.004a90e0
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00404464
xor eax, eax
push ebp
push 0x4d0a60
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
xor ecx, ecx
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
call fcn.004aa1d8
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004d0aa4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d0a67
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x94]
call fcn.00403344
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
call fcn.00403344
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
call fcn.00403344
ret
mov bl, byte [ebp - 0xd]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d0a8c
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.0040417c
ret
Function at 0x4d84c8
Capabilities:
Get disk information
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd0
push ebx
xor edx, edx
mov dword [ebp - 0x22c], edx
mov dword [ebp - 0x230], edx
mov dword [ebp - 0x228], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4d8631
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
push 0x2001f
push 0
push 0x4d8640
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4d8613
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x223]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x4d865c
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4d8592
call sub.kernel32.dll_GetTickCount
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x228]
call fcn.00408b14
mov eax, dword [ebp - 0x228]
call fcn.00404618
mov edx, eax
lea eax, [ebp - 0x223]
call fcn.00409244
lea eax, [ebp - 0x223]
call fcn.00409208
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x223]
push eax
push 1
push 0
push 0x4d865c
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegSetValueExA
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
push pe_nt_image_headers32
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push pe_nt_image_headers32
lea eax, [ebp - 0x118]
push eax
push 0x4d8664
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x4d860c
mov eax, dword [ebp - 4]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x22c]
call fcn.00408b14
mov eax, dword [ebp - 0x22c]
push eax
lea eax, [ebp - 0x230]
lea edx, [ebp - 0x223]
mov ecx, 0xb
call fcn.004043c8
mov ecx, dword [ebp - 0x230]
mov eax, ebx
pop edx
call fcn.00404464
jmp 0x4d8613
mov eax, ebx
call fcn.00404158
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d8638
lea eax, [ebp - 0x230]
mov edx, 3
call fcn.0040417c
ret

Function at 0x4d9574
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe58
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404608
mov eax, dword [ebp - 8]
call fcn.00404608
xor eax, eax
push ebp
push 0x4d962e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x198]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov word [ebp - 0x1a8], 2
mov eax, dword [ebp - 8]
call fcn.00408b64
push eax
call sub.wsock32.dll_htons
mov word [ebp - 0x1a6], ax
mov eax, dword [ebp - 4]
call fcn.00404618
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x4d95fd
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x1a4], eax
push 0x10
lea eax, [ebp - 0x1a8]
push eax
push ebx
call sub.wsock32.dll_connect
test eax, eax
je 0x4d9613
or ebx, 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d9635
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040417c
ret