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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x45a248]
cmp byte [eax + 0xc], 0
je 0x4414b5
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4414ae
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x45bb64], 0
jne 0x44139c
push 0x4414bc
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x4414c4
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45bb64], eax
cmp dword [0x459bf4], 0
jne 0x441497
push 0x4414d4
call sub.kernel32.dll_LoadLibraryA
mov dword [0x459bf4], eax
cmp dword [0x459bf4], 0
je 0x441497
push 0x4414e0
mov eax, dword [0x459bf4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45bb68], eax
push 0x4414f0
mov eax, dword [0x459bf4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45bb6c], eax
push 0x441504
mov eax, dword [0x459bf4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45bb70], eax
push 0x44151c
mov eax, dword [0x459bf4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45bb74], eax
push 0x441534
mov eax, dword [0x459bf4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45bb78], eax
push 0x441548
mov eax, dword [0x459bf4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45bb7c], eax
push 0x441560
mov eax, dword [0x459bf4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45bb80], eax
push 0x441578
mov eax, dword [0x459bf4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45bb84], eax
push 0x441594
mov eax, dword [0x459bf4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45bb88], eax
push 0x4415a0
mov eax, dword [0x459bf4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45bb8c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4414b5
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x445340
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.00403fbc
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x44538f
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.0040422c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44cacc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44cb1c]
test si, 4
je 0x44cae0
or bl, 1
test si, 8
je 0x44caea
or bl, 4
test si, 1
je 0x44caf4
or bl, 8
test si, 2
je 0x44cafe
or bl, 0x10
test si, 0x10
je 0x44cb08
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44cb17
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44cb20
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44cb58]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44cb39
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44cb48
or bl, 4
test esi, 0x20000000
je 0x44cb53
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x453200
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x453212
add esp, 0xfffffff0
call fcn.00403590
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041d164
mov eax, dword [0x459ef4]
mov dword [eax + 4], ebx
mov dword [eax], 0x4535a4
mov eax, dword [0x459f00]
mov dword [eax + 4], ebx
mov dword [eax], 0x4535b0
mov eax, ebx
call fcn.004535bc
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41545c]
call fcn.0040323c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41545c]
call fcn.0040323c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41545c]
call fcn.0040323c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41545c]
call fcn.0040323c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41545c]
call fcn.0040323c
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, 0x44f9d8
push eax
push 0
push 0
mov eax, dword [0x45a04c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41ebb8]
call fcn.0042032c
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41ebb8]
call fcn.0042032c
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41ebb8]
call fcn.0042032c
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.004539dc
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4538b8
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4538b8
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4538b8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45334f
call fcn.004035e8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x45369c
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 0x453847
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x453828
mov dl, 1
mov eax, dword [0x415878]
call fcn.0040323c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403fbc
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x453817
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.004416a8
test al, al
je 0x45380a
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, 0x453858
lea eax, [ebp - 0x254]
call fcn.00408d24
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45380a
xor eax, eax
push ebp
push 0x453803
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 0x453890
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4537ec
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040422c
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 0x4537ec
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040422c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45380a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45370d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00419354
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 0x45384e
lea eax, [ebp - 0x260]
call fcn.00403fbc
ret

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

Disassembly:
push ecx
mov eax, dword [0x45bbb0]
cmp byte [eax + 0xa5], 0
jne 0x4541ed
cmp dword [0x45bbc8], 0
jne 0x4541ae
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x454138
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x45bbc8], eax
cmp dword [0x45bbc4], 0
jne 0x4541c9
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x45bbc4], eax
cmp dword [0x45bbcc], 0
jne 0x4541ed
push esp
push 0
push 0
push 0x4540dc
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x45bbcc], eax
pop edx
ret
Function at 0x4542e4
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4542fb
add esp, 0xfffffff0
call fcn.00403590
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041d164
mov eax, dword [0x45a038]
cmp word [eax + 2], 0
jne 0x454323
mov eax, dword [0x45a038]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004559bc
mov eax, dword [0x45a0f0]
cmp word [eax + 2], 0
jne 0x45433d
mov eax, dword [0x45a0f0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00455bb4
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41545c]
call fcn.0040323c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41545c]
call fcn.0040323c
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 [0x41f698]
call fcn.00426bc4
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x4544c4
mov eax, dword [0x459f58]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00426f94
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x456164
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x459f58]
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.0040c51c
test eax, eax
je 0x454432
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408718
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c544
test eax, eax
je 0x454446
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.0040422c
mov eax, dword [0x459e4c]
cmp byte [eax], 0
jne 0x45447a
mov eax, ebx
call fcn.004545ec
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.00456340
mov eax, ebx
call fcn.00456d04
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4544ba
call fcn.004035e8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45486c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x45bbb0]
cmp dword [eax + 0x30], 0
je 0x454916
cmp dword [ebx + 0x94], 0
jne 0x454910
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4547fc
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x454910
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 0x4548d6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x454910
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.004177c4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4548e5
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x455478
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 0x4554ad
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.004040ac
jmp 0x4554ba
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404010
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45651c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45655d
mov eax, esi
call fcn.0043ccd4
test al, al
je 0x45655d
mov eax, dword [ebx + 0x84]
call fcn.0043c9d0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45655d
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043c9d0
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x4573f8
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x457465
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xfd
lea eax, [ebp - 4]
mov edx, 0xfe
call fcn.00404608
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0040447c
push eax
call sub.advapi32.dll_GetUserNameA
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00404608
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00404010
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45746c
lea eax, [ebp - 4]
call fcn.00403fbc
ret
Function at 0x406234
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x406243
pop dword [ebp - 0x38]
mov eax, 0x79d78db1
sub eax, 0x79972b6e
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0x62ea99e7
add dword [ebp - 0x48], 0xeb67ab64
mov dword [ebp - 0x44], 0xdfd95973
add dword [ebp - 0x44], 0x5259f2d2
mov dword [ebp - 0x40], 0x34cbc72f
sub dword [ebp - 0x40], 0xe87f8301
mov dword [ebp - 0x3c], 0xc2509d51
sub dword [ebp - 0x3c], 0xc2509d51
lea eax, [ebp - 0x48]
push eax
mov eax, 0x4602ec43
sub eax, 0x45c26b3f
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0xbad8fd70
add dword [ebp - 0x48], 0xb9996be6
mov dword [ebp - 0x44], 0xc7572365
sub dword [ebp - 0x44], 0x85eac1f0
mov dword [ebp - 0x40], 0x348d873e
sub dword [ebp - 0x40], 0xd11e1ad2
mov dword [ebp - 0x3c], 0xef8444ba
add dword [ebp - 0x3c], 0x107bbb46
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x36eeb
push 0
call eax
mov ecx, 0xd71b997
add ecx, 0xf28e8e0c
mov esi, eax
mov edi, 0x46e400
add edi, dword [ebp - 0x38]
mov edx, 0x55f063f8
sub edx, 0x40f2e813
sub dword [ebp - 0x30], ecx
mov ebx, dword [edi]
sub dword [ebp - 0x14], 0x3c6c9a08
xor ebx, edx
mov dword [esi], ebx
sub dword [ebp - 0x18], 0x478c603a
add esi, 0xd516e44f
add esi, 0x2ae91bb5
add edi, 0x43440ff4
sub edi, 0x43440ff0
loop 0x40635a
add eax, 0x183effd9
sub eax, 0x183dee7a
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x38]
call ebx
leave
ret

Function at 0x40669d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x427dcc], 0
push esi
jne 0x4066d4
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4066ae
mov dword [ecx*4 + 0x427dc8], eax
inc ecx
cmp ecx, 0x100
jl 0x4066a9
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406705
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x427dc8]
xor eax, esi
inc ecx
dec edx
jne 0x4066e7
pop edi
not eax
pop esi
ret 0xc
Function at 0x402804
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x409008], 0x8088405
inc edx
mov dword [ebx + 0x409008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x405090
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd9c
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040373c
xor eax, eax
push ebp
push 0x4051d2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x50]
xor ecx, ecx
mov edx, 0x44
call fcn.004027e4
mov dword [ebp - 0x50], 0x44
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x50]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0040374c
push eax
push 0
call fcn.004045d8
test eax, eax
je 0x4051bc
push 0
call fcn.00404600
mov ebx, eax
lea eax, [ebp - 0x16c]
mov ecx, 0x40
mov edx, ebx
call fcn.00404674
cmp word [ebp - 0x16c], 0x5a4d
jne 0x4051bc
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x130]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, eax
lea eax, [ebp - 0x264]
mov ecx, 0xf8
call fcn.00404674
cmp dword [ebp - 0x264], 0x4550
jne 0x4051bc
mov esi, dword [ebp - 0x214]
push 0x40
push 0x3000
push esi
mov edi, ebx
push edi
mov eax, dword [ebp - 0x60]
push eax
call fcn.00404640
lea edx, [ebp - 0xc]
push edx
push esi
push edi
push eax
mov eax, dword [ebp - 0x60]
push eax
call fcn.00404648
mov dword [ebp - 0x12c], 0x10007
lea eax, [ebp - 0x12c]
push eax
mov eax, dword [ebp - 0x5c]
push eax
call fcn.00404608
mov eax, dword [ebp - 8]
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x12c]
push eax
mov eax, dword [ebp - 0x5c]
push eax
call fcn.00404628
mov eax, dword [ebp - 0x5c]
push eax
call fcn.00404620
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4051d9
lea eax, [ebp - 4]
call fcn.004033c8
ret
Function at 0x4141e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
lea eax, [ebp - 0x20]
push eax
mov eax, dword [0x4c0fc8]
xor eax, dword [0x4c0968]
call eax
mov ebx, dword [ebp + 0xc]
mov edi, 2
mov eax, dword [ebx + 4]
lea esi, [ebx + 4]
inc eax
mov dword [ebp - 8], esi
mul edi
mov ecx, 0xffffffff
cmovb eax, ecx
push eax
call fcn.00490c90
mov dword [ebp - 0xc], eax
add esp, 4
mov eax, dword [esi]
mov dword [ebp + 0xc], eax
cmp eax, edi
jbe 0x41422d
mov ebx, dword [ebx]
inc eax
mov ecx, 0xffffffff
mul edi
cmovb eax, ecx
push eax
call fcn.00490c90
mov esi, eax
add esp, 4
mov eax, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 4], esi
test eax, eax
je 0x41427d
mov edx, esi
sub ebx, esi
mov esi, eax
mov ecx, edi
lea edx, [edx + 2]
and ecx, 3
mov eax, 0x7baa44f1
shl ecx, 3
inc edi
sar eax, cl
cbw
xor ax, word [edx + ebx - 2]
mov word [edx - 2], ax
cmp edi, esi
jb 0x414255
mov esi, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp - 0xc]
xor ecx, ecx
mov word [esi + eax*2], cx
mov eax, dword [ebp - 8]
push esi
mov eax, dword [eax]
inc eax
push eax
push ebx
call fcn.00491620
push esi
call fcn.00490c60
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x20]
add esp, 0x10
mov ecx, dword [eax]
push 0
push 0
push edx
push 0
push ebx
push eax
call dword [ecx + 0x10]
push ebx
mov esi, eax
call fcn.00490c60
add esp, 4
test esi, esi
jne 0x414393
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp + 0x10]
test al, 8
je 0x41434e
test eax, 0x2000
je 0x414344
mov eax, dword [ebp - 0x18]
xor ebx, ebx
mov edi, dword [eax + 0xc]
cmp dword [eax + 0x10], ebx
jbe 0x41434e
cmp dword [esi + 4], 0
je 0x41432d
mov byte [ebp + 0xc], 0xfb
xor eax, eax
mov dword [ebp - 0xc], 1
lea esp, [esp]
movsx cx, byte [ebp + eax + 0xc]
mov word [ebp + eax*2 - 0x10], cx
inc eax
cmp eax, dword [ebp - 0xc]
jb 0x414300
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.004855c0
cmp dword [ebp - 0xc], 2
jbe 0x41432d
push dword [ebp - 0x10]
call fcn.00490c60
add esp, 4
push dword [edi]
mov ecx, esi
call fcn.004857c0
mov eax, dword [ebp - 0x18]
inc ebx
add edi, 4
cmp ebx, dword [eax + 0x10]
jb 0x4142e6
jmp 0x41434e
push dword [ebp - 0x18]
mov ecx, esi
call fcn.00484cb0
cmp dword [esi + 4], 0xff
jbe 0x414382
push 0xff
push 0
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.00485b60
push eax
mov ecx, esi
call fcn.00484bc0
cmp dword [ebp - 0xc], 2
jbe 0x414382
push dword [ebp - 0x10]
call fcn.00490c60
add esp, 4
lea eax, [ebp - 0x20]
push eax
mov eax, dword [0x4c0fd0]
xor eax, dword [0x4c0968]
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4154b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov dword [esp - 0x34], 0x6ef650dd
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 4]
push esi
lea esi, [ebx + 4]
mov dword [esp - 0x28], ebx
mov dword [ebp - 0x10], ecx
push edi
inc eax
mov dword [ebp - 8], esi
mov dword [esp - 0xc], ecx
mov edi, 0x371b8a90
add edi, 0x4315cbaf
xor edi, 0x43690c49
add edi, 0x258e13d3
mov edi, edi
xor edi, 0x1365ea1d
sub edi, 0x3a60878f
sub edi, 0x1322fcc3
mov ecx, 0x30c4354a
mov dword [esp - 0x40], 0x14fb7018
add ecx, 0x192b1f28
sub ecx, 0x2ff1a287
xor ecx, 0x360d8fda
add ecx, 0x487403ff
mov dword [esp - 0x44], 0x5c8e59c6
xor ecx, 0x879bbdcf
mul edi
cmovb eax, ecx
xchg edi, edi
push eax
call fcn.00490c90
mov dword [ebp - 0xc], eax
add esp, 4
mov edx, edx
mov eax, dword [esi]
mov dword [ebp + 8], eax
cmp eax, edi
jbe 0x41555b
mov dword [esp - 0x20], edx
mov ebx, dword [ebx]
inc eax
mov ecx, 0x37476b7
add ecx, 0x1ea23a5d
mov esp, esp
xor ecx, 0x6d7209d2
sub ecx, 0x1a7d45ff
add ecx, 0xcb188d38
mul edi
mov esi, esi
cmovb eax, ecx
push eax
call fcn.00490c90
mov esi, esi
mov esi, eax
add esp, 4
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [esp - 0x44], 0x7d20bc4f
mov dword [ebp - 4], esi
test eax, eax
je 0x415606
xchg esi, esi
mov edx, esi
sub ebx, esi
mov esi, eax
mov dword [esp - 0x38], 0x40cd893f
mov ecx, edi
lea edx, [edx + 2]
and ecx, 3
xchg esp, esp
mov eax, 0x7d46d359
xor eax, 0x41f57130
sub eax, 0xe4362a2
mov dword [esp - 0xc], 0x19cf57a4
sub eax, 0x19f219ee
xor eax, 0x5a841736
xor eax, 0x3550761e
shl ecx, 3
xchg edx, edx
inc edi
sar eax, cl
cbw
xor ax, word [edx + ebx - 2]
mov edx, edx
mov word [edx - 2], ax
cmp edi, esi
jb 0x4155b3
mov dword [esp - 0x3c], esp
mov esi, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov edi, dword [ebp - 0xc]
mov dword [esp - 0x34], ecx
xor ecx, ecx
mov word [esi + eax*2], cx
mov eax, dword [ebp - 8]
mov ebp, ebp
push esi
mov eax, dword [eax]
inc eax
mov ebx, ebx
push eax
push edi
call fcn.00491620
push esi
mov esp, esp
call fcn.00490c60
mov eax, dword [ebp - 0x10]
add esp, 0x10
mov dword [eax], edi
mov dword [esp - 0x14], 0x6deadb4b
pop edi
pop esi
mov byte [eax + 4], 0x42
mov dword [esp - 0x24], ebx
add byte [eax + 4], 0xb
sub byte [eax + 4], 0x1c
sub byte [eax + 4], 5
xor byte [eax + 4], 0xf
mov ebx, ebx
add byte [eax + 4], 0x35
sub byte [eax + 4], 0x57
pop ebx
xchg ebp, ebp
mov esp, ebp
pop ebp
ret 4