joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100b4e90
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
imul esi, ecx, 0x2c
mov ebx, edx
push edi
add esi, dword [0x102ccf50]
mov eax, dword [esi]
mov cl, byte [esi + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ecx, [ebp - 4]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push edi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x100b4edd
pop edi
pop esi
mov eax, 0xa
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x100b4efe
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x100b4f1f
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x100b4f1f
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x100b4f19
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x100b4f1f
mov al, byte [esi + 0x10]
mov byte [edi + 4], al
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov al, byte [esi + 0x14]
and bl, 1
mov cl, bl
and al, 0xfd
add cl, cl
shl bl, 2
or cl, al
and cl, 0xfb
or cl, bl
xor eax, eax
pop edi
mov byte [esi + 0x14], cl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100b4f70
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [0x102ccf58]
push ebx
push esi
push edi
xor edi, edi
xor esi, esi
mov dword [ebp - 4], edi
mov ebx, ecx
test edx, edx
je 0x100b5061
mov eax, dword [0x102ccf50]
add eax, 0x14
movzx ecx, byte [eax]
shr ecx, 1
and ecx, 1
cmp ecx, ebx
jne 0x100b4fb5
inc esi
add eax, 0x2c
cmp esi, edx
jb 0x100b4f98
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 0xffffffff
je 0x100b5061
xor eax, eax
lea ecx, [ebp - 0x10]
test ebx, ebx
setne al
or edx, 0xffffffff
push eax
call fcn.100b4cf0
mov ecx, dword [0x102ccf58]
add esp, 4
cmp esi, ecx
jae 0x100b5015
imul edi, esi, 0x2c
mov eax, dword [0x102ccf50]
movzx eax, byte [edi + eax + 0x14]
shr eax, 1
and eax, 1
cmp eax, ebx
je 0x100b500a
mov edx, ebx
mov ecx, esi
call fcn.100b4e90
mov dword [ebp - 4], eax
test eax, eax
jne 0x100b5012
mov ecx, dword [0x102ccf58]
inc esi
add edi, 0x2c
cmp esi, ecx
jb 0x100b4fe1
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x100b5061
xor esi, esi
cmp dword [ebp - 8], esi
jbe 0x100b5052
mov edi, eax
push dword [edi + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x100b5046
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebp - 8]
jb 0x100b5025
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
push eax
push 0
push dword [0x102c727c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100b8570
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c154c
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
mov eax, dword [0x102100f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movss dword [ebp - 0x10], xmm3
push 0x70
mov dword [ebp - 4], 2
call fcn.101559fd
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp + 0x24]
lea eax, [ebp + 0x58]
mov byte [ebp - 4], 3
mov dword [esi], ecx
lea ecx, [esi + 4]
push eax
call fcn.10003fa0
mov eax, dword [ebp + 0x20]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x20], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x24], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x28], eax
lea eax, [ebp + 0x40]
mov byte [ebp - 4], 4
lea ecx, [esi + 0x2c]
push eax
call fcn.10003fa0
mov eax, dword [ebp + 0x10]
movss xmm0, dword [ebp - 0x10]
mov dword [esi + 0x44], eax
mov eax, dword [ebp + 0xc]
movss dword [esi + 0x48], xmm0
mov dword [esi + 0x4c], eax
mov al, byte [ebp + 8]
mov byte [esi + 0x50], al
lea eax, [ebp + 0x28]
mov byte [ebp - 4], 5
lea ecx, [esi + 0x54]
push eax
call fcn.10003fa0
mov dword [ebp + 8], esi
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 6
push eax
push 0
push esi
push 0x100c6030
push 0
push 0
call fcn.1017f225
add esp, 0x18
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x100b8724
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 7
call fcn.1001ada0
cmp dword [ebp - 0x18], 0
jne 0x100b8732
mov edx, dword [ebp + 0x3c]
cmp edx, 0x10
jb 0x100b868e
mov ecx, dword [ebp + 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100b8684
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100b8737
push edx
push ecx
call fcn.10155db7
add esp, 8
mov edx, dword [ebp + 0x54]
mov dword [ebp + 0x38], 0
mov dword [ebp + 0x3c], 0xf
mov byte [ebp + 0x28], 0
cmp edx, 0x10
jb 0x100b86d0
mov ecx, dword [ebp + 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100b86c6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100b8737
push edx
push ecx
call fcn.10155db7
add esp, 8
mov edx, dword [ebp + 0x6c]
mov dword [ebp + 0x50], 0
mov dword [ebp + 0x54], 0xf
mov byte [ebp + 0x40], 0
cmp edx, 0x10
jb 0x100b8712
mov ecx, dword [ebp + 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100b8708
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100b8737
push edx
push ecx
call fcn.10155db7
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x68
push 6
mov dword [ebp - 0x18], 0
call fcn.1013ae4d
call fcn.1017f306
call fcn.1017e89f
int3
Function at 0x100b90c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c16ac
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x102100f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x20
mov dword [ebp - 4], 0
call fcn.101559fd
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 1
lea eax, [ebp + 0xc]
mov cl, byte [ebp + 8]
mov byte [esi], cl
lea ecx, [esi + 4]
push eax
call fcn.10003fa0
mov dword [ebp + 8], esi
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
push 0
push esi
push 0x100c6250
push 0
push 0
call fcn.1017f225
add esp, 0x18
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x100b919a
lea ecx, [ebp + 8]
mov dword [ebp + 8], 0
call fcn.100c4ff0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.1001ada0
cmp dword [ebp - 0x18], 0
jne 0x100b91a8
mov edx, dword [ebp + 0x20]
cmp edx, 0x10
jb 0x100b9188
mov ecx, dword [ebp + 0xc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100b917e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100b91ad
push edx
push ecx
call fcn.10155db7
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x1c
push 6
mov dword [ebp - 0x18], 0
call fcn.1013ae4d
call fcn.1017f306
call fcn.1017e89f
int3
Function at 0x100c3920
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c2610
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x102100f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], 0x101f72c8
call fcn.101559fd
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.1013e38b
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 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 0x100cc620
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x102100f8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x100cc6dc
cmp byte [esi + 0x3d], 0
je 0x100cc6dc
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x100cc6ca
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 0x100cc692
sub eax, 1
je 0x100cc696
sub eax, 2
jne 0x100cc6ca
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101559ea
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x100cc6b3
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.10181a9b
add esp, 0x10
cmp edi, eax
jne 0x100cc6ca
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101559ea
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101559ea
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.101559ea
mov esp, ebp
pop ebp
ret
Function at 0x100f7ce0
Capabilities:
Receive data
Receive data on socket

Disassembly:
cmp byte [0x102c589c], 0
push esi
push edi
mov edi, dword [esp + 0x20]
je 0x100f7d55
test edi, edi
je 0x100f7d55
mov eax, dword [0x102c58a0]
test eax, eax
jne 0x100f7d4f
mov esi, dword [esp + 0x1c]
push str.recv
push esi
push edi
push str.LIMIT__s:_d__s_reached_memlimit_n
call fcn.100f7a60
add esp, 0x10
push str.recv
push esi
push edi
push str.LIMIT__s:_d__s_reached_memlimit_n
push 2
call fcn.10180724
add esp, 4
push eax
call fcn.10105c80
push dword [0x102c5898]
call fcn.10180dbf
add esp, 0x18
call fcn.1016bcff
pop edi
pop esi
mov dword [eax], 0xc
or eax, 0xffffffff
ret
dec eax
mov dword [0x102c58a0], eax
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
test edi, edi
je 0x100f7d88
push esi
push dword [esp + 0x18]
push dword [esp + 0x24]
push edi
push str.RECV__s:_d_recv__lu____ld_n
call fcn.100f7a60
add esp, 0x14
pop edi
mov eax, esi
pop esi
ret

Function at 0x100f7dc0
Capabilities:
Send data
Send data on socket

Disassembly:
cmp byte [0x102c589c], 0
push esi
push edi
mov edi, dword [esp + 0x20]
je 0x100f7e35
test edi, edi
je 0x100f7e35
mov eax, dword [0x102c58a0]
test eax, eax
jne 0x100f7e2f
mov esi, dword [esp + 0x1c]
push str.send
push esi
push edi
push str.LIMIT__s:_d__s_reached_memlimit_n
call fcn.100f7a60
add esp, 0x10
push str.send
push esi
push edi
push str.LIMIT__s:_d__s_reached_memlimit_n
push 2
call fcn.10180724
add esp, 4
push eax
call fcn.10105c80
push dword [0x102c5898]
call fcn.10180dbf
add esp, 0x18
call fcn.1016bcff
pop edi
pop esi
mov dword [eax], 0xc
or eax, 0xffffffff
ret
dec eax
mov dword [0x102c58a0], eax
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
test edi, edi
je 0x100f7e68
push esi
push dword [esp + 0x18]
push dword [esp + 0x24]
push edi
push str.SEND__s:_d_send__lu____ld_n
call fcn.100f7a60
add esp, 0x14
pop edi
mov eax, esi
pop esi
ret
Function at 0x1010cb50
Capabilities:
Query environment variable

Disassembly:
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push str.F:_vcpkg_master_buildtreescurl_srce5cd7b457b_ffb4748466.cleanlibgetenv.c
push 0x2d
lea esi, [ebp + 1]
push esi
push ebp
call fcn.100f7c10
mov edi, eax
add esp, 0x10
test edi, edi
je 0x1010cbad
push esi
push edi
push dword [esp + 0x1c]
mov ebp, edi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x1010cbcb
cmp esi, ebx
je 0x1010cbcb
cmp esi, 0x8000
ja 0x1010cbcb
cmp esi, ebx
jb 0x1010cbc4
push str.F:_vcpkg_master_buildtreescurl_srce5cd7b457b_ffb4748466.cleanlibgetenv.c
push 0x2d
push esi
push edi
call fcn.100f7c10
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x1010cb70
push str.F:_vcpkg_master_buildtreescurl_srce5cd7b457b_ffb4748466.cleanlibgetenv.c
push 0x2f
push ebp
call fcn.100f7a20
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push str.F:_vcpkg_master_buildtreescurl_srce5cd7b457b_ffb4748466.cleanlibgetenv.c
push 0x3a
push edi
call fcn.100f7a20
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x1019ee4a
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1019ed1e

Function at 0x101a1c7b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.101a1873

Function at 0x101a1c86
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.101a19fd

Function at 0x101a9d1e
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.101a971c
Function at 0x401000
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov al, byte [ecx]
and dword [esp + 0x18], 0
push ebx
push esi
mov byte [edx], al
lea eax, [edx + 1]
push edi
xor edi, edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], edx
mov esi, dword [esp + 0x14]
xor ebx, ebx
lea eax, [ecx + 1]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x18]
call fcn.004011b2
test eax, eax
je 0x401164
lea ecx, [esp + 0x18]
call fcn.004011b2
lea ecx, [esp + 0x18]
test eax, eax
je 0x4010d3
call fcn.004011b2
test eax, eax
je 0x401091
push 4
xor edi, edi
pop ebx
lea ecx, [esp + 0x18]
jmp loc.00441000
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
movzx esi, byte [eax]
mov ecx, esi
and ecx, 1
inc eax
add ecx, 2
shr esi, 1
mov dword [esp + 0x18], eax
je 0x4010c7
test ecx, ecx
je 0x40115f
mov edi, edx
sub edi, esi
mov al, byte [edi]
mov byte [edx], al
inc edx
inc edi
dec ecx
jne 0x4010b9
jmp 0x40115b
xor ebx, ebx
inc ebx
mov dword [esp + 0x10], ebx
jmp 0x40115f
call fcn.00401191
test edi, edi
jne 0x401108
cmp eax, 2
jne 0x401103
lea ecx, [esp + 0x18]
call fcn.00401191
mov edx, dword [esp + 0x1c]
mov edi, eax
test edi, edi
je 0x40115f
mov ecx, edx
sub ecx, esi
mov al, byte [ecx]
mov byte [edx], al
inc edx
inc ecx
dec edi
jne 0x4010f8
jmp 0x40115b
sub eax, 3
jmp 0x40110b
sub eax, 2
mov ecx, dword [esp + 0x18]
mov esi, eax
movzx eax, byte [ecx]
shl esi, 8
add esi, eax
inc ecx
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x18]
call fcn.00401191
mov ecx, eax
cmp esi, 0x7d00
jb 0x401132
inc ecx
cmp esi, 0x500
jb 0x40113b
inc ecx
cmp esi, 0x80
jae 0x401146
add ecx, 2
mov edx, dword [esp + 0x1c]
test ecx, ecx
je 0x40115f
mov edi, edx
sub edi, esi
mov al, byte [edi]
mov byte [edx], al
inc edx
inc edi
dec ecx
jne 0x401152
mov dword [esp + 0x1c], edx
xor edi, edi
inc edi
jmp 0x40117c
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov al, byte [ecx]
mov byte [edx], al
inc edx
inc ecx
mov dword [esp + 0x18], ecx
xor edi, edi
mov dword [esp + 0x1c], edx
test ebx, ebx
je 0x401033
sub edx, dword [esp + 0x14]
pop edi
pop esi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4042e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425ef0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x432080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ebx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
push 8
mov dword [ebx], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.0040dd1b
mov edi, eax
add esp, 4
test edi, edi
je 0x40438d
push 1
mov dword [ebp - 4], 0
call fcn.0040ced8
add esp, 4
mov dword [edi + 4], eax
jmp 0x40438f
xor edi, edi
mov ecx, esi
mov dword [esi + 0x34], edi
call fcn.00408c10
mov dword [esi + 0xc], ebx
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x14]
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
lea edx, [esi + 0x18]
mov byte [esi + 0x48], 0
lea edi, [esi + 0x24]
mov byte [esi + 0x3d], 0
lea ebx, [esi + 0x28]
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], edx
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], ebx
mov dword [eax], 0
mov dword [edx], 0
mov dword [esi + 0x28], 0
mov dword [esi + 4], 0
mov dword [ecx], 0
mov dword [edi], 0
mov dword [esi + 0x4c], 0
mov eax, dword [0x433198]
mov ecx, dword [0x43319c]
mov dword [esi + 0x40], eax
mov eax, esi
mov dword [esi + 0x44], ecx
mov dword [esi + 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 0x40a4f0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x40a521
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x40a510
pop edi
mov eax, edx
pop esi
pop ebp
ret 8

Function at 0x40b010
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42659d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x432080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.0040dd1b
mov edi, eax
add esp, 4
test edi, edi
je 0x40b0ad
push 1
mov dword [ebp - 4], 0
call fcn.0040ced8
add esp, 4
mov dword [edi + 4], eax
jmp 0x40b0af
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov edi, dword [edi + 4]
mov ecx, edi
mov dword [ebp - 0x10], edi
mov eax, dword [edi]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
call fcn.00404020
add esp, 4
mov ecx, dword [eax]
push 0x20
mov edx, dword [ecx + 0x20]
mov ecx, eax
call edx
mov dword [ebp - 4], 0xffffffff
mov bl, al
test edi, edi
je 0x40b10a
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 8]
test eax, eax
je 0x40b10a
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], bl
jne 0x40b126
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x40b149
cmp byte [ebp + 0xc], 0
je 0x40b135
push esi
call fcn.0040d4cc
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x40b155
mov esi, str.ios_base::badbit_set
jmp 0x40b165
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.0040b190
add esp, 8
lea ecx, [ebp - 0x28]
push eax
push esi
call fcn.00404c10
push 0x430c68
lea eax, [ebp - 0x28]
push eax
call fcn.0040edfd
int3

Function at 0x40e634
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40e673
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40e673
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40e673
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40e673
cmp dword [ecx + 0x74], 0xe
jbe 0x40e673
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x418d35
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42b100
push 0x42b0f8
push str.FlsAlloc
push 0x1f
call fcn.00418ba0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x418d69
push dword [ebp + 8]
mov ecx, esi
call dword [0x427138]
call esi
jmp 0x418d6f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x418db3
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42b110
push 0x42b108
push str.FlsGetValue
push 0x21
call fcn.00418ba0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x418dea
push dword [ebp + 8]
mov ecx, esi
call dword [0x427138]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x418df2
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42b118
push 0x42b110
push str.FlsSetValue
push 0x22
call fcn.00418ba0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x418e2c
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x427138]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x41a8b3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040ea40
mov eax, dword [0x432080]
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.00419368
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41a8f5
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41aa51
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00425a40
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 + 0x433c40]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0041b8b0
mov ecx, dword [esi*4 + 0x433c40]
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 0x41aa4a
cmp eax, dword [ecx + edi + 0x24]
jne 0x41aa4a
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 0x41aa4a
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041b8b0
add esp, 0x14
test edx, edx
jl 0x41aa4a
jg 0x41a9c0
test eax, eax
jb 0x41aa4a
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41aa4a
jl 0x41a9da
cmp dword [ebp - 0x1008], eax
ja 0x41aa4a
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41a9f8
test ebx, ebx
je 0x41aa31
cmp ecx, edi
jae 0x41aa31
mov al, byte [ecx]
cmp al, 0xd
jne 0x41aa12
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41aa1e
cmp byte [ecx + 1], 0xa
jne 0x41aa1e
inc ecx
jmp 0x41aa1e
movzx eax, al
movsx eax, byte [eax + 0x432338]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41a9f8
cmp edx, ebx
jne 0x41a9f8
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41aa4f
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040dfaf
leave
ret