joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a3580
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x568028
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x5b2070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x4a35c3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
lea ecx, [ebp - 0x14]
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.00485a50
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x4a35ec
lea eax, [esi + 8]
jmp 0x4a35ee
xor eax, eax
cmp dword [ebx + 0x10], 0
je 0x4a35fe
cmp dword [ebx + 0x14], 8
jb 0x4a3600
mov ebx, dword [ebx]
jmp 0x4a3600
xor ebx, ebx
push ebx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
je 0x4a3621
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4a3621
mov byte [edi + 5], 1
cmp dword [edi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x4a364a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x4a365f
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.004e649f
add esp, 8
mov dword [ebp - 0x14], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e645e
mov esp, ebp
pop ebp
ret 4
Function at 0x4a7b20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x568820
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x5b2070]
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 esi, ecx
mov eax, dword [esi]
mov edi, dword [ebp + 8]
test eax, eax
je 0x4a7c07
cmp byte [eax + 0x54], 0
je 0x4a7c07
add eax, 0x1c
lea ecx, [ebp - 0x38]
push eax
call fcn.0048ddf0
push 0
mov edx, edi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00465d40
add esp, 4
mov byte [ebp - 4], 1
lea edi, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0x10
mov eax, dword [esi]
cmovae edi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x1c]
cmp dword [eax + 0x14], 8
jb 0x4a7ba2
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4a7bec
push 2
push 0
push 0
push esi
mov dword [ebp - 0x30], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x30]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.0041dff0
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.0048de40
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.004e645e
mov esp, ebp
pop ebp
ret 4
Function at 0x4e9bb0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [0x5b7218], 0
push ebx
push esi
push edi
jne 0x4e9ccf
mov edi, 1
mov dword [0x5b7220], 0
mov ebx, 0x80
mov eax, edi
mov dword [ebp - 4], ebx
and al, 1
lea esi, [ebx*8]
movzx eax, al
lea edx, [ebx*4 + 0x5b7220]
neg eax
sbb eax, eax
shr edi, 1
and eax, 0xedb88320
xor edi, eax
xor eax, eax
nop
mov ecx, dword [eax + 0x5b7220]
add eax, esi
xor ecx, edi
mov dword [edx], ecx
add edx, esi
cmp eax, 0x400
jb 0x4e9c00
shr ebx, 1
cmp dword [ebp - 4], 2
jae 0x4e9bd8
mov esi, 0x400
mov ecx, dword [esi + 0x5b6e20]
movzx eax, cl
shr ecx, 8
mov edx, dword [eax*4 + 0x5b7220]
xor edx, ecx
movzx eax, dl
mov dword [esi + 0x5b7220], edx
shr edx, 8
mov ecx, dword [eax*4 + 0x5b7220]
xor ecx, edx
movzx eax, cl
mov dword [esi + 0x5b7620], ecx
shr ecx, 8
mov edx, dword [eax*4 + 0x5b7220]
xor edx, ecx
movzx eax, dl
mov dword [esi + 0x5b7a20], edx
shr edx, 8
mov ecx, dword [eax*4 + 0x5b7220]
xor ecx, edx
movzx eax, cl
mov dword [esi + 0x5b7e20], ecx
shr ecx, 8
mov edx, dword [eax*4 + 0x5b7220]
xor edx, ecx
movzx eax, dl
mov dword [esi + 0x5b8220], edx
shr edx, 8
mov ecx, dword [eax*4 + 0x5b7220]
xor ecx, edx
movzx eax, cl
mov dword [esi + 0x5b8620], ecx
shr ecx, 8
xor ecx, dword [eax*4 + 0x5b7220]
mov dword [esi + 0x5b8a20], ecx
add esi, 4
cmp esi, 0x800
jb 0x4e9c22
mov byte [0x5b7218], 1
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
not esi
mov ebx, dword [ebp + 0xc]
cmp edi, 8
jb 0x4e9db5
mov eax, edi
lea ecx, [ebx + 6]
shr eax, 3
mov dword [ebp + 8], ecx
mov dword [ebp + 0x10], eax
movzx edx, byte [ecx - 3]
sub edi, 8
movzx eax, byte [ecx - 4]
shl edx, 8
or edx, eax
movzx eax, byte [ecx - 5]
shl edx, 8
or edx, eax
movzx eax, byte [ebx]
shl edx, 8
add ebx, 8
or edx, eax
xor edx, esi
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov esi, dword [ecx*4 + 0x5b8620]
mov ecx, dword [ebp + 8]
xor esi, dword [eax*4 + 0x5b8a20]
mov eax, edx
shr eax, 0x18
xor esi, dword [eax*4 + 0x5b8220]
movzx eax, dl
movzx edx, byte [ecx + 1]
shl edx, 8
xor esi, dword [eax*4 + 0x5b8e20]
movzx eax, byte [ecx]
or edx, eax
movzx eax, byte [ecx - 1]
shl edx, 8
or edx, eax
movzx eax, byte [ecx - 2]
shl edx, 8
or edx, eax
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x5b7620]
xor ecx, dword [eax*4 + 0x5b7a20]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x5b7220]
movzx eax, dl
xor ecx, dword [eax*4 + 0x5b7e20]
xor esi, ecx
mov ecx, dword [ebp + 8]
add ecx, 8
sub dword [ebp + 0x10], 1
mov dword [ebp + 8], ecx
jne 0x4e9cf1
test edi, edi
je 0x4e9dda
nop dword [eax]
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [eax*4 + 0x5b7220]
sub edi, 1
jne 0x4e9dc0
not esi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f2e10
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x98
push 0
lea eax, [edi + 0x110]
push eax
call fcn.00501c30
mov eax, dword [edi + 0x30]
add esp, 0xc
add eax, dword [edi + 0x34]
mov ecx, dword [edi + 0x28]
mov dword [edi + 0x40], eax
mov dword [edi + 0x2c], 0
mov dword [edi + 0x14], 0
lea esi, [eax + ecx]
shr ecx, 3
mov eax, 0xaaaaaaab
mul ecx
mov ecx, 0xc
shr edx, 3
imul eax, edx, 0x54
mov edx, esi
sub edx, eax
mov eax, dword [edi + 0x18]
cmp eax, ecx
mov dword [edi + 0xc], eax
mov dword [edi + 0x44], edx
cmovb ecx, eax
mov dword [edi + 8], edx
not ecx
lea eax, [edx + 0x600]
mov dword [edi + 0x24], ecx
mov dword [edi + 0x20], ecx
lea ecx, [esi - 0xc]
mov dword [edi + 0x38], eax
xor eax, eax
mov dword [edi + 0x3c], ecx
mov dword [edi], ecx
mov dword [edi + 4], ecx
mov dword [ecx + 4], edx
add edx, 2
mov dword [ecx], 0x1010100
mov dword [ecx + 8], 0
mov byte [edx - 2], al
lea edx, [edx + 6]
xor ecx, ecx
mov byte [edx - 7], 1
inc eax
mov dword [edx - 6], ecx
cmp eax, 0x100
jb 0x4f2ea7
lea eax, [edi + 0x9fc]
push ebx
xor ebx, ebx
mov dword [ebp - 4], eax
nop word [eax + eax]
mov esi, eax
xor edi, edi
movzx eax, word [edi + 0x577890]
lea ecx, [ebx + 2]
xor edx, edx
div ecx
mov ecx, 0x4000
sub ecx, eax
xor eax, eax
movzx ecx, cx
nop
mov word [esi + eax*2], cx
add eax, 8
cmp eax, 0x40
jb 0x4f2ef0
add edi, 2
add esi, 2
cmp edi, 0x10
jb 0x4f2ed4
mov eax, dword [ebp - 4]
inc ebx
sub eax, 0xffffff80
mov dword [ebp - 4], eax
cmp ebx, 0x80
jb 0x4f2ed0
mov edi, dword [ebp + 8]
mov edx, 0x50
pop ebx
lea esi, [edi + 0x3bc]
nop dword [eax + eax]
mov eax, esi
mov ecx, 0x10
nop word [eax + eax]
mov word [eax], dx
lea eax, [eax + 4]
mov word [eax - 2], 0x403
sub ecx, 1
jne 0x4f2f40
add edx, 0x28
add esi, 0x40
cmp edx, 0x438
jb 0x4f2f30
mov dword [edi + 0x3b8], 0x40070000
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4fa4a0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x130
push 0
lea eax, [edi + 0x100]
push eax
call fcn.00501c30
mov eax, dword [edi + 0x30]
add esp, 0xc
add eax, dword [edi + 0x34]
mov ecx, dword [edi + 0x28]
mov dword [edi + 0x40], eax
mov dword [edi + 0x2c], 0
mov dword [edi + 0x14], 0
lea esi, [eax + ecx]
shr ecx, 3
mov eax, 0xaaaaaaab
mul ecx
mov ecx, 0xc
shr edx, 3
imul eax, edx, 0x54
mov edx, esi
sub edx, eax
mov eax, dword [edi + 0x18]
cmp eax, ecx
mov dword [edi + 0xc], eax
mov dword [edi + 0x44], edx
cmovb ecx, eax
mov dword [edi + 8], edx
not ecx
lea eax, [edx + 0x600]
mov dword [edi + 0x24], ecx
mov dword [edi + 0x20], ecx
lea ecx, [esi - 0xc]
mov dword [edi + 0x38], eax
xor eax, eax
mov dword [edi + 0x3c], ecx
mov dword [edi], ecx
mov dword [edi + 4], ecx
mov dword [ecx + 4], edx
add edx, 2
mov dword [ecx], 0x10100ff
mov dword [ecx + 8], 0
nop word [eax + eax]
mov byte [edx - 2], al
lea edx, [edx + 6]
xor ecx, ecx
mov byte [edx - 7], 1
inc eax
mov dword [edx - 6], ecx
cmp eax, 0x100
jb 0x4fa540
lea esi, [edi + 0x330]
xor edx, edx
xor ebx, ebx
mov dword [ebp - 4], edx
mov ecx, esi
mov dword [ebp - 0xc], ebx
add edi, 0x1048
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edi
movzx eax, byte [ecx]
cmp eax, edx
jne 0x4fa592
nop
inc ebx
movzx eax, byte [esi + ebx]
lea ecx, [esi + ebx]
mov dword [ebp - 0x10], ecx
cmp eax, edx
je 0x4fa580
mov dword [ebp - 0xc], ebx
lea eax, [ebx + 1]
mov esi, edi
mov dword [ebp - 0x14], eax
xor edi, edi
mov ebx, eax
nop
movzx eax, word [edi + 0x577af0]
xor edx, edx
div ebx
mov ecx, 0x4000
sub ecx, eax
xor eax, eax
movzx ecx, cx
nop word [eax + eax]
mov word [esi + eax*2], cx
add eax, 8
cmp eax, 0x40
jb 0x4fa5c0
add edi, 2
add esi, 2
cmp edi, 0x10
jb 0x4fa5a0
mov edx, dword [ebp - 4]
mov edi, dword [ebp - 8]
inc edx
mov ebx, dword [ebp - 0xc]
sub edi, 0xffffff80
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 4], edx
mov dword [ebp - 8], edi
cmp edx, 0x19
jb 0x4fa578
mov edi, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0xc], 0x18
lea esi, [edi + 0x333]
add edi, 0x448
mov dword [ebp - 0x18], esi
lea ebx, [ecx + 3]
mov edx, esi
mov dword [ebp - 0x10], edi
movzx eax, byte [edx]
cmp eax, ebx
jne 0x4fa62c
nop
inc ecx
movzx eax, byte [esi + ecx]
lea edx, [esi + ecx]
cmp eax, ebx
je 0x4fa620
mov eax, edi
mov esi, 0x20
mov edi, ecx
shl edi, 4
add edi, 0x28
nop dword [eax + eax]
mov word [eax], di
lea eax, [eax + 4]
mov word [eax - 2], 0x703
sub esi, 1
jne 0x4fa640
mov edi, dword [ebp - 0x10]
inc ebx
mov esi, dword [ebp - 0x18]
sub edi, 0xffffff80
sub dword [ebp - 0xc], 1
mov dword [ebp - 0x10], edi
jne 0x4fa618
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [eax + 0x444], 0x40070000
mov esp, ebp
pop ebp
ret
Function at 0x4fd9b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
push edi
xor edi, edi
mov esi, dword [esi]
and esi, 7
cmp eax, 5
jae 0x4fd9d0
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
add dword [ebp + 0x10], 5
mov ecx, dword [ebp + 8]
push ebx
lea ebx, [eax - 4]
add ebx, ecx
mov dword [ebp - 4], ebx
lea eax, [edi + ecx]
cmp eax, ebx
jae 0x4fd9f9
mov cl, byte [eax]
and cl, 0xfe
cmp cl, 0xe8
je 0x4fd9f6
inc eax
cmp eax, ebx
jb 0x4fd9e7
mov ecx, dword [ebp + 8]
mov edx, eax
sub edx, edi
mov edi, eax
sub edx, ecx
sub edi, ecx
cmp eax, ebx
jae 0x4fdafd
cmp edx, 2
jbe 0x4fda82
xor esi, esi
movzx edx, byte [eax + 4]
lea ecx, [edx + 1]
test cl, 0xfe
jne 0x4fdae9
movzx ecx, byte [eax + 3]
mov ebx, dword [ebp + 0x10]
shl edx, 8
add ebx, edi
or edx, ecx
movzx ecx, byte [eax + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax + 1]
shl edx, 8
or edx, ecx
mov ecx, edx
add edx, ebx
sub ecx, ebx
cmp dword [ebp + 0x18], 0
cmove edx, ecx
mov dword [ebp + 0xc], edx
mov ebx, edx
test esi, esi
je 0x4fdab9
and esi, 6
shl esi, 2
mov ecx, esi
shr edx, cl
inc edx
test dl, 0xfe
jne 0x4fdab7
mov ebx, 0x100
shl ebx, cl
mov ecx, dword [ebp + 0x10]
dec ebx
xor ebx, dword [ebp + 0xc]
add ecx, edi
cmp dword [ebp + 0x18], 0
je 0x4fdab5
add ebx, ecx
jmp 0x4fdab7
mov ecx, edx
shr esi, cl
test esi, esi
je 0x4fda12
cmp esi, 4
ja 0x4fdaa7
cmp esi, 3
je 0x4fdaa7
mov ecx, esi
shr ecx, 1
movzx ecx, byte [ecx + eax + 1]
inc ecx
test cl, 0xfe
jne 0x4fda12
mov ecx, dword [ebp + 8]
or esi, 8
shr esi, 1
inc edi
jmp 0x4fd9e0
sub ebx, ecx
xor esi, esi
mov ecx, ebx
mov byte [eax + 1], bl
shr ecx, 8
mov byte [eax + 2], cl
mov ecx, ebx
shr ebx, 0x18
and bl, 1
shr ecx, 0x10
neg bl
mov byte [eax + 3], cl
mov ecx, dword [ebp + 8]
mov byte [eax + 4], bl
mov eax, 5
mov ebx, dword [ebp - 4]
add edi, eax
jmp 0x4fd9e0
mov ecx, dword [ebp + 8]
or esi, 8
mov eax, 1
shr esi, 1
add edi, eax
jmp 0x4fd9e0
mov eax, dword [ebp + 0x14]
mov ecx, edx
shr esi, cl
xor ecx, ecx
cmp edx, 2
pop ebx
cmovbe ecx, esi
mov dword [eax], ecx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x54120d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00540e12

Function at 0x541218
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00540f93

Function at 0x548175
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0054794f

Function at 0x548180
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00547b8a

Function at 0x5486fa
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00548481
Function at 0x4094b0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x13b4
call fcn.0045a700
mov eax, dword [0x4de180]
xor eax, esp
mov dword [esp + 0x13b0], eax
push ebx
push esi
mov ebx, ecx
push edi
mov dword [esp + 0x24], ebx
call fcn.00455d39
mov edi, eax
mov esi, edx
mov dword [esp + 0x18], edi
mov dword [esp + 0x2c], esi
call fcn.00455d22
mov dword [esp + 0x14], eax
mov ecx, edx
mov dword [esp + 0x28], ecx
cmp edi, 0x989680
jne 0x409516
test esi, esi
jne 0x409516
push esi
push 0x64
push ecx
push eax
call fcn.0045a120
mov ecx, eax
mov edi, eax
jmp 0x4095a9
cmp edi, 0x16e3600
jne 0x40955d
test esi, esi
jne 0x40955d
push esi
push edi
push ecx
push eax
call fcn.004abf20
push esi
push 0x16e3600
mov edi, edx
mov ebx, eax
push edi
push ebx
call fcn.0045a120
mov ecx, dword [esp + 0x14]
sub ecx, eax
mov eax, dword [esp + 0x28]
push esi
push 0x3b9aca00
sbb eax, edx
push eax
push ecx
call fcn.0045a120
push esi
push 0x16e3600
jmp 0x409584
push ebx
push esi
push edi
push ecx
push eax
call fcn.004ac610
mov esi, ebx
pop ebx
push 0
push 0x3b9aca00
push esi
push ecx
mov ebx, eax
mov edi, edx
call fcn.0045a120
push dword [esp + 0x2c]
push dword [esp + 0x1c]
push edx
push eax
call fcn.004abf20
push 0
push 0x3b9aca00
push edi
push ebx
mov dword [esp + 0x24], eax
call fcn.0045a120
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x24]
add ecx, eax
mov edi, ecx
mov dword [esp + 0x34], ecx
mov ecx, 1
mov dword [esp + 0x13b4], 0xffffffff
nop dword [eax]
mov eax, edi
shr eax, 0x1e
xor eax, edi
imul edi, eax, 0x6c078965
add edi, ecx
mov dword [esp + ecx*4 + 0x34], edi
inc ecx
cmp ecx, 0x270
jb 0x4095c0
mov dword [esp + 0x30], 0x270
mov esi, 0xc
mov edi, 0xff
nop
lea ecx, [esp + 0x30]
call fcn.0041b490
mul edi
cmp eax, 0xff
jae 0x409617
cmp eax, 1
jae 0x409617
lea ecx, [esp + 0x30]
call fcn.0041b490
mul edi
cmp eax, 1
jb 0x409607
mov eax, dword [ebx + 4]
inc dl
mov byte [esp + 0x13], dl
cmp eax, dword [ebx + 8]
je 0x40962c
mov byte [eax], dl
inc dword [ebx + 4]
jmp 0x409639
lea ecx, [esp + 0x13]
push ecx
push eax
mov ecx, ebx
call fcn.00415e30
sub esi, 1
jne 0x4095f0
mov ecx, dword [esp + 0x13bc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004591b2
mov esp, ebp
pop ebp
ret
Function at 0x40bcd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
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 0x40bd02
jl 0x40bcf5
test ecx, ecx
jne 0x40bd02
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 0x40bddf
mov dword [esp + 0x10], eax
lea eax, [ebx + 0x2c]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax]
mov dword [esp + 0x18], eax
test eax, eax
je 0x40bd32
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x40bd34
xor eax, eax
cdq
mov dword [esp + 0x1c], edx
mov esi, eax
test edx, edx
jl 0x40bd88
jg 0x40bd45
test esi, esi
je 0x40bd88
mov eax, dword [esp + 0x10]
cmp eax, edx
jg 0x40bd59
jl 0x40bd53
cmp ecx, esi
jae 0x40bd59
mov esi, ecx
mov dword [esp + 0x1c], eax
push esi
push dword [esp + 0x1c]
push edi
call fcn.00473360
mov eax, dword [esp + 0x20]
add esp, 0xc
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
sub ecx, esi
mov eax, dword [eax]
sbb edx, dword [esp + 0x1c]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov eax, dword [esp + 0x14]
jmp 0x40bdac
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x40bdc8
mov ecx, dword [esp + 0xc]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
lea eax, [ebx + 0x2c]
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ecx
test edx, edx
jg 0x40bd17
jl 0x40bdc8
test ecx, ecx
jne 0x40bd17
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0xc]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
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 0x40be23
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x40be23
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.00473360
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x40be8c
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x40be49
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 0x40be77
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.004891b1
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x40be8c
cmp edi, eax
ja 0x40be55
test edi, edi
je 0x40be8c
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.004891b1
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 0x40f930
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ad960
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4de180]
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.00459283
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00455fe8
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
mov ecx, eax
mov dword [eax + 0x34], esi
call fcn.0040fec0
mov eax, dword [ebp - 0x10]
lea edx, [eax + 8]
lea ecx, [eax + 0x14]
lea esi, [eax + 4]
mov dword [eax + 0x10], edx
mov dword [eax + 0xc], esi
mov esi, eax
mov dword [eax + 0x1c], ecx
mov dword [eax], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [eax + 0x48], 0
mov byte [eax + 0x3d], 0
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 edx, dword [0x4e4498]
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [edi], 0
mov dword [esi], 0
mov dword [ecx], 0
mov ecx, dword [0x4e4494]
mov dword [ebx], 0
mov dword [eax + 0x4c], 0
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 0x4104b0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4acb80
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4de180]
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.00459283
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00455fe8
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.0040fec0
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