joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45930c
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 0x4594b7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
jne 0x459498
mov dl, 1
mov eax, dword [0x4127b0]
call fcn.00403230
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.00404088
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x459487
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.00445a98
test al, al
je 0x45947a
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, 0x4594c8
lea eax, [ebp - 0x254]
call fcn.0040ba4c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45947a
xor eax, eax
push ebp
push 0x459473
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 0x459500
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45945c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004042c8
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x30]
jne 0x45945c
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004042c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45947a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45937d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.00416554
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x28]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4594be
lea eax, [ebp - 0x260]
call fcn.00404088
ret

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

Disassembly:
push ecx
mov eax, dword [0x9b97d8]
cmp byte [eax + 0x95], 0
jne 0x459dbd
cmp dword [0x9b97f4], 0
jne 0x459d7e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x459d08
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x9b97f4], eax
cmp dword [0x9b97f0], 0
jne 0x459d99
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x9b97f0], eax
cmp dword [0x9b97f8], 0
jne 0x459dbd
push esp
push 0
push 0
push 0x459cac
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x9b97f8], eax
pop edx
ret
Function at 0x459eb4
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x459ecb
add esp, 0xfffffff0
call fcn.004035a0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041b474
mov byte [ebx + 0x28], 0
mov dl, 1
mov eax, dword [0x412264]
call fcn.00403230
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x412264]
call fcn.00403230
mov dword [ebx + 0x98], eax
xor eax, eax
mov dword [ebx + 0x50], eax
xor eax, eax
mov dword [ebx + 0x74], eax
mov dword [ebx + 0x4c], 0x80000018
mov dword [ebx + 0x68], 0x1f4
mov byte [ebx + 0x6c], 1
xor eax, eax
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x64], 0x9c4
mov byte [ebx + 0x78], 0
mov byte [ebx + 0x8d], 1
mov dl, 1
mov eax, dword [0x41d474]
call fcn.00425b3c
mov esi, eax
mov dword [ebx + 0x88], esi
push 0x45a040
mov eax, dword [0x9b8170]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00425f0c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45ba64
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x9b8170]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_2
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.0040f0a4
test eax, eax
je 0x459fbe
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040b344
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040f0cc
test eax, eax
je 0x459fd2
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x7c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004042c8
mov eax, dword [0x9b7c70]
cmp byte [eax], 0
jne 0x45a003
mov eax, ebx
call fcn.0045a12c
mov byte [ebx + 0x49], 1
mov byte [ebx + 0x4a], 1
mov byte [ebx + 0x4b], 1
mov byte [ebx + 0x8e], 1
xor eax, eax
mov dword [ebx + 0x90], eax
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45a035
call fcn.004035f8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45a39c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x9b97d8]
cmp dword [eax + 0x24], 0
je 0x45a43f
cmp dword [ebx + 0x84], 0
jne 0x45a439
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45a32c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x80]
cmp dword [eax + 8], 0
je 0x45a439
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 0x45a402
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x80]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45a439
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x80]
call fcn.00413f08
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45a411
inc dword [ebx + 0x84]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x45ae4c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x94], 0
je 0x45ae81
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404170
jmp 0x45ae8b
mov eax, esi
mov edx, dword [ebx + 0x7c]
call fcn.004040dc
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45bdd8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x74]
test esi, esi
je 0x45be10
mov eax, esi
call fcn.00441654
test al, al
je 0x45be10
mov eax, dword [ebx + 0x74]
call fcn.00441358
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45be10
push 0
mov eax, dword [ebx + 0x74]
call fcn.00441358
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x472698
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x472770
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x9b9870], 0
jne 0x472754
lea eax, [ebp - 4]
mov edx, 0x472788
call fcn.00404120
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.004044dc
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x472754
mov eax, ebx
call fcn.00402858
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x47274d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
push esi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x472737
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x472798
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x472737
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x9b9870], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x472754
mov eax, dword [ebp - 0xc]
call fcn.00402870
ret
mov ebx, dword [0x9b9870]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x472777
lea eax, [ebp - 4]
call fcn.00404088
ret
Function at 0x4916f0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49194f
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x491752
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.004911b8
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040ebb0
cmp al, 1
jne 0x491752
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.004914d0
test al, al
je 0x4918de
cmp dword [ebp - 8], 0
jge 0x491770
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.004911b8
mov eax, dword [ebp - 0x210]
call fcn.00404318
cmp ebx, eax
jge 0x4917ba
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.004911b8
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x9b8cd4]
and eax, 0xff
bt dword [edx], eax
jae 0x4917ba
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x210]
cmp eax, dword [ebp - 8]
jg 0x4917ce
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004916cc
cmp ebx, dword [ebp - 8]
je 0x4918d0
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x4917fa
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov bx, 0xffce
call fcn.0040343c
and eax, 0x7f
movzx eax, word [eax*2 + 0x9ae0a8]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x224], 1
xor eax, eax
push ebp
push 0x4918bd
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov bx, 0xffce
call fcn.0040343c
and eax, 0x7f
movzx eax, word [eax*2 + 0x9ae0a8]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.00441358
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov bx, 0xffce
call fcn.0040343c
and eax, 0x7f
movzx eax, word [eax*2 + 0x9ae0a8]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.00441358
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4918c4
mov eax, dword [ebp - 4]
mov byte [eax + 0x224], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x218], edx
jmp 0x491931
cmp dword [ebp - 8], 0
jge 0x4918e9
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.004911b8
mov eax, dword [ebp - 0x218]
call fcn.00404318
cmp eax, dword [ebp - 8]
jg 0x491923
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.004911b8
mov eax, dword [ebp - 0x21c]
call fcn.00404318
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004916cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x491956
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.004040ac
ret
Function at 0x493390
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov esi, ecx
mov edi, edx
mov ebx, eax
lea eax, [esp + 4]
push eax
lea eax, [esp + 4]
push eax
push 0
push 0x2001f
push 0
push 0x493424
push 0
mov eax, ebx
call fcn.004044dc
push eax
push 0x80000000
call sub.advapi32.dll_RegCreateKeyExA
mov ebx, eax
test ebx, ebx
jne 0x493400
mov eax, esi
call fcn.00404318
inc eax
push eax
mov eax, esi
call fcn.004044dc
push eax
push 1
push 0
mov eax, edi
call fcn.004044dc
push eax
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey_1
test ebx, ebx
je 0x49341b
mov ecx, dword [0x9b8168]
mov dl, 1
mov eax, dword [0x492f3c]
call fcn.0040e330
call fcn.00403ab8
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x493440
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov ebx, ecx
mov edi, edx
mov esi, eax
mov eax, ebx
call fcn.00404088
lea eax, [ebp - 8]
push eax
mov eax, esi
call fcn.004044dc
push eax
push 0x80000000
call sub.advapi32.dll_RegOpenKeyA
test eax, eax
jne 0x4934e6
xor eax, eax
push ebp
push 0x4934df
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], pe_nt_image_headers32
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040464c
lea eax, [ebp - 4]
push eax
mov eax, dword [ebx]
call fcn.004044dc
push eax
push 0
push 0
mov eax, edi
call fcn.004044dc
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4934c1
mov edx, dword [ebp - 4]
dec edx
mov eax, ebx
call fcn.0040464c
jmp 0x4934c8
mov eax, ebx
call fcn.00404088
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4934e6
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4afc7f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x9aeeba
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4afcd7
movzx edx, word [ebp + 8]
mov dword [ebp - 8], edx
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push 0
push 0
push 0x9aeedb
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4afccd
mov bx, 0x2a04
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey_1
jmp 0x4afcdb
mov bx, 0x2a04
mov eax, ebx
pop ebx
pop ecx
pop ecx
pop ebp
ret 8
Function at 0x4c58f4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.004c53f8
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.004044dc
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x4c5952
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x9b8544]
mov dl, 1
mov eax, dword [0x4c5284]
call fcn.0040e36c
call fcn.00403ab8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4c595c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.004044dc
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4c59b4
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x9b8d64]
mov dl, 1
mov eax, dword [0x4c5284]
call fcn.0040e36c
call fcn.00403ab8
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004c5428
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4ca434
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x4ca462
mov eax, ebx
call fcn.004caed8
cmp dword [ebx + 0x3c], 0
je 0x4ca45b
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x4ca4d3
mov edx, dword [ebx + 0x1a6]
cmp dword [edx + 0x10], 0
je 0x4ca4c5
cmp dword [ebx + 8], 0
je 0x4ca484
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1a6]
call dword [edx]
test eax, eax
jne 0x4ca496
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4ca4c5
cmp dword [ebx + 8], 0
je 0x4ca477
cmp eax, 3
je 0x4ca4a9
dec eax
jne 0x4ca477
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 0x4ca477
mov edx, dword [ebx + 0x132]
add dword [eax + 8], edx
jmp 0x4ca477
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x4ca4f1
cmp dword [ebx + 0x10], 0xcc
je 0x4ca4f1
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004ca4fc
pop ebx
ret
Function at 0x5033f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x503571
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x9afb84], 0
jne 0x50354e
push 0x9b99f4
call sub.kernel32.dll_EnterCriticalSection_1
xor eax, eax
push ebp
push 0x503547
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x9afb84], 0
jne 0x50352f
mov dword [ebp - 4], pe_nt_image_headers32
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.0040464c
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
call fcn.004044dc
push eax
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.00493364
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea edx, [ebp - 0x14]
xor ecx, ecx
mov eax, 0x503588
call fcn.0040bab4
mov eax, dword [ebp - 0xc]
call fcn.004044dc
push eax
push 0x80000000
call sub.advapi32.dll_RegQueryValueA
test eax, eax
jne 0x5034b0
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.0040464c
jmp 0x5034e7
lea eax, [ebp - 8]
mov edx, 0x5035a8
call fcn.00404120
xor eax, eax
push ebp
push 0x5034dd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00493528
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5034e7
mov eax, dword [ebp - 8]
call fcn.004044dc
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [0x9afb84], eax
cmp dword [0x9afb84], 0
jne 0x50351a
mov ecx, dword [0x9b8458]
mov dl, 1
mov eax, dword [0x409664]
call fcn.0040e330
call fcn.00403ab8
push 0x5035b4
mov eax, dword [0x9afb84]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x9b99f0], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50354e
push 0x9b99f4
call sub.kernel32.dll_LeaveCriticalSection_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x503578
lea eax, [ebp - 0x18]
call fcn.00404088
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004040ac
ret
Function at 0x518220
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, eax
cmp byte [ebx + 0x87], 0
je 0x51825b
cmp dword [ebx + 0x5c], 0
je 0x51825b
mov eax, dword [ebx + 0x5c]
push eax
mov esi, dword [ebx + 0x68]
mov eax, dword [esi + 0x194]
push eax
mov eax, dword [eax]
call dword [eax + 0xb8]
mov edx, eax
mov eax, esi
call fcn.00510ebc
xor eax, eax
mov dword [ebx + 0x5c], eax
mov byte [ebx + 0x87], 0
cmp dword [ebx + 0x5c], 0
jne 0x5183a6
cmp dword [ebx + 0x7c], 0
jne 0x518281
mov dl, 1
mov eax, dword [0x412340]
call fcn.00403230
mov dword [ebx + 0x7c], eax
cmp dword [ebx + 0xc], 0
je 0x51837f
mov eax, dword [ebx + 0xc]
push eax
mov al, byte [0x5183ac]
push eax
mov al, byte [0x5183b0]
push eax
push 0
mov eax, dword [ebx + 0x7c]
push eax
mov eax, dword [0x9b84bc]
push eax
mov ecx, dword [ebx + 0x68]
mov dl, 1
mov eax, dword [0x4a87f4]
call fcn.004aa954
mov dword [ebp - 4], eax
xor edx, edx
push ebp
push 0x518378
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebx + 0x5c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x50]
push eax
mov eax, dword [ebx + 0x64]
push eax
mov esi, dword [ebx + 0x68]
mov eax, dword [esi + 0x194]
push eax
mov eax, dword [eax]
call dword [eax + 0xb4]
mov edx, eax
mov eax, esi
call fcn.00510ebc
lea eax, [ebx + 0x10]
push eax
mov eax, dword [ebx + 0x5c]
push eax
mov esi, dword [ebx + 0x68]
mov eax, dword [esi + 0x194]
push eax
mov eax, dword [eax]
call dword [eax + 0xc0]
mov edx, eax
mov eax, esi
call fcn.00510ebc
mov eax, dword [ebx + 0x40]
push eax
lea eax, [ebx + 0x70]
mov ecx, 1
mov edx, dword [0x50f118]
call fcn.00406a74
add esp, 4
mov eax, dword [ebx + 0x30]
cmp eax, 0x18
jge 0x51834b
mov edx, dword [0x9b8aa0]
mov al, byte [edx + eax]
mov byte [ebx + 0x74], al
jmp 0x51835c
cmp eax, 0x1007
jne 0x518358
mov byte [ebx + 0x74], 0x18
jmp 0x51835c
mov byte [ebx + 0x74], 0
mov eax, dword [ebx + 0x40]
mov dword [ebx + 0x78], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5183a6
mov eax, dword [ebp - 4]
call fcn.00403260
ret
lea eax, [ebx + 0x5c]
push eax
push 0
push 0
mov eax, dword [ebx + 0x64]
push eax
mov esi, dword [ebx + 0x68]
mov eax, dword [esi + 0x194]
push eax
mov eax, dword [eax]
call dword [eax + 0xb4]
mov edx, eax
mov eax, esi
call fcn.00510ebc
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x519874
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5199b0
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x5199c8
mov dl, 4
mov eax, dword [ebp - 4]
call fcn.0051a934
mov eax, dword [ebp - 4]
call fcn.0051a1c4
xor edx, edx
push ebp
push 0x519993
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
jne 0x519932
test si, si
jne 0x5198e4
mov eax, dword [ebp - 8]
call fcn.0040b2dc
mov esi, eax
cmp esi, 0xffff
jbe 0x5198e4
call fcn.00403198
movzx ebx, si
push 0
push ebx
movzx eax, si
sub eax, ebx
mov edx, dword [ebp - 8]
lea eax, [edx + eax]
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x10288]
push eax
call sub.wsock32.dll_send
test eax, eax
je 0x519932
cmp eax, 0xffffffff
jle 0x519913
sub ebx, eax
jmp 0x519922
lea ecx, [ebp - 0xc]
mov dx, 0x2733
mov eax, dword [ebp - 4]
call fcn.0051a868
test ebx, ebx
je 0x519932
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
je 0x5198e7
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
je 0x51997d
mov eax, dword [ebp - 4]
mov byte [eax + 0x10088], 0
mov ecx, 0x5199e0
mov dl, 1
mov eax, dword [0x518d94]
call fcn.0040e274
call fcn.00403ab8
mov eax, dword [ebp - 4]
cmp word [eax + 0x10282], 0
je 0x51997d
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x10284]
call dword [ebx + 0x10280]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51999a
mov eax, dword [ebp - 4]
call fcn.0051a21c
ret