joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d3a9
Capabilities:
Access peb ldr_data
Get windows directory from kuser_shared_data

Disassembly:
push 0x20
push 0x7c9553a0
call 0x3c6aab
mov byte [ebp - 0x19], 0
xor ebx, ebx
inc ebx
mov esi, dword [ebp + 8]
test byte [0x7c97e6b8], bl
je 0x40d3d6
push dword [esi + 0xc]
push 0x7c9553b8
call 0x3e7d3f
pop ecx
pop ecx
mov dword [ebp - 0x2c], 0x7c97e4b0
and word [ebp - 0x30], 0
mov word [ebp - 0x2e], 0x208
push 0x7ffe0030
lea eax, [ebp - 0x30]
push eax
call 0x3cd11a
push 0x7c9553d4
lea eax, [ebp - 0x30]
push eax
call 0x3cd11a
lea edi, [esi + 0x10]
push edi
lea eax, [esi + 8]
push eax
push 0
push dword [ebp - 0x2c]
call 0x3ce5a3
mov ecx, eax
test ecx, ecx
jge 0x40d444
mov eax, dword fs:[0x18]
push dword [ebp - 0x2c]
push ecx
push dword [esi + 0xc]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
push dword [eax + 0x30]
push 0x7c9553f0
call 0x3e7d3f
add esp, 0x14
jmp 0x40d4a2
and dword [ebp - 4], 0
push dword [edi]
call 0x3c8519
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x40d45e
mov byte [ebp - 0x19], bl
jmp 0x40d58b
test byte [eax + 0x17], 0x20
jne 0x40d479
push dword [esi + 0xc]
push 0x7c955434
call 0x3e7d3f
mov byte [ebp - 0x19], bl
jmp 0x40d589
or dword [ebp - 4], 0xffffffff
push dword [esi + 0xc]
call fcn.0040c05f
push dword [edi]
call 0x3d4231
mov dword [esi + 0x14], eax
test eax, eax
jne 0x40d4aa
push dword [esi + 0xc]
push 0x7c95545c
call 0x3e7d3f
pop ecx
pop ecx
mov byte [ebp - 0x19], bl
jmp 0x40d58f
mov dword [ebp - 4], ebx
and dword [ebp - 0x20], 0
lea ecx, [ebp - 0x20]
push ecx
push 4
push dword [edi]
push eax
call 0x3b9376
mov byte [ebp - 0x1a], al
test al, al
je 0x40d534
mov edi, dword [ebp - 0x20]
test edi, edi
je 0x40d534
mov dword [ebp - 0x28], edi
cmp dword [edi], 0x1c
je 0x40d4ee
mov byte [ebp - 0x19], bl
push edi
push dword [esi + 0xc]
push 0x7c955490
call 0x3e7d3f
add esp, 0xc
jmp 0x40d58b
test byte [0x7c97e6b8], 8
je 0x40d508
push edi
push dword [esi + 0xc]
push 0x7c9554c8
call 0x3e7d3f
add esp, 0xc
mov eax, dword [edi + 4]
mov dword [esi + 0x18], eax
mov eax, dword [edi + 8]
mov dword [esi + 0x1c], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0x20], eax
call fcn.0040c9ab
mov dword [edi + 0x10], eax
mov eax, dword [0x7c97ec38]
mov dword [edi + 0x14], eax
mov eax, dword [0x7c97e6b8]
mov dword [edi + 0x18], eax
jmp 0x40d58b
mov byte [ebp - 0x19], bl
push dword [esi + 0xc]
push 0x7c9554fc
call 0x3e7d3f
jmp 0x40d589
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
xor eax, eax
cmp byte [ebp - 0x19], al
sete al
call 0x3c6ae6
ret 4
Function at 0x40d7af
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp byte [0x7c97ec28], 0
je 0x40d844
push esi
mov esi, dword [0x7c97ec30]
cmp esi, 0x7c97ec30
je 0x40d83d
push ebx
push edi
mov eax, esi
mov eax, dword [eax + 0x18]
cmp dword [eax], 0
mov esi, dword [esi]
je 0x40d833
mov edi, eax
mov ebx, eax
test byte [edi + 4], 1
jne 0x40d829
push dword [edi]
mov eax, dword [ebp + 8]
push dword [eax + 0x30]
call 0x3cb558
test eax, eax
pop ecx
pop ecx
jne 0x40d829
test byte [0x7c97e6b8], 4
je 0x40d820
mov eax, dword fs:[0x18]
mov ecx, dword [ebp + 8]
push dword [ecx + 0x30]
push dword [eax + 0x20]
push 0x7c955648
call 0x3e7d3f
add esp, 0xc
push dword [edi + 0xc]
push edi
call fcn.0040c773
add ebx, 0x10
cmp dword [ebx], 0
mov edi, ebx
jne 0x40d7e2
cmp esi, 0x7c97ec30
jne 0x40d7d2
pop edi
pop ebx
pop esi
pop ebp
jmp fcn.0040c527
pop ebp
ret 4

Function at 0x40e095
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov edi, edi
push esi
push edi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov esi, dword [eax + 0xc]
add esi, 0xc
mov edi, dword [esi]
cmp edi, esi
je 0x40e0fc
push ebx
mov ebx, edi
push dword [ebx + 0x18]
mov edi, dword [edi]
call fcn.0040c10d
test al, al
jne 0x40e0df
test byte [0x7c97e6b8], 1
je 0x40e0d7
push dword [ebx + 0x30]
push 0x7c955f00
call 0x3e7d3f
pop ecx
pop ecx
push ebx
call fcn.0040d7af
jmp 0x40e0f7
test byte [0x7c97e6b8], 1
je 0x40e0f7
push dword [ebx + 0x30]
push 0x7c955f1c
call 0x3e7d3f
pop ecx
pop ecx
cmp edi, esi
jne 0x40e0af
pop ebx
pop edi
pop esi
ret
Function at 0x40e1d0
Capabilities:
Access peb ldr_data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push esi
xor esi, esi
sub eax, esi
push edi
je 0x40e2e1
dec eax
jne 0x40e33e
push ebx
mov ebx, 0x7c97ec30
push 0x7c97eba0
mov dword [0x7c97ec34], ebx
mov dword [0x7c97ec30], ebx
call 0x3c97fd
mov eax, dword fs:[0x18]
mov ecx, eax
mov eax, dword fs:[0x18]
push dword [0x7c97ec38]
mov eax, dword [eax + 0x30]
push dword [ecx + 0x20]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
push dword [eax + 0x30]
push 0x7c956144
call 0x3e7d3f
add esp, 0x10
push 0x7c97e780
call fcn.0040bf0d
test al, al
jne 0x40e27c
mov eax, dword fs:[0x18]
mov ecx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [ecx + 0x20]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
push dword [eax + 0x30]
push 0x7c956184
call 0x3e7d3f
add esp, 0xc
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
and byte [eax + 0x69], 0xfe
mov edi, dword [0x7c97ec30]
jmp 0x40e2b0
push edi
mov esi, edi
call fcn.0040d3a9
test al, al
mov edi, dword [edi]
jne 0x40e2b0
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [ecx], eax
mov dword [eax + 4], ecx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push 0
push dword [eax + 0x18]
call 0x3c810d
cmp edi, ebx
jne 0x40e284
call fcn.0040c341
mov byte [0x7c97ec28], 1
call fcn.0040e095
test byte [0x7c97e6b8], 8
pop ebx
je 0x40e33e
push 0x7c9561e0
call 0x3e7d3f
pop ecx
call fcn.0040c13d
jmp 0x40e33e
push esi
push 4
pop edi
push edi
push 0x7c97ec38
push edi
push 0x7c956208
push dword [ebp + 0xc]
mov dword [0x7c97ec38], 6
mov word [0x7c97e780], si
call 0x3d4e83
push esi
push edi
push 0x7c97e6b8
push edi
push 0x7c956224
push dword [ebp + 0xc]
call 0x3d4e83
push esi
push 0x200
push 0x7c97e780
push 1
push 0x7c956240
push dword [ebp + 0xc]
call 0x3d4e83
call fcn.0040ca5d
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x432003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..reloc
nop
nop
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
je 0x432072
nop
nop
nop
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x3a31414
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x432060
nop
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4320d2
nop
mov ebx, 0x42f314
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x78414c32
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..reloc
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x431072
nop
nop
nop
nop
mov ebx, 0x40915c
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x771378bd
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x431060
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4310d2
nop
nop
mov ebx, 0x42f3f8
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0xb814ff9
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
loop 0x4310c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x406440
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x415eeb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x40437c
call fcn.0040762b
push 4
mov dword [esp + 0x18], 0
call fcn.00408808
mov edi, eax
add esp, 4
test edi, edi
je 0x4064b4
push ebx
call fcn.00407426
mov dword [edi], eax
call fcn.004071e5
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.004075ec
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4064a8
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.00407614
pop ebx
jmp 0x4064b6
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x4093db
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x419354]
jne 0x4093e5
repz ret
jmp fcn.0040dcbc
Function at 0x411932
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419354]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040b47c
and dword [ebp - 0x14], 0
cmp dword [0x432da4], 0
mov dword [ebp - 0x18], eax
jne 0x4119e5
push 0x403e68
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x411a8d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403e5c
push ebx
call edi
test eax, eax
je 0x411a8d
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403e4c
push ebx
mov dword [0x432da4], eax
call edi
push eax
call esi
push 0x403e38
push ebx
mov dword [0x432da8], eax
call edi
push eax
call esi
push 0x403e1c
push ebx
mov dword [0x432dac], eax
call edi
push eax
call esi
mov dword [0x432db4], eax
test eax, eax
je 0x4119e5
push 0x403e04
push ebx
call edi
push eax
call esi
mov dword [0x432db0], eax
mov eax, dword [0x432db0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x411a3e
cmp dword [0x432db4], ecx
je 0x411a3e
push eax
call esi
push dword [0x432db4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x411a3e
test ebx, ebx
je 0x411a3e
call edi
test eax, eax
je 0x411a35
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x411a35
test byte [ebp - 8], 1
jne 0x411a3e
or dword [ebp + 0x10], 0x200000
jmp 0x411a71
mov eax, dword [0x432da8]
cmp eax, dword [ebp - 0x18]
je 0x411a71
push eax
call esi
test eax, eax
je 0x411a71
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x411a71
mov eax, dword [0x432dac]
cmp eax, dword [ebp - 0x18]
je 0x411a71
push eax
call esi
test eax, eax
je 0x411a71
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x432da4]
call esi
test eax, eax
je 0x411a8d
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x411a8f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004093db
leave
ret
Function at 0x4024c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x4025a6
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x402595
jg 0x402500
test edx, edx
je 0x402595
nop dword [eax]
call fcn.004037c0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x402554
jg 0x402517
test esi, esi
je 0x402554
cmp ebx, eax
jg 0x402527
jl 0x402521
cmp edi, esi
jae 0x402527
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.00406850
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x402579
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov edx, dword [ecx]
movzx eax, byte [eax]
push eax
call dword [edx + 0xc]
cmp eax, 0xffffffff
je 0x40258f
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x402500
jl 0x40258f
test edi, edi
jne 0x402500
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x4025c8
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x4025ca
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x402648
jg 0x4025dd
test esi, esi
je 0x402648
test eax, eax
jl 0x40262c
jg 0x4025e7
test ebx, ebx
je 0x40262c
cmp edi, eax
jg 0x4025f7
jl 0x4025f1
cmp esi, ebx
jae 0x4025f7
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.00406850
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
sub esi, ebx
sbb edi, dword [esp + 0x14]
add edx, ebx
mov eax, dword [ecx + 0x30]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
test edi, edi
jl 0x402648
jg 0x40262f
test esi, esi
je 0x402648
jmp 0x40262f
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x402648
push eax
push esi
push 1
push edx
call fcn.0040bc98
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x402660
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 0x402692
jl 0x402685
test ecx, ecx
jne 0x402692
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 0x402752
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.004037e0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x4026fe
jg 0x4026bd
test esi, esi
je 0x4026fe
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x4026d5
mov eax, dword [esp + 0x10]
jl 0x4026cf
cmp eax, esi
jae 0x4026d5
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.00406850
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 0x40271f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x40273b
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 0x4026a4
jl 0x40273b
test ecx, ecx
jne 0x4026a4
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
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]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x402791
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x402791
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.00406850
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
cmp dword [ebx + 0x4c], 0
mov ecx, edi
je 0x402800
mov esi, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [esi], eax
jne 0x4027b7
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [esi], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
mov ecx, edi
cmp edi, 0xfff
jbe 0x4027e9
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.0040c2ef
sub edi, eax
add esp, 0x10
add esi, eax
mov ecx, edi
cmp eax, 0xfff
jne 0x402814
cmp edi, eax
ja 0x4027c5
test ecx, ecx
je 0x402800
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.0040c2ef
mov ecx, edi
add esp, 0x10
sub ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, ecx
sbb edx, 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
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 0x402b80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x434008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x402bb0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004044d5
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x402bec
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x402bec
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004044d5
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x402cd4
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x402c14
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x402c47
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.0040adb0
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004044d5
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
sub eax, 0
je 0x402ca7
sub eax, 1
je 0x402ca7
sub eax, 2
jne 0x402cd4
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.0040adb0
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004044d5
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x402cc4
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0040bc98
add esp, 0x10
cmp edi, eax
jne 0x402cd4
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x402bd7
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004044d5
mov esp, ebp
pop ebp
ret 4
Function at 0x4034f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x434008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x4035aa
cmp byte [esi + 0x3d], 0
je 0x4035aa
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x403598
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x403560
sub eax, 1
je 0x403564
sub eax, 2
jne 0x403598
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004044d5
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x403581
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0040bc98
add esp, 0x10
cmp edi, eax
jne 0x403598
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004044d5
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004044d5
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.004044d5
mov esp, ebp
pop ebp
ret

Function at 0x403b10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4243b0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x434008]
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.004046e0
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00405464
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 0x4173cb
Capabilities:
Read file on windows

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

Function at 0x41ab68
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041a6bb