joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42b2c0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cb5f1
mov eax, dword fs:[0]
push eax
sub esp, 0x1bc
mov eax, dword [0x6b4774]
xor eax, ebp
mov dword [ebp - 0x98], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0xffffffff
mov ecx, dword [ebp + 8]
call fcn.00427af0
test eax, eax
jne 0x42b32b
cmp dword [ebp + 0x14], 0
je 0x42b324
push str.GetAttributes:_filename_is_empty
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x14]
mov edx, dword [eax + 0x10]
call edx
xor al, al
jmp 0x42b494
lea ecx, [ebp - 0x94]
call fcn.00427960
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x94]
call fcn.00429710
push 0x5c
push 0x2f
lea ecx, [ebp - 0x94]
call fcn.00429c40
lea ecx, [ebp - 0x94]
call fcn.00427af0
mov dword [ebp - 0x138], eax
lea ecx, [ebp - 0x134]
call fcn.0045d580
mov byte [ebp - 4], 1
cmp dword [ebp - 0x138], 0x104
jge 0x42b3dc
lea ecx, [ebp - 0x94]
call fcn.004288d0
movzx ecx, al
test ecx, ecx
jne 0x42b3ab
lea ecx, [ebp - 0x134]
call fcn.0045d600
movzx edx, al
test edx, edx
je 0x42b3dc
lea ecx, [ebp - 0x94]
call fcn.00428ba0
push eax
call fcn.0042d130
add esp, 4
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0xffffffff
jne 0x42b3d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jmp 0x42b45c
cmp dword [ebp - 0x138], 0
jle 0x42b432
lea ecx, [ebp - 0x1c4]
call fcn.00427960
mov byte [ebp - 4], 2
lea edx, [ebp - 0x1c4]
push edx
lea eax, [ebp - 0x94]
push eax
call fcn.0042a5d0
add esp, 8
lea ecx, [ebp - 0x1c4]
call fcn.00428380
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c4]
call fcn.00427a70
jmp 0x42b449
lea ecx, [ebp - 0x94]
call fcn.00428380
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0xffffffff
jne 0x42b45c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov edx, dword [ebp + 0xc]
xor eax, eax
cmp dword [edx], 0xffffffff
setne al
mov byte [ebp - 0x1c5], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x134]
call fcn.0045d5e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00427a70
mov al, byte [ebp - 0x1c5]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x98]
xor ecx, ebp
call fcn.0058bad0
mov esp, ebp
pop ebp
ret
Function at 0x42b7b0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cb69c
mov eax, dword fs:[0]
push eax
sub esp, 0x1e4
mov eax, dword [0x6b4774]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x13c]
call fcn.00427960
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x13c]
call fcn.00429710
push 0x5c
push 0x2f
lea ecx, [ebp - 0x13c]
call fcn.00429c40
lea ecx, [ebp - 0xac]
call fcn.0045d580
mov byte [ebp - 4], 1
mov dword [ebp - 0xb0], 0
lea ecx, [ebp - 0xac]
call fcn.0045d600
movzx ecx, al
test ecx, ecx
je 0x42b854
push 0
lea ecx, [ebp - 0x13c]
call fcn.00428ba0
push eax
call fcn.0042d0f0
add esp, 8
mov dword [ebp - 0xb0], eax
jmp 0x42b8cd
lea ecx, [ebp - 0x13c]
call fcn.00427af0
test eax, eax
jle 0x42b8b3
lea ecx, [ebp - 0x1c4]
call fcn.00427960
mov byte [ebp - 4], 2
lea edx, [ebp - 0x1c4]
push edx
lea eax, [ebp - 0x13c]
push eax
call fcn.0042a5d0
add esp, 8
push 0
lea ecx, [ebp - 0x1c4]
call fcn.00428360
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 0xb0], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c4]
call fcn.00427a70
jmp 0x42b8cd
push 0
lea ecx, [ebp - 0x13c]
call fcn.00428360
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 0xb0], eax
cmp dword [ebp - 0xb0], 0
jne 0x42b923
cmp dword [ebp + 0xc], 0
je 0x42b923
lea ecx, [ebp - 0x1ec]
call fcn.00421800
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1ec]
call fcn.00424090
lea ecx, [ebp - 0x1ec]
call fcn.0055afa0
push eax
push str.errorMsg
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
mov eax, dword [edx + 0x28]
call eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1ec]
call fcn.00421bd0
cmp dword [ebp - 0xb0], 0
setne cl
mov byte [ebp - 0x1ed], cl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xac]
call fcn.0045d5e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x13c]
call fcn.00427a70
mov al, byte [ebp - 0x1ed]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0058bad0
mov esp, ebp
pop ebp
ret
Function at 0x42b980
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cb5f1
mov eax, dword fs:[0]
push eax
sub esp, 0x1bc
mov eax, dword [0x6b4774]
xor eax, ebp
mov dword [ebp - 0x98], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x94]
call fcn.00427960
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x94]
call fcn.00429710
push 0x5c
push 0x2f
lea ecx, [ebp - 0x94]
call fcn.00429c40
push 0
lea ecx, [ebp - 0x94]
push ecx
call fcn.0042a9c0
add esp, 8
lea ecx, [ebp - 0x134]
call fcn.0045d580
mov byte [ebp - 4], 1
mov dword [ebp - 0x138], 0
lea ecx, [ebp - 0x134]
call fcn.0045d600
movzx edx, al
test edx, edx
je 0x42ba3d
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x94]
call fcn.00428ba0
push eax
call fcn.0042d110
add esp, 8
movzx ecx, al
mov dword [ebp - 0x138], ecx
jmp 0x42baba
lea ecx, [ebp - 0x94]
call fcn.00427af0
test eax, eax
jle 0x42ba9e
lea ecx, [ebp - 0x1c4]
call fcn.00427960
mov byte [ebp - 4], 2
lea edx, [ebp - 0x1c4]
push edx
lea eax, [ebp - 0x94]
push eax
call fcn.0042a5d0
add esp, 8
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x1c4]
call fcn.00428360
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 0x138], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c4]
call fcn.00427a70
jmp 0x42baba
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x94]
call fcn.00428360
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 0x138], eax
cmp dword [ebp - 0x138], 0
setne al
mov byte [ebp - 0x1c5], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x134]
call fcn.0045d5e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00427a70
mov al, byte [ebp - 0x1c5]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x98]
xor ecx, ebp
call fcn.0058bad0
mov esp, ebp
pop ebp
ret

Function at 0x42d110
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
setne al
pop ebp
ret
Function at 0x432fd0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp - 0xc]
push ecx
push 0x433090
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x43303c
mov edx, dword [ebp - 0xc]
mov byte [edx + 0x130], 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
call fcn.0042e540
push str.Failed_to_start_thread
mov ecx, dword [ebp - 0xc]
add ecx, 0x10
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x10]
mov edx, dword [eax + 0x10]
call edx
mov ecx, dword [ebp - 0xc]
add ecx, 0x10
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x10]
mov eax, dword [edx + 0x24]
call eax
xor al, al
jmp 0x43307b
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0xc]
call fcn.0042e540
push str.Task_started_in_background_thread.
mov ecx, dword [ebp - 0xc]
add ecx, 0x10
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x10]
mov eax, dword [edx + 0x14]
call eax
mov ecx, dword [ebp - 0xc]
add ecx, 0x10
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x10]
mov edx, dword [eax + 0x24]
call edx
mov al, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x439cf0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cc7b2
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x6b4774]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable.ClsBgTask.0
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 8], 0
mov edx, dword [ebp - 0x10]
mov byte [edx + 9], 1
mov eax, dword [ebp - 0x10]
mov byte [eax + 0xa], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.00453600
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x24], 0
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x28], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.00427960
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0xb8
call fcn.00424c80
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
mov dword [eax + 0xd8], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0xe0
call fcn.0046e120
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x1a8
call fcn.004862b0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x439e10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cc810
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x6b4774]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable.ClsBgTask.0
mov dword [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.00453ba0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x1a8
call fcn.00486370
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0xe0
call fcn.0046e1f0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0xb8
call fcn.00426130
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.00427a70
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.00453650
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x450680
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c4
mov eax, dword [0x6b4774]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c4], 0x190
lea eax, [ebp - 0x1c4]
push eax
lea ecx, [ebp - 0x1c0]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4506c1
mov byte [ebp - 0x1c0], 0
lea edx, [ebp - 0x1c0]
push edx
mov ecx, dword [ebp + 8]
call fcn.00421110
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0058bad0
mov esp, ebp
pop ebp
ret

Function at 0x450700
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x6b4774]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x84], 0x76
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x80]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x88], 0
jne 0x450741
mov byte [ebp - 0x80], 0
lea edx, [ebp - 0x80]
push edx
mov ecx, dword [ebp + 8]
call fcn.00421110
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058bad0
mov esp, ebp
pop ebp
ret

Function at 0x459900
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 0x14]
mov byte [eax], 0
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
cmp dword [ebp + 0xc], 0
je 0x459924
cmp dword [ebp + 8], 0
jne 0x459943
cmp dword [ebp + 0x18], 0
je 0x45993c
push str.NULL_buf_or_bufSize
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x18]
mov edx, dword [eax + 0x10]
call edx
xor al, al
jmp 0x459a11
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0xffffffff
je 0x4599b3
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4599a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x26
jne 0x459989
mov eax, dword [ebp + 0x14]
mov byte [eax], 1
mov al, 1
jmp 0x459a11
cmp dword [ebp + 0x18], 0
je 0x45999b
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp + 0x18]
call fcn.0045c890
xor al, al
jmp 0x459a11
mov edx, dword [ebp + 0x10]
cmp dword [edx], 0
jne 0x4599af
mov eax, dword [ebp + 0x14]
mov byte [eax], 1
mov al, 1
jmp 0x459a11
mov ecx, dword [ebp - 8]
cmp dword [ecx + 8], 0
je 0x459a0f
mov edx, dword [ebp - 8]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.00591a72
add esp, 0x10
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
cmp eax, dword [ebp + 0xc]
jne 0x4599ea
mov al, 1
jmp 0x459a11
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
push edx
call fcn.0059179e
add esp, 4
test eax, eax
je 0x459a03
xor al, al
jmp 0x459a11
mov eax, dword [ebp + 0x14]
mov byte [eax], 1
mov al, 1
jmp 0x459a11
xor al, al
mov esp, ebp
pop ebp
ret 0x14
Function at 0x459a20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ce028
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x6b4774]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x48], ecx
mov ecx, dword [ebp - 0x48]
call fcn.00459380
movzx eax, al
test eax, eax
jne 0x459a76
cmp dword [ebp + 0x18], 0
je 0x459a6f
push str.Failed_to_write_because_file_is_not_open.
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0x18]
mov eax, dword [edx + 0x10]
call eax
xor al, al
jmp 0x459bd9
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
cmp dword [ebp + 0x14], 0
je 0x459a92
mov edx, dword [ebp + 0x14]
mov dword [edx], 0
mov dword [edx + 4], 0
mov eax, dword [ebp + 0xc]
or eax, dword [ebp + 0x10]
je 0x459bd7
cmp dword [ebp + 0x10], 0
jl 0x459ab8
jg 0x459aaf
cmp dword [ebp + 0xc], 0x989680
jbe 0x459ab8
mov dword [ebp - 0x18], 0x989680
jmp 0x459abe
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x48]
cmp dword [edx + 4], 0xffffffff
je 0x459b4e
mov dword [ebp - 0x14], 0
push 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x459afe
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x18]
je 0x459b4c
cmp dword [ebp + 0x18], 0
je 0x459b45
lea ecx, [ebp - 0x44]
call fcn.00421800
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.00424090
lea ecx, [ebp - 0x44]
call fcn.0055afa0
push eax
push str.WriteFileError
mov eax, dword [ebp + 0x18]
mov edx, dword [eax]
mov ecx, dword [ebp + 0x18]
mov eax, dword [edx + 0x28]
call eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00421bd0
xor al, al
jmp 0x459bd9
jmp 0x459b97
mov ecx, dword [ebp - 0x48]
cmp dword [ecx + 8], 0
je 0x459b97
mov edx, dword [ebp - 0x48]
mov eax, dword [edx + 8]
push eax
push 1
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.0058d3d9
add esp, 0x10
cmp eax, 1
je 0x459b91
cmp dword [ebp + 0x18], 0
je 0x459b8d
push str.fwrite_failed.
mov eax, dword [ebp + 0x18]
mov edx, dword [eax]
mov ecx, dword [ebp + 0x18]
mov eax, dword [edx + 0x10]
call eax
xor al, al
jmp 0x459bd9
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0x18]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov edx, dword [ebp + 0xc]
sub edx, eax
mov eax, dword [ebp + 0x10]
sbb eax, ecx
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
cmp dword [ebp + 0x14], 0
je 0x459bd2
mov ecx, dword [ebp - 0x14]
xor edx, edx
mov eax, dword [ebp + 0x14]
add ecx, dword [eax]
mov eax, dword [eax + 4]
adc eax, edx
mov edx, dword [ebp + 0x14]
mov dword [edx], ecx
mov dword [edx + 4], eax
jmp 0x459a92
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x459bf0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ce358
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x6b4774]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp - 0x40]
cmp dword [eax + 4], 0xffffffff
je 0x459c92
push 0
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x459c8d
cmp dword [ebp + 8], 0
je 0x459c8d
lea ecx, [ebp - 0x3c]
call fcn.00421800
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.00424090
lea ecx, [ebp - 0x3c]
call fcn.0055afa0
push eax
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
call eax
push str.Failed_to_get_file_size__32_
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
call eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00421bd0
mov eax, dword [ebp - 0x10]
jmp 0x459cba
mov ecx, dword [ebp - 0x40]
cmp dword [ecx + 8], 0
je 0x459cb7
mov edx, dword [ebp - 0x40]
mov eax, dword [edx + 8]
push eax
call fcn.00597815
add esp, 4
push eax
call fcn.00591a8f
add esp, 4
jmp 0x459cba
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x459cd0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d9918
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x6b4774]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x50], ecx
mov eax, dword [ebp - 0x50]
cmp dword [eax + 4], 0xffffffff
je 0x459da0
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x50]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x459d82
cmp dword [ebp + 8], 0
je 0x459d7a
lea ecx, [ebp - 0x4c]
call fcn.00421800
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.00424090
lea ecx, [ebp - 0x4c]
call fcn.0055afa0
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
call eax
push str.Failed_to_get_file_size__64_
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
call eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.00421bd0
or eax, 0xffffffff
or edx, 0xffffffff
jmp 0x459dcb
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.00453c70
add esp, 8
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
jmp 0x459dcb
mov eax, dword [ebp - 0x50]
cmp dword [eax + 8], 0
je 0x459dc5
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 8]
push edx
call fcn.00597815
add esp, 4
push eax
call fcn.00591b8e
add esp, 4
jmp 0x459dcb
or eax, 0xffffffff
or edx, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x459de0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 0x18], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x14], 0
mov edx, dword [ebp - 4]
mov dword [edx + 4], 0x67452301
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0xefcdab89
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], 0x98badcfe
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], 0x10325476
mov esp, ebp
pop ebp
ret

Function at 0x45eea0
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 8], 0
jge 0x45eeb0
xor al, al
jmp 0x45eef9
cmp dword [ebp + 0xc], 0
jne 0x45eeba
xor al, al
jmp 0x45eef9
mov byte [ebp - 5], 0
call fcn.00450800
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x45eed0
xor al, al
jmp 0x45eef9
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x45eeea
mov byte [ebp - 5], 1
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret
Function at 0x45f550
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 3
ja case.default.0x45f56d
mov ecx, dword [ebp - 0x18]
jmp dword [ecx*4 + 0x45f6fc]
mov dword [ebp - 4], 0
jmp 0x45f586
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 5
jge 0x45f5a2
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov edx, dword [edx*4 + 0x621c98]
mov dword [ecx + eax*4 + 4], edx
jmp 0x45f57d
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x24], 0
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x28], 0
jmp case.default.0x45f56d
mov dword [ebp - 8], 0
jmp 0x45f5cd
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 8
jge 0x45f5e9
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x621db0]
mov dword [ecx + eax*4 + 4], edx
jmp 0x45f5c4
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x24], 0
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x28], 0
jmp case.default.0x45f56d
mov dword [ebp - 0xc], 0
jmp 0x45f614
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 8
jge 0x45f641
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax*8 + 0x621dd0]
mov edx, dword [eax*8 + 0x621dd4]
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
mov dword [esi + eax*8 + 0xac], ecx
mov dword [esi + eax*8 + 0xb0], edx
jmp 0x45f60b
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0xec], 0
mov edx, dword [ebp - 0x14]
mov dword [edx + 0xf0], 0
mov eax, dword [ebp - 0x14]
mov dword [eax + 0xf4], 0
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0xf8], 0
jmp case.default.0x45f56d
mov dword [ebp - 0x10], 0
jmp 0x45f689
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 8
jge 0x45f6b6
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax*8 + 0x622090]
mov edx, dword [eax*8 + 0x622094]
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
mov dword [esi + eax*8 + 0xac], ecx
mov dword [esi + eax*8 + 0xb0], edx
jmp 0x45f680
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0xec], 0
mov edx, dword [ebp - 0x14]
mov dword [edx + 0xf0], 0
mov eax, dword [ebp - 0x14]
mov dword [eax + 0xf4], 0
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0xf8], 0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
mov dword [edx], eax
mov eax, dword [ebp - 0x14]
pop esi
mov esp, ebp
pop ebp
ret 4