joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004a728
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x100ba634]
cmp byte [eax + 0xc], 0
je 0x1004a895
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x1004a88e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x100bbb6c], 0
jne 0x1004a77c
push 0x1004a89c
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x1004a8a4
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x100bbb6c], eax
cmp dword [0x100b7da8], 0
jne 0x1004a877
push 0x1004a8b4
call sub.kernel32.dll_LoadLibraryA
mov dword [0x100b7da8], eax
cmp dword [0x100b7da8], 0
je 0x1004a877
push 0x1004a8c0
mov eax, dword [0x100b7da8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x100bbb70], eax
push 0x1004a8d0
mov eax, dword [0x100b7da8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x100bbb74], eax
push 0x1004a8e4
mov eax, dword [0x100b7da8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x100bbb78], eax
push 0x1004a8fc
mov eax, dword [0x100b7da8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x100bbb7c], eax
push 0x1004a914
mov eax, dword [0x100b7da8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x100bbb80], eax
push 0x1004a928
mov eax, dword [0x100b7da8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x100bbb84], eax
push 0x1004a940
mov eax, dword [0x100b7da8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x100bbb88], eax
push 0x1004a958
mov eax, dword [0x100b7da8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x100bbb8c], eax
push 0x1004a974
mov eax, dword [0x100b7da8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x100bbb90], eax
push 0x1004a980
mov eax, dword [0x100b7da8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x100bbb94], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1004a895
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x1004ebd8
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.100040e8
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x1004ec27
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.10004358
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10056364
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x100563b4]
test si, 4
je 0x10056378
or bl, 1
test si, 8
je 0x10056382
or bl, 4
test si, 1
je 0x1005638c
or bl, 8
test si, 2
je 0x10056396
or bl, 0x10
test si, 0x10
je 0x100563a0
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x100563af
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x100563b8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x100563f0]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x100563d1
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x100563e0
or bl, 4
test esi, 0x20000000
je 0x100563eb
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x1005ca98
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x1005caaa
add esp, 0xfffffff0
call fcn.10003638
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.10022638
mov eax, dword [0x100b9e00]
mov dword [eax + 4], ebx
mov dword [eax], 0x1005ce3c
mov eax, dword [0x100b9e10]
mov dword [eax + 4], ebx
mov dword [eax], 0x1005ce48
mov eax, ebx
call fcn.1005ce54
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x10019694]
call fcn.100032e4
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x10019694]
call fcn.100032e4
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x10019694]
call fcn.100032e4
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x10019694]
call fcn.100032e4
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x10019694]
call fcn.100032e4
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x10059270
push eax
push 0
push 0
mov eax, dword [0x100ba170]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x1002408c]
call fcn.10025728
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x1002408c]
call fcn.10025728
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x1002408c]
call fcn.10025728
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.1005d304
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x1005d198
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x1005d198
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x1005d198
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x1005cbe7
call fcn.10003690
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x1005cf7c
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 0x1005d127
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x1005d108
mov dl, 1
mov eax, dword [0x10019cf8]
call fcn.100032e4
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.100040e8
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x1005d0f7
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.1004aa88
test al, al
je 0x1005d0ea
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, 0x1005d138
lea eax, [ebp - 0x254]
call fcn.10009598
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x1005d0ea
xor eax, eax
push ebp
push 0x1005d0e3
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 0x1005d170
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x1005d0cc
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.10004358
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 0x1005d0cc
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.10004358
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1005d0ea
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x1005cfed
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.1001e2d0
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 0x1005d12e
lea eax, [ebp - 0x260]
call fcn.100040e8
ret

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

Disassembly:
push ecx
mov eax, dword [0x100bbbb8]
cmp byte [eax + 0xa5], 0
jne 0x1005db15
cmp dword [0x100bbbd0], 0
jne 0x1005dad6
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x1005da60
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x100bbbd0], eax
cmp dword [0x100bbbcc], 0
jne 0x1005daf1
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x100bbbcc], eax
cmp dword [0x100bbbd4], 0
jne 0x1005db15
push esp
push 0
push 0
push 0x1005da04
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x100bbbd4], eax
pop edx
ret
Function at 0x1005dc0c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x1005dc23
add esp, 0xfffffff0
call fcn.10003638
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.10022638
mov eax, dword [0x100ba13c]
cmp word [eax + 2], 0
jne 0x1005dc4b
mov eax, dword [0x100ba13c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.1005f2e4
mov eax, dword [0x100ba2e0]
cmp word [eax + 2], 0
jne 0x1005dc65
mov eax, dword [0x100ba2e0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.1005f4dc
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x10019694]
call fcn.100032e4
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x10019694]
call fcn.100032e4
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 [0x10024a94]
call fcn.1002bf04
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x1005ddec
mov eax, dword [0x100b9ee4]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.1002c2d4
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x1005fa7c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x100b9ee4]
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.1000d4c8
test eax, eax
je 0x1005dd5a
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.10008f5c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.1000d4f0
test eax, eax
je 0x1005dd6e
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.10004358
mov eax, dword [0x100b9c10]
cmp byte [eax], 0
jne 0x1005dda2
mov eax, ebx
call fcn.1005df14
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.1005fc58
mov eax, ebx
call fcn.1006061c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x1005dde2
call fcn.10003690
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1005e194
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x100bbbb8]
cmp dword [eax + 0x30], 0
je 0x1005e23e
cmp dword [ebx + 0x94], 0
jne 0x1005e238
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x1005e124
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x1005e238
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 0x1005e1fe
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x1005e238
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.1001bd24
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x1005e20d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x1005eda0
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 0x1005edd5
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.100041d8
jmp 0x1005ede2
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.1000413c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x1005fe34
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x1005fe75
mov eax, esi
call fcn.10046104
test al, al
je 0x1005fe75
mov eax, dword [ebx + 0x84]
call fcn.10045e00
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x1005fe75
push 0
mov eax, dword [ebx + 0x84]
call fcn.10045e00
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x100a6233
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 0x100b9406
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x100a628b
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 0x100b9427
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x100a6281
mov bx, 0x2a04
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey_1
jmp 0x100a628f
mov bx, 0x2a04
mov eax, ebx
pop ebx
pop ecx
pop ecx
pop ebp
ret 8
Function at 0x401690
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, edx
push edi
push 0
push dword [section..data]
mov dword [ebp - 8], edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, edi
shr ebx, 2
mov dword [ebp - 4], eax
test ebx, ebx
je 0x4016d4
mov edi, esi
mov ecx, eax
sub edi, eax
mov edx, ebx
mov eax, dword [edi + ecx]
mov dword [ecx], eax
lea ecx, [ecx + 4]
dec edx
jne 0x4016c3
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 4]
shl ebx, 2
cmp ebx, edi
jae 0x4016ef
mov edx, edi
sub esi, eax
lea ecx, [ebx + eax]
sub edx, ebx
mov al, byte [ecx + esi]
mov byte [ecx], al
lea ecx, [ecx + 1]
dec edx
jne 0x4016e4
mov eax, dword [ebp - 4]
lea esi, [edi - 8]
lea ecx, [eax - 8]
add ecx, edi
mov ebx, esi
mov edx, dword [ecx + 4]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ecx]
shr ebx, 2
and esi, 3
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
test ebx, ebx
je 0x401731
lea ecx, [ebx + edx]
mov edx, dword [eax]
movzx ecx, cl
ror edx, cl
mov ecx, dword [ebp - 8]
add eax, 4
xor edx, ecx
sub edx, ebx
mov dword [eax - 4], edx
mov edx, dword [ebp - 0xc]
dec ebx
jne 0x401714
test esi, esi
je 0x40173d
xor byte [eax], cl
lea eax, [eax + 1]
dec esi
jne 0x401735
mov edi, dword [ebp - 0x10]
mov edi, dword [edi - 4]
push edi
push 0
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, dword [ebp - 4]
mov esi, eax
mov edx, esi
mov ecx, ebx
call section..text
push ebx
push 0
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [eax], edi
pop edi
mov dword [ecx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x408935
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x4085d8
pop esi
or edi, eax
call fcn.00408961
add eax, 0x341d15e3
dec edi
xor dword [edx], esi
inc edi
and eax, eax
inc edx
sub eax, eax
or edi, eax
cmp edx, ecx
jne fcn.00408935
ret
Function at 0x409700
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x431420], eax
mov ecx, 1
sub ecx, 1
lea esi, [esi]
add ecx, 1
mov edx, dword [ecx*4 + 0x43141c]
mov eax, edx
shr eax, 0x1e
xor edx, eax
imul eax, edx, 0x6c078965
lea eax, [eax + ecx]
mov dword [ecx*4 + 0x431420], eax
cmp ecx, 0x26f
jl 0x409710
mov dword [0x416910], 0x270
ret

Function at 0x409750
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov eax, dword [0x430010]
cmp eax, dword [0x416430]
je 0x409768
mov dword [0x416910], 0x271
cmp dword [0x416910], 0x270
jl 0x409887
cmp dword [0x416910], 0x271
jne 0x40979f
mov eax, dword [0x430010]
call fcn.00409700
mov eax, dword [0x430010]
not eax
mov dword [0x430010], eax
mov dword [0x416430], eax
mov ebx, 0
sub ebx, 1
nop
add ebx, 1
mov eax, dword [ebx*4 + 0x431424]
and eax, 0x7fffffff
mov edx, dword [ebx*4 + 0x431420]
and edx, 0x80000000
or edx, eax
mov ecx, edx
mov eax, ecx
shr eax, 1
mov edx, dword [ebx*4 + 0x431a54]
xor eax, edx
mov edx, ecx
and edx, 1
mov edx, dword [edx*4 + 0x416920]
xor edx, eax
mov dword [ebx*4 + 0x431420], edx
cmp ebx, 0xe2
jl 0x4097a8
mov ebx, 0xe3
sub ebx, 1
mov esi, esi
add ebx, 1
mov eax, dword [ebx*4 + 0x431424]
and eax, 0x7fffffff
mov edx, dword [ebx*4 + 0x431420]
and edx, 0x80000000
or edx, eax
mov ecx, edx
mov eax, ecx
shr eax, 1
mov edx, dword [ebx*4 + 0x431094]
xor eax, edx
mov edx, ecx
and edx, 1
mov edx, dword [edx*4 + 0x416920]
xor edx, eax
mov dword [ebx*4 + 0x431420], edx
cmp ebx, 0x26e
jl 0x4097fc
mov eax, dword [0x431ddc]
and eax, 0x80000000
mov edx, dword [0x431420]
and edx, 0x7fffffff
or edx, eax
mov ecx, edx
mov eax, ecx
shr eax, 1
mov edx, dword [0x431a50]
xor edx, eax
and ecx, 1
mov eax, dword [ecx*4 + 0x416920]
xor eax, edx
mov dword [0x431ddc], eax
mov dword [0x416910], 0
mov eax, dword [0x416910]
mov eax, dword [eax*4 + 0x431420]
add dword [0x416910], 1
mov edx, eax
shr edx, 0xb
xor eax, edx
mov edx, eax
shl edx, 7
and edx, 0x9d2c5680
xor eax, edx
mov edx, eax
shl edx, 0xf
and edx, 0xefc60000
xor eax, edx
mov edx, eax
shr edx, 0x12
xor eax, edx
pop ebx
ret
Function at 0x40b310
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
mov ax, word [0x416190]
cmp ax, 0xcb
je 0x40b40c
cmp ax, 0xcc
je 0x40b40c
mov edx, dword [0x432030]
test edx, edx
je 0x40b342
mov eax, dword [0x431ed0]
call edx
mov ebx, eax
jmp 0x40b347
mov ebx, 0x431ed4
cmp word [0x431ec0], 0
jle 0x40b36a
mov eax, 0x431ea0
call fcn.0040b580
mov eax, ebx
call fcn.0040aef0
mov eax, ebx
call fcn.0040af60
mov edi, dword [ebx]
jmp 0x40b38a
mov esi, dword [edi + 4]
mov eax, dword [edi]
and eax, 1
jne 0x40b385
mov edx, edi
mov eax, ebx
call fcn.0040a3c0
jmp 0x40b388
and dword [edi], 0xfffffffe
mov edi, esi
test edi, edi
jne 0x40b370
mov dword [ebx], 0
mov dword [ebx + 0x88], 0
cmp word [0x431ec0], 0
jle 0x40b40c
mov edx, 0x431de0
mov eax, ebx
call fcn.0040a4f0
mov edi, eax
test edi, edi
je 0x40b3df
mov eax, dword [0x431e74]
mov dword [edi + 0xc], eax
cmp dword [0x431e74], 0
je 0x40b3d4
mov eax, dword [0x431e74]
mov dword [eax + 8], edi
mov eax, dword [ebx + 0x94]
mov dword [0x431e74], eax
sub word [0x431ec0], 1
cmp word [0x431ec0], 0
sete bl
mov eax, 0x431ea0
call fcn.0040b590
test bl, bl
je 0x40b40c
mov eax, 0x431ea0
call fcn.0040b570
pop edi
pop esi
pop ebx
ret
Function at 0x40e930
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x7c]
push ebx
push esi
push edi
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x20], 8
mov dword [ebp - 0x1c], 2
mov dword [ebp - 0x18], 4
mov dword [ebp - 0x14], 0x10
mov dword [ebp - 0x10], 0x80
mov dword [ebp - 0xc], 0x20
mov dword [ebp - 8], 0x40
mov ecx, dword [eax + 0x30]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], eax
mov edx, dword [eax + 0x30]
mov eax, dword [ecx + 0x3c]
lea eax, [edx + eax]
movzx edx, word [eax + 6]
add eax, 0xf8
mov dword [ebp - 0x74], eax
lea eax, [edx - 1]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], 0
mov eax, dword [ebp - 0x70]
cmp eax, dword [ebp - 0x6c]
jb 0x40eab5
sub dword [ebp - 0x6c], 1
lea esi, [esi]
add dword [ebp - 0x6c], 1
imul eax, dword [ebp - 0x6c], 0x28
mov edx, dword [ebp - 0x74]
lea esi, [eax + edx]
lea edi, [ebp - 0x4c]
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x7c]
or edx, eax
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x50], eax
test dword [ebp - 0x50], 0xffffffff
je 0x40eaa9
mov ebx, dword [ebp - 0x28]
mov eax, ebx
and eax, 0x2000000
je 0x40ea0c
push 0x4000
push dword [ebp - 0x50]
push dword [ebp - 0x58]
mov esi, dword [ebp - 0x78]
call dword [esi + 8]
jmp 0x40eaa9
mov eax, ebx
and eax, 0x20000000
je 0x40ea1e
mov dword [ebp - 0x68], 1
jmp 0x40ea25
mov dword [ebp - 0x68], 0
mov eax, ebx
and eax, 0x40000000
je 0x40ea37
mov dword [ebp - 0x64], 1
jmp 0x40ea3e
mov dword [ebp - 0x64], 0
mov eax, ebx
and eax, 0x80000000
je 0x40ea50
mov dword [ebp - 0x60], 1
jmp 0x40ea57
mov dword [ebp - 0x60], 0
mov eax, ebx
and eax, 0x4000000
je 0x40ea69
mov dword [ebp - 0x5c], 1
jmp 0x40ea70
mov dword [ebp - 0x5c], 0
mov eax, dword [ebp - 0x68]
shl eax, 4
lea eax, [ebp + eax - 0x24]
mov edx, dword [ebp - 0x64]
lea ecx, [eax + edx*8]
mov eax, dword [ebp - 0x60]
mov eax, dword [ecx + eax*4]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x5c], 1
jne 0x40ea96
or dword [ebp - 0x54], 0x200
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x54]
push dword [ebp - 0x50]
push dword [ebp - 0x58]
mov esi, dword [ebp - 0x78]
call dword [esi + 4]
mov eax, dword [ebp - 0x70]
cmp eax, dword [ebp - 0x6c]
ja 0x40e9b4
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401b66
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410004]
jne 0x401b70
repz ret
jmp fcn.0040324d

Function at 0x404a42
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x404a51
pop dword [ebp - 0x50]
mov eax, 0x404a51
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0xff73e6a6
add dword [ebp - 0x60], 0x4ede5ea5
mov dword [ebp - 0x5c], 0xe11cf5b9
add dword [ebp - 0x5c], 0x5116568c
mov dword [ebp - 0x58], 0xabaab106
sub dword [ebp - 0x58], 0x5f5e6cd8
mov dword [ebp - 0x54], 0x6e5479c0
add dword [ebp - 0x54], 0x91ab8640
lea eax, [ebp - 0x60]
push eax
mov eax, 0x565a0fac
add eax, 0xa9e6c0a0
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0xb30f907
sub dword [ebp - 0x60], 0x96be8fb1
mov dword [ebp - 0x5c], 0x2b8ec0d4
add dword [ebp - 0x5c], 0x15dda0a1
mov dword [ebp - 0x58], 0x5d10bc0d
sub dword [ebp - 0x58], 0xf9a14fa1
mov dword [ebp - 0x54], 0x4e3a9077
sub dword [ebp - 0x54], 0x4e3a9077
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x363f6
push 0
call eax
mov ecx, 0x16c3abbb
add ecx, 0xe93c8f61
xor esi, esi
add esi, eax
mov edi, 0x41b000
add edi, dword [ebp - 0x50]
mov ebx, 0xdb49de2
add ebx, 0x5a6de6c4
mov dword [ebp - 0x34], 0xab925a47
mov edx, dword [edi]
sub dword [ebp - 0x30], edi
add edx, ebx
xor dword [ebp - 0x18], eax
mov dword [esi], edx
xor dword [ebp - 0x20], 0x738a4d64
add esi, 0x7924f11c
add esi, 0x86db0ee8
add edi, 0x258d2c83
sub edi, 0x258d2c7f
loop 0x404b65
add eax, 0xdf43
mov ebx, eax
add eax, 0x32ccdc78
add eax, 0xcd33238d
mov ecx, 0x400000
add ecx, dword [ebp - 0x50]
call ebx
leave
ret