joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4359a4
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 + 0x1f8], 0
je 0x4359c0
cmp dword [esi + 4], 0
je 0x4359ed
test byte [ebx + 0x55], 1
jne 0x4359df
mov eax, ebx
call fcn.004345b0
test eax, eax
jne 0x4359df
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x435afd
mov edx, esi
mov eax, ebx
call fcn.004354c8
jmp 0x435afd
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 0x435af6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00437814
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.004322cc
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.004359a4
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.00437814
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x435afd
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 0x43bf0c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x45a23c]
cmp byte [eax + 0xc], 0
je 0x43c079
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43c072
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x45bb6c], 0
jne 0x43bf60
push 0x43c080
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x43c088
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45bb6c], eax
cmp dword [0x459b10], 0
jne 0x43c05b
push 0x43c098
call sub.kernel32.dll_LoadLibraryA
mov dword [0x459b10], eax
cmp dword [0x459b10], 0
je 0x43c05b
push 0x43c0a4
mov eax, dword [0x459b10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45bb70], eax
push 0x43c0b4
mov eax, dword [0x459b10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45bb74], eax
push 0x43c0c8
mov eax, dword [0x459b10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45bb78], eax
push 0x43c0e0
mov eax, dword [0x459b10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45bb7c], eax
push 0x43c0f8
mov eax, dword [0x459b10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45bb80], eax
push 0x43c10c
mov eax, dword [0x459b10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45bb84], eax
push 0x43c124
mov eax, dword [0x459b10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45bb88], eax
push 0x43c13c
mov eax, dword [0x459b10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45bb8c], eax
push 0x43c158
mov eax, dword [0x459b10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45bb90], eax
push 0x43c164
mov eax, dword [0x459b10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45bb94], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43c079
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x43ff04
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.004045bc
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x43ff53
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.0040482c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4476fc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44774c]
test si, 4
je 0x447710
or bl, 1
test si, 8
je 0x44771a
or bl, 4
test si, 1
je 0x447724
or bl, 8
test si, 2
je 0x44772e
or bl, 0x10
test si, 0x10
je 0x447738
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x447747
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x447750
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x447788]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x447769
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x447778
or bl, 4
test esi, 0x20000000
je 0x447783
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44de4c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44de5e
add esp, 0xfffffff0
call fcn.00403a20
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041e0e0
mov eax, dword [0x459eb0]
mov dword [eax + 4], ebx
mov dword [eax], 0x44e1f0
mov eax, dword [0x459ebc]
mov dword [eax + 4], ebx
mov dword [eax], 0x44e1fc
mov eax, ebx
call fcn.0044e208
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x415e74]
call fcn.004036d0
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x415e74]
call fcn.004036d0
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x415e74]
call fcn.004036d0
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x415e74]
call fcn.004036d0
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x415e74]
call fcn.004036d0
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, 0x44a620
push eax
push 0
push 0
mov eax, dword [0x45a024]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41fb04]
call fcn.00420f6c
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41fb04]
call fcn.00420f6c
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41fb04]
call fcn.00420f6c
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044e658
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44e520
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44e520
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44e520
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44df9b
call fcn.00403a78
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44e304
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 0x44e4af
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44e490
mov dl, 1
mov eax, dword [0x416290]
call fcn.004036d0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004045bc
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44e47f
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.0043c26c
test al, al
je 0x44e472
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, 0x44e4c0
lea eax, [ebp - 0x254]
call fcn.004099a8
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44e472
xor eax, eax
push ebp
push 0x44e46b
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 0x44e4f8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44e454
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040482c
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 0x44e454
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040482c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44e472
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44e375
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00419dc8
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 0x44e4b6
lea eax, [ebp - 0x260]
call fcn.004045bc
ret

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

Disassembly:
push ecx
mov eax, dword [0x45bbb8]
cmp byte [eax + 0xa5], 0
jne 0x44ee69
cmp dword [0x45bbd0], 0
jne 0x44ee2a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44edb4
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x45bbd0], eax
cmp dword [0x45bbcc], 0
jne 0x44ee45
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x45bbcc], eax
cmp dword [0x45bbd4], 0
jne 0x44ee69
push esp
push 0
push 0
push 0x44ed58
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x45bbd4], eax
pop edx
ret
Function at 0x44f4fc
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x45bbb8]
cmp dword [eax + 0x30], 0
je 0x44f5a6
cmp dword [ebx + 0x94], 0
jne 0x44f5a0
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44f48c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44f5a0
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 0x44f566
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44f5a0
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.00418238
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44f575
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x450104
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 0x450139
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.004046ac
jmp 0x450146
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404610
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x451258
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x451299
mov eax, esi
call fcn.00437a74
test al, al
je 0x451299
mov eax, dword [ebx + 0x84]
call fcn.00437814
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x451299
push 0
mov eax, dword [ebx + 0x84]
call fcn.00437814
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x453ca4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x2001f
push 0
push 0x453d38
push 0
mov eax, ebx
call fcn.00404a7c
push eax
mov eax, dword [ebp + 8]
push eax
call sub.advapi32.dll_RegCreateKeyExA
mov ebx, eax
test ebx, ebx
jne 0x453d13
mov eax, esi
call fcn.0040487c
inc eax
push eax
mov eax, esi
call fcn.00404a7c
push eax
push 1
push 0
mov eax, edi
call fcn.00404a7c
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
test ebx, ebx
je 0x453d2e
mov ecx, dword [0x459f24]
mov dl, 1
mov eax, dword [0x4523f8]
call fcn.0040c930
call fcn.00403f4c
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x454de8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x454e4c
push dword fs:[edx]
mov dword fs:[edx], esp
push 6
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.0040482c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408ca8
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x454e53
lea eax, [ebp - 0xc]
call fcn.004045bc
ret

Function at 0x454e5c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffec
mov esi, edx
lea edi, [esp + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, dword [esp + 8]
test ebx, ebx
je 0x454eb8
push esp
push 0x40
push 6
push ebx
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x454e87
call fcn.0040ddfc
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
mov ecx, 6
call fcn.00402c98
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
push 6
mov eax, dword [esp + 0x14]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x454eb8
call fcn.0040ddfc
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x832027
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x85b094]
xor eax, ebp
mov dword [ebp + 0x194], eax
push esi
xor eax, eax
xor esi, esi
push 0x206
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push esi
push eax
mov dword [ebp - 0x7c], esi
call fcn.00842aa0
add esp, 0xc
mov dword [ebp - 0x78], esi
cmp ebx, esi
je 0x8320d9
push edi
mov edi, 0x856bb8
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x832072
sub eax, edx
sar eax, 1
je 0x8320d8
lea eax, [ebp - 0x74]
push eax
mov esi, 0x104
push esi
call dword [0x853124]
push edi
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.00840f0d
push 0x856bb0
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.008409b4
add esp, 0x18
cmp dword [ebp - 0x78], 0
je 0x8320d8
push dword [ebp - 0x78]
xor esi, esi
inc esi
push esi
push 0x200
push ebx
call fcn.0084122a
push dword [ebp - 0x78]
call fcn.00840c62
add esp, 0x14
mov dword [ebp - 0x7c], esi
pop edi
mov ecx, dword [ebp + 0x194]
mov eax, dword [ebp - 0x7c]
xor ecx, ebp
pop esi
call fcn.00840738
add ebp, 0x198
leave
ret

Function at 0x832266
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push 0x856bb0
mov esi, 0x85dde8
lea eax, [ebp - 4]
push esi
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.008409b4
add esp, 0xc
cmp dword [ebp - 4], edi
je 0x832369
push ebx
push 2
push edi
push dword [ebp - 4]
call fcn.0084169f
push dword [ebp - 4]
call fcn.008418c1
mov edi, eax
push edi
call fcn.0084192f
push 0
push 0
push dword [ebp - 4]
mov ebx, eax
mov dword [ebp - 8], ebx
call fcn.0084169f
push dword [ebp - 4]
push edi
push 1
push ebx
call fcn.0084122a
add esp, 0x30
cmp edi, eax
jne 0x83234a
call dword [0x85312c]
push eax
call fcn.008415e1
pop ecx
call fcn.008415f3
mov dword [ebp - 0xc], eax
fild dword [ebp - 0xc]
fmul qword [0x858d90]
fmul qword [0x858d88]
fadd qword [0x858d80]
call fcn.00843340
cmp edi, eax
jl 0x83234a
sub ebx, eax
push eax
add ebx, edi
call fcn.00832224
push dword [ebp - 4]
call fcn.00840c62
pop ecx
pop ecx
push esi
call dword [0x85311c]
push 0x8568c4
lea eax, [ebp - 4]
push esi
push eax
call fcn.008409b4
add esp, 0xc
cmp dword [ebp - 4], 0
je 0x832368
push dword [ebp - 4]
push edi
push 1
push dword [ebp - 8]
call fcn.00840b69
add esp, 0x10
cmp dword [ebp - 4], 0
je 0x832359
push dword [ebp - 4]
call fcn.00840c62
pop ecx
cmp dword [ebp - 8], 0
je 0x832368
push dword [ebp - 8]
call fcn.0084072d
pop ecx
pop ebx
pop edi
pop esi
leave
ret
Function at 0x833d27
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push esi
push edi
mov esi, eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
cmp dword [ebp + 8], ebx
je 0x833dec
cmp esi, 0xa
jb 0x833dec
shl eax, 2
mov dword [ebp - 0xc], eax
inc eax
push eax
call fcn.00840796
pop ecx
mov ebx, eax
push ebx
push esi
push dword [ebp + 8]
lea edi, [ebp - 0xc]
call fcn.00833cb9
add esp, 0xc
test eax, eax
je 0x833de3
push 0x8568c4
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
call fcn.008409b4
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x833d93
mov dword [ebp - 8], 0xfffffffe
jmp 0x833dff
push dword [ebp - 4]
push dword [ebp - 0xc]
push 1
push ebx
call fcn.00840b69
add esp, 0x10
cmp eax, dword [ebp - 0xc]
je 0x833db2
mov dword [ebp - 8], 0xfffffffe
jmp 0x833df0
mov esi, dword [0x85312c]
call esi
xor edx, edx
mov ecx, 0x1f4
div ecx
mov edi, edx
call esi
xor edx, edx
mov ecx, 0x3e8
div ecx
push dword [ebp - 4]
push edi
push 1
add edx, ebx
push edx
call fcn.00840b69
add esp, 0x10
jmp 0x833df0
mov dword [ebp - 8], 0xfffffffd
jmp 0x833df0
or dword [ebp - 8], 0xffffffff
cmp dword [ebp - 4], 0
je 0x833dff
push dword [ebp - 4]
call fcn.00840c62
pop ecx
test ebx, ebx
je 0x833e0a
push ebx
call fcn.00840860
pop ecx
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push edi
mov edi, edx
test ecx, ecx
jne 0x8355a9
xor eax, eax
pop edi
ret
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0x83565b
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x858720]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x858720]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x858720]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x858720]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x858720]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x858720]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x858720]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x858720]
inc ecx
sub edi, 8
dec esi
jne 0x8355c0
pop ebx
test edi, edi
je 0x835674
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x858720]
inc ecx
dec edi
jne 0x83565f
pop esi
not eax
pop edi
ret

Function at 0x835679
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [ecx]
movsx edx, dl
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x858720]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x858720]
pop esi
mov dword [ecx + 8], eax
ret
Function at 0x401010
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x830
mov dword [ebp - 4], 0
push 0
push 0x8000000
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_CreateFileW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x401066
call sub.kernel32.dll_GetLastError
push eax
push str.CertUtil:__hashfile_command_failed:__d_n
push 0x4040e0
call fcn.00401510
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x401206
push 0xf0000000
push 1
push 0
push 0
lea ecx, [ebp - 0x18]
push ecx
call dword [sym.imp.advapi32.dll_CryptAcquireContextW]
test eax, eax
je 0x4011e2
lea edx, [ebp - 0xc]
push edx
push 0
push 0
push 0x8004
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.advapi32.dll_CryptCreateHash]
test eax, eax
je 0x4011bc
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0x800
lea edx, [ebp - 0x830]
push edx
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_ReadFile
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40110c
cmp dword [ebp - 0x14], 0
jne 0x4010ce
jmp 0x40110c
push 0
mov ecx, dword [ebp - 0x14]
push ecx
lea edx, [ebp - 0x830]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.advapi32.dll_CryptHashData]
test eax, eax
jne 0x40110a
mov dword [ebp - 4], 0
call sub.kernel32.dll_GetLastError
push eax
push str.CertUtil:__hashfile_command_failed_to_hash:__d_n
push 0x4040e0
call fcn.00401510
add esp, 0xc
jmp 0x40110c
jmp 0x4010a2
cmp dword [ebp - 4], 0
je 0x4011b0
push 0
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x30]
push edx
push 2
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.advapi32.dll_CryptGetHashParam]
test eax, eax
je 0x401191
mov ecx, dword [ebp + 8]
push ecx
push str.SHA1_hash_of__s:_n
push 0x4040e0
call fcn.00401510
add esp, 0xc
mov dword [ebp - 8], 0
jmp 0x401158
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x1c]
jae 0x40117d
mov ecx, dword [ebp - 8]
movzx edx, byte [ebp + ecx - 0x30]
push edx
push str._02x
push 0x4040e0
call fcn.00401510
add esp, 0xc
jmp 0x40114f
push 0x403200
push 0x4040e0
call fcn.004015e0
add esp, 8
jmp 0x4011b0
call sub.kernel32.dll_GetLastError
push eax
push str.CertUtil:__hashfile_command_failed_to_extract_hash:__d_n
push 0x4040e0
call fcn.00401510
add esp, 0xc
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.advapi32.dll_CryptDestroyHash]
jmp 0x4011d4
call sub.kernel32.dll_GetLastError
push eax
push str.CertUtil:__hashfile_command_no_algorithm:__d_n
push 0x4040e0
call fcn.00401510
add esp, 0xc
push 0
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.advapi32.dll_CryptReleaseContext]
jmp 0x4011fa
call sub.kernel32.dll_GetLastError
push eax
push str.CertUtil:__hashfile_command_no_context:__d_n
push 0x4040e0
call fcn.00401510
add esp, 0xc
mov edx, dword [ebp - 0x10]
push edx
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret