joyce8/EMBER2024-capa huggingface dataset:
Function at 0x445650
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x482a03
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004739c9
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], 0x55da78
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], 0x55c690
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [0x485150]
push eax
mov ecx, edi
call fcn.0047913f
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0047a6da
test eax, eax
je 0x44576c
mov ecx, dword [esp + 0x3c]
call fcn.0047916c
mov ecx, dword [esi + 0x1c]
mov ebp, dword [0x485658]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x445730
push edi
mov ecx, esi
call fcn.00476728
mov ecx, esi
call fcn.004458d0
cmp dword [esp + 0x38], 1
jne 0x445765
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00476892
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28

Function at 0x448190
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4481c3
push esi
call fcn.0044b290
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4481bc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x448249
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x448232
mov eax, dword [esi + 8]
test eax, eax
je 0x4481e7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44822e
cmp eax, 2
je 0x448232
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4481da
cmp eax, 3
je 0x44820d
cmp eax, 1
jne 0x4481da
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4481da
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4481da
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00448270
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x448258
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00448270
add esp, 4
pop esi
ret
Function at 0x457660
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4831c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00457210
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00457290
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00457290
lea ecx, [esi + 0xc]
call fcn.00472357
lea ecx, [esi + 0x10]
call fcn.00472357
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00458820
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00458820
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00458820
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004723cc
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004723cc
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x401200
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
rol edx, 0xdf
add esi, 0x73
not esi
rcl ebx, 0x22
neg ebx
and edi, 0xae
sub edi, 0x4a
imul ebx
rcr edx, 0x8f
neg ebx
imul edx
rcl esi, 0x75
imul eax
ror eax, 0x6e
rcl eax, 0x37
rol esi, 0x43
rcr eax, 0xdf
bswap eax
inc ebx
rcl eax, 0x30
not eax
imul esi
not edx
dec esi
dec esi
imul eax
and edi, 0x5b
sub edx, 0xd0
neg eax
bswap esi
not edx
imul edi
not eax
or esi, 0x5d
inc edx
dec ebx
inc edi
mov esi, 0x30
dec ebx
rol ebx, 0x37
ror ebx, 0xb1
not edx
dec ebx
sub edi, 0x7c
not edi
and esi, 0xc6
neg edi
add ebx, 0x45
ror eax, 0xbd
or ebx, 4
xor ecx, ecx
xor edi, edi
rcr eax, 0xd8
bswap edi
dec ebx
inc esi
neg esi
bswap edi
sub esi, 0xab
sbb esi, 0x18
not edi
bswap ebx
not esi
rcr esi, 0x2c
dec esi
and eax, 0x74
neg eax
or eax, 0xe3
rol esi, 0x1a
neg esi
imul edx
add eax, 0x8b
rol edx, 0xa6
rcl ebx, 0x31
rol edi, 0xf9
imul edi
mov ebx, 3
not ebx
dec ebx
dec ebx
rol edi, 0x10
imul ebx
ror edi, 0x64
rol edi, 0x8f
inc edx
inc esi
imul esi
sub esi, 0x83
rol ebx, 0x38
rcr esi, 0x1a
rcr edx, 0x3b
imul edx
neg esi
bswap edx
rcl esi, 0x47
inc edx
neg ebx
dec edi
bswap eax
not esi
ror ebx, 0x8e
and edi, 0x28
mov ecx, dword [ebp + 0xc]
sub esi, 0x77
add ebx, 0x5e
imul edi
sbb edx, 0xee
sub edx, 0xa9
rol esi, 0x16
dec ebx
and ebx, 0xb3
sub edx, 0x50
add ebx, 0xb9
sub eax, 0xdf
add ebx, 0xa0
not esi
inc edx
not edi
rcl edx, 0xfe
mov esi, 0xbe
imul edi
add edx, 0xbb
mov esi, 0xc3
bswap eax
inc eax
inc edx
sub esi, 0x63
bswap edx
imul esi
sub edx, 0x47
inc eax
and eax, 0x1b
inc ebx
ror edi, 0xec
sub eax, 0x1e
mov edx, 0x43
ror edi, 0xf2
add edx, 0x37
sub ebx, 0x30
inc edx
imul edx
rcr eax, 0x4a
inc esi
dec ebx
bswap ebx
and esi, 0x77
not eax
ror ebx, 0x12
rcl esi, 0x63
and eax, 0x57
and eax, 0xc1
not edx
dec edi
mov edi, dword [ebp + 8]
xor ebx, eax
xor eax, ebx
mov esi, esi
not byte [edi]
mov esi, eax
mov ebx, esi
mov eax, ebx
xor ebx, esi
mov eax, ebx
xor esi, ebx
mov eax, ebx
mov esi, ebx
mov ebx, esi
add byte [edi], 0x75
mov esi, eax
xor eax, ebx
xor ebx, eax
xor esi, esi
xor esi, ebx
mov ebx, eax
xor esi, ebx
mov ebx, eax
xor esi, ebx
sub byte [edi], 0x25
mov ebx, ebx
mov ebx, esi
mov esi, esi
mov esi, ebx
mov ebx, ebx
mov ebx, eax
xor eax, eax
mov ebx, ebx
xor eax, eax
imul byte [edi]
inc edi
loop 0x4013a4
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40650d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x464fb8]
jne 0x406517
repz ret
jmp fcn.0040877c
Function at 0x403d00
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4832e8
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4b1014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 4], 0
lea ecx, [edi + 0x3c]
push dword [edi + 0x44]
mov dword [edi + 0x3c], vtable.CBaseRecordVector.0
push 0
call fcn.0041bc90
push dword [edi + 0x48]
call fcn.0045dac0
add esp, 4
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [ebp - 4], 1
lea ecx, [edi + 0x28]
push dword [edi + 0x30]
mov dword [edi + 0x28], vtable.CBaseRecordVector.0
push 0
call fcn.0041bc90
push dword [edi + 0x34]
call fcn.0045dac0
add esp, 4
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [ebp - 4], 2
lea ecx, [edi + 0x14]
push dword [edi + 0x1c]
mov dword [edi + 0x14], vtable.CBaseRecordVector.0
push 0
call fcn.0041bc90
push dword [edi + 0x20]
call fcn.0045dac0
add esp, 4
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [ebp - 4], 3
mov ecx, edi
push dword [edi + 8]
mov dword [edi], vtable.CBaseRecordVector.0
push 0
call fcn.0041bc90
push dword [edi + 0xc]
call fcn.0045dac0
add esp, 4
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x407eb0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x483966
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4b1014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea esi, [edi + 0x118]
mov dword [ebp - 4], 0
mov ecx, esi
push dword [esi + 8]
mov dword [esi], vtable.CBaseRecordVector.0
push 0
call fcn.0041bc90
push dword [esi + 0xc]
call fcn.0045dac0
add esp, 4
mov dword [esi + 4], 0
lea ecx, [edi + 0xf0]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
call fcn.004080e0
lea ecx, [edi + 0xc8]
call fcn.004080e0
lea ecx, [edi + 0xa0]
call fcn.004080e0
lea ecx, [edi + 0x78]
call fcn.004080e0
mov dword [ebp - 4], 1
lea ecx, [edi + 0x64]
push dword [edi + 0x6c]
mov dword [edi + 0x64], vtable.CObjectVector_struct_NArchive::N7z::CFileItem_.0
push 0
call fcn.004099f0
mov byte [ebp - 4], 2
lea ecx, [edi + 0x64]
push dword [edi + 0x6c]
mov dword [edi + 0x64], vtable.CBaseRecordVector.0
push 0
call fcn.0041bc90
push dword [edi + 0x70]
call fcn.0045dac0
add esp, 4
mov dword [edi + 0x68], 0
mov dword [edi + 0x6c], 0
mov dword [edi + 0x70], 0
mov dword [ebp - 4], 3
lea ecx, [edi + 0x50]
push dword [edi + 0x58]
mov dword [edi + 0x50], vtable.CBaseRecordVector.0
push 0
call fcn.0041bc90
push dword [edi + 0x5c]
call fcn.0045dac0
add esp, 4
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov dword [ebp - 4], 4
lea ecx, [edi + 0x3c]
push dword [edi + 0x44]
mov dword [edi + 0x3c], vtable.CObjectVector_struct_NArchive::N7z::CFolder_.0
push 0
call fcn.00409aa0
mov byte [ebp - 4], 5
lea ecx, [edi + 0x3c]
push dword [edi + 0x44]
mov dword [edi + 0x3c], vtable.CBaseRecordVector.0
push 0
call fcn.0041bc90
push dword [edi + 0x48]
call fcn.0045dac0
add esp, 4
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [ebp - 4], 6
lea ecx, [edi + 0x28]
push dword [edi + 0x30]
mov dword [edi + 0x28], vtable.CBaseRecordVector.0
push 0
call fcn.0041bc90
push dword [edi + 0x34]
call fcn.0045dac0
add esp, 4
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [ebp - 4], 7
lea ecx, [edi + 0x14]
push dword [edi + 0x1c]
mov dword [edi + 0x14], vtable.CBaseRecordVector.0
push 0
call fcn.0041bc90
push dword [edi + 0x20]
call fcn.0045dac0
add esp, 4
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [ebp - 4], 8
mov ecx, edi
push dword [edi + 8]
mov dword [edi], vtable.CBaseRecordVector.0
push 0
call fcn.0041bc90
push dword [edi + 0xc]
call fcn.0045dac0
add esp, 4
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x408190
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4b1014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov dword [esi + 4], vtable.ISetProperties.0
lea ecx, [esi + 0x10]
mov dword [esi + 8], 0
mov dword [esi], vtable.NArchive::N7z::CHandler.1.0
mov dword [esi + 4], vtable.NArchive::N7z::CHandler.0
mov dword [esi + 0xc], 0
call fcn.00408240
lea eax, [ebp - 0x28]
mov dword [esi + 0x1f0], 0
mov dword [esi + 0x1f4], 0
mov dword [esi + 0x1f8], 0
mov dword [esi + 0x1fc], 8
mov dword [esi + method.CBaseRecordVector.virtual_0], vtable.CRecordVector_unsigned_long_long_unsigned___int64__.0
push eax
mov dword [esi + 0x1e8], 4
mov byte [esi + 0x1e0], 0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x14]
mov eax, esi
mov dword [esi + 0x1e4], ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0045daaf
mov esp, ebp
pop ebp
ret
Function at 0x409760
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x483bb0
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x4b1014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x50], ebx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x30]
xor edi, edi
mov dword [ebx + 0x1e0], eax
mov dword [ebp - 0x48], edi
cmp edi, dword [ebp + 0x14]
jge 0x409927
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0
mov esi, dword [eax + edi*4]
xor edi, edi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
cmp word [esi], di
je 0x4097fb
inc edi
cmp word [esi + edi*2], 0
jne 0x4097f3
push edi
lea ecx, [ebp - 0x20]
call fcn.004039c0
mov ebx, dword [ebp - 0x20]
mov ecx, ebx
sub ecx, esi
nop dword [eax + eax]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x409810
mov dword [ebp - 0x1c], edi
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.USER32.dll_CharUpperW]
test edi, edi
jne 0x409845
push ebx
call fcn.0045dac0
add esp, 4
mov eax, 0x80070057
jmp 0x409929
mov edi, dword [ebp - 0x48]
lea edx, [ebp - 0x48]
mov esi, edi
lea ecx, [ebp - 0x20]
shl esi, 4
add esi, dword [ebp - 0x4c]
call fcn.00410f10
test eax, eax
jne 0x409907
push 2
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x20]
call fcn.00409d90
mov edx, 0x496a40
mov ecx, dword [eax]
call fcn.0041baf0
push dword [ebp - 0x5c]
test eax, eax
sete bl
call fcn.0045dac0
add esp, 4
test bl, bl
je 0x4098f5
push 2
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x20]
call fcn.00409dc0
mov ecx, dword [ebp - 0x50]
mov edx, esi
add ecx, 0x1e0
mov byte [ebp - 4], 2
push ecx
push dword [ebp - 0x30]
mov ecx, eax
call fcn.00410f60
add esp, 8
mov byte [ebp - 4], 1
mov esi, eax
push dword [ebp - 0x68]
call fcn.0045dac0
add esp, 4
test esi, esi
je 0x4098e0
push dword [ebp - 0x20]
call fcn.0045dac0
add esp, 4
mov eax, esi
jmp 0x409929
mov byte [ebp - 4], 0
push dword [ebp - 0x20]
call fcn.0045dac0
add esp, 4
inc edi
jmp 0x4097b6
push dword [ebp - 0x20]
call fcn.0045dac0
add esp, 4
mov eax, 0x80070057
jmp 0x409929
push ebx
mov byte [ebp - 4], 0
call fcn.0045dac0
add esp, 4
inc edi
jmp 0x4097b6
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0045daaf
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40a190
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x483bfe
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4b1014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 4], 0
lea ecx, [edi + 0x3c]
push dword [edi + 0x44]
mov dword [edi + 0x3c], vtable.CBaseRecordVector.0
push 0
call fcn.0041bc90
push dword [edi + 0x48]
call fcn.0045dac0
add esp, 4
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [ebp - 4], 1
lea ecx, [edi + 0x28]
push dword [edi + 0x30]
mov dword [edi + 0x28], vtable.CBaseRecordVector.0
push 0
call fcn.0041bc90
push dword [edi + 0x34]
call fcn.0045dac0
add esp, 4
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [ebp - 4], 2
lea ecx, [edi + 0x14]
push dword [edi + 0x1c]
mov dword [edi + 0x14], vtable.CBaseRecordVector.0
push 0
call fcn.0041bc90
push dword [edi + 0x20]
call fcn.0045dac0
add esp, 4
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [ebp - 4], 3
mov ecx, edi
push dword [edi + 8]
mov dword [edi], vtable.CObjectVector_struct_NArchive::N7z::CCoderInfo_.0
push 0
call fcn.00409c50
mov byte [ebp - 4], 4
mov ecx, edi
push dword [edi + 8]
mov dword [edi], vtable.CBaseRecordVector.0
push 0
call fcn.0041bc90
push dword [edi + 0xc]
call fcn.0045dac0
add esp, 4
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4113b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4b1014]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 8]
push esi
mov esi, dword [ebp + 8]
mov ecx, 0x400000
cmp dword [ebp + 0x10], ecx
push edi
cmovbe ecx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push 0
push eax
push ecx
push edx
push dword [esi + 0xc]
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
setne cl
test edi, edi
je 0x4113fd
mov eax, dword [ebp - 8]
mov dword [edi], eax
pop edi
pop esi
test cl, cl
je 0x411415
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045daaf
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x411434
mov eax, 0x80004005
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045daaf
mov esp, ebp
pop ebp
ret 0x10
jle 0x41143e
movzx eax, ax
or eax, 0x80070000
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045daaf
mov esp, ebp
pop ebp
ret 0x10

Function at 0x411450
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4b1014]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 8]
push esi
mov esi, dword [ebp + 0x14]
mov edx, 0x100000
push 0
push eax
mov eax, dword [ebp + 0x10]
cmp eax, edx
cmovae eax, edx
push eax
push ecx
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test esi, esi
je 0x411494
mov ecx, dword [ebp - 8]
mov dword [esi], ecx
test eax, eax
jne 0x4114dc
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x6d
je 0x4114dc
call esi
test eax, eax
jne 0x4114c1
mov eax, 0x80004005
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045daaf
mov esp, ebp
pop ebp
ret 0x10
jle 0x4114de
movzx eax, ax
or eax, 0x80070000
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045daaf
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0045daaf
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4115d0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4b1014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 8]
push ebx
push edi
mov edi, dword [ebp + 0xc]
push ecx
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x411643
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x411643
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x411627
pop edi
mov eax, 0x80004005
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045daaf
mov esp, ebp
pop ebp
ret 8
jle 0x411654
movzx eax, ax
pop edi
or eax, 0x80070000
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045daaf
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 8]
xor eax, eax
add eax, ebx
mov dword [edi], eax
adc ecx, 0
xor eax, eax
mov dword [edi + 4], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0045daaf
mov esp, ebp
pop ebp
ret 8
Function at 0x4116b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4b1014]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 8]
push esi
mov esi, dword [ebp + 8]
mov ecx, 0x400000
cmp dword [ebp + 0x10], ecx
push edi
cmovbe ecx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push 0
push eax
push ecx
push edx
push dword [esi + 8]
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
mov eax, dword [ebp - 8]
setne cl
add dword [esi + 0x10], eax
adc dword [esi + 0x14], 0
test edi, edi
je 0x411704
mov dword [edi], eax
pop edi
pop esi
test cl, cl
je 0x41171c
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045daaf
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41173b
mov eax, 0x80004005
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045daaf
mov esp, ebp
pop ebp
ret 0x10
jle 0x411745
movzx eax, ax
or eax, 0x80070000
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045daaf
mov esp, ebp
pop ebp
ret 0x10

Function at 0x411900
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4b1014]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x411921
mov dword [esi], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x411991
push 0
lea edx, [ebp - 8]
push edx
mov edx, 0x8000
cmp eax, edx
cmovae eax, edx
push eax
push ecx
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test esi, esi
je 0x411952
mov ecx, dword [ebp - 8]
add dword [esi], ecx
test eax, eax
jne 0x411991
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x411976
mov eax, 0x80004005
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045daaf
mov esp, ebp
pop ebp
ret 0x10
jle 0x411993
movzx eax, ax
or eax, 0x80070000
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045daaf
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0045daaf
mov esp, ebp
pop ebp
ret 0x10
Function at 0x412f20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4b1014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov esi, ecx
push edi
mov edi, 1
cmp dword [esi + 4], 0
jne 0x412f81
push 0
push 0
push 0
push 0
call eax
mov dword [esi + 4], eax
test eax, eax
jne 0x412f7c
call ebx
test eax, eax
mov ecx, edi
cmovne ecx, eax
test ecx, ecx
je 0x412f7c
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045daaf
mov esp, ebp
pop ebp
ret
mov eax, dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp dword [esi + 8], 0
jne 0x412fa5
push 0
push 0
push 0
push 0
call eax
mov dword [esi + 8], eax
test eax, eax
jne 0x412fa5
call ebx
test eax, eax
mov ecx, edi
cmovne ecx, eax
test ecx, ecx
jne 0x412f69
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
jne 0x412fb4
call ebx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
jne 0x412fc3
call ebx
cmp dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
je 0x412fe0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045daaf
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
push eax
push 0
push esi
push 0x412ed0
push 0
push 0
call fcn.00464f02
add esp, 0x18
mov dword [esi + 0xc], eax
test eax, eax
je 0x413014
xor edi, edi
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045daaf
mov esp, ebp
pop ebp
ret
call ebx
mov ecx, dword [ebp - 4]
test eax, eax
cmovne edi, eax
xor ecx, ebp
mov eax, edi
pop edi
pop esi
pop ebx
call fcn.0045daaf
mov esp, ebp
pop ebp
ret