joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410800
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
push edi
push 0
push 0x20
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
mov esi, ecx
call ebx
mov edi, eax
cmp edi, 0xffffffff
je 0x4109b4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x410853
push eax
call fcn.004182ed
add esp, 4
mov dword [esi + 4], 0
push dword [esi + 8]
call fcn.004182f2
add esp, 4
mov dword [esi + 4], eax
test eax, eax
je 0x4109ad
push 0
lea ecx, [ebp + 8]
mov dword [ebp + 8], 0
push ecx
push dword [esi + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4109ad
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 8], 8
jb 0x4108b2
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
cmp eax, dword [0x44b7ec]
jne 0x4108b2
mov eax, dword [ecx + 4]
cmp eax, dword [0x44b7f0]
je 0x4109b4
push 0
push 0x20
push 2
push 0
push 1
push 0x40000000
push dword [ebp + 0xc]
call ebx
mov ebx, eax
mov dword [ebp + 0xc], ebx
cmp ebx, 0xffffffff
je 0x4109b4
mov ecx, dword [esi + 8]
add ecx, 8
push ecx
call fcn.004182f2
mov ecx, dword [0x44b7ec]
mov dword [ebp - 8], eax
mov dword [eax], ecx
mov ecx, dword [0x44b7f0]
mov dword [eax + 4], ecx
lea ecx, [eax + 8]
push dword [esi + 8]
mov dword [ebp + 8], ecx
push dword [esi + 4]
push ecx
call fcn.00419440
mov eax, dword [esi + 8]
add esp, 0x10
xor edi, edi
test eax, eax
jle 0x41096e
mov ebx, dword [ebp + 8]
lea ecx, [esi + 0x11d]
nop dword [eax + eax]
mov eax, edi
lea edx, [ecx + 1]
and eax, 0xf
mov al, byte [eax + 0x44b7dc]
xor al, byte [ebx + edi]
mov byte [ebp + 8], al
mov byte [ebx + edi], al
mov al, byte [ecx]
inc ecx
test al, al
jne 0x410937
sub ecx, edx
mov eax, edi
xor edx, edx
div ecx
lea ecx, [esi + 0x11d]
movsx eax, byte [edx + esi + 0x11d]
and eax, 0xf
mov al, byte [eax + 0x44b7dc]
add al, byte [ebp + 8]
mov byte [ebx + edi], al
inc edi
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x410920
mov ebx, dword [ebp + 0xc]
push 0
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
push ecx
add eax, 8
push eax
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
jne 0x4109a0
call eax
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
call eax
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4109c0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
mov eax, dword [0x451068]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
mov esi, ecx
push ebx
mov dword [ebp - 0x44c], eax
lea eax, [ebp - 0x308]
push 0x44b794
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x448]
push eax
lea eax, [ebp - 0x308]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x450], eax
cmp eax, 0xffffffff
je 0x410b76
nop
test byte [ebp - 0x448], 0x10
lea eax, [ebp - 0x41c]
jne 0x410a88
push eax
push ebx
lea eax, [ebp - 0x208]
push str._s_s
push eax
call edi
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x44c]
lea eax, [ebp - 0x108]
push str._s_s
push eax
call edi
lea eax, [ebp - 0x108]
push eax
push str._s_encrypted__n
call fcn.00401c40
add esp, 0x28
lea eax, [ebp - 0x108]
mov ecx, esi
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.00410800
jmp 0x410b3a
mov ecx, 0x44b5d4
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x410ab0
test dl, dl
je 0x410aac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x410ab0
add eax, 2
add ecx, 2
test dl, dl
jne 0x410a90
xor eax, eax
jmp 0x410ab5
sbb eax, eax
or eax, 1
test eax, eax
je 0x410b5b
mov eax, 0x44b7b0
lea ecx, [ebp - 0x41c]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x410ae8
test dl, dl
je 0x410ae4
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x410ae8
add ecx, 2
add eax, 2
test dl, dl
jne 0x410ac8
xor eax, eax
jmp 0x410aed
sbb eax, eax
or eax, 1
test eax, eax
je 0x410b5b
lea eax, [ebp - 0x41c]
push eax
push ebx
lea eax, [ebp - 0x108]
push str._s_s_
push eax
call edi
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x44c]
lea eax, [ebp - 0x208]
push str._s_s_
push eax
call edi
add esp, 0x20
lea eax, [ebp - 0x208]
mov ecx, esi
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.004109c0
push 0x100
lea eax, [esi + 0xc]
mov dword [esi + 4], 0
push 0
push eax
mov dword [esi + 8], 0
call fcn.004199c0
add esp, 0xc
lea eax, [ebp - 0x448]
push eax
push dword [ebp - 0x450]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x410a20
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417ffe
mov esp, ebp
pop ebp
ret 8
Function at 0x413730
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x413818
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x413807
jg 0x413770
test edx, edx
je 0x413807
nop dword [eax]
call fcn.00408dd0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x4137c4
jg 0x413787
test esi, esi
je 0x4137c4
cmp ebx, eax
jg 0x413797
jl 0x413791
cmp edi, esi
jae 0x413797
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.00419440
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x4137eb
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
movzx eax, byte [eax]
push eax
call edx
cmp eax, 0xffffffff
je 0x413801
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x413770
jl 0x413801
test edi, edi
jne 0x413770
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x41383a
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x41383c
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x4138ba
jg 0x41384f
test esi, esi
je 0x4138ba
test eax, eax
jl 0x413894
jg 0x413859
test ebx, ebx
je 0x413894
cmp edi, eax
jg 0x413869
jl 0x413863
cmp esi, ebx
jae 0x413869
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.00419440
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
add edx, ebx
sub esi, ebx
mov eax, dword [ecx + 0x30]
sbb edi, dword [esp + 0x14]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
jmp 0x413897
mov edx, dword [ebp + 8]
test edi, edi
jl 0x4138ba
jg 0x4138a1
test esi, esi
je 0x4138ba
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x4138ba
push eax
push esi
push 1
push edx
call fcn.00423afd
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4138d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x4139bb
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x4139aa
jg 0x413910
test edx, edx
je 0x4139aa
nop dword [eax]
call fcn.00408df0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x413967
jg 0x413927
test esi, esi
je 0x413967
cmp ebx, eax
jg 0x413937
jl 0x413931
cmp edi, esi
jae 0x413937
mov esi, edi
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0xc]
push esi
mov eax, dword [eax + 0x1c]
push dword [eax]
push dword [esp + 0x18]
call fcn.00419440
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov eax, dword [esp + 0x10]
jmp 0x41398c
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x4139a4
mov eax, dword [esp + 0x10]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
mov byte [eax], cl
mov ecx, dword [esp + 0xc]
add eax, esi
mov dword [esp + 0x10], eax
test ebx, ebx
jg 0x413910
jl 0x4139a4
test edi, edi
jne 0x413910
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x1c]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x4139dd
mov eax, dword [ecx + 0x2c]
mov eax, dword [eax]
jmp 0x4139df
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x413a95
jg 0x4139fa
test esi, esi
je 0x413a95
test eax, eax
jl 0x413a43
jg 0x413a04
test ebx, ebx
je 0x413a43
cmp edi, eax
jg 0x413a14
jl 0x413a0e
cmp esi, ebx
jae 0x413a14
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [esp + 0x14]
push dword [ebp + 8]
call fcn.00419440
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
add edx, ebx
sub esi, ebx
mov dword [esp + 0x10], edx
mov eax, dword [ecx + 0x2c]
sbb edi, dword [esp + 0x14]
sub dword [eax], ebx
mov eax, dword [ecx + 0x1c]
add dword [eax], ebx
jmp 0x413a4a
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test edi, edi
jl 0x413a95
jg 0x413a54
test esi, esi
je 0x413a95
mov edx, dword [ecx + 0x4c]
test edx, edx
je 0x413a95
mov ebx, dword [ecx + 0xc]
lea eax, [ecx + 0x3c]
cmp dword [ebx], eax
jne 0x413a80
mov edx, dword [ecx + 0x54]
mov ecx, dword [ecx + 0x50]
sub edx, ecx
mov dword [ebx], ecx
mov ebx, dword [esp + 0xc]
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov edx, dword [ebx + 0x4c]
push edx
push esi
push 1
push dword [esp + 0x1c]
call fcn.0041cc81
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x413dd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x451068]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x413e00
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417ffe
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x413e3c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x413e3c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417ffe
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x413f23
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x413e64
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x413e97
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.00422e33
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417ffe
mov esp, ebp
pop ebp
ret 4
mov byte [ebp - 0x28], bl
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call edx
test eax, eax
js 0x413f23
cmp eax, 1
jle 0x413ef6
cmp eax, 3
jne 0x413f23
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.00410f50
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417ffe
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x413f13
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00423afd
add esp, 0x10
cmp edi, eax
jne 0x413f23
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x413e27
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417ffe
mov esp, ebp
pop ebp
ret 4
Function at 0x414da0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x451068]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x414e43
cmp byte [esi + 0x3d], 0
je 0x414e43
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x414df9
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x414e0b
sub eax, 1
je 0x414e0f
sub eax, 2
je 0x414e43
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417ffe
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x414e2c
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00423afd
add esp, 0x10
cmp edi, eax
jne 0x414df9
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417ffe
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00417ffe
mov esp, ebp
pop ebp
ret

Function at 0x415010
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43b2f0
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x451068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0041829a
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.004162c6
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x10], ecx
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x34], esi
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov ecx, edi
mov eax, dword [edi + 0x20]
push 0
push dword [ebp + 8]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov dword [edi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
call fcn.00414e60
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x415400
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43b3c0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x451068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0041829a
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.004162c6
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x428d93
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00428c09
Function at 0x100039b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x100d3cc0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x1f4
xorps xmm0, xmm0
mov dword [ebp - 0x204], 0
lea eax, [ebp - 0x1f8]
mov dword [ebp - 0x200], 0xf
push 0
movups xmmword [ebp - 0x214], xmm0
push eax
mov byte [ebp - 0x214], 0
mov dword [ebp - 0x1fc], 0
call sub.msvcrt.dll_memset
push 0x1f3
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x1f8]
push 0x1f4
push eax
call fcn.1009e660
mov ecx, dword [ebp - 0x200]
add esp, 0x1c
cmp ecx, 0xf
jbe 0x10003a5b
mov edx, dword [ebp - 0x214]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10003a51
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10003ab3
push ecx
push edx
call fcn.1009ce4f
add esp, 8
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x1f8]
push 0x1f4
push eax
call fcn.100057c0
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 2
push ecx
call fcn.100a16b0
add esp, 0x1c
lea eax, [ebp - 0x1fc]
push 0
push 0x100d7bf0
push 0x1f8
push eax
push dword [0x100d3300]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1009ce5d
mov esp, ebp
pop ebp
ret
call fcn.1009e340
int3
Function at 0x10003ac0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x100d3cc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [0x100d7bd0]
push edi
push eax
push ecx
push esi
mov dword [ebp - 0x24], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x10003b2b
xor ecx, ecx
xorps xmm0, xmm0
movups xmmword [ebx], xmm0
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003b05
sub ecx, edx
push ecx
push 0
mov ecx, ebx
call fcn.10003320
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1009ce5d
mov esp, ebp
pop ebp
ret
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x10003b7c
xor ecx, ecx
xorps xmm0, xmm0
movups xmmword [ebx], xmm0
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003b56
sub ecx, edx
push ecx
push 0
mov ecx, ebx
call fcn.10003320
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1009ce5d
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x20]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [ebp - 0x20]
mov esi, eax
push dword [ebp - 0x24]
push esi
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov dword [ebp - 0xc], 0
xorps xmm0, xmm0
mov dword [ebp - 8], 0
lea ecx, [ebp - 0x1c]
movups xmmword [ebp - 0x1c], xmm0
push dword [ebp - 0x20]
push esi
call fcn.10003320
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebp - 4]
xorps xmm0, xmm0
movups xmmword [ebx], xmm0
mov dword [ebx + 0x10], 0
mov eax, ebx
movups xmm0, xmmword [ebp - 0x1c]
mov dword [ebx + 0x14], 0
xor ecx, ebp
pop edi
movups xmmword [ebx], xmm0
pop esi
movq xmm0, qword [ebp - 0xc]
movq qword [ebx + 0x10], xmm0
pop ebx
call fcn.1009ce5d
mov esp, ebp
pop ebp
ret
Function at 0x10003c20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100accf5
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x100d3cc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x100d7be4]
mov ecx, dword [ebp + 0x600]
inc eax
mov dword [0x100d7be4], eax
cmp eax, 0x9c4
jl 0x10003c76
push str.too_many_hooks:_cant_insert
call fcn.100039b0
add esp, 4
xor al, al
jmp 0x10003dd1
test ecx, ecx
je 0x10003c93
cmp byte [ecx], 0
je 0x10003c93
push 0x3b
push ecx
lea eax, [ebp + 0x1d8]
push 0x3c
push eax
call fcn.1009e660
add esp, 0x10
lea eax, [ebp + 0x1d8]
push eax
push str.inserting_hook:__s
call fcn.100039b0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10004f90
add esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
sub esp, 0x5f8
lea eax, [ebp - 0x28]
mov edi, esp
lea esi, [ebp + 8]
mov ecx, 0x17e
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.10078b40
add esp, 0x600
cmp dword [eax + 0x14], 7
jbe 0x10003ce4
mov eax, dword [eax]
push eax
lea eax, [ebp + 0x214]
push 0x1f4
push eax
call fcn.1009e4d0
add esp, 0xc
lea ecx, [ebp - 0x28]
call fcn.10003860
imul eax, dword [0x100d7be4], 0x6b0
lea esi, [ebp + 8]
sub esp, 0x5f8
mov ecx, 0x17e
mov edi, esp
rep movsd dword es:[edi], dword [esi]
add eax, dword [0x100d7be0]
mov ecx, eax
call fcn.10005af0
test al, al
jne 0x10003da3
lea eax, [ebp + 0x214]
push eax
lea ecx, [ebp - 0x28]
call fcn.100033f0
push 0xfde9
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.10077950
add esp, 0xc
cmp dword [eax + 0x14], 0xf
mov byte [ebp - 4], 1
jbe 0x10003d65
mov eax, dword [eax]
push eax
push str.failed_to_insert_hook__s
call fcn.100039b0
add esp, 8
lea ecx, [ebp - 0x40]
call fcn.10003810
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.10003860
imul ecx, dword [0x100d7be4], 0x6b0
add ecx, dword [0x100d7be0]
call fcn.100057f0
xor al, al
jmp 0x10003dd1
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push 0
push 0x100d7bf0
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x50]
push 0x10
push eax
push dword [0x100d3300]
mov dword [ebp - 0x50], 4
mov dword [ebp - 0x44], ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1009ce5d
mov esp, ebp
pop ebp
ret