joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46108e
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00459eb0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x461129
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x4ceaec]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x461129
cmp eax, 1
je 0x46114a
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x461129
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4610f6
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x461125
xor eax, eax
inc eax
jmp 0x461169
cmp edi, eax
jae 0x46112d
xor eax, eax
jmp 0x461169
cmp eax, esi
jae 0x461134
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4ceaec]
jmp 0x46114d
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4633a2
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4633c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0045bfbb
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4633e5
test byte [esp + 8], 2
je 0x4633e5
call fcn.0045bfa9
mov dword [eax], 0xd
call fcn.0045bfb2
mov dword [eax], 5
jmp 0x4633be
xor eax, eax
ret
Function at 0x463511
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x4877c8]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x487f30]
je 0x463548
inc eax
cmp eax, 0x13
jb 0x463539
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x487f30]
jne 0x46366b
mov eax, dword [0x4ce970]
cmp eax, 1
je 0x463646
cmp eax, edx
jne 0x463578
cmp dword [0x4877c4], 1
je 0x463646
cmp ecx, 0xfc
je 0x46366b
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4635ae
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.004608d0
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.0045dc40
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4635e2
mov eax, edi
push eax
call fcn.0045dc40
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x473210
push edi
call fcn.00458f80
add esp, 0x10
push edi
call fcn.0045dc40
push dword [esi + 0x487f34]
mov ebx, eax
call fcn.0045dc40
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00459eb0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004608d0
push edi
push ebx
call fcn.004608e0
push 0x4828b0
push ebx
call fcn.004608e0
push dword [esi + 0x487f34]
push ebx
call fcn.004608e0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00466201
add esp, 0x2c
jmp 0x46366b
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x487f34]
push dword [esi]
call fcn.0045dc40
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.0045c488
add ebp, 0x90
leave
ret
Function at 0x465d4e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0xc], ebx
mov byte [ebp - 1], bl
je 0x465d79
cmp eax, 1
je 0x465d79
jle 0x465d81
cmp eax, 3
jle 0x465d79
cmp eax, 4
jne 0x465d81
mov byte [ebp - 1], 1
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
jmp 0x465dac
call fcn.0045bfa9
mov dword [eax], 0x16
call fcn.0045bfb2
mov dword [eax], ebx
or eax, 0xffffffff
jmp 0x465f25
inc eax
cmp byte [eax], bl
jne 0x465d9b
lea ecx, [eax + 1]
cmp byte [ecx], bl
je 0x465dac
mov byte [eax], 0x20
mov eax, ecx
cmp byte [eax], bl
jne 0x465d9b
push esi
push 0x44
pop esi
push esi
lea eax, [ebp - 0x68]
push ebx
push eax
call fcn.004602b0
mov dword [ebp - 0x68], esi
mov esi, dword [0x4cf0b0]
add esp, 0xc
cmp esi, ebx
je 0x465df2
lea ecx, [esi - 1]
mov edx, ecx
mov eax, ecx
sar edx, 5
mov edx, dword [edx*4 + 0x4cf0c0]
and eax, 0x1f
lea eax, [eax + eax*8]
cmp byte [edx + eax*4 + 4], bl
jne 0x465df2
dec esi
dec ecx
cmp esi, ebx
jne 0x465dd2
lea eax, [esi + esi*4 + 4]
mov word [ebp - 0x36], ax
push edi
movzx eax, ax
push 1
push eax
call fcn.00459dd1
cmp esi, ebx
mov dword [ebp - 0x34], eax
pop ecx
mov dword [eax], esi
mov eax, dword [ebp - 0x34]
pop ecx
mov dword [ebp - 8], ebx
lea ecx, [eax + 4]
lea edx, [eax + esi + 4]
jle 0x465e59
mov eax, dword [ebp - 8]
mov edi, eax
sar edi, 5
mov edi, dword [edi*4 + 0x4cf0c0]
and eax, 0x1f
lea eax, [eax + eax*8]
lea edi, [edi + eax*4]
mov al, byte [edi + 4]
test al, 0x10
jne 0x465e45
mov byte [ecx], al
mov eax, dword [edi]
mov dword [edx], eax
jmp 0x465e4a
mov byte [ecx], bl
or dword [edx], 0xffffffff
inc dword [ebp - 8]
inc ecx
add edx, 4
cmp dword [ebp - 8], esi
jl 0x465e1e
mov eax, dword [ebp - 0x34]
cmp byte [ebp - 1], bl
je 0x465e8a
lea ecx, [eax + 4]
xor edx, edx
lea eax, [eax + esi + 4]
cmp esi, 3
jge 0x465e70
mov edi, esi
jmp 0x465e73
push 3
pop edi
cmp edx, edi
jge 0x465e83
mov byte [ecx], bl
or dword [eax], 0xffffffff
inc edx
inc ecx
add eax, 4
jmp 0x465e67
mov dword [ebp - 0xc], 8
call fcn.0045bfa9
mov dword [eax], ebx
call fcn.0045bfb2
mov dword [eax], ebx
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
push dword [ebp + 0x14]
push dword [ebp - 0xc]
push 1
push ebx
push ebx
push dword [ebp - 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x34]
mov edi, eax
call fcn.0045932f
cmp esi, ebx
pop ecx
jne 0x465eda
push edi
call fcn.0045bfbb
pop ecx
or eax, 0xffffffff
jmp 0x465f23
cmp dword [ebp + 8], 2
jne 0x465ee6
push ebx
call fcn.00460110
cmp dword [ebp + 8], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x465f13
push 0xffffffffffffffff
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ebx, dword [ebp - 0x14]
push dword [ebp - 0x24]
call esi
jmp 0x465f1c
cmp dword [ebp + 8], 4
je 0x465f0c
mov ebx, dword [ebp - 0x24]
push dword [ebp - 0x20]
call esi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x466201
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4cee08], ebx
push esi
push edi
jne 0x466281
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4662bc
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4830a4
push edi
call esi
test eax, eax
mov dword [0x4cee08], eax
je 0x4662bc
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x4cee0c], eax
call esi
cmp dword [0x4ceaec], 2
mov dword [0x4cee10], eax
jne 0x466281
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4cee18], eax
je 0x466281
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4cee14], eax
mov eax, dword [0x4cee14]
test eax, eax
je 0x4662c6
call eax
test eax, eax
je 0x4662ad
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4cee18]
test eax, eax
je 0x4662ad
test byte [ebp - 8], 1
jne 0x4662c6
cmp dword [0x4ceaf8], 4
jb 0x4662c0
or byte [ebp + 0x12], 0x20
jmp 0x4662e5
xor eax, eax
jmp 0x4662f5
or byte [ebp + 0x12], 4
jmp 0x4662e5
mov eax, dword [0x4cee0c]
test eax, eax
je 0x4662e5
call eax
mov ebx, eax
test ebx, ebx
je 0x4662e5
mov eax, dword [0x4cee10]
test eax, eax
je 0x4662e5
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4cee08]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46633e
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00459eb0
mov eax, dword [0x4877c8]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.0045f8ba
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x466473
push 2
push esi
push dword [ebp + 8]
call fcn.0045f8ba
add esp, 0xc
cmp eax, ebx
je 0x466473
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x466413
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.004602b0
push 0x8000
push dword [ebp + 8]
call fcn.0046761a
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x4663c9
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.0045df2c
add esp, 0xc
cmp eax, 0xffffffff
je 0x4663e9
sub edi, eax
test edi, edi
jg 0x4663c1
jmp 0x466401
call fcn.0045bfb2
cmp dword [eax], 5
jne 0x4663fe
call fcn.0045bfa9
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.0046761a
pop ecx
pop ecx
jmp 0x46645b
jge 0x46645b
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0045f8ba
push dword [ebp + 8]
call fcn.00461cd7
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x46645b
call fcn.0045bfa9
mov dword [eax], 0xd
call fcn.0045bfb2
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.0045f8ba
add esp, 0xc
mov eax, esi
pop edi
jmp 0x466475
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0045c488
leave
ret
Function at 0x467444
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x46745d
or eax, 0xffffffff
jmp 0x4674be
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x4674ba
push 0x3d
push esi
call fcn.00465cd3
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x4674ba
cmp esi, eax
je 0x4674ba
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x4ceb0c]
sete cl
cmp eax, dword [0x4ceb10]
mov dword [ebp - 4], ecx
jne 0x4674a0
mov edi, eax
call fcn.004673e3
mov dword [0x4ceb0c], eax
cmp eax, ebx
jne 0x4674f9
cmp dword [ebp + 0xc], ebx
je 0x4674c2
cmp dword [0x4ceb14], ebx
je 0x4674c2
call fcn.00466171
test eax, eax
je 0x4674f9
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
je 0x4674cb
xor eax, eax
jmp 0x4674bd
push 4
call fcn.00459619
cmp eax, ebx
pop ecx
mov dword [0x4ceb0c], eax
je 0x4674ba
mov dword [eax], ebx
cmp dword [0x4ceb14], ebx
jne 0x4674f9
push 4
call fcn.00459619
cmp eax, ebx
pop ecx
mov dword [0x4ceb14], eax
je 0x4674ba
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
mov ebx, dword [0x4ceb0c]
sub edi, esi
push esi
call fcn.00467396
mov edi, eax
test edi, edi
pop ecx
jl 0x467560
cmp dword [ebx], 0
je 0x467560
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.0045932f
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x467540
mov ecx, dword [ebp - 8]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x4675a1
mov ecx, dword [esi + 4]
inc edi
mov dword [esi], ecx
lea esi, [ebx + edi*4]
cmp dword [esi], eax
jne 0x467537
mov eax, edi
shl eax, 2
push eax
push dword [0x4ceb0c]
call fcn.00459a66
test eax, eax
mov esi, dword [ebp - 8]
pop ecx
pop ecx
je 0x4675a1
jmp 0x46759c
cmp dword [ebp - 4], 0
jne 0x467608
test edi, edi
jge 0x467570
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x4ceb0c]
call fcn.00459a66
test eax, eax
pop ecx
pop ecx
je 0x4674ba
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov ecx, dword [ebp + 8]
and dword [ecx], 0
mov dword [0x4ceb0c], eax
cmp dword [ebp + 0xc], 0
je 0x4675f3
push esi
call fcn.0045dc40
inc eax
inc eax
push eax
call fcn.00459619
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x4675f3
push esi
push edi
call fcn.004608d0
mov eax, edi
sub eax, esi
add eax, dword [ebp - 0xc]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov byte [eax], 0
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x4675ec
or dword [ebp - 0x10], 0xffffffff
push edi
call fcn.0045932f
pop ecx
cmp dword [ebp - 4], 0
je 0x467600
push esi
call fcn.0045932f
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x4674bd
push esi
call fcn.0045932f
mov eax, dword [ebp + 8]
and dword [eax], 0
pop ecx
jmp 0x4674c7
Function at 0x408120
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 0x408152
jl 0x408145
test ecx, ecx
jne 0x408152
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 0x408212
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.00409350
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x4081be
jg 0x40817d
test esi, esi
je 0x4081be
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x408195
mov eax, dword [esp + 0x10]
jl 0x40818f
cmp eax, esi
jae 0x408195
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.0040cd50
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 0x4081df
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x4081fb
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 0x408164
jl 0x4081fb
test ecx, ecx
jne 0x408164
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 0x408250
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x408250
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push dword [esp + 0x14]
call fcn.0040cd50
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 0x4082b9
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x408276
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 0x4082a4
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.00411920
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x4082b9
cmp edi, eax
ja 0x408282
test edi, edi
je 0x4082b9
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.00411920
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 0x4094d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42359d
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x435010]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi + 0x30], 0
mov dword [edi + 8], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0x201
mov dword [edi + 0x18], 6
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 + 0xc], 0
call fcn.0040b3f3
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0040aabf
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp + 8]
mov dword [edi + 0x30], esi
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], 0
mov ecx, dword [esi + 4]
mov dword [ebp - 0x10], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
call fcn.004098d0
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
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x4095c5
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x4095c5
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [edi + 0x38], 0
mov byte [edi + 0x40], bl
jne 0x4095de
mov eax, dword [edi + 0xc]
mov ecx, edi
push 0
or eax, 4
push eax
call fcn.00402590
cmp byte [ebp + 0xc], 0
je 0x4095ed
push edi
call fcn.0040acd4
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

Function at 0x409610
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4235c0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x435010]
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], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0040b3f3
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0040aabf
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 0x40c15f
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4293d0
push 0x4293c8
push str.FlsAlloc
push 0x1f
call fcn.004181d0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x418399
push dword [ebp + 8]
mov ecx, esi
call dword [0x42614c]
call esi
jmp 0x41839f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4183e3
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4293e0
push 0x4293d8
push str.FlsGetValue
push 0x21
call fcn.004181d0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41841a
push dword [ebp + 8]
mov ecx, esi
call dword [0x42614c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x418422
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4293e8
push 0x4293e0
push str.FlsSetValue
push 0x22
call fcn.004181d0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41845c
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42614c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x418c88
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040c270
mov eax, dword [0x435010]
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.0041661b
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x418cca
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x418e26
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00422f50
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 + 0x53c678]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00419a89
mov ecx, dword [esi*4 + 0x53c678]
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 0x418e1f
cmp eax, dword [ecx + edi + 0x24]
jne 0x418e1f
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 0x418e1f
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00419a89
add esp, 0x14
test edx, edx
jl 0x418e1f
jg 0x418d95
test eax, eax
jb 0x418e1f
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x418e1f
jl 0x418daf
cmp dword [ebp - 0x1008], eax
ja 0x418e1f
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x418dcd
test ebx, ebx
je 0x418e06
cmp ecx, edi
jae 0x418e06
mov al, byte [ecx]
cmp al, 0xd
jne 0x418de7
lea eax, [edi - 1]
cmp ecx, eax
jae 0x418df3
cmp byte [ecx + 1], 0xa
jne 0x418df3
inc ecx
jmp 0x418df3
movzx eax, al
movsx eax, byte [eax + 0x4352c8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x418dcd
cmp edx, ebx
jne 0x418dcd
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x418e24
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040b3e0
leave
ret