joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1008189a
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1008a330]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.10070574
mov dword [ebp - 0x14], eax
cmp dword [0x126776a0], esi
jne 0x1008198d
push 0x800
push esi
push 0x1000a3a0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x1008191a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x10081a6d
push esi
push esi
push 0x1000a3a0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x10081a6d
push 0x1000a3b8
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10081a6d
push eax
call ebx
push 0x1000a3c4
push edi
mov dword [0x126776a0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x1000a3d4
push edi
mov dword [0x126776a4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x1000a3e8
push edi
mov dword [0x126776a8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x126776b0], eax
test eax, eax
je 0x1008198a
push 0x1000a404
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x126776ac], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x100819b2
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x100819a5
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x100819c7
push 4
pop eax
jmp 0x10081a6f
cmp dword [ebp - 0x14], esi
je 0x100819c7
push dword [0x126776a0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x100819ac
mov eax, dword [0x126776ac]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x10081a25
cmp dword [0x126776b0], edi
je 0x10081a25
push eax
call ebx
push dword [0x126776b0]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x10081a25
test eax, eax
je 0x10081a25
call ecx
test eax, eax
je 0x10081a1a
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x10081a1a
test byte [ebp - 8], 1
jne 0x10081a25
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x10081a55
mov eax, dword [0x126776a4]
cmp eax, edi
je 0x10081a52
push eax
call ebx
test eax, eax
je 0x10081a52
call eax
mov esi, eax
test esi, esi
je 0x10081a52
mov eax, dword [0x126776a8]
cmp eax, edi
je 0x10081a52
push eax
call ebx
test eax, eax
je 0x10081a52
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x126776a0]
call ebx
test eax, eax
je 0x10081a6d
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x10081a6f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call main
mov esp, ebp
pop ebp
ret
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..reloc
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x13636aac
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x4304d8
nop
mov ecx, 0x2fd4368c
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x40f0e0
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 0x40f112
jl 0x40f105
test ecx, ecx
jne 0x40f112
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 0x40f1d2
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.00410b50
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x40f17e
jg 0x40f13d
test esi, esi
je 0x40f17e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x40f155
mov eax, dword [esp + 0x10]
jl 0x40f14f
cmp eax, esi
jae 0x40f155
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.00414e60
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 0x40f19f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x40f1bb
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 0x40f124
jl 0x40f1bb
test ecx, ecx
jne 0x40f124
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 0x40f20b
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x40f20b
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push dword [esp + 0x14]
call fcn.00414e60
mov eax, dword [ebx + 0x2c]
add esp, 0xc
add dword [esp + 0xc], esi
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 0x40f27b
mov esi, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [esi], eax
jne 0x40f231
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 0x40f264
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.00418e77
sub edi, eax
add esp, 0x10
add esi, eax
mov ecx, edi
cmp eax, 0xfff
jne 0x40f28f
cmp edi, eax
ja 0x40f240
test ecx, ecx
je 0x40f27b
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.00418e77
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 0x41f4eb
Capabilities:
Read file on windows

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

Function at 0x41f92a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x430228
push 0x430220
push str.FlsAlloc
push 0x1e
call fcn.0041f7f4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41f95e
push dword [ebp + 8]
mov ecx, esi
call dword [0x42d19c]
call esi
jmp 0x41f964
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41f9a8
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x430238
push 0x430230
push str.FlsGetValue
push 0x20
call fcn.0041f7f4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41f9df
push dword [ebp + 8]
mov ecx, esi
call dword [0x42d19c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x42060e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004147a0
mov eax, dword [0x43c770]
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.0041d8d2
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x420650
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4207ac
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0042b3c0
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 + 0x43df88]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00421409
mov ecx, dword [esi*4 + 0x43df88]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4207a5
cmp eax, dword [edi + ecx + 0x24]
jne 0x4207a5
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4207a5
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00421409
add esp, 0x14
test edx, edx
jl 0x4207a5
jg 0x42071b
test eax, eax
jb 0x4207a5
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4207a5
jl 0x420735
cmp dword [ebp - 0x1008], eax
ja 0x4207a5
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x420753
test ebx, ebx
je 0x42078c
cmp ecx, edi
jae 0x42078c
mov al, byte [ecx]
cmp al, 0xd
jne 0x42076d
lea eax, [edi - 1]
cmp ecx, eax
jae 0x420779
cmp byte [ecx + 1], 0xa
jne 0x420779
inc ecx
jmp 0x420779
movzx eax, al
movsx eax, byte [eax + 0x43c9e8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x420753
cmp edx, ebx
jne 0x420753
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4207aa
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00413918
leave
ret
Function at 0x4208a7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x43df88]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4208e7
cmp byte [ebx], 0xa
jne 0x4208e7
or byte [eax + edi + 0x28], 4
jmp 0x4208ec
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4209ea
mov al, byte [edx]
cmp al, 0x1a
je 0x4209cc
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x42091b
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x420940
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x42094a
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4208fd
jmp 0x4209ea
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4209c7
cmp dword [ebp - 0xc], 0
je 0x4209c7
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x43df88]
test byte [eax + edi + 0x28], 0x48
je 0x4209a1
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x42098c
mov byte [esi], dl
jmp 0x42099d
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x43df88]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4209ea
cmp byte [ebp - 1], 0xa
jne 0x4209b0
cmp esi, ebx
jne 0x4209b0
mov byte [esi], 0xa
jmp 0x4209e9
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00421427
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4209ea
mov byte [esi], 0xd
jmp 0x4209e9
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x43df88]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4209e6
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4209ea
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4209f3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x43df88]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x420a36
cmp word [esi], dx
jne 0x420a36
or byte [edi + eax + 0x28], 4
jmp 0x420a3b
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x420b8e
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x420b6e
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x420a7d
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x420ab3
cmp eax, edx
jae 0x420abf
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x420a55
jmp 0x420b8e
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x420b6a
cmp dword [ebp - 0x14], 0
je 0x420b6a
mov eax, dword [ebx*4 + 0x43df88]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x420b42
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x420b0b
mov word [esi], cx
jmp 0x420b3e
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x43df88]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x43df88]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x43df88]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x420b8e
pop ebx
cmp word [ebp - 4], bx
jne 0x420b53
cmp esi, dword [ebp + 0xc]
jne 0x420b53
mov word [esi], bx
jmp 0x420b8b
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00421427
add esp, 0x10
cmp word [ebp - 4], bx
je 0x420b8e
push 0xd
jmp 0x420b87
mov ecx, dword [ebx*4 + 0x43df88]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x420b85
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x420b8e
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x425921
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4259be
push ebx
push esi
call fcn.004258ea
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00424681
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x42596b
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4259bd
push edi
push eax
call fcn.00421485
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x42598b
call fcn.0041ef78
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4259bc
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00424681
add esp, 0x20
test eax, eax
jne 0x4259aa
push edi
call fcn.0041ef78
jmp 0x4259b2
push ebx
call fcn.0041ef78
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x42aa15
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042a991
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x42ab8d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x42ab8d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x42ab3c
jg 0x42aa6e
test eax, eax
je 0x42ab32
push 1
push 0x1000
call fcn.0041f4f6
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x42aa94
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x42ab29
push 0x8000
push ebx
call fcn.0041b8eb
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x42aac0
jg 0x42aabb
cmp ecx, 0x1000
jb 0x42aac0
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0041ed78
add esp, 0x10
cmp eax, 0xffffffff
je 0x42ab05
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x42aabb
jl 0x42aaec
test ecx, ecx
jne 0x42aaad
push dword [ebp - 0xc]
push ebx
call fcn.0041b8eb
push esi
call fcn.0041ef78
add esp, 0xc
xor edi, edi
jmp 0x42ab9e
cmp byte [edi + 0x24], 0
je 0x42ab1c
cmp dword [edi + 0x20], 5
jne 0x42ab1c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x42ab27
mov edi, dword [edi + 0x18]
jmp 0x42ab29
xor edi, edi
push esi
call fcn.0041ef78
pop ecx
jmp 0x42ab9e
test ecx, ecx
jg 0x42aafe
jl 0x42ab3c
test eax, eax
jae 0x42aafe
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00421427
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x42ab5f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x42aafe
jmp 0x42ab96
push ebx
call fcn.00426008
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x42aafe
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x42ab9e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x42ab9b
mov edi, dword [edi + 0x18]
jmp 0x42ab9e
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00421427
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x423fe0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
mov dword [esp + 0x10], eax
lea eax, [ebp - 8]
mov dword [esp + 8], eax
lea eax, [ebp - 0xc]
mov dword [esp + 4], eax
lea eax, [ebp - 0x10]
mov dword [esp], eax
mov dword [esp + 0xc], 0
call sub.msvcrt.dll___getmainargs
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.msvcrt.dll___set_app_type
mov eax, dword [ebp - 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.004240d0
mov dword [esp], eax
call sub.msvcrt.dll_exit
nop
nop
nop
nop
push ebp
mov ebp, esp
call sub.msvcrt.dll___iob_func
mov edx, dword [ebp + 8]
pop ebp
shl edx, 5
add eax, edx
ret
Function at 0x4093d9
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x40c528
call fcn.004099e0
push 1
call fcn.004094c8
pop ecx
test al, al
je 0x4093c3
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.00409496
mov byte [ebp - 0x24], al
mov eax, dword [0x40d0d0]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x4093c3
test eax, eax
jne 0x4092e1
mov dword [0x40d0d0], ecx
push 0x40101c
push 0x40100c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x4092c4
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x4093b3
push 0x401008
push section..text
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x40d0d0], 2
jmp 0x4092e6
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.0040961c
pop ecx
call fcn.004097aa
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x409317
push esi
call fcn.00409588
pop ecx
test al, al
je 0x409317
mov esi, dword [esi]
push edi
push 2
push edi
mov ecx, esi
call dword [0x431230]
call esi
call fcn.004097b0
mov esi, eax
cmp dword [esi], edi
je 0x409335
push esi
call fcn.00409588
pop ecx
test al, al
je 0x409335
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_initial_wide_environment
mov edi, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll___p___wargv
mov esi, dword [eax]
call sub.api_ms_win_crt_runtime_l1_1_0.dll___p___argc
push edi
push esi
push dword [eax]
call main
add esp, 0xc
mov esi, eax
call fcn.004098d6
test al, al
je 0x4093ca
test bl, bl
jne 0x409368
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push 0
push 1
call fcn.00409639
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x4093b3
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
push 7
call fcn.004097b6
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
push dword [ebp - 0x20]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__exit
int3
call 0x4c5000
jmp 0x409257
Function at 0x409ef0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp esi, 0x8000
jbe 0x409f72
push str.NiInit3
push str._s:_parameter_invalid__maxHandles___NI_MAX_HDLS_
push 0xfffffffffffffff8
push 0x508154
push 0xfffffffffffffff8
call fcn.004142a0
add esp, 8
push eax
mov eax, dword [str.NI__network_interface_]
push 0x73
push str.nixx.c
push 0x27
push eax
call fcn.00450cc0
add esp, 0x20
cmp dword [0x508130], 1
jl 0x409f6a
call fcn.0044c570
push 0x73
push str.nixx.c
call fcn.0044c350
mov ecx, dword [0x508154]
push str.NiInit3
push str._s:_parameter_invalid__maxHandles___NI_MAX_HDLS__n
push ecx
call fcn.0044df50
add esp, 0x14
call fcn.0044c580
mov eax, 0xfffffff8
pop esi
pop ebp
ret
mov ax, word [0x4c0434]
test ax, ax
push ebx
mov ebx, 1
jle 0x40a033
cmp esi, 0x800
je 0x409feb
cmp dword [0x508130], ebx
jl 0x40a026
call fcn.0044c570
mov edx, dword [0x4c0430]
movsx eax, word [0x4c0434]
mov ecx, dword [0x508154]
push edx
push esi
push eax
push str.NiInit3
push str._s:_NI_already_initialized__param_maxHandles_ignored__init_d_par_d_cur_d__n
push ecx
mov dword [0x4bef48], ebx
call fcn.0044deb0
add esp, 0x18
mov dword [0x4bef48], 2
call fcn.0044c580
add word [0x4c0434], bx
pop ebx
xor eax, eax
pop esi
pop ebp
ret
cmp dword [0x508130], 2
jl 0x40a026
call fcn.0044c570
mov edx, dword [0x4c0430]
movsx eax, word [0x4c0434]
mov ecx, dword [0x508154]
push edx
push eax
push str.NiInit3
push str._s:_NI_already_initializes__init_d_cur_d__n
push ecx
call fcn.0044deb0
add esp, 0x14
call fcn.0044c580
add word [0x4c0434], bx
pop ebx
xor eax, eax
pop esi
pop ebp
ret
jge 0x40a076
cmp dword [0x508130], ebx
jl 0x40a076
call fcn.0044c570
push 0x8b
push str.nixx.c
call fcn.0044c350
movsx edx, word [0x4c0434]
mov eax, dword [0x508154]
push edx
push str.NiInit3
push str._s:_NI_initialization_negative___d__n
push eax
call fcn.0044df50
add esp, 0x18
call fcn.0044c580
cmp byte [ebp + 0xc], 0
mov word [0x4c0434], bx
jne 0x40a098
push str.NI_USEIPv6
call dword [sym.imp.MSVCR80.dll_getenv]
add esp, 4
test eax, eax
je 0x40a098
mov byte [ebp + 0xc], bl
mov ecx, dword [ebp + 0xc]
push ecx
push esi
call fcn.0041a5f0
add esp, 8
test eax, eax
je 0x40a0b6
pop ebx
mov word [0x4c0434], 0
pop esi
pop ebp
ret
call fcn.0043ae50
mov esi, eax
test esi, esi
je 0x40a02d
call fcn.0041f330
pop ebx
mov eax, esi
mov word [0x4c0434], 0
pop esi
pop ebp
ret