joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004020
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001340
push 0x10041d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
add esp, 4
mov dword [0x1006f84], 0xffffffff
mov dword [0x1006f88], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x1006360]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov edx, dword [0x100635c]
mov dword [eax], edx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov ecx, dword [eax]
mov dword [0x1006f8c], ecx
call fcn.010041c0
mov eax, dword [0x1006150]
test eax, eax
jne 0x10040b1
push 0x10041b0
call dword [sym.imp.MSVCRT.dll___setusermatherr]
add esp, 4
call fcn.01004190
push 0x100600c
push 0x1006008
call sub.MSVCRT.dll__initterm
add esp, 8
mov edx, dword [0x1006358]
mov dword [ebp - 0x28], edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [0x1006354]
push ecx
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call dword [sym.imp.MSVCRT.dll___wgetmainargs]
add esp, 0x14
push 0x1006004
push section..data
call sub.MSVCRT.dll__initterm
add esp, 8
call dword [sym.imp.MSVCRT.dll___p___winitenv]
mov edx, dword [ebp - 0x20]
mov dword [eax], edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.01001615
add esp, 0xc
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
jmp 0x1004150
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1004560
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
push edi
cmp dword [ebp + 8], esi
mov dword [ebp - 4], esi
je 0x100460e
cmp dword [ebp + 0xc], esi
je 0x100460e
cmp dword [ebp + 0x10], esi
je 0x100460e
push esi
push esi
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 8]
call fcn.01004797
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10045bf
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
je 0x100460a
call edi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x100460a
lea eax, [ebp - 4]
push esi
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10045f3
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
je 0x1004603
call edi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x1004603
mov esi, dword [ebp - 4]
sub esi, dword [ebp + 0x10]
neg esi
sbb esi, esi
and esi, 0x80004005
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x1004613
mov eax, 0x80070057
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x401c50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 4]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0x4000
mov edx, 0x8000
sub edx, dword [ebp - 8]
cmp dword [ebp - 4], edx
jbe 0x401c93
mov eax, 0x8000
sub eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ecx
call fcn.005c8bd5
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x401cbb
mov dword [ebp - 8], 0
jmp 0x401cdc
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 4]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 8]
add eax, dword [ebp - 4]
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
je 0x401cdc
cmp dword [ebp - 8], 0x8000
jb 0x401c74
mov ecx, dword [ebp - 8]
push ecx
call fcn.00401c00
add esp, 4
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x403d80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x403da4
xor eax, eax
jmp 0x403e24
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x403dbb
xor eax, eax
jmp 0x403e24
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x403e07
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x403e07
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x403dde
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x403e13
xor eax, eax
jmp 0x403e24
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x403e21
xor eax, eax
jmp 0x403e24
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x408e70
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5db58b
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x65eff4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.004085e0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable.CryptoPP::BaseN_Decoder.0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], vtable.CryptoPP::BaseN_Decoder.1.0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x18], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x1c], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x20], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x24], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x28], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x2c], 0
push 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.0040e620
mov byte [ebp - 4], 1
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.004546f0
push 1
lea eax, [ebp + 8]
push eax
call fcn.00408d50
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.004194e0
add esp, 0x10
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x18], edx
mov byte [ebp - 4], 2
lea eax, [ebp + 0xc]
push eax
call fcn.00408d40
push eax
mov ecx, dword [ebp - 0x18]
call fcn.004194b0
push eax
mov ecx, dword [ebp - 0x10]
call fcn.00456c30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.004089e0
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 0xc
Function at 0x414f00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dbcf8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x65eff4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x38], 0
je 0x414f40
mov ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x414f4c
mov al, 1
jmp 0x4150ef
mov dword [ebp - 0x48], 8
call fcn.004051d0
push eax
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x3c], eax
call fcn.004051d0
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.00405150
add esp, 8
movzx eax, al
test eax, eax
je 0x414f8f
xor al, al
jmp 0x4150ef
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.0040ee80
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x4c]
push edx
lea ecx, [ebp - 0x28]
call fcn.004147d0
mov ecx, eax
call fcn.004142d0
mov esi, eax
lea ecx, [ebp - 0x28]
call fcn.0040eb60
add esi, eax
push esi
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x28]
call fcn.004147d0
mov ecx, eax
call fcn.004142d0
push eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0x40
push ecx
mov edx, dword [ebp - 0x2c]
mov ecx, dword [edx + 0x38]
call fcn.00415b80
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x41500a
cmp dword [ebp - 0x38], 1
je 0x415011
cmp dword [ebp - 0x38], 3
je 0x4150ab
jmp 0x4150c3
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0x3d], 0
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x28]
call fcn.004147d0
mov ecx, eax
call fcn.004142d0
mov edx, dword [ebp - 0x44]
sub edx, eax
mov dword [ebp - 0x34], edx
je 0x415074
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x34]
push edx
push 1
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x28]
call fcn.004147d0
mov ecx, eax
call fcn.004142d0
push eax
call fcn.005be3bf
add esp, 0x10
cmp dword [ebp - 0x34], eax
je 0x415074
mov byte [ebp - 0x2d], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040ecc0
mov al, byte [ebp - 0x2d]
jmp 0x4150ef
mov ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x415097
mov byte [ebp - 0x2e], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040ecc0
mov al, byte [ebp - 0x2e]
jmp 0x4150ef
cmp dword [ebp - 0x34], 0
jne 0x4150a9
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.00414ad0
jmp 0x4150db
mov byte [ebp - 0x2f], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040ecc0
mov al, byte [ebp - 0x2f]
jmp 0x4150ef
mov byte [ebp - 0x30], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040ecc0
mov al, byte [ebp - 0x30]
jmp 0x4150ef
jmp 0x414fa2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005a980c
mov esp, ebp
pop ebp
ret
Function at 0x41c130
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, 4
shl eax, 0
mov ecx, dword [ebp + 8]
mov dword [ecx + eax + 0x10], 0
mov edx, 4
imul eax, edx, 0
mov ecx, dword [ebp + 8]
mov dword [ecx + eax + 0x10], 0
mov edx, 4
imul eax, edx, 0
mov ecx, dword [ebp + 8]
mov dword [ecx + eax], 0x67452301
mov edx, 4
shl edx, 0
mov eax, dword [ebp + 8]
mov dword [eax + edx], 0xefcdab89
mov ecx, 4
shl ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + ecx], 0x98badcfe
mov eax, 4
imul ecx, eax, 3
mov edx, dword [ebp + 8]
mov dword [edx + ecx], 0x10325476
mov esp, ebp
pop ebp
ret 4

Function at 0x4203d0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jae 0x42041e
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x42041c
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x4203f0
jmp 0x4203e2
mov esp, ebp
pop ebp
ret 4
Function at 0x429ca0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf8
mov eax, dword [0x65eff4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xf8], ecx
lea eax, [ebp - 0xd0]
push eax
push 1
push 0
push str.HARDWAREDEVICEMAPSERIALCOMM
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0xe8], eax
cmp dword [ebp - 0xe8], 0
jne 0x429e6b
mov dword [ebp - 0xdc], 0x20
mov dword [ebp - 0xe0], 0x80
mov dword [ebp - 0xd8], 0
mov ecx, dword [ebp - 0xd8]
mov dword [ebp - 0xec], ecx
push 0
push 0
push 0
push 0
lea edx, [ebp - 0xdc]
push edx
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0xec]
push ecx
mov edx, dword [ebp - 0xd0]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 0xd8]
add eax, 1
mov dword [ebp - 0xd8], eax
cmp dword [ebp - 0xf0], 0
jne 0x429e5e
mov dword [ebp - 0xdc], 0x20
push 0x62c778
lea ecx, [ebp - 0x44]
push ecx
call fcn.0042da30
add esp, 8
test eax, eax
je 0x429e59
mov dword [ebp - 0xe0], 0x80
lea edx, [ebp - 0xe0]
push edx
lea eax, [ebp - 0xc4]
push eax
push 0
push 0
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0xd0]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0xc4]
mov dword [ebp - 0xcc], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xc8], ecx
mov edx, dword [ebp - 0xc8]
mov ax, word [edx]
mov word [ebp - 0xd2], ax
mov ecx, dword [ebp - 0xcc]
cmp ax, word [ecx]
jne 0x429e25
cmp word [ebp - 0xd2], 0
je 0x429e19
mov edx, dword [ebp - 0xc8]
mov ax, word [edx + 2]
mov word [ebp - 0xd4], ax
mov ecx, dword [ebp - 0xcc]
cmp ax, word [ecx + 2]
jne 0x429e25
add dword [ebp - 0xc8], 4
add dword [ebp - 0xcc], 4
cmp word [ebp - 0xd4], 0
jne 0x429dbf
mov dword [ebp - 0xe4], 0
jmp 0x429e30
sbb edx, edx
or edx, 1
mov dword [ebp - 0xe4], edx
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0xf4], eax
cmp dword [ebp - 0xf4], 0
jne 0x429e59
mov ecx, dword [ebp - 0xd0]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x429e6d
jmp 0x429d05
mov edx, dword [ebp - 0xd0]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005a980c
mov esp, ebp
pop ebp
ret 4

Function at 0x42da90
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esp, ebp
pop ebp
ret
Function at 0x4379d0
Capabilities:
Reference absolute stream path on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x65eff4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x28], ecx
push 0x1000
push 0x1000
push 0
mov ecx, dword [ebp - 0x28]
call fcn.00437db0
test eax, eax
jne 0x4379ff
xor al, al
jmp 0x437a70
mov dword [ebp - 0x2c], 0x46
mov eax, dword [ebp + 8]
push eax
push str..COM_d:115200_N_8_0
lea ecx, [ebp - 0x24]
push ecx
call fcn.00437c40
add esp, 0xc
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
lea edx, [ebp - 0x24]
push edx
call fcn.004374e0
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x28]
call fcn.00437ef0
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x437a4e
mov ecx, dword [ebp - 0x28]
call fcn.004382d0
test eax, eax
je 0x437a4e
mov al, 1
jmp 0x437a70
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x2c]
sub ecx, 1
mov dword [ebp - 0x2c], ecx
cmp dword [ebp - 0x34], 0
jne 0x437a06
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005a980c
mov esp, ebp
pop ebp
ret 4

Function at 0x438300
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x65eff4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x14]
add eax, 0x2c
push eax
lea ecx, [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4383d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x3e5
jne 0x4383b4
push 1
lea eax, [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x2c
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x4383b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x3e4
je 0x4383b0
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
xor eax, eax
jmp 0x4383de
jmp 0x438367
jmp 0x4383d9
cmp dword [ebp - 0x20], 5
jne 0x4383c0
xor eax, eax
jmp 0x4383de
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
xor eax, eax
jmp 0x4383de
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005a980c
mov esp, ebp
pop ebp
ret 8
Function at 0x4383f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x65eff4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x28], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
cmp dword [ebp - 0x20], 0
jne 0x43845b
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x10]
cmp eax, dword [ebp - 0xc]
jae 0x43844f
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x2c], edx
jmp 0x438455
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x14]
add edx, 0x18
push edx
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x1c], 0
jne 0x438527
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x3e5
jne 0x4384ee
push 1
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x14]
add eax, 0x18
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x4384ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x3e4
je 0x4384ea
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x43852a
jmp 0x438497
jmp 0x438527
cmp dword [ebp - 0x18], 5
jne 0x438504
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x43852a
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x43852a
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005a980c
mov esp, ebp
pop ebp
ret 8
Function at 0x459d10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5df073
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x65eff4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push dword [ebp + 8]
call fcn.00450470
mov dword [ebp - 4], 0
call fcn.00453f30
push eax
lea ecx, [edi + 0x14]
call fcn.00450470
mov al, byte [ebp + 0xc]
mov byte [ebp - 4], 1
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov byte [edi + 0x34], al
mov word [edi + 0x35], 0x100
mov byte [edi + 0x37], 0
mov esi, dword [edi + 8]
mov ecx, dword [edi + 0xc]
test esi, esi
je 0x459d9e
lea eax, [esi - 1]
lea eax, [ecx + eax*4]
cmp dword [eax], 0
jne 0x459dc5
sub eax, 4
sub esi, 1
jne 0x459d91
mov eax, 1
push eax
lea ecx, [edi + 0x14]
mov dword [edi + 0x28], eax
call fcn.00451760
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test esi, esi
je 0x459d9e
lea ecx, [ecx + esi*4]
add ecx, 0xfffffffc
call fcn.00441bb0
shl esi, 5
add eax, 0xffffffe0
add eax, esi
cmp eax, 0x11
jbe 0x459d9e
cmp eax, 0x18
ja 0x459ded
mov eax, 2
jmp 0x459da3
cmp eax, 0x46
ja 0x459df9
mov eax, 3
jmp 0x459da3
cmp eax, 0xc5
ja 0x459e07
mov eax, 4
jmp 0x459da3
cmp eax, 0x21b
ja 0x459e15
mov eax, 5
jmp 0x459da3
mov ecx, 0x59a
cmp ecx, eax
sbb eax, eax
neg eax
add eax, 6
jmp 0x459da3

Function at 0x459fd0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5de421
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x65eff4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], 0
cmp dword [0x6bd3e0], 0
jne 0x45a016
call fcn.0044ec90
mov dword [0x6bd3e0], 0x444410
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.004079b0
mov dword [ebp - 4], 1
push ecx
mov dword [esi], vtable.CryptoPP::Integer.0
push 2
mov dword [esi + 8], 2
call fcn.00453c40
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0
mov dword [eax + 4], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
push 1
push dword [ebp + 0x10]
mov dword [ebp - 4], 0
mov ecx, edi
push dword [ebp + 0xc]
mov edx, dword [edi]
push esi
mov dword [ebp - 0x10], 1
call dword [edx + 0x30]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc