joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40632f
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
jmp 0x412ec0
sub esp, 0x34
mov eax, dword [0x5334f0]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x44]
xor ecx, ecx
push edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], 0
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x10], ecx
mov eax, dword [eax + esi + 0x78]
add eax, esi
mov dword [esp + 0x24], eax
mov ebx, dword [eax + 0x20]
mov eax, dword [eax + 0x18]
add ebx, esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], eax
test eax, eax
je 0x4130a3
nop dword [eax]
mov edx, dword [ebx]
xorps xmm0, xmm0
add edx, esi
mov dword [esp + 0x38], 0
mov eax, edx
mov dword [esp + 0x3c], 0
movups xmmword [esp + 0x28], xmm0
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x412f31
sub eax, esi
lea ecx, [esp + 0x28]
push eax
push edx
call fcn.00405286
mov eax, dword [esp + 0x38]
lea ebp, [esp + 0x28]
mov edx, dword [esp + 0x28]
mov edi, eax
xor edi, 0x235
mov ebx, eax
cmp dword [esp + 0x3c], 0x10
cmovae ebp, edx
shr ebx, 2
xor esi, esi
test ebx, ebx
je 0x412fa9
nop dword [eax]
push ebp
push ebx
push str._x_and__p
call fcn.004021d0
imul ecx, dword [ebp + esi*4], 0x5bd1e995
add esp, 0xc
imul edi, edi, 0x5bd1e995
inc esi
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul ecx, eax, 0x5bd1e995
xor edi, ecx
cmp esi, ebx
jl 0x412f70
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x28]
and eax, 3
xor ecx, ecx
sub eax, 1
je 0x412fcf
sub eax, 1
je 0x412fc5
sub eax, 1
jne 0x412fde
movsx ecx, byte [ebp + ebx*4 + 2]
shl ecx, 0x10
movsx eax, byte [ebp + ebx*4 + 1]
shl eax, 8
xor ecx, eax
movsx eax, byte [ebp + ebx*4]
xor eax, ecx
imul eax, eax, 0x5bd1e995
xor edi, eax
mov eax, edi
shr eax, 0xd
xor eax, edi
imul ecx, eax, 0x5bd1e995
mov eax, ecx
shr eax, 0xf
xor eax, ecx
cmp eax, dword [esp + 0x4c]
je 0x413050
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x3c]
add ebx, 4
mov dword [esp + 0x18], ebx
cmp eax, 0x10
jb 0x413037
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x41302d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4130bc
push ecx
push edx
call fcn.00401a0a
add esp, 8
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
inc ecx
mov dword [esp + 0x10], ecx
cmp ecx, dword [esp + 0x20]
jb 0x412f10
jmp 0x4130a3
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov eax, dword [edi + 0x24]
lea eax, [eax + ecx*2]
movzx ecx, word [eax + esi]
mov eax, dword [edi + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + esi]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x3c]
cmp eax, 0x10
jb 0x4130a3
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x413099
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4130bc
push ecx
push edx
call fcn.00401a0a
add esp, 8
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x40]
add eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00402f8b
add esp, 0x34
ret
call fcn.00404606
int3
Function at 0x490c52
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401d75
mov eax, dword [0x5334f0]
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.00405c22
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x490c94
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x490df0
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00405d76
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 + 0x536dc8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00403184
mov ecx, dword [esi*4 + 0x536dc8]
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 0x490de9
cmp eax, dword [edi + ecx + 0x24]
jne 0x490de9
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 0x490de9
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403184
add esp, 0x14
test edx, edx
jl 0x490de9
jg 0x490d5f
test eax, eax
jb 0x490de9
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x490de9
jl 0x490d79
cmp dword [ebp - 0x1008], eax
ja 0x490de9
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x490d97
test ebx, ebx
je 0x490dd0
cmp ecx, edi
jae 0x490dd0
mov al, byte [ecx]
cmp al, 0xd
jne 0x490db1
lea eax, [edi - 1]
cmp ecx, eax
jae 0x490dbd
cmp byte [ecx + 1], 0xa
jne 0x490dbd
inc ecx
jmp 0x490dbd
movzx eax, al
movsx eax, byte [eax + 0x534058]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x490d97
cmp edx, ebx
jne 0x490d97
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x490dee
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00402f8b
leave
ret
Function at 0x496d70
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5334f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x496dbb
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00497232
test al, al
jne 0x496db5
sub edx, 2
cmp edx, edi
jne 0x496d9b
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x496ddd
lea eax, [edi + 2]
cmp edx, eax
je 0x496ddd
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00496969
add esp, 0x10
jmp 0x496ed7
push esi
lea ecx, [ebp - 0x255]
call fcn.00497232
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x496e20
push dword [ebp - 0x25c]
jmp 0x496dcd
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x496e5d
cmp word [ebp - 0x226], 0
je 0x496e7e
cmp word [ebp - 0x226], ax
jne 0x496e5d
cmp word [ebp - 0x224], 0
je 0x496e7e
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00496969
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x496eca
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x496e37
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x496eb2
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x496ed7
push 0x496351
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040531c
add esp, 0x10
jmp 0x496ea7
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402f8b
leave
ret
Function at 0x4a29b3
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 + 0x536dc8]
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 0x4a29f3
cmp byte [ebx], 0xa
jne 0x4a29f3
or byte [eax + edi + 0x28], 4
jmp 0x4a29f8
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4a2af6
mov al, byte [edx]
cmp al, 0x1a
je 0x4a2ad8
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4a2a27
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4a2a4c
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4a2a56
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 0x4a2a09
jmp 0x4a2af6
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 0x4a2ad3
cmp dword [ebp - 0xc], 0
je 0x4a2ad3
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x536dc8]
test byte [eax + edi + 0x28], 0x48
je 0x4a2aad
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4a2a98
mov byte [esi], dl
jmp 0x4a2aa9
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x536dc8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4a2af6
cmp byte [ebp - 1], 0xa
jne 0x4a2abc
cmp esi, ebx
jne 0x4a2abc
mov byte [esi], 0xa
jmp 0x4a2af5
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040191a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4a2af6
mov byte [esi], 0xd
jmp 0x4a2af5
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x536dc8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a2af2
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a2af6
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a2b52
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 + 0x536dc8]
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 0x4a2b95
cmp word [esi], dx
jne 0x4a2b95
or byte [edi + eax + 0x28], 4
jmp 0x4a2b9a
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 0x4a2ced
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 0x4a2ccd
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4a2bdc
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4a2c12
cmp eax, edx
jae 0x4a2c1e
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 0x4a2bb4
jmp 0x4a2ced
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 0x4a2cc9
cmp dword [ebp - 0x14], 0
je 0x4a2cc9
mov eax, dword [ebx*4 + 0x536dc8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4a2ca1
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4a2c6a
mov word [esi], cx
jmp 0x4a2c9d
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x536dc8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x536dc8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x536dc8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4a2ced
pop ebx
cmp word [ebp - 4], bx
jne 0x4a2cb2
cmp esi, dword [ebp + 0xc]
jne 0x4a2cb2
mov word [esi], bx
jmp 0x4a2cea
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040191a
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4a2ced
push 0xd
jmp 0x4a2ce6
mov ecx, dword [ebx*4 + 0x536dc8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a2ce4
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a2ced
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 0x403361
Capabilities:
Delete directory
Get common file path
Get file attributes
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi]
mov eax, dword [edi + 4]
xor ebx, ebx
cmp dword [0x2446900], 0x594
mov dword [ebp - 0x18], esi
mov dword [ebp - 8], eax
jne 0x4033ae
push 0x402e08
push 0x402e14
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
push 0x402e28
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
mov eax, dword [0x44e4a8]
mov dword [ebp - 0x28], eax
mov eax, dword [0x44e4ac]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
call fcn.00403357
mov eax, dword [0x44e4b0]
add dword [ebp - 0x10], 0x23f
mov dword [ebp - 0x2c], eax
mov eax, dword [0x44e4b4]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0x20
jmp 0x4033ec
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, esi
shl eax, 4
cmp dword [0x2446900], 0xc
mov dword [ebp - 4], eax
jne 0x403451
push ebx
lea eax, [ebp - 0x44c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
mov word [ebp - 0x1c], ax
lea edi, [ebp - 0x1a]
stosw word es:[edi], ax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0xc4c]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
lea eax, [ebp - 0x38]
push eax
push ebx
lea eax, [ebp - 0x4c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov eax, dword [0x2446900]
cmp eax, 0xfa9
jne 0x40346d
mov dword [0x2445e9c], 0xedeb2e40
cmp eax, 0x3eb
jne 0x40347a
mov dword [0x244584c], ebx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
add eax, esi
shr esi, cl
mov dword [ebp - 0x14], eax
mov dword [0x2445e98], 0xf4ea3dee
add esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor esi, dword [ebp - 4]
cmp dword [0x2446900], 0x213
mov dword [ebp - 0x14], esi
jne 0x4034b7
push 0x402e40
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov eax, dword [ebp - 0x14]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
mov eax, dword [ebp - 8]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
lea esi, [eax + edx]
mov eax, edx
shr eax, cl
add eax, dword [ebp - 0x30]
xor eax, esi
xor dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x18]
call fcn.0040335e
add dword [ebp - 0x10], 0x61c88647
dec dword [ebp - 0x20]
jne 0x4033e9
cmp dword [0x2446900], 0xa6d
mov eax, dword [ebp - 0x18]
mov dword [edi], eax
jne 0x403523
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov edx, dword [ebp - 8]
mov dword [edi + 4], edx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40352d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x2446900]
mov ecx, dword [0x2445850]
sub esp, 0x58c
push ebx
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x4035ef
mov ebx, ecx
mov dword [ebp - 8], eax
cmp dword [0x2446900], 0x959
jne 0x4035dd
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputW]
xor eax, eax
mov word [ebp - 4], ax
lea edi, [ebp - 2]
stosw word es:[edi], ax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_CreateActCtxW]
push esi
call dword [sym.imp.KERNEL32.dll_SetComputerNameW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessPriorityBoost]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
lea eax, [ebp - 0x188]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
push 0x402e54
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerA]
push esi
lea eax, [ebp - 0x588]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push ebx
call fcn.00403361
add ebx, 8
dec dword [ebp - 8]
jne 0x403556
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4039be
Capabilities:
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x424
push ebx
push esi
xor esi, esi
cmp dword [0x2446900], 0x400
push edi
jne 0x403a10
push esi
push esi
call fcn.00403ca6
push esi
push esi
call fcn.00403ca6
push esi
push esi
push esi
call fcn.0040466d
add esp, 0x14
mov dword [esp + 4], esi
mov dword [esp], esi
call fcn.00403332
fstp st(0)
push esi
call fcn.004046f2
pop ecx
push esi
call fcn.00404484
pop ecx
mov eax, dword [0x44eb34]
mov dword [0x2446900], eax
mov eax, dword [0x44eb0c]
mov dword [0x2446904], eax
call fcn.004036c3
mov dword [esp + 0x10], esi
mov ebx, 0x2b259d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor eax, eax
mov dword [esp + 0x1c], esi
lea edi, [esp + 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
push esi
lea eax, [esp + 0x3c]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp dword [esp + 0x10], ebx
jle 0x403a77
cmp dword [esp + 0x18], 0x785074d5
jne 0x403a85
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0x1c1b
jl 0x403a32
xor edi, edi
push esi
lea eax, [esp + 0x34]
push eax
push esi
push 0x4031ac
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
push 0x4031e8
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
cmp edi, ebx
jle 0x403ab4
cmp dword [esp + 0x18], 0x785074d5
jne 0x403abd
inc edi
cmp edi, 0x11915
jl 0x403a87
mov eax, dword [0x2445850]
mov dword [0x2445e94], eax
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40a124
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44de24]
jne 0x40a12e
repz ret
jmp fcn.0040d8e4
Function at 0x40d491
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00405fe3
and dword [ebp - 4], 0
cmp dword [0x44f458], 0
mov ebx, eax
jne 0x40d542
push 0x402cb4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40d5f3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402ca8
push edi
call esi
test eax, eax
je 0x40d5f3
push eax
call fcn.00405f71
mov dword [esp], 0x402c98
push edi
mov dword [0x44f458], eax
call esi
push eax
call fcn.00405f71
mov dword [esp], 0x402c84
push edi
mov dword [0x44f45c], eax
call esi
push eax
call fcn.00405f71
mov dword [esp], 0x402c68
push edi
mov dword [0x44f460], eax
call esi
push eax
call fcn.00405f71
pop ecx
mov dword [0x44f468], eax
test eax, eax
je 0x40d542
push 0x402c50
push edi
call esi
push eax
call fcn.00405f71
pop ecx
mov dword [0x44f464], eax
mov eax, dword [0x44f464]
cmp eax, ebx
je 0x40d59a
cmp dword [0x44f468], ebx
je 0x40d59a
push eax
call fcn.00405fec
push dword [0x44f468]
mov esi, eax
call fcn.00405fec
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40d59a
test edi, edi
je 0x40d59a
call esi
test eax, eax
je 0x40d591
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40d591
test byte [ebp - 0xc], 1
jne 0x40d59a
or dword [ebp + 0x10], 0x200000
jmp 0x40d5d3
mov eax, dword [0x44f45c]
cmp eax, ebx
je 0x40d5d3
push eax
call fcn.00405fec
pop ecx
test eax, eax
je 0x40d5d3
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40d5d3
mov eax, dword [0x44f460]
cmp eax, ebx
je 0x40d5d3
push eax
call fcn.00405fec
pop ecx
test eax, eax
je 0x40d5d3
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44f458]
call fcn.00405fec
pop ecx
test eax, eax
je 0x40d5f3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40d5f5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401ce0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call 0x401d50
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov ebx, eax
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.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.00401340
mov dword [esp], eax
call sub.ucrtbase.dll_exit
nop
nop
nop
jmp dword [sym.imp.ucrtbase.dll___p___argc]