joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43f50c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffed8
mov ebx, ecx
mov edi, edx
mov esi, eax
call sub.user32.dll_GetMessagePos
call fcn.00406584
mov dword [esp + 8], eax
movsx eax, word [esp + 8]
mov dword [esp + 0xc], eax
movsx eax, word [esp + 0xa]
mov dword [esp + 0x10], eax
mov ecx, esp
lea edx, [esp + 0xc]
mov eax, esi
call fcn.0043a34c
test ebx, ebx
jne 0x43f55f
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.0043f448
mov ebx, eax
test ebx, ebx
je 0x43f64a
cmp esi, ebx
je 0x43f588
mov eax, dword [esp]
sub eax, dword [ebx + 0x40]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x44]
mov dword [esp + 0x118], eax
jmp 0x43f59d
mov eax, dword [esp]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x11c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x124], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x43f5d5
add eax, 0xffffff5f
sub eax, 2
jb 0x43f5ed
dec eax
sub eax, 2
jb 0x43f601
dec eax
sub eax, 2
jb 0x43f5f7
jmp 0x43f60b
add eax, 0xfffffdff
sub eax, 2
jb 0x43f5ed
dec eax
sub eax, 2
jb 0x43f601
dec eax
sub eax, 2
jb 0x43f5f7
jmp 0x43f60b
mov byte [esp + 0x120], 0
jmp 0x43f613
mov byte [esp + 0x120], 2
jmp 0x43f613
mov byte [esp + 0x120], 1
jmp 0x43f613
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.0044cf08
mov byte [esp + 0x121], al
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.0043bac8
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x43f64c
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret
Function at 0x4402b8
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x240], 0
je 0x4402d4
cmp dword [esi + 4], 0
je 0x440301
test byte [ebx + 0x55], 1
jne 0x4402f3
mov eax, ebx
call fcn.0043e6a0
test eax, eax
jne 0x4402f3
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x440411
mov edx, esi
mov eax, ebx
call fcn.0043fcc0
jmp 0x440411
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x44040a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00442310
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.0043bac8
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.004402b8
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00442310
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x440411
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x447694
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4c2080]
cmp byte [eax + 0xc], 0
je 0x447801
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4477fa
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4c6544], 0
jne 0x4476e8
push 0x447808
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x447810
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c6544], eax
cmp dword [0x4735d8], 0
jne 0x4477e3
push 0x447820
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4735d8], eax
cmp dword [0x4735d8], 0
je 0x4477e3
push 0x44782c
mov eax, dword [0x4735d8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c6548], eax
push 0x44783c
mov eax, dword [0x4735d8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c654c], eax
push 0x447850
mov eax, dword [0x4735d8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c6550], eax
push 0x447868
mov eax, dword [0x4735d8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c6554], eax
push 0x447880
mov eax, dword [0x4735d8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c6558], eax
push 0x447894
mov eax, dword [0x4735d8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c655c], eax
push 0x4478ac
mov eax, dword [0x4735d8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c6560], eax
push 0x4478c4
mov eax, dword [0x4735d8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c6564], eax
push 0x4478e0
mov eax, dword [0x4735d8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c6568], eax
push 0x4478ec
mov eax, dword [0x4735d8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c656c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x447801
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x44ce70
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x44cec4]
test si, 4
je 0x44ce85
or bl, 1
test si, 8
je 0x44ce8f
or bl, 4
test si, 1
je 0x44ce99
or bl, 8
test si, 2
je 0x44cea3
or bl, 0x10
test si, 0x10
je 0x44cead
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44cebc
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44cec8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x44cf04]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44cee2
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44cef1
or bl, 4
test esi, 0x20000000
je 0x44cefc
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4545b8
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4545ca
add esp, 0xfffffff0
call fcn.00403b98
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a108
mov eax, dword [0x4c1d48]
mov dword [eax + 4], ebx
mov dword [eax], 0x45495c
mov eax, dword [0x4c1d54]
mov dword [eax + 4], ebx
mov dword [eax], 0x454968
mov eax, ebx
call fcn.00454974
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411f04]
call fcn.00403844
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411f04]
call fcn.00403844
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411f04]
call fcn.00403844
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411f04]
call fcn.00403844
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411f04]
call fcn.00403844
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, 0x45040c
push eax
push 0
push 0
mov eax, dword [0x4c1e9c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41dc34]
call fcn.0041f488
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41dc34]
call fcn.0041f488
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41dc34]
call fcn.0041f488
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00454da4
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x454c74
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x454c74
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x454c74
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x454707
call fcn.00403bf0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x454a58
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 0x454c03
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x454be4
mov dl, 1
mov eax, dword [0x412328]
call fcn.00403844
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004046a0
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x454bd3
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.004479f0
test al, al
je 0x454bc6
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, 0x454c14
lea eax, [ebp - 0x254]
call fcn.004092d0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x454bc6
xor eax, eax
push ebp
push 0x454bbf
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 0x454c4c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x454ba8
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404910
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 0x454ba8
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404910
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x454bc6
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x454ac9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.00416008
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 0x454c0a
lea eax, [ebp - 0x260]
call fcn.004046a0
ret

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

Disassembly:
push ecx
mov eax, dword [0x4c657c]
cmp byte [eax + 0xad], 0
jne 0x4555ed
cmp dword [0x4c6594], 0
jne 0x4555ae
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x455538
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4c6594], eax
cmp dword [0x4c6590], 0
jne 0x4555c9
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4c6590], eax
cmp dword [0x4c6598], 0
jne 0x4555ed
push esp
push 0
push 0
push 0x4554dc
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4c6598], eax
pop edx
ret
Function at 0x4557c0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4557d7
add esp, 0xfffffff0
call fcn.00403b98
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a108
mov eax, dword [0x4c1e84]
cmp word [eax + 2], 0
jne 0x4557ff
mov eax, dword [0x4c1e84]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00457270
mov eax, dword [0x4c1f30]
cmp word [eax + 2], 0
jne 0x455819
mov eax, dword [0x4c1f30]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045747c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411f04]
call fcn.00403844
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411f04]
call fcn.00403844
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x411f04]
call fcn.00403844
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x41e744]
call fcn.00426094
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x4559d0
mov eax, dword [0x4c1db0]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00426468
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x457b3c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4c1db0]
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.0040ca74
test eax, eax
je 0x455920
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408c88
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040caa8
test eax, eax
je 0x455934
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404910
mov byte [ebx + 0xd4], 0
push ebx
push 0x456dd0
call fcn.0041b284
mov dword [ebx + 0xc8], eax
mov eax, dword [0x4c1ca4]
cmp byte [eax], 0
jne 0x455985
mov eax, ebx
call fcn.00455b14
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.00457d18
mov eax, ebx
call fcn.00458878
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4559c5
call fcn.00403bf0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x455d94
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4c657c]
cmp dword [eax + 0x30], 0
je 0x455e3e
cmp dword [ebx + 0x94], 0
jne 0x455e38
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x455d24
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x455e38
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 0x455dfe
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x455e38
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.004142b0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x455e0d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x456b58
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x456b8d
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.00404790
jmp 0x456b9a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004046f4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x457efc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x457f6a
mov eax, esi
call fcn.004426b0
test al, al
je 0x457f6a
mov eax, dword [ebx + 0x84]
call fcn.00442310
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x457f6a
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x457f5e
push 0
mov eax, dword [ebx + 0x84]
call fcn.00442310
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0043a73c
jmp 0x457f6a
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00457d38
pop esi
pop ebx
ret
Function at 0x45b7a0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x45b7ce
mov eax, ebx
call fcn.0045c254
cmp dword [ebx + 0x40], 0
je 0x45b7c7
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x45b83f
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x45b831
cmp dword [ebx + 8], 0
je 0x45b7f0
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x45b802
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x45b831
cmp dword [ebx + 8], 0
je 0x45b7e3
cmp eax, 3
je 0x45b815
dec eax
jne 0x45b7e3
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 0x45b7e3
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x45b7e3
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x45b85d
cmp dword [ebx + 0x14], 0xcc
je 0x45b85d
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0045b868
pop ebx
ret
Function at 0x401764
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x401796
test dl, 7
je 0x401796
movzx ecx, byte [edx]
movzx eax, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x42ba70]
inc edx
mov dword [ebp + 0xc], edx
sub esi, 1
jne 0x401776
cmp esi, 8
jb 0x401826
push edi
mov edi, esi
shr edi, 3
xor ebx, dword [edx]
sub esi, 8
mov edx, dword [edx + 4]
mov ecx, edx
shr ecx, 0x18
mov eax, edx
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x42ba70]
xor ecx, dword [eax*4 + 0x42be70]
mov eax, edx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x42c270]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x42ca70]
mov eax, ebx
shr eax, 0x10
movzx eax, al
xor ecx, dword [eax*4 + 0x42ce70]
mov eax, ebx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x42d270]
movzx eax, dl
mov edx, dword [ebp + 0xc]
add edx, 8
mov dword [ebp + 0xc], edx
xor ecx, dword [eax*4 + 0x42c670]
movzx eax, bl
xor ecx, dword [eax*4 + 0x42d670]
mov ebx, ecx
sub edi, 1
jne 0x4017a5
pop edi
test esi, esi
je 0x401842
movzx ecx, byte [edx]
movzx eax, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x42ba70]
inc edx
sub esi, 1
jne 0x40182a
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0xc

Function at 0x401de8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0xc], 1
jne 0x401e01
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 4], eax
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x401e74
mov ecx, esi
call fcn.00401ed5
test al, al
je 0x401e3c
mov eax, 0x4e20
cmp dword [ebp + 0xc], eax
jbe 0x401e3c
push eax
push dword [ebp + 8]
mov ecx, esi
call fcn.00401de8
jmp 0x401e77
cmp dword [esi + 0xc], 1
jne 0x401e51
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x401e51
xor eax, eax
jmp 0x401e77
cmp dword [esi + 0xc], 0
jne 0x401e6f
mov ebx, 0x8000
cmp dword [ebp + 0xc], ebx
jbe 0x401e6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
jne 0x401e6f
push ebx
jmp 0x401e30
or eax, 0xffffffff
jmp 0x401e77
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x401ef8
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x1008
call fcn.0040f4d0
push ebx
mov ebx, dword [esp + 0x1014]
xor edx, edx
push ebp
push edi
mov edi, ecx
mov dword [edi + 0x1020], edx
cmp byte [edi + 0x1c], dl
jne 0x401f22
mov cl, dl
test bl, 4
je 0x401f24
mov cl, 1
mov eax, ebx
shr eax, 1
push esi
and al, 1
movzx esi, al
neg esi
sbb esi, esi
and esi, 0xc0000000
add esi, 0x80000000
test bl, 1
je 0x401f49
or esi, 0x40000000
shr ebx, 3
not ebx
and ebx, 1
test cl, cl
je 0x401f58
or ebx, 2
xor eax, eax
cmp byte [edi + 0x15], al
push edx
setne al
dec eax
and eax, 0x8000000
push eax
push 3
push edx
push ebx
push esi
push dword [esp + 0x1034]
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x401fe7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x18]
push 0x800
push eax
push dword [esp + 0x1024]
call fcn.004033cf
test al, al
je 0x401fd6
push 0
push dword [esp + 0x18]
lea eax, [esp + 0x20]
push 3
push 0
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x401fd1
mov dword [esp + 0x10], eax
cmp ebp, 0xffffffff
jne 0x401fe7
cmp dword [esp + 0x10], 2
jne 0x401fe7
mov dword [edi + 0x1020], 1
xor eax, eax
cmp ebp, 0xffffffff
mov byte [edi + 0x12], al
setne bl
mov dword [edi + 0xc], eax
mov byte [edi + 0x10], al
pop esi
test bl, bl
je 0x402015
push 0x800
push dword [esp + 0x101c]
lea ecx, [edi + 0x1e]
mov dword [edi + 4], ebp
push ecx
call fcn.004045a8
pop edi
pop ebp
mov al, bl
pop ebx
add esp, 0x1008
ret 8

Function at 0x40257d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0040f4d0
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4025c2
push 0x800
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 8]
call fcn.004033cf
test al, al
je 0x4025c2
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4025fe
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0040f4d0
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0040366d
movzx eax, word [eax]
cmp eax, 0x2e
je 0x40262f
cmp eax, 0x20
je 0x40262f
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x402662
push esi
call fcn.00402569
test al, al
jne 0x402675
push 0x800
lea eax, [ebp - 0x1000]
push eax
push esi
call fcn.004033cf
test al, al
je 0x402675
push 0
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x402675
cmp byte [ebp + 0xc], 0
je 0x402671
push dword [ebp + 0x10]
push esi
call fcn.0040283b
xor eax, eax
jmp 0x40268d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40268a
cmp eax, 3
je 0x40268a
xor eax, eax
inc eax
jmp 0x40268d
push 2
pop eax
pop esi
mov esp, ebp
pop ebp
ret 0xc