joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46875c
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 0x468907
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4688e8
mov dl, 1
mov eax, dword [0x41a900]
call fcn.00403cfc
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404c6c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4688d7
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.00459510
test al, al
je 0x4688ca
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, 0x468918
lea eax, [ebp - 0x254]
call fcn.0040a8bc
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4688ca
xor eax, eax
push ebp
push 0x4688c3
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 0x468950
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4688ac
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404edc
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 0x4688ac
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404edc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4688ca
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4687cd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.0041f32c
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 0x46890e
lea eax, [ebp - 0x260]
call fcn.00404c6c
ret

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

Disassembly:
push ecx
mov eax, dword [0x4cdcd4]
cmp byte [eax + 0xad], 0
jne 0x469339
cmp dword [0x4cdcf0], 0
jne 0x4692fa
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x469284
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4cdcf0], eax
cmp dword [0x4cdcec], 0
jne 0x469315
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4cdcec], eax
cmp dword [0x4cdcf4], 0
jne 0x469339
push esp
push 0
push 0
push 0x469228
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4cdcf4], eax
pop edx
ret
Function at 0x46954c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x469563
add esp, 0xfffffff0
call fcn.00404050
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00423c7c
mov eax, dword [0x4c83f4]
cmp word [eax + 2], 0
jne 0x46958b
mov eax, dword [0x4c83f4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046b294
mov eax, dword [0x4c8528]
cmp word [eax + 2], 0
jne 0x4695a5
mov eax, dword [0x4c8528]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046b4a0
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41a294]
call fcn.00403cfc
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41a294]
call fcn.00403cfc
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x41a294]
call fcn.00403cfc
mov dword [ebx + 0xb0], 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 + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x42b238]
call fcn.00433064
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x46975c
mov eax, dword [0x4c825c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00433438
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x46bb74
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4c825c]
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.0040eb28
test eax, eax
je 0x4696ac
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409ed8
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040eb5c
test eax, eax
je 0x4696c0
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404edc
mov byte [ebx + 0xd4], 0
push ebx
push 0x46ad20
call fcn.00424df8
mov dword [ebx + 0xc8], eax
mov eax, dword [0x4c803c]
cmp byte [eax], 0
jne 0x469711
mov eax, ebx
call fcn.004698a0
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.0046bd88
mov eax, ebx
call fcn.0046c8ec
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x469751
call fcn.004040a8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x469b20
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x469bbf
cmp dword [ebx + 0x94], 0
jne 0x469bb9
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x469aa8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x469bb9
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 0x469b7f
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x469bb9
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.0041c964
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x469b8e
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x469dd8
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x4cdcd4]
cmp dword [eax + 0x30], 0
je 0x469f35
test bl, bl
jne 0x469e86
cmp dword [esi + 0x9c], 0
jne 0x469e7b
mov eax, esi
call fcn.0046c768
push eax
push 0x469d04
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x469e4c
mov eax, dword [0x4cdcd4]
call fcn.0046ce48
test al, al
je 0x469e4c
mov eax, dword [0x4cdcf8]
call fcn.00405f28
mov edi, eax
cmp edi, 0
jl 0x469e4c
push 0
mov eax, dword [0x4cdcf8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x469e36
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x469e7b
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0041c964
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x469e5b
inc dword [esi + 0x9c]
jmp 0x469f35
cmp dword [esi + 0x9c], 0
jle 0x469f35
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x469f35
cmp dword [esi + 0x44], 0
je 0x469ee1
mov eax, dword [0x4cdcd4]
call fcn.0046ce48
test al, al
je 0x469ee1
mov eax, dword [0x4cdcf8]
call fcn.00405f28
mov edi, eax
cmp edi, 0
jl 0x469ee1
push 5
mov eax, dword [0x4cdcf8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x469ecb
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x469f10
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0041c964
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x469ef0
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x4cdcf8
mov ecx, 1
mov edx, dword [0x469ce4]
call fcn.004060dc
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x46aa1c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x46aa86
mov eax, ebx
call fcn.0046ce48
test al, al
jne 0x46aa86
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.00404d5c
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x46aa73
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x46aa93
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404cc0
jmp 0x46aa93
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404cc0
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x46bf6c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x46bfda
mov eax, esi
call fcn.004541ac
test al, al
je 0x46bfda
mov eax, dword [ebx + 0x84]
call fcn.00453e0c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x46bfda
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x46bfce
push 0
mov eax, dword [ebx + 0x84]
call fcn.00453e0c
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0044bc7c
jmp 0x46bfda
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.0046bda8
pop esi
pop ebx
ret

Function at 0x4708f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp - 4]
inc ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.0042d1d0
cmp ebx, dword [ebp - 8]
jge 0x470957
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.0042d5e4
mov edi, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.0042d5e4
xor edi, eax
push edi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.0042d610
add ebx, 2
cmp ebx, dword [ebp - 8]
jl 0x47091d
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x470960
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp - 4]
inc ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.0042d1d0
cmp ebx, dword [ebp - 8]
jge 0x4709c3
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.0042d5e4
mov edi, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.0042d5e4
xor edi, eax
push edi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.0042d610
add ebx, 2
cmp ebx, dword [ebp - 8]
jl 0x470989
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x4a89ec
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 0x4a8a46
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.004a89dc
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.004a62cc
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.004a5de4
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 0x4a8a4d
lea eax, [ebp - 4]
call fcn.00404c6c
ret
Function at 0x4b0ebc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff4
mov ecx, dword [eax]
mov dword [edx], ecx
lea ecx, [eax + 4]
mov ecx, dword [ecx]
mov dword [edx + 4], ecx
lea ecx, [eax + 8]
mov ecx, dword [ecx]
mov dword [edx + 8], ecx
lea ecx, [eax + 0xc]
mov ecx, dword [ecx]
mov dword [edx + 0xc], ecx
lea ecx, [eax + 0x10]
mov ecx, dword [ecx]
mov dword [edx + 0x10], ecx
add eax, 0x14
mov eax, dword [eax]
mov dword [edx + 0x14], eax
xor eax, eax
mov dword [esp], 1
mov ecx, dword [edx + eax*4 + 0x14]
mov ebx, ecx
shl ebx, 0x18
shr ecx, 8
or ebx, ecx
mov ecx, ebx
movzx ebx, cl
mov ebx, dword [ebx*4 + str.cwko0]
mov dword [esp + 4], ebx
mov ebx, ecx
shr ebx, 8
movzx ebx, bl
mov esi, dword [ebx*4 + str.cwko0]
mov ebx, ecx
shr ebx, 0x10
movzx ebx, bl
mov ebx, dword [ebx*4 + str.cwko0]
mov dword [esp + 8], ebx
shr ecx, 0x18
movzx ecx, cl
mov ecx, dword [ecx*4 + str.cwko0]
mov ebx, esi
shl ebx, 8
shr esi, 0x18
or ebx, esi
xor ebx, dword [esp + 4]
mov esi, dword [esp + 8]
shl esi, 0x10
mov edi, dword [esp + 8]
shr edi, 0x10
or esi, edi
xor ebx, esi
mov esi, ecx
shl esi, 0x18
shr ecx, 8
or esi, ecx
xor ebx, esi
xor ebx, dword [edx + eax*4]
mov ecx, dword [esp]
xor ebx, dword [ecx*4 + 0x4c6d7c]
mov dword [edx + eax*4 + 0x18], ebx
inc dword [esp]
mov ecx, dword [edx + eax*4 + 4]
xor ecx, dword [edx + eax*4 + 0x18]
mov dword [edx + eax*4 + 0x1c], ecx
mov ebx, dword [edx + eax*4 + 8]
xor ebx, ecx
mov dword [edx + eax*4 + 0x20], ebx
mov ecx, dword [edx + eax*4 + 0xc]
xor ecx, ebx
mov dword [edx + eax*4 + 0x24], ecx
mov ebx, dword [edx + eax*4 + 0x10]
xor ebx, ecx
mov dword [edx + eax*4 + 0x28], ebx
mov ecx, dword [edx + eax*4 + 0x14]
xor ecx, ebx
mov dword [edx + eax*4 + 0x2c], ecx
add eax, 6
cmp eax, 0x2e
jl 0x4b0ef7
add esp, 0xc
pop edi
pop esi
pop ebx
ret
Function at 0x4b0fcc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff4
mov ecx, dword [eax]
mov dword [edx], ecx
lea ecx, [eax + 4]
mov ecx, dword [ecx]
mov dword [edx + 4], ecx
lea ecx, [eax + 8]
mov ecx, dword [ecx]
mov dword [edx + 8], ecx
lea ecx, [eax + 0xc]
mov ecx, dword [ecx]
mov dword [edx + 0xc], ecx
lea ecx, [eax + 0x10]
mov ecx, dword [ecx]
mov dword [edx + 0x10], ecx
lea ecx, [eax + 0x14]
mov ecx, dword [ecx]
mov dword [edx + 0x14], ecx
lea ecx, [eax + 0x18]
mov ecx, dword [ecx]
mov dword [edx + 0x18], ecx
add eax, 0x1c
mov eax, dword [eax]
mov dword [edx + 0x1c], eax
xor eax, eax
mov dword [esp], 1
mov ecx, dword [edx + eax*4 + 0x1c]
mov edi, ecx
shl edi, 0x18
shr ecx, 8
or edi, ecx
mov ecx, edi
movzx ecx, cl
mov ecx, dword [ecx*4 + str.cwko0]
mov dword [esp + 4], ecx
mov ecx, edi
shr ecx, 8
movzx ecx, cl
mov ecx, dword [ecx*4 + str.cwko0]
mov ebx, edi
shr ebx, 0x10
movzx ebx, bl
mov esi, dword [ebx*4 + str.cwko0]
mov ebx, edi
shr ebx, 0x18
movzx ebx, bl
mov ebx, dword [ebx*4 + str.cwko0]
mov dword [esp + 8], ebx
mov ebx, ecx
shl ebx, 8
shr ecx, 0x18
or ebx, ecx
xor ebx, dword [esp + 4]
mov ecx, esi
shl ecx, 0x10
shr esi, 0x10
or ecx, esi
xor ebx, ecx
mov ecx, dword [esp + 8]
shl ecx, 0x18
mov esi, dword [esp + 8]
shr esi, 8
or ecx, esi
xor ebx, ecx
xor ebx, dword [edx + eax*4]
mov ecx, dword [esp]
xor ebx, dword [ecx*4 + 0x4c6d7c]
mov dword [edx + eax*4 + 0x20], ebx
inc dword [esp]
mov ecx, dword [edx + eax*4 + 4]
xor ecx, dword [edx + eax*4 + 0x20]
mov dword [edx + eax*4 + 0x24], ecx
mov ebx, dword [edx + eax*4 + 8]
xor ebx, ecx
mov dword [edx + eax*4 + 0x28], ebx
mov edi, dword [edx + eax*4 + 0xc]
xor edi, ebx
mov dword [edx + eax*4 + 0x2c], edi
movzx ecx, byte [edx + eax*4 + 0x2c]
mov ecx, dword [ecx*4 + str.cwko0]
mov dword [esp + 4], ecx
mov ecx, edi
shr ecx, 8
movzx ecx, cl
mov ecx, dword [ecx*4 + str.cwko0]
mov ebx, edi
shr ebx, 0x10
movzx ebx, bl
mov esi, dword [ebx*4 + str.cwko0]
mov ebx, edi
shr ebx, 0x18
movzx ebx, bl
mov ebx, dword [ebx*4 + str.cwko0]
mov dword [esp + 8], ebx
mov ebx, ecx
shl ebx, 8
shr ecx, 0x18
or ebx, ecx
xor ebx, dword [esp + 4]
mov ecx, esi
shl ecx, 0x10
shr esi, 0x10
or ecx, esi
xor ebx, ecx
mov ecx, dword [esp + 8]
shl ecx, 0x18
mov esi, dword [esp + 8]
shr esi, 8
or ecx, esi
xor ebx, ecx
xor ebx, dword [edx + eax*4 + 0x10]
mov dword [edx + eax*4 + 0x30], ebx
mov ecx, dword [edx + eax*4 + 0x14]
xor ecx, dword [edx + eax*4 + 0x30]
mov dword [edx + eax*4 + 0x34], ecx
mov ebx, dword [edx + eax*4 + 0x18]
xor ebx, ecx
mov dword [edx + eax*4 + 0x38], ebx
mov ecx, dword [edx + eax*4 + 0x1c]
xor ecx, ebx
mov dword [edx + eax*4 + 0x3c], ecx
add eax, 8
cmp eax, 0x34
jl 0x4b1017
add esp, 0xc
pop edi
pop esi
pop ebx
ret
Function at 0x4c0a80
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe44
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x19c], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004050ec
xor eax, eax
push ebp
push 0x4c0bb8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.00404c6c
lea eax, [ebp - 0x198]
push eax
push 2
call sub.wsock32.dll_WSAStartup
xor edx, edx
push ebp
push 0x4c0b90
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x4c0b6f
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
call fcn.004050fc
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
lea eax, [ebp - 0x19c]
push eax
mov eax, dword [ebx + 0xc]
mov esi, dword [eax]
movzx eax, byte [esi]
mov dword [ebp - 0x1bc], eax
mov byte [ebp - 0x1b8], 0
movzx eax, byte [esi + 1]
mov dword [ebp - 0x1b4], eax
mov byte [ebp - 0x1b0], 0
movzx eax, byte [esi + 2]
mov dword [ebp - 0x1ac], eax
mov byte [ebp - 0x1a8], 0
movzx eax, byte [esi + 3]
mov dword [ebp - 0x1a4], eax
mov byte [ebp - 0x1a0], 0
lea edx, [ebp - 0x1bc]
mov ecx, 3
mov eax, 0x4c0bd4
call fcn.0040a93c
mov edx, dword [ebp - 0x19c]
mov eax, edi
call fcn.00404cc0
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c0b7d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c0b97
call sub.wsock32.dll_WSACleanup
ret

Function at 0x4c1640
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004050ec
mov eax, dword [ebp - 8]
call fcn.004050ec
xor eax, eax
push ebp
push 0x4c16d2
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
push 0x4c16e0
push 0x4c16ec
push dword [ebp - 4]
push 0x4c16fc
push dword [ebp - 8]
lea eax, [ebp - 0xc]
mov edx, 4
call fcn.00405000
mov eax, dword [ebp - 0xc]
call fcn.004050fc
push eax
push 0x4c1700
push 0x4c1708
push 0
call sub.shell32.dll_ShellExecuteA
mov eax, ebx
call fcn.00467084
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c16d9
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404c90
ret
Function at 0x401c70
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46aecf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push ebx
push esi
push edi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], esp
mov ebx, 1
push 0x490728
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
call fcn.00460131
mov eax, dword [ebp + 0x1c]
mov byte [ebp - 4], 3
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x401d1e
mov esi, dword [ebp + 8]
push 0x490728
mov ecx, esi
call fcn.00460131
mov dword [ebp - 0x18], ebx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.004600c3
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x401ded
mov al, byte [ecx - 1]
test al, al
je 0x401de3
cmp al, 0xff
je 0x401de3
dec al
mov byte [ecx - 1], al
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x11c]
push 0x104
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x11c]
push ecx
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameA
lea edi, [ebp - 0x11c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x401d7d
lea edx, [ebp - 0x11c]
lea eax, [ebp + 0x1c]
push edx
push eax
call fcn.00401a20
add esp, 8
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.004601fc
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 3
call fcn.004600c3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401d91
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x14]
push ecx
mov ecx, esi
mov dword [ebp - 4], 2
call fcn.0045fe38
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], bl
or ecx, ebx
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x14]
call fcn.004600c3
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x401ded
mov al, byte [ecx - 1]
test al, al
je 0x401de3
cmp al, 0xff
je 0x401de3
dec al
mov byte [ecx - 1], al
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
dec ecx
push ecx
call fcn.0045fe2d
add esp, 4
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402680
Capabilities:
Get file version info

Disassembly:
sub esp, 0x118
lea eax, [esp + 0x10]
push ebx
mov ebx, dword [esp + 0x120]
push esi
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
jbe 0x4027a6
push edi
call fcn.0045fe04
add esp, 4
mov esi, eax
push esi
push edi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push edx
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40279d
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
xor ecx, ecx
xor edx, edx
mov cx, word [eax + 2]
mov dx, word [eax]
push ecx
push edx
lea eax, [esp + 0x28]
push str.StringFileInfo_04x_04xCompanyName
push eax
call edi
add esp, 0x10
lea ecx, [esp + 0x18]
lea edx, [esp + 0xc]
lea eax, [esp + 0x20]
push ecx
push edx
push eax
push esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x28], 0
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40273f
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40273f
mov ecx, dword [esp + 0x12c]
push eax
call fcn.0046024c
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov dword [esp + 0xc], 0
xor edx, edx
mov cx, word [eax + 2]
mov dx, word [eax]
push ecx
push edx
lea eax, [esp + 0x28]
push str.StringFileInfo_04x_04xProductVersion
push eax
call edi
add esp, 0x10
lea ecx, [esp + 0x14]
lea edx, [esp + 0xc]
lea eax, [esp + 0x20]
push ecx
push edx
push eax
push esi
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 0x14]
test eax, eax
je 0x402799
mov eax, dword [esp + 0xc]
test eax, eax
je 0x402799
mov ecx, dword [esp + 0x130]
push eax
call fcn.0046024c
test esi, esi
je 0x4027a6
push esi
call fcn.0045fe2d
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0x118
ret

Function at 0x4027b0
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push esi
test eax, eax
je 0x4027fa
cmp byte [eax], 0
je 0x4027fa
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x4027fa
cmp esi, 0xffffffff
je 0x4027fa
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret
or eax, 0xffffffff
pop esi
ret