joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4501c0
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 0x45036b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
jne 0x45034c
mov dl, 1
mov eax, dword [0x410494]
call fcn.00402f84
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.00403c7c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45033b
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.0043dbb4
test al, al
je 0x45032e
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, 0x45037c
lea eax, [ebp - 0x254]
call fcn.0040a0a4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45032e
xor eax, eax
push ebp
push 0x450327
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x100
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x4503b4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x450310
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.00403eac
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 0x450310
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.00403eac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45032e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x450231
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.00413d58
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 0x450372
lea eax, [ebp - 0x260]
call fcn.00403c7c
ret

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

Disassembly:
push ecx
mov eax, dword [0x4cd7d4]
cmp byte [eax + 0x95], 0
jne 0x450c29
cmp dword [0x4cd7f0], 0
jne 0x450bea
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x450b74
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4cd7f0], eax
cmp dword [0x4cd7ec], 0
jne 0x450c05
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4cd7ec], eax
cmp dword [0x4cd7f4], 0
jne 0x450c29
push esp
push 0
push 0
push 0x450b18
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4cd7f4], eax
pop edx
ret
Function at 0x450d20
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x450d37
add esp, 0xfffffff0
call fcn.004032f4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041850c
mov byte [ebx + 0x28], 0
mov dl, 1
mov eax, dword [0x40ff68]
call fcn.00402f84
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x40ff68]
call fcn.00402f84
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 [0x41a3a4]
call fcn.00421c18
mov esi, eax
mov dword [ebx + 0x88], esi
push 0x450eac
mov eax, dword [0x4cbc6c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00421fe8
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x452854
push 0x100
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4cbc6c]
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.0040d43c
test eax, eax
je 0x450e2a
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004099e8
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d464
test eax, eax
je 0x450e3e
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, 0x100
call fcn.00403eac
mov eax, dword [0x4cba7c]
cmp byte [eax], 0
jne 0x450e6f
mov eax, ebx
call fcn.00450f98
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 0x450ea1
call fcn.0040334c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x451208
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4cd7d4]
cmp dword [eax + 0x24], 0
je 0x4512ab
cmp dword [ebx + 0x84], 0
jne 0x4512a5
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x451198
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x80]
cmp dword [eax + 8], 0
je 0x4512a5
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 0x45126e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x80]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4512a5
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.00411ac4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45127d
inc dword [ebx + 0x84]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x451cb8
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 0x451ced
push 0x100
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.00403d64
jmp 0x451cf7
mov eax, esi
mov edx, dword [ebx + 0x7c]
call fcn.00403cd0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x452bc8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x74]
test esi, esi
je 0x452c00
mov eax, esi
call fcn.004397e0
test al, al
je 0x452c00
mov eax, dword [ebx + 0x74]
call fcn.004394e4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x452c00
push 0
mov eax, dword [ebx + 0x74]
call fcn.004394e4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x46062c
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 0x460704
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4cd898], 0
jne 0x4606e8
lea eax, [ebp - 4]
mov edx, 0x46071c
call fcn.00403d14
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.004040c0
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x4606e8
mov eax, ebx
call fcn.004027a0
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4606e1
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 0x4606cb
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x46072c
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4606cb
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x4cd898], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4606e8
mov eax, dword [ebp - 0xc]
call fcn.004027b8
ret
mov ebx, dword [0x4cd898]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46070b
lea eax, [ebp - 4]
call fcn.00403c7c
ret
Function at 0x46ce64
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 0x46d0c3
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x46cec6
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.0046c92c
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040cfe8
cmp al, 1
jne 0x46cec6
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.0046cc44
test al, al
je 0x46d052
cmp dword [ebp - 8], 0
jge 0x46cee4
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.0046c92c
mov eax, dword [ebp - 0x210]
call fcn.00403efc
cmp ebx, eax
jge 0x46cf2e
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.0046c92c
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x4cc084]
and eax, 0xff
bt dword [edx], eax
jae 0x46cf2e
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x210]
cmp eax, dword [ebp - 8]
jg 0x46cf42
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0046ce40
cmp ebx, dword [ebp - 8]
je 0x46d044
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, 0x100
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x46cf6e
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov bx, 0xffce
call fcn.00403190
and eax, 0x7f
movzx eax, word [eax*2 + 0x4c9e00]
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 0x46d031
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov bx, 0xffce
call fcn.00403190
and eax, 0x7f
movzx eax, word [eax*2 + 0x4c9e00]
push eax
push 0x100
mov eax, dword [ebp - 4]
call fcn.004394e4
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov bx, 0xffce
call fcn.00403190
and eax, 0x7f
movzx eax, word [eax*2 + 0x4c9e00]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.004394e4
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46d038
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 0x46d0a5
cmp dword [ebp - 8], 0
jge 0x46d05d
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.0046c92c
mov eax, dword [ebp - 0x218]
call fcn.00403efc
cmp eax, dword [ebp - 8]
jg 0x46d097
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.0046c92c
mov eax, dword [ebp - 0x21c]
call fcn.00403efc
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0046ce40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46d0ca
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00403ca0
ret
Function at 0x489bdb
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 0x4cac12
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x489c33
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 0x4cac33
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x489c29
mov bx, 0x2a04
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey_1
jmp 0x489c37
mov bx, 0x2a04
mov eax, ebx
pop ebx
pop ecx
pop ecx
pop ebp
ret 8
Function at 0x49dde0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x49de0e
mov eax, ebx
call fcn.0049e884
cmp dword [ebx + 0x3c], 0
je 0x49de07
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x49de7f
mov edx, dword [ebx + 0x1a6]
cmp dword [edx + 0x10], 0
je 0x49de71
cmp dword [ebx + 8], 0
je 0x49de30
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 0x49de42
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x49de71
cmp dword [ebx + 8], 0
je 0x49de23
cmp eax, 3
je 0x49de55
dec eax
jne 0x49de23
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 0x49de23
mov edx, dword [ebx + 0x132]
add dword [eax + 8], edx
jmp 0x49de23
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x49de9d
cmp dword [ebx + 0x10], 0xcc
je 0x49de9d
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.0049dea8
pop ebx
ret
Function at 0x4b01bc
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 9
push 0
push 0
dec ecx
jne 0x4b01c4
push ecx
push ebx
push esi
push edi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
call fcn.004040b0
xor eax, eax
push ebp
push 0x4b03a9
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4aed04]
call fcn.0044ab68
mov ebx, eax
mov eax, ebx
call fcn.0044ea48
mov byte [ebp - 0x25], 0
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.004040c0
push eax
call sub.kernel32.dll_CreateFileA_1
mov esi, eax
push 0
push esi
call sub.kernel32.dll_GetFileSize_1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
call fcn.004027a0
mov dword [ebp - 0xc], eax
push 0
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
push esi
call sub.kernel32.dll_ReadFile_1
push esi
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
mov dword [ebp - 4], eax
mov byte [ebp - 0x26], 0
xor eax, eax
mov dword [ebp - 0x30], eax
xor esi, esi
mov edx, dword [ebp - 8]
mov eax, dword [ebx + 0x2d0]
call fcn.00463c70
mov edx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x2dc]
call fcn.00433370
jmp 0x4b02df
push ebp
mov eax, dword [ebp - 0x38]
call fcn.004afb20
pop ecx
inc esi
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x2d0]
call fcn.00463c80
mov eax, dword [ebp - 0x30]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x40]
call fcn.004093bc
mov edx, dword [ebp - 0x40]
mov eax, dword [ebx + 0x2e4]
call fcn.00433370
push dword [ebp - 0x18]
push 0x4b03c0
push dword [ebp - 0x1c]
lea eax, [ebp - 0x44]
mov edx, 3
call fcn.00403fbc
mov edx, dword [ebp - 0x44]
mov eax, dword [ebx + 0x2e0]
call fcn.00433370
push ebp
lea eax, [ebp - 0x38]
call fcn.004af380
pop ecx
test al, al
je 0x4b02f3
cmp byte [ebp - 0x26], 0
je 0x4b0283
cmp byte [ebp - 0x26], 0
je 0x4b033b
lea edx, [ebp - 0x48]
mov edi, dword [ebx + 0x2d8]
mov eax, edi
call fcn.00433340
lea eax, [ebp - 0x48]
push eax
mov eax, esi
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x4c]
call fcn.004093bc
mov edx, dword [ebp - 0x4c]
pop eax
call fcn.00403f04
mov edx, dword [ebp - 0x48]
mov eax, edi
call fcn.00433370
mov dl, 1
mov eax, dword [ebx + 0x2d8]
call fcn.00433258
mov eax, dword [ebp - 0x10]
call fcn.004afee8
test ebx, ebx
je 0x4b0354
cmp byte [ebp - 0x26], 0
jne 0x4b0354
mov eax, ebx
call fcn.00402fb4
mov eax, dword [ebp - 0xc]
call fcn.004027b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b03b0
lea eax, [ebp - 0x4c]
call fcn.00403c7c
lea eax, [ebp - 0x48]
call fcn.00403c7c
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00403ca0
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.00403ca0
lea eax, [ebp - 0x2c]
call fcn.00403c7c
lea eax, [ebp - 0x24]
mov edx, 6
call fcn.00403ca0
ret
Function at 0x1001cbc0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x109a5b50]
xor edx, edx
cmp eax, edx
jne 0x1001cbe6
xor eax, eax
mov byte [eax + 0x109a5a50], al
inc eax
cmp eax, 0x100
jl 0x1001cbce
mov dword [0x109a5b50], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x109a5a50
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x1001cc77
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x1001cc4a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x1001cc18
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x1001ccf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x1001cd43
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x1001cd2a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10023d60
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
xor esi, esi
xor ecx, ecx
mov si, word [eax + 8]
mov cx, word [eax + 4]
xor ebp, ebp
xor edx, edx
mov bp, word [eax + 0xa]
mov dx, word [eax + 6]
sub esi, ecx
sub ebp, edx
inc esi
xor ebx, ebx
inc ebp
cmp esi, ebx
mov dword [esp + 0x14], esi
jle 0x10023ef8
cmp ebp, ebx
jle 0x10023ef8
mov eax, esi
push edi
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, esi
sar edi, 3
and eax, 0x80000007
mov dword [esp + 0x10], edi
jns 0x10023dbe
dec eax
or eax, 0xfffffff8
inc eax
je 0x10023dc5
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, 0x80000001
jns 0x10023dd4
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x10023ddb
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.10076831
add esp, 4
cmp eax, ebx
je 0x10023dfc
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov ebx, eax
mov eax, edi
mov dword [esp + 0x14], ebx
imul eax, ebp
push eax
mov dword [ebx], 7
mov dword [ebx + 4], esi
mov dword [ebx + 8], ebp
mov dword [ebx + 0x14], eax
call fcn.10076831
mov ecx, dword [ebx + 0x14]
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 0x10], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
test ebp, ebp
lea edx, [eax + 0x80]
jle 0x10023eee
xor eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
mov ebp, dword [ebx + 0x10]
xor ecx, ecx
add ebp, eax
mov dword [esp + 0x2c], ecx
test esi, esi
jle 0x10023ed5
mov al, byte [edx]
cmp al, 0xc0
jbe 0x10023ec1
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x10023eb6
xor eax, eax
mov ecx, esi
mov al, byte [edx]
mov edx, ecx
mov bl, al
mov edi, ebp
mov bh, bl
dec esi
mov eax, ebx
shl eax, 0x10
mov ax, bx
mov ebx, dword [esp + 0x14]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x24]
and ecx, 3
add ebp, esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
lea ecx, [eax + esi*8]
mov esi, dword [esp + 0x18]
jmp 0x10023ec4
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x10023ec4
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x10023e60
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add eax, edi
dec ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jne 0x10023e51
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x18
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
Function at 0x1002bb00
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x100835f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x6c]
push esi
mov esi, ecx
mov ecx, dword [esp + 0x74]
push edi
push eax
mov eax, dword [esp + 0x74]
push ecx
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, esi
call fcn.1002c680
lea edx, [esp + 0x18]
push eax
push edx
call dword [0x100864c8]
mov eax, dword [esp + 0x18]
xor edi, edi
xor ecx, ecx
cmp eax, edi
setl cl
dec ecx
xor edx, edx
and ecx, eax
mov eax, dword [esp + 0x1c]
cmp eax, edi
mov dword [esp + 0x18], ecx
setl dl
dec edx
and edx, eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x20], edx
call dword [0x10086400]
test eax, eax
je 0x1002bba9
mov eax, dword [esp + 0x6c]
push ebx
mov ebx, eax
xor ecx, ecx
xor edx, edx
xor esi, esi
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], edi
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret 0x14
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.1002b790
mov edx, eax
mov eax, dword [edx]
mov ecx, dword [edx + 4]
push ecx
push eax
lea eax, [esp + 0x20]
push eax
call dword [0x100865cc]
push edi
lea ecx, [esp + 0x4c]
call fcn.1007d45e
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x58]
push ecx
lea eax, [esp + 0x4c]
push edx
push eax
mov dword [esp + 0x70], edi
call fcn.100417a0
mov edx, dword [esp + 0x5c]
add esp, 0xc
lea ecx, [esp + 0x18]
push 2
push ecx
push edx
call dword [0x100860f0]
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x38]
push eax
push ecx
call dword [0x100863d8]
lea edx, [esp + 0x38]
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x2c]
push eax
push ecx
call dword [0x100865c0]
mov esi, dword [esp + 0x6c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, esi
mov dword [esp + 0x64], 0xffffffff
mov dword [edx], eax
mov eax, dword [esp + 0x30]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x34]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea ecx, [esp + 0x48]
call fcn.1007d4d0
mov ecx, dword [esp + 0x5c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x60
ret 0x14