joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403de0
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
mov edi, edx
not ebx
mov esi, ecx
mov eax, ebx
test edi, edi
je 0x403e3e
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x403e22
cmp edi, 2
jb 0x403e22
cmp byte [esi], cl
jne 0x403e22
cmp byte [esi + 1], cl
jne 0x403e22
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x47cfe8]
jmp 0x403df3
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x47cfe8]
test edi, edi
jne 0x403df3
pop edi
pop esi
not eax
pop ebx
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x403e6d
cmp cl, 0x23
jne 0x403e54
cmp byte [esi], cl
jne 0x403e54
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x47cfe8]
test cl, cl
jne 0x403e45
pop edi
pop esi
not eax
pop ebx
ret

Function at 0x403ff0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
test ebx, ebx
je 0x404002
mov dword [ebx], 0
mov edx, 0x47cbc8
call fcn.00403e80
mov esi, eax
test esi, esi
je 0x404113
push esi
call fcn.004527a4
mov ebp, eax
add esp, 4
cmp ebp, 0xffffffff
je 0x40410a
push 2
push 0
push esi
call fcn.00453141
add esp, 0xc
test eax, eax
jne 0x40410a
push esi
call fcn.004527a4
mov edi, eax
add esp, 4
cmp edi, 0xffffffff
je 0x40410a
push 0
push ebp
push esi
call fcn.00453141
add esp, 0xc
test eax, eax
jne 0x40410a
mov ecx, edi
call fcn.00407200
mov ebp, eax
test ebp, ebp
je 0x40410a
push esi
push edi
push 1
push ebp
call fcn.004564a6
add esp, 0x10
push esi
cmp eax, edi
je 0x4040f5
call fcn.00452dee
mov ecx, dword [0x48d2c8]
add esp, 4
test ecx, ecx
je 0x4040e5
movsx edx, word [ecx + 0x5ee4]
lea eax, [ecx + 0x5ee8]
mov esi, dword [ecx + 0x3f08]
lea eax, [eax + edx*8]
cmp dword [eax], esi
je 0x4040db
lea eax, [edx + 1]
mov edi, 6
cdq
idiv edi
movzx eax, dx
mov word [ecx + 0x5ee4], ax
cwde
add eax, 0xbdd
xor edx, edx
lea eax, [ecx + eax*8]
mov dword [eax], esi
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x5ee0]
push ebp
call fcn.004562b2
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
call fcn.00452dee
add esp, 4
test ebx, ebx
je 0x404103
mov dword [ebx], edi
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.00452dee
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x40a6f0
Capabilities:
Hash data with crc32

Disassembly:
mov eax, ecx
or ecx, 0xffffffff
push ebx
push esi
mov bl, byte [eax]
lea esi, [eax + 1]
test bl, bl
je 0x40a72d
push edi
or edi, 0xffffffff
cmp bl, 0x23
jne 0x40a713
cmp byte [esi], bl
jne 0x40a713
cmp byte [esi + 1], bl
cmove ecx, edi
movzx edx, cl
movzx eax, bl
mov bl, byte [esi]
xor edx, eax
shr ecx, 8
inc esi
xor ecx, dword [edx*4 + 0x47cfe8]
test bl, bl
jne 0x40a704
pop edi
pop esi
not ecx
pop ebx
jmp fcn.0040a690
Function at 0x418b00
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov bl, byte [ecx]
or eax, 0xffffffff
push esi
lea esi, [ecx + 1]
push edi
mov edi, dword [0x48d2c8]
test bl, bl
je 0x418b49
push ebp
or ebp, 0xffffffff
nop dword [eax]
cmp bl, 0x23
jne 0x418b2f
cmp byte [esi], bl
jne 0x418b2f
cmp byte [esi + 1], bl
cmove eax, ebp
movzx edx, al
movzx ecx, bl
mov bl, byte [esi]
xor edx, ecx
shr eax, 8
inc esi
xor eax, dword [edx*4 + 0x47cfe8]
test bl, bl
jne 0x418b20
pop ebp
mov ecx, dword [edi + 0x5dd0]
not eax
mov edx, dword [edi + 0x5dd8]
pop edi
pop esi
lea ecx, [ecx + ecx*8]
lea ecx, [edx + ecx*4]
pop ebx
cmp edx, ecx
je 0x418b70
cmp dword [edx + 4], eax
je 0x418b73
add edx, 0x24
cmp edx, ecx
jne 0x418b64
xor eax, eax
ret
mov eax, edx
ret
Function at 0x427840
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10c
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x10], ecx
push edi
movss dword [esp + 0x10], xmm3
movzx ebx, byte [esi + 8]
movzx eax, byte [esi + 9]
shl ebx, 8
add ebx, eax
movzx eax, byte [esi + 0xa]
shl ebx, 8
add ebx, eax
movzx eax, byte [esi + 0xb]
shl ebx, 8
add ebx, eax
mov ecx, ebx
call fcn.00407200
movzx edx, byte [esi]
movzx ecx, byte [esi + 1]
shl edx, 8
add edx, ecx
mov dword [esp + 0xc], eax
movzx ecx, byte [esi + 2]
shl edx, 8
add edx, ecx
movzx ecx, byte [esi + 3]
shl edx, 8
add edx, ecx
cmp edx, 0x57bc0000
jne 0x427935
movzx ecx, byte [esi + 4]
movzx eax, byte [esi + 5]
shl ecx, 8
add ecx, eax
movzx eax, byte [esi + 6]
shl ecx, 8
add ecx, eax
movzx eax, byte [esi + 7]
shl ecx, 8
add ecx, eax
jne 0x427935
movzx ecx, byte [esi + 8]
movzx eax, byte [esi + 9]
mov edx, dword [esp + 0xc]
movzx edi, byte [esi + 0xb]
shl ecx, 8
add ecx, eax
mov dword [0x48d2d0], esi
movzx eax, byte [esi + 0xa]
add esi, 0x10
shl ecx, 8
add ecx, eax
mov dword [0x48d2d8], edx
shl ecx, 8
add ecx, edx
mov dword [0x48d2dc], edx
add edi, ecx
mov ecx, esi
mov dword [0x48d2d4], edi
call fcn.0042afc0
cmp eax, esi
je 0x427935
nop dword [eax]
cmp dword [0x48d2dc], edi
ja 0x427935
mov ecx, eax
mov esi, eax
call fcn.0042afc0
cmp eax, esi
jne 0x427920
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x427949
mov ecx, 0x1f
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
jmp 0x427991
push 0x7c
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.0044ed90
mov eax, 0xffff
mov byte [esp + 0x2c], 1
add esp, 0xc
mov dword [esp + 0x2c], 2
mov dword [esp + 0x30], 1
mov dword [esp + 0x50], 0x7f7fffff
mov dword [esp + 0x5c], 0x3f800000
mov dword [esp + 0x60], 0x3f800000
mov word [esp + 0x64], ax
movss xmm0, dword [esp + 0x10]
lea esi, [esp + 0x18]
comiss xmm0, dword [0x483418]
mov eax, dword [esp + 0xc]
lea edi, [esp + 0x98]
mov ecx, 0x1f
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x1f
mov byte [esp + 0xa0], 1
lea esi, [esp + 0x98]
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
jbe 0x4279de
movss dword [esp + 0x28], xmm0
mov eax, dword [ebp + 0x14]
test eax, eax
mov ecx, dword [esp + 0x48]
cmovne ecx, eax
lea eax, [esp + 0x18]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x14]
push eax
call fcn.00427620
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x42c180
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
sub esp, 0x34
mov eax, dword [0x48b040]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
mov ebx, dword [0x48d2c8]
lea eax, [esp + 0x20]
push ebp
push esi
push edi
push eax
mov ebp, ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x42c33b
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x42c33b
push 0x38
call fcn.0045b119
mov esi, dword [0x48d2c8]
add esp, 4
mov edi, eax
test esi, esi
je 0x42c224
movsx edx, word [esi + 0x5ee4]
lea eax, [esi + 0x5ee8]
mov ecx, dword [esi + 0x3f08]
lea eax, [eax + edx*8]
cmp dword [eax], ecx
je 0x42c21a
lea eax, [edx + 1]
mov dword [esp + 0x10], 6
cdq
idiv dword [esp + 0x10]
movzx eax, dx
mov word [esi + 0x5ee4], ax
cwde
add eax, 0xbdd
lea eax, [esi + eax*8]
mov dword [eax], ecx
xor ecx, ecx
mov dword [eax + 4], ecx
inc word [eax + 4]
inc dword [esi + 0x5edc]
test edi, edi
je 0x42c237
push 0x38
push 0
push edi
call fcn.0044ed90
add esp, 0xc
jmp 0x42c239
xor edi, edi
or dword [ebx + 0xc], 6
mov dword [ebx + 0x74], edi
mov dword [ebx + 0x6c], str.imgui_impl_win32
mov dword [edi], ebp
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ecx
mov dword [edi + 0x20], 9
test esi, esi
je 0x42c275
mov esi, dword [esi + 0x74]
jmp 0x42c277
xor esi, esi
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 4
add esi, 0x24
shr eax, 0x10
push esi
push 0x20001004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x42c29a
mov dword [esi], eax
mov eax, dword [0x48d2c8]
xor esi, esi
mov dword [esp + 0x18], str.xinput1_4.dll
mov dword [esp + 0x1c], str.xinput1_3.dll
mov dword [esp + 0x20], str.xinput9_1_0.dll
mov eax, dword [eax + 0x4a34]
mov dword [esp + 0x24], str.xinput1_2.dll
mov dword [esp + 0x28], str.xinput1_1.dll
mov eax, dword [eax]
mov dword [eax + 0x28], ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov byte [edi + 0x29], 1
nop
push dword [esp + esi*4 + 0x18]
call ebp
mov ebx, eax
test ebx, ebx
jne 0x42c307
inc esi
cmp esi, 5
jl 0x42c2e0
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0044c777
add esp, 0x34
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.XInputGetCapabilities
push ebx
mov dword [edi + 0x2c], ebx
call esi
push str.XInputGetState
push ebx
mov dword [edi + 0x30], eax
call esi
mov dword [edi + 0x34], eax
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0044c777
add esp, 0x34
ret
mov ecx, dword [esp + 0x40]
xor al, al
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044c777
add esp, 0x34
ret
Function at 0x438b90
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
sub esp, 0x48
mov eax, dword [0x48b040]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyA]
xor eax, eax
push edi
mov edi, dword [0x48d3a4]
xorps xmm0, xmm0
push eax
push 0x20
mov word [esp + 0x20], ax
movlpd qword [esp + 0x28], xmm0
movlpd qword [esp + 0x30], xmm0
mov dword [esp + 0x1c], 1
call esi
mov word [esp + 0x1a], ax
lea edx, [esp + 0x14]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x1c], 8
movups xmm0, xmmword [esp + 0x14]
push ecx
mov dword [esp + 0x4c], eax
movups xmmword [esp + 0x34], xmm0
mov dword [esp + 0x3c], 0xa
movq xmm0, qword [esp + 0x28]
movq qword [esp + 0x44], xmm0
call fcn.004387a0
lea edx, [esp + 0x34]
call fcn.004387a0
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 4
push dword [0x48d3a8]
call ebx
push 0
push 0xa2
mov dword [esp + 0x1c], 1
call esi
push ecx
lea edx, [esp + 0x18]
mov word [esp + 0x1e], ax
mov dword [esp + 0x20], 8
call fcn.004387a0
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
add esp, 4
push edi
call esi
test ax, ax
jns 0x438c6c
push 0xa
call ebx
push edi
call esi
test ax, ax
js 0x438c60
push ecx
lea edx, [esp + 0x18]
mov dword [esp + 0x20], 0xa
call fcn.004387a0
mov ecx, dword [esp + 0x50]
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0044c777
add esp, 0x48
ret
Function at 0x43ad60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x43ad92
jl 0x43ad85
test ecx, ecx
jne 0x43ad92
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x43ae52
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.0043d780
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x43adfe
jg 0x43adbd
test esi, esi
je 0x43adfe
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x43add5
mov eax, dword [esp + 0x10]
jl 0x43adcf
cmp eax, esi
jae 0x43add5
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.0044efb0
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x43ae1f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x43ae3b
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x43ada4
jl 0x43ae3b
test ecx, ecx
jne 0x43ada4
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov esi, dword [ebp + 0x10]
sbb esi, edx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x43ae90
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x43ae90
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push dword [esp + 0x14]
call fcn.0044efb0
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [esp + 0x18], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x43aef9
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x43aeb6
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x43aee4
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.004564a6
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x43aef9
cmp edi, eax
ja 0x43aec2
test edi, edi
je 0x43aef9
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.004564a6
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x43daa0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4722bc
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x48b040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x1c], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [edi], eax
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
lea ebx, [edi + 0x38]
mov dword [edi + 0x30], 0
mov byte [edi + 0x34], 0
mov dword [ebp - 0x14], ebx
mov dword [ebx + 0x24], 0
mov byte [ebp - 4], 4
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x43db54
mov eax, dword [ecx]
push ebx
call dword [eax]
mov dword [ebx + 0x24], eax
mov al, byte [ebp + 0xc]
lea ecx, [edi + 0x68]
mov byte [ebp - 4], 5
push 9
mov byte [edi + 0x60], al
call fcn.0043d540
mov byte [ebp - 4], 6
xor ebx, ebx
mov ecx, dword [edi + 0x1c]
mov edx, dword [edi + 0x10]
mov byte [ebp - 0xd], 1
mov dword [ebp - 0x18], edx
test ecx, ecx
jns 0x43db9b
mov eax, ecx
neg eax
cmp ebx, eax
jae 0x43db9b
add ecx, ebx
mov eax, ecx
not eax
shr eax, 5
lea eax, [eax*4 + 4]
sub edx, eax
jmp 0x43dba5
add ecx, ebx
mov eax, ecx
shr eax, 5
lea edx, [edx + eax*4]
and ecx, 0x1f
lea eax, [ebp - 0xd]
push ecx
push edx
push eax
push ecx
lea eax, [ebp - 0x18]
push eax
lea ecx, [edi + 0x10]
call fcn.00440ef0
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x43dbd3
mov esi, dword [ecx]
lea eax, [ebp + 0x10]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
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 0x30
Function at 0x43e930
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x472470
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x48b040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
lea eax, [ecx + 4]
mov dword [ebp - 0x14], ecx
lea ebx, [ecx + 0x24]
mov dword [ecx], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
lea edi, [ecx + 0x28]
mov dword [ebp - 0x14], eax
push 8
mov dword [eax], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x20], 0
mov dword [ebx], 0
mov dword [edi], 0
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], 0
call fcn.0044cc9b
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0044d875
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
mov ecx, eax
mov dword [eax + 0x34], esi
call fcn.0043eec0
mov eax, dword [ebp - 0x10]
lea edx, [eax + 8]
lea ecx, [eax + 0x14]
lea esi, [eax + 4]
mov dword [eax], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov dword [eax + 0xc], esi
mov esi, eax
mov byte [eax + 0x48], 0
mov byte [eax + 0x3d], 0
mov dword [eax + 0x10], edx
mov dword [eax + 0x1c], ecx
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], edi
mov esi, dword [ebp - 0x14]
mov dword [edx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [edi], 0
mov dword [esi], 0
mov dword [ecx], 0
mov dword [ebx], 0
mov dword [eax + 0x4c], 0
mov ecx, dword [0x48d3b4]
mov edx, dword [0x48d3b8]
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], edx
mov dword [eax + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43f830
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x472510
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x48b040]
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
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.0044cc9b
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0044d875
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.0043eec0
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 0x44d26e
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x44d2ad
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44d2ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44d2ad
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x44d2ad
cmp dword [ecx + 0x74], 0xe
jbe 0x44d2ad
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x452504
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0046f7b0
mov eax, dword [0x48b040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0046062e
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x452546
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4526a2
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0046f700
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x48ce88]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0046083d
mov ecx, dword [esi*4 + 0x48ce88]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x45269b
cmp eax, dword [ecx + edi + 0x24]
jne 0x45269b
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45269b
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0046083d
add esp, 0x14
test edx, edx
jl 0x45269b
jg 0x452611
test eax, eax
jb 0x45269b
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x45269b
jl 0x45262b
cmp dword [ebp - 0x1008], eax
ja 0x45269b
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x452649
test ebx, ebx
je 0x452682
cmp ecx, edi
jae 0x452682
mov al, byte [ecx]
cmp al, 0xd
jne 0x452663
lea eax, [edi - 1]
cmp ecx, eax
jae 0x45266f
cmp byte [ecx + 1], 0xa
jne 0x45266f
inc ecx
jmp 0x45266f
movzx eax, al
movsx eax, byte [eax + 0x48b320]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x452649
cmp edx, ebx
jne 0x452649
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4526a0
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0044c777
leave
ret
Function at 0x460ee2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x48ce88]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x460f22
cmp byte [ebx], 0xa
jne 0x460f22
or byte [edi + eax + 0x28], 4
jmp 0x460f27
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x461026
mov dl, byte [eax]
cmp dl, 0x1a
je 0x461009
inc eax
cmp dl, 0xd
je 0x460f53
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x460f79
cmp eax, ecx
jae 0x460f87
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x460f3b
jmp 0x461026
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x461004
cmp dword [ebp - 0x10], 0
je 0x461004
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x48ce88]
test byte [eax + edi + 0x28], 0x48
je 0x460fde
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x460fc9
mov byte [esi], dl
jmp 0x460fda
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x48ce88]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x461026
cmp byte [ebp - 1], 0xa
jne 0x460fed
cmp esi, ebx
jne 0x460fed
mov byte [esi], 0xa
jmp 0x461025
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0046085b
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x461026
mov byte [esi], 0xd
jmp 0x461025
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x48ce88]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x461023
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x461026
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret