joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401e30
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x10]
push ebx
mov ebx, ecx
sub esp, 0x2c
mov dword [ebp - 0x14], eax
mov esi, dword [sym.imp.shlwapi.dll_AssocQueryStringW]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x10], 0
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], 0
call esi
sub esp, 0x18
test eax, eax
js 0x401ed9
mov eax, dword [ebp - 0x10]
add eax, eax
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
test eax, eax
je 0x401ee5
mov dword [ebp - 0x20], eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [ebp - 0x1c], eax
mov dword [esp + 0xc], ebx
mov eax, dword [ebp - 0x18]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], 0
mov dword [esp + 4], eax
call esi
mov edx, dword [ebp - 0x1c]
sub esp, 0x18
test eax, eax
mov ecx, dword [ebp - 0x20]
js 0x401ed0
lea esp, [ebp - 0xc]
mov eax, ecx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0xc]
xor ecx, ecx
pop ebx
mov eax, ecx
pop esi
pop edi
pop ebp
ret
test byte [section..data], 2
jne 0x401efb
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov dword [esp + 0xc], str.out_of_memory_n
mov dword [esp + 8], str.xmalloc
mov dword [esp + 4], 0x40c000
mov dword [esp], 1
call fcn.00401550
jmp 0x401eee
Function at 0x402290
Capabilities:
Query or enumerate registry value
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x10]
push ebx
mov ebx, ecx
sub esp, 0x30
mov dword [ebp - 0x14], eax
mov esi, dword [sym.imp.advapi32.dll_RegGetValueW]
mov dword [ebp - 0x18], edx
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 2
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call esi
sub esp, 0x1c
test eax, eax
jne 0x402341
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
test eax, eax
je 0x40234d
mov dword [ebp - 0x20], eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], eax
mov dword [ebp - 0x1c], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 2
mov dword [esp + 8], ebx
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call esi
mov edx, dword [ebp - 0x1c]
sub esp, 0x1c
test eax, eax
mov ecx, dword [ebp - 0x20]
jne 0x402338
lea esp, [ebp - 0xc]
mov eax, ecx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0xc]
xor ecx, ecx
pop ebx
mov eax, ecx
pop esi
pop edi
pop ebp
ret
test byte [section..data], 2
jne 0x402363
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov dword [esp + 0xc], str.out_of_memory_n
mov dword [esp + 8], str.xmalloc
mov dword [esp + 4], 0x40c000
mov dword [esp], 1
call fcn.00401550
jmp 0x402356

Function at 0x402390
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x14
call fcn.00401d40
mov dword [ebp - 0x10], eax
mov edi, eax
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_strlen]
lea eax, [eax + eax*2]
lea eax, [eax + eax + 1]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
test eax, eax
je 0x4024b7
movzx edx, byte [edi]
mov esi, eax
add edi, 1
xor ebx, ebx
test dl, dl
je 0x4024b0
lea esi, cs:[esi]
nop
lea eax, [edx - 0x22]
lea ecx, [esi + ebx]
cmp al, 0x1c
ja case.0x4023ed.1
movzx eax, al
jmp dword [eax*4 + 0x40e178]
add ebx, 1
mov byte [ecx], dl
lea esi, [esi]
movzx edx, byte [edi]
add edi, 1
test dl, dl
jne 0x4023e0
add ebx, esi
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov byte [ebx], 0
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], str.gt_
mov dword [esp], ecx
call fcn.004014a0
add ebx, eax
jmp 0x402400
mov dword [esp + 4], str.lt_
mov dword [esp], ecx
call fcn.004014a0
add ebx, eax
jmp 0x402400
mov dword [esp + 4], str.apos_
mov dword [esp], ecx
call fcn.004014a0
add ebx, eax
jmp 0x402400
mov dword [esp + 4], str.amp_
mov dword [esp], ecx
call fcn.004014a0
add ebx, eax
jmp 0x402400
mov dword [esp + 4], str.quot_
mov dword [esp], ecx
call fcn.004014a0
add ebx, eax
jmp 0x402400
mov ebx, eax
jmp 0x40240c
test byte [section..data], 2
jne 0x4024cd
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov dword [esp + 0xc], str.out_of_memory_n
mov dword [esp + 8], str.xmalloc
mov dword [esp + 4], 0x40c000
mov dword [esp], 1
call fcn.00401550
jmp 0x4024c0
Function at 0x402500
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x14
movzx ebx, word [eax]
test bx, bx
je 0x402640
mov esi, eax
mov edx, eax
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x402520
sub edx, esi
sar edx, 1
lea eax, [edx*8 + 2]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov edi, eax
test eax, eax
je 0x402657
movq xmm2, qword [0x4107a0]
lea eax, [esi + 2]
xor edx, edx
movd xmm0, dword [0x4107a0]
jmp 0x4025a3
ja 0x4025f0
cmp bx, 0x3c
ja 0x402628
cmp bx, 0x1f
jbe 0x402610
lea ecx, [ebx - 0x20]
mov esi, 0x180007dd
bt esi, ecx
jae 0x402603
mov esi, dword [ebp - 0x10]
lea ecx, [edx + 2]
movd dword [esi], xmm0
mov word [edi + ecx*2], bx
movzx ebx, word [eax]
lea edx, [ecx + 1]
add eax, 2
test bx, bx
je 0x4025c5
lea esi, [edi + edx*2]
mov dword [ebp - 0x10], esi
cmp bx, 0x5c
jne 0x402560
mov ecx, dword [ebp - 0x10]
add eax, 2
add edx, 4
movq qword [ecx], xmm2
movzx ebx, word [eax - 2]
test bx, bx
jne 0x4025a3
lea eax, [edi + edx*2]
xor edx, edx
mov word [eax], dx
mov eax, edi
call fcn.00401d40
mov dword [esp], edi
mov ebx, eax
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
lea ecx, [ebx - 0x60]
cmp cx, 0x1e
ja 0x402603
mov esi, 0x50000001
bt esi, ecx
jb 0x402587
mov ecx, edx
jmp 0x402591
lea esi, [ebx - 9]
mov ecx, edx
cmp si, 1
ja 0x402591
jmp 0x402587
lea esi, [ebx - 0x3e]
mov ecx, edx
cmp si, 1
ja 0x402591
jmp 0x402587
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll_malloc]
mov edi, eax
test eax, eax
jne 0x4025c8
test byte [section..data], 2
jne 0x40266d
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov dword [esp + 0xc], str.out_of_memory_n
mov dword [esp + 8], str.xmalloc
mov dword [esp + 4], 0x40c000
mov dword [esp], 1
call fcn.00401550
jmp 0x402660
Function at 0x4026a0
Capabilities:
Terminate process

Disassembly:
push edi
lea edi, [esp + 8]
and esp, 0xfffffff8
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, 1
sub esp, 0x2c
mov dword [ebp - 0x18], edx
mov dword [esp + 4], eax
mov dword [esp], 0x40e1ec
call fcn.00401950
mov dword [ebp - 0x24], eax
mov dword [esp + 4], 0x40e208
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wfopen]
mov esi, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40279e
mov eax, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [esp], 0x1000
mov dword [ebp - 0x20], eax
call eax
mov ebx, eax
test eax, eax
je 0x402876
mov edi, 0x1000
lea esi, [esi]
xor esi, esi
jmp 0x402759
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 4], 0xa
mov esi, eax
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_strchr]
test eax, eax
jne 0x4027b8
add edi, edi
mov dword [esp], ebx
mov dword [esp + 4], edi
call dword [sym.imp.ucrtbase.dll_realloc]
mov ebx, eax
test eax, eax
je 0x40283a
mov eax, dword [ebp - 0x14]
mov dword [esp + 8], eax
mov eax, edi
sub eax, esi
add esi, ebx
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fgets]
test eax, eax
jne 0x402720
mov dword [esp], ebx
mov esi, dword [sym.imp.ucrtbase.dll_free]
xor ebx, ebx
call esi
mov edi, dword [ebp - 0x14]
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_feof]
mov dword [esp], edi
test eax, eax
setne bl
call dword [sym.imp.ucrtbase.dll_fclose]
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call esi
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret
mov byte [eax], 0
cmp byte [ebx], 0x23
je 0x402718
mov dword [esp + 4], 0x3a
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_strchr]
mov esi, eax
test eax, eax
je 0x402718
mov dword [esp], 0x10
mov eax, dword [ebp - 0x20]
call eax
test eax, eax
je 0x402876
mov dword [ebp - 0x1c], eax
mov eax, ebx
mov byte [esi], 0
call fcn.00401c70
mov edx, dword [ebp - 0x1c]
mov dword [edx], eax
lea eax, [esi + 1]
call fcn.00401c70
mov esi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
mov ecx, eax
movd xmm0, ecx
movd xmm1, dword [ebp - 0x18]
mov ecx, dword [esi + 4]
punpckldq xmm0, xmm1
lea eax, [edx + 8]
movq qword [edx + 4], xmm0
mov dword [edx + 0xc], ecx
mov dword [ecx], eax
mov dword [esi + 4], eax
jmp 0x402718
test byte [section..data], 2
jne 0x402850
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov dword [esp + 0xc], str.out_of_memory_n
mov dword [esp + 8], str.xrealloc
mov dword [esp + 4], 0x40c000
mov dword [esp], 1
call fcn.00401550
jmp 0x402843
test byte [section..data], 2
je 0x402843
mov dword [esp + 0xc], str.out_of_memory_n
mov dword [esp + 8], str.xmalloc
mov dword [esp + 4], 0x40c000
mov dword [esp], 1
call fcn.00401550
jmp 0x402843
Function at 0x404490
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x18]
push ebx
mov ebx, edx
sub esp, 0x30
mov esi, dword [eax]
mov dword [ebp - 0x20], eax
mov dword [edx], 0
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x12]
mov eax, dword [esi]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 6
mov dword [esp + 4], ecx
mov dword [esp], esi
call dword [eax + 0xc]
sub esp, 0x10
test eax, eax
js 0x4044d4
cmp dword [ebp - 0x18], 6
je 0x404510
test byte [section..data], 4
jne 0x404590
mov eax, dword [ebx]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov eax, 0x80004005
sub esp, 4
mov dword [ebx], 0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp word [ebp - 0x12], 0
jne 0x4044d4
cmp word [ebp - 0x10], 1
jne 0x4044d4
movzx eax, word [ebp - 0xe]
mov edx, dword [ebp - 0x1c]
mov dword [edx], eax
shl eax, 4
mov dword [esp], eax
mov dword [ebp - 0x24], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov edx, dword [ebp - 0x24]
test eax, eax
mov ecx, eax
je 0x4045c4
mov dword [ebx], eax
mov eax, dword [esi]
mov dword [esp + 0xc], edi
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], esi
call dword [eax + 0xc]
sub esp, 0x10
test eax, eax
js 0x4044e1
movzx edx, word [ebp - 0xe]
shl edx, 4
cmp edx, dword [ebp - 0x18]
jne 0x4044e1
mov edi, dword [ebp - 0x1c]
mov edx, dword [edi]
test edx, edx
jne 0x404507
mov eax, dword [ebx]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov dword [ebx], 0
jmp 0x4044ec
mov edx, dword [ebp - 0x18]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Invalid_ico_file_format__hr0x_08lX__bytesRead_ld__n
mov dword [esp + 8], str.read_ico_direntries
mov dword [esp + 4], 0x40c000
mov dword [esp + 0x14], edx
mov dword [esp], 2
call fcn.00401550
jmp 0x4044e1
test byte [section..data], 2
jne 0x4045da
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov dword [esp + 0xc], str.out_of_memory_n
mov dword [esp + 8], str.xmalloc
mov dword [esp + 4], 0x40c000
mov dword [esp], 1
call fcn.00401550
jmp 0x4045cd
Function at 0x405b00
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x24
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
mov ecx, ebx
mov dword [ebp - 0x14], eax
mov eax, esi
call fcn.00405240
test eax, eax
je 0x405b57
cmp eax, 0x8007007e
jne 0x405b3b
test byte [ebp - 0x18], 1
jne 0x405c83
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], esi
call dword [sym.imp.shlwapi.dll_SHCreateStreamOnFileW]
sub esp, 0xc
test eax, eax
js 0x405b70
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 0x10]
call fcn.00404490
test eax, eax
js 0x405b70
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [sym.imp.ucrtbase.dll_wcsrchr]
mov dword [esp + 4], 0x2e
mov dword [esp], esi
call edi
mov edx, eax
test eax, eax
je 0x405c96
xor ecx, ecx
mov dword [ebp - 0x1c], eax
mov eax, 0xf
call fcn.00401e30
mov edx, dword [ebp - 0x1c]
test eax, eax
mov esi, eax
je 0x405c60
mov dword [esp + 4], 0x2c
mov dword [esp], eax
call edi
xor edx, edx
test eax, eax
je 0x405be0
xor edx, edx
add eax, 2
mov word [eax - 2], dx
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcstol]
mov edx, eax
mov ecx, ebx
mov eax, esi
xor edi, edi
call fcn.00405240
mov dword [ebp - 0x1c], eax
mov dword [esp], esi
mov esi, dword [sym.imp.ucrtbase.dll_free]
call esi
mov dword [esp], edi
call esi
mov eax, dword [ebp - 0x1c]
mov edx, 1
test eax, eax
jne 0x405c1e
mov edx, dword [ebp - 0x10]
mov eax, ebx
mov ecx, dword [ebp - 0x14]
call fcn.00404490
mov edi, eax
shr edi, 0x1f
mov edx, edi
test byte [ebp - 0x18], 1
jne 0x405b68
test dl, dl
je 0x405b68
mov ecx, ebx
mov edx, 0xffff80fb
mov eax, str.user32
call fcn.00405240
test eax, eax
jne 0x405b68
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 0x10]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.00404490
mov ecx, str.open
mov eax, 2
call fcn.00401e30
mov edi, eax
test eax, eax
je 0x405c96
mov ecx, ebx
xor edx, edx
call fcn.00405240
jmp 0x405beb
test byte [section..data], 4
jne 0x405ca5
mov eax, 0x8007007e
jmp 0x405b68
mov edx, 1
mov eax, 0x80070490
jmp 0x405c1e
test esi, esi
je 0x405d0c
mov eax, esi
shr eax, 0x10
test eax, eax
je 0x405cfa
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
push ecx
push ecx
test eax, eax
jne 0x405d13
mov eax, esi
call fcn.00401280
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Cant_find_file:__s__give_a_chance_to_parent_process_to_create_it_n
mov dword [esp + 8], str.open_icon
mov dword [esp + 4], 0x40c000
mov dword [esp], 2
call fcn.00401550
jmp 0x405c8c
mov dword [esp + 4], esi
mov dword [esp], str._04x
call fcn.00401440
jmp 0x405cd0
mov eax, str._null_
jmp 0x405cd0
mov eax, str._invalid_
jmp 0x405cd0
Function at 0x40b060
Capabilities:
Accept command line arguments
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call sub.ucrtbase.dll___p___argc
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov edx, 2
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov ecx, dword [eax + 0x3c]
cmp word [eax + ecx + 0x5c], 2
je 0x40b0b0
mov edx, 1
mov dword [esp], edx
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call 0x40b0d0
mov dword [esp], eax
call sub.ucrtbase.dll_exit
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x54
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x40b127
xor ecx, ecx
xor edx, edx
jmp 0x40b109
cmp ax, 0x5c
jne 0x40b198
add edx, 1
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x40b127
cmp ax, 9
je 0x40b115
cmp ax, 0x20
jne 0x40b0f0
test ecx, ecx
je 0x40b183
movzx eax, word [ebx + 2]
add ebx, 2
xor edx, edx
test ax, ax
jne 0x40b109
lea eax, [ebp - 0x4c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x20], 1
je 0x40b1b8
movzx esi, word [ebp - 0x1c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00408320
sub esp, 0x10
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
add ebx, 2
movzx eax, word [ebx]
cmp ax, 9
je 0x40b180
cmp ax, 0x20
je 0x40b180
jmp 0x40b127
cmp ax, 0x22
jne 0x40b119
and edx, 1
jne 0x40b119
xor ecx, 1
jmp 0x40b0fd
mov eax, 1
mov esi, 1
mov word [ebp - 0x1c], ax
jmp 0x40b140
Function at 0x40b0d0
Capabilities:
Accept command line arguments
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call sub.ucrtbase.dll___p___argc
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov edx, 2
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov ecx, dword [eax + 0x3c]
cmp word [eax + ecx + 0x5c], 2
je 0x40b0b0
mov edx, 1
mov dword [esp], edx
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call 0x40b0d0
mov dword [esp], eax
call sub.ucrtbase.dll_exit
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x54
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x40b127
xor ecx, ecx
xor edx, edx
jmp 0x40b109
cmp ax, 0x5c
jne 0x40b198
add edx, 1
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x40b127
cmp ax, 9
je 0x40b115
cmp ax, 0x20
jne 0x40b0f0
test ecx, ecx
je 0x40b183
movzx eax, word [ebx + 2]
add ebx, 2
xor edx, edx
test ax, ax
jne 0x40b109
lea eax, [ebp - 0x4c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x20], 1
je 0x40b1b8
movzx esi, word [ebp - 0x1c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00408320
sub esp, 0x10
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
add ebx, 2
movzx eax, word [ebx]
cmp ax, 9
je 0x40b180
cmp ax, 0x20
je 0x40b180
jmp 0x40b127
cmp ax, 0x22
jne 0x40b119
and edx, 1
jne 0x40b119
xor ecx, 1
jmp 0x40b0fd
mov eax, 1
mov esi, 1
mov word [ebp - 0x1c], ax
jmp 0x40b140
Function at 0x4c1bea
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
add esp, 4
sub edi, 0xfa80
add edi, 0xa5c8
pop edi
push ebx
push eax
add esp, 4
xor ebx, 0x16715
pop ebx
cmp dword [ebp - 0xc2c], 0
jne 0x4c1c1e
mov dword [ebp - 0x6ec], 0
jmp 0x4c1e7e
mov ecx, dword [ebp - 0xc2c]
mov dword [ebp - 0x4d8], ecx
push esi
sub esi, 0x7df3
xor esi, 0x176fe
jmp 0x4c1c3c
pop esi
push edi
push ebx
add esp, 4
xor edi, 0x17ec5
pop edi
push ecx
call 0x4c1c58
add byte [eax], bh
dec esp
cmp eax, 0x453e4646
inc esi
add esp, 4
pop ecx
lea edx, [ebp - 0x16cc]
mov dword [ebp - 0xc28], edx
mov eax, dword [ebp - 0x4d8]
mov ecx, dword [eax + 0x30]
mov dword [ebp - 0xc24], ecx
xor edx, edx
mov word [ebp - 0x1fc], dx
xor eax, eax
mov word [ebp - 0x104], ax
push eax
push edi
add esp, 4
add eax, 0x11fe6
pop eax
push edx
push edx
add esp, 4
and edx, 0x3ee3
add edx, 0xb0
pop edx
push esi
and esi, 0x49ec
jmp 0x4c1cb4
sub esi, 0x682
pop esi
mov ecx, dword [ebp - 0xc24]
mov dx, word [ecx]
mov word [ebp - 0xf82], dx
mov eax, dword [ebp - 0xc24]
add eax, 2
mov dword [ebp - 0xc24], eax
mov cx, word [ebp - 0xf82]
mov word [ebp - 0x1fc], cx
mov edx, dword [ebp - 0xc28]
mov ax, word [edx]
mov word [ebp - 0xf84], ax
mov ecx, dword [ebp - 0xc28]
add ecx, 2
mov dword [ebp - 0xc28], ecx
mov dx, word [ebp - 0xf84]
mov word [ebp - 0x104], dx
push edi
jmp 0x4c1d1c
sub edi, 0xc046
or edi, 0x10f88
pop edi
push edx
push esi
add esp, 4
and edx, 0x18644
or edx, 0x90b9
add edx, 0x6ac5
sub edx, 0x131df
pop edx
movzx eax, word [ebp - 0x104]
test eax, eax
jne 0x4c1d6a
movzx ecx, word [ebp - 0x1fc]
movzx edx, word [ebp - 0x104]
sub ecx, edx
mov dword [ebp - 0x14e4], ecx
jmp 0x4c1dcd
movzx eax, word [ebp - 0x1fc]
movzx ecx, word [ebp - 0x104]
cmp eax, ecx
je 0x4c1c89
movzx edx, word [ebp - 0x1fc]
xor edx, 0x20
movzx eax, word [ebp - 0x104]
cmp edx, eax
je 0x4c1c89
movzx ecx, word [ebp - 0x1fc]
movzx edx, word [ebp - 0x104]
cmp ecx, edx
jge 0x4c1db7
mov dword [ebp - 0x14e0], 0xffffffff
jmp 0x4c1dc1
mov dword [ebp - 0x14e0], 1
mov eax, dword [ebp - 0x14e0]
mov dword [ebp - 0x14e4], eax
cmp dword [ebp - 0x14e4], 0
jne 0x4c1e16
push ebx
push esi
add esp, 4
sub ebx, 0x16def
call 0x4c1def
add byte [esp + eax*2], dh
cmp dword [eax + 0x4d], eax
dec ecx
cmp dword ss:[ebx + 0x525b04c4], eax
call 0x4c1e04
add byte [edx], dh
cmp eax, 0x49464e3e
dec esi
dec ebx
inc edi
add esp, 4
pop edx
mov ecx, dword [ebp - 0x4d8]
mov dword [ebp - 0x6ec], ecx
jmp 0x4c1e7e
push esi
sub esi, 0x7b82
call 0x4c1e29
add byte [ecx], bh
cmp dword ds:[ecx], edi
cmp eax, 0x4c4834f
call 0x4c1e3c
add byte [edi + 0x40], cl
cmp al, 0x3e
cmp ecx, dword [ebx + 0x44]
cmp al, 0x36
cmp dword [ebx + 0x525e04c4], eax
xor edx, 0x25a2
pop edx
mov edx, dword [ebp - 0x4d8]
mov eax, dword [edx]
mov dword [ebp - 0x4d8], eax
mov ecx, dword [ebp - 0x4d8]
cmp ecx, dword [ebp - 0xc2c]
je 0x4c1e74
mov edx, dword [ebp - 0x4d8]
cmp dword [edx + 0x30], 0
jne 0x4c1c2a
mov dword [ebp - 0x6ec], 0
Function at 0x4c1c58
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
add esp, 4
sub edi, 0xfa80
add edi, 0xa5c8
pop edi
push ebx
push eax
add esp, 4
xor ebx, 0x16715
pop ebx
cmp dword [ebp - 0xc2c], 0
jne 0x4c1c1e
mov dword [ebp - 0x6ec], 0
jmp 0x4c1e7e
mov ecx, dword [ebp - 0xc2c]
mov dword [ebp - 0x4d8], ecx
push esi
sub esi, 0x7df3
xor esi, 0x176fe
jmp 0x4c1c3c
pop esi
push edi
push ebx
add esp, 4
xor edi, 0x17ec5
pop edi
push ecx
call 0x4c1c58
add byte [eax], bh
dec esp
cmp eax, 0x453e4646
inc esi
add esp, 4
pop ecx
lea edx, [ebp - 0x16cc]
mov dword [ebp - 0xc28], edx
mov eax, dword [ebp - 0x4d8]
mov ecx, dword [eax + 0x30]
mov dword [ebp - 0xc24], ecx
xor edx, edx
mov word [ebp - 0x1fc], dx
xor eax, eax
mov word [ebp - 0x104], ax
push eax
push edi
add esp, 4
add eax, 0x11fe6
pop eax
push edx
push edx
add esp, 4
and edx, 0x3ee3
add edx, 0xb0
pop edx
push esi
and esi, 0x49ec
jmp 0x4c1cb4
sub esi, 0x682
pop esi
mov ecx, dword [ebp - 0xc24]
mov dx, word [ecx]
mov word [ebp - 0xf82], dx
mov eax, dword [ebp - 0xc24]
add eax, 2
mov dword [ebp - 0xc24], eax
mov cx, word [ebp - 0xf82]
mov word [ebp - 0x1fc], cx
mov edx, dword [ebp - 0xc28]
mov ax, word [edx]
mov word [ebp - 0xf84], ax
mov ecx, dword [ebp - 0xc28]
add ecx, 2
mov dword [ebp - 0xc28], ecx
mov dx, word [ebp - 0xf84]
mov word [ebp - 0x104], dx
push edi
jmp 0x4c1d1c
sub edi, 0xc046
or edi, 0x10f88
pop edi
push edx
push esi
add esp, 4
and edx, 0x18644
or edx, 0x90b9
add edx, 0x6ac5
sub edx, 0x131df
pop edx
movzx eax, word [ebp - 0x104]
test eax, eax
jne 0x4c1d6a
movzx ecx, word [ebp - 0x1fc]
movzx edx, word [ebp - 0x104]
sub ecx, edx
mov dword [ebp - 0x14e4], ecx
jmp 0x4c1dcd
movzx eax, word [ebp - 0x1fc]
movzx ecx, word [ebp - 0x104]
cmp eax, ecx
je 0x4c1c89
movzx edx, word [ebp - 0x1fc]
xor edx, 0x20
movzx eax, word [ebp - 0x104]
cmp edx, eax
je 0x4c1c89
movzx ecx, word [ebp - 0x1fc]
movzx edx, word [ebp - 0x104]
cmp ecx, edx
jge 0x4c1db7
mov dword [ebp - 0x14e0], 0xffffffff
jmp 0x4c1dc1
mov dword [ebp - 0x14e0], 1
mov eax, dword [ebp - 0x14e0]
mov dword [ebp - 0x14e4], eax
cmp dword [ebp - 0x14e4], 0
jne 0x4c1e16
push ebx
push esi
add esp, 4
sub ebx, 0x16def
call 0x4c1def
add byte [esp + eax*2], dh
cmp dword [eax + 0x4d], eax
dec ecx
cmp dword ss:[ebx + 0x525b04c4], eax
call 0x4c1e04
add byte [edx], dh
cmp eax, 0x49464e3e
dec esi
dec ebx
inc edi
add esp, 4
pop edx
mov ecx, dword [ebp - 0x4d8]
mov dword [ebp - 0x6ec], ecx
jmp 0x4c1e7e
push esi
sub esi, 0x7b82
call 0x4c1e29
add byte [ecx], bh
cmp dword ds:[ecx], edi
cmp eax, 0x4c4834f
call 0x4c1e3c
add byte [edi + 0x40], cl
cmp al, 0x3e
cmp ecx, dword [ebx + 0x44]
cmp al, 0x36
cmp dword [ebx + 0x525e04c4], eax
xor edx, 0x25a2
pop edx
mov edx, dword [ebp - 0x4d8]
mov eax, dword [edx]
mov dword [ebp - 0x4d8], eax
mov ecx, dword [ebp - 0x4d8]
cmp ecx, dword [ebp - 0xc2c]
je 0x4c1e74
mov edx, dword [ebp - 0x4d8]
cmp dword [edx + 0x30], 0
jne 0x4c1c2a
mov dword [ebp - 0x6ec], 0