joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1010fa50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edx, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0x10]
mov ecx, ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, ebp
push edi
sub ecx, 4
jb 0x1010fa81
nop dword [eax]
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x1010fa88
add edx, 4
add esi, 4
sub ecx, 4
jae 0x1010fa70
xor edi, edi
cmp ecx, 0xfffffffc
je 0x1010fac3
movzx edi, byte [edx]
movzx eax, byte [esi]
sub edi, eax
jne 0x1010fac3
cmp ecx, 0xfffffffd
je 0x1010fac3
movzx edi, byte [edx + 1]
movzx eax, byte [esi + 1]
sub edi, eax
jne 0x1010fac3
cmp ecx, 0xfffffffe
je 0x1010fac3
movzx edi, byte [edx + 2]
movzx eax, byte [esi + 2]
sub edi, eax
jne 0x1010fac3
cmp ecx, 0xffffffff
je 0x1010fac3
movzx edi, byte [edx + 3]
movzx eax, byte [esi + 3]
sub edi, eax
test edi, edi
jle 0x1010fade
push 0x159
push str.cryptox509v3_v3_addr.c
push str.assertion_failed:_memcmp_min__max__length____0
call sym.libcrypto_1_1.dll_OPENSSL_die
add esp, 0xc
mov edi, dword [esp + 0x14]
xor ecx, ecx
test ebx, ebx
jle 0x1010fafd
mov esi, edi
mov edx, ebp
sub esi, ebp
nop
mov al, byte [esi + edx]
cmp al, byte [edx]
jne 0x1010fafd
inc ecx
inc edx
cmp ecx, ebx
jl 0x1010faf0
lea edx, [ebx - 1]
test edx, edx
js 0x1010fb21
mov esi, edi
lea eax, [edx + ebp]
sub esi, ebp
nop dword [eax + eax]
cmp byte [eax + esi], 0
jne 0x1010fb21
cmp byte [eax], 0xff
jne 0x1010fb21
dec eax
sub edx, 1
jns 0x1010fb10
cmp ecx, edx
jl case.0x1010fb4d.2
jle 0x1010fb33
pop edi
pop esi
pop ebp
lea eax, [ecx*8]
pop ebx
ret
mov bl, byte [ecx + ebp]
mov dh, byte [ecx + edi]
mov dl, bl
xor dl, dh
movzx eax, dl
dec eax
cmp eax, 0x7e
ja case.0x1010fb4d.2
movzx eax, byte [eax + 0x1010fbc0]
jmp dword [eax*4 + 0x1010fba0]
mov eax, 7
jmp 0x1010fb83
mov eax, 6
jmp 0x1010fb83
mov eax, 5
jmp 0x1010fb83
mov eax, 4
jmp 0x1010fb83
mov eax, 3
jmp 0x1010fb83
mov eax, 2
jmp 0x1010fb83
mov eax, 1
test dl, dh
jne case.0x1010fb4d.2
and bl, dl
cmp bl, dl
jne case.0x1010fb4d.2
pop edi
pop esi
pop ebp
lea eax, [eax + ecx*8]
pop ebx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret

Function at 0x1011d030
Capabilities:
Parse pe header

Disassembly:
mov eax, dword [esp + 8]
sub eax, 1
je 0x1011d04b
sub eax, 2
jne 0x1011d043
call sym.libcrypto_1_1.dll_OPENSSL_thread_stop
mov eax, 1
ret 0xc
call fcn.1008bdf0
mov edx, dword [esp + 4]
mov eax, 0x5a4d
cmp word [edx], ax
jne 0x1011d043
push esi
mov esi, dword [edx + 0x3c]
mov eax, 1
cmp dword [esi + edx], 0x4550
jne 0x1011d083
cmp edx, dword [esi + edx + 0x34]
mov ecx, dword [0x101a83f8]
cmovne ecx, eax
mov dword [0x101a83f8], ecx
pop esi
ret 0xc

Function at 0x1011fd2a
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x1017dd00
push str.FlsAlloc
push 0
call fcn.1011fca3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1011fd5c
push dword [ebp + 8]
mov ecx, esi
call fcn.1011e1e1
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]
Function at 0x1011fd9e
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x1017dd24
push str.FlsGetValue
push 2
call fcn.1011fca3
add esp, 0x10
mov esi, eax
push dword [ebp + 8]
test esi, esi
je 0x1011fdcf
mov ecx, esi
call fcn.1011e1e1
call esi
jmp 0x1011fdd5
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
pop ebp
ret

Function at 0x1011fdd8
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x1017dd38
push str.FlsSetValue
push 3
call fcn.1011fca3
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x1011fe0c
mov ecx, esi
call fcn.1011e1e1
call esi
jmp 0x1011fe12
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret

Function at 0x101312af
Capabilities:
Read file on windows

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

Function at 0x101348cd
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1013456f
Function at 0xca0640
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x20a000
lea edi, [esi - 0x849000]
push edi
jmp 0xca065a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xca0661
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xca0650
mov eax, 1
add ebx, ebx
jne 0xca0673
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xca0684
jne 0xca06a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xca06a3
dec eax
add ebx, ebx
jne 0xca0690
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xca0668
add ebx, ebx
jne 0xca069f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xca06f5
xor ecx, ecx
sub eax, 3
jb 0xca06bb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xca072a
sar eax, 1
mov ebp, eax
jmp 0xca06c6
add ebx, ebx
jne 0xca06c6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xca0694
inc ecx
add ebx, ebx
jne 0xca06d4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xca0694
add ebx, ebx
jne 0xca06e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xca06d6
jne 0xca06f2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xca06d6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xca0714
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xca0706
jmp 0xca0656
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xca0714
add edi, ecx
jmp 0xca0656
pop esi
mov edi, esi
mov ecx, 0x3ee5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xca0732
cmp byte [edi], 0x11
jne 0xca0732
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0xca0737
lea edi, [esi + 0x899000]
mov eax, dword [edi]
or eax, eax
je 0xca07af
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1068704]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1068880]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xca0764
mov ecx, edi
jns 0xca0793
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1068884]
or eax, eax
je 0xca07a9
mov dword [ebx], eax
add ebx, 4
jmp 0xca0781
call dword [esi + 0x1068894]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0xca07e0
cmp al, 0xef
ja 0xca07d3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0xca07b5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0xca07c2
mov ebp, dword [esi + 0x1068888]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xca0814
sub esp, 0xffffff80
jmp 0x427f4a
Function at 0x41d174
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x629d58]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x41d1a9
xor eax, eax
jmp 0x41d1fc
lea eax, [ebp - 0x210]
push eax
call fcn.004fe053
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x41d1da
push 0x5ae3fc
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00500d1e
add esp, 0xc
test eax, eax
jne 0x41d1a5
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00500d1e
add esp, 0xc
test eax, eax
jne 0x41d1a5
lea eax, [ebp - 0x210]
push eax
call fcn.00413f05
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004fbd5c
leave
ret

Function at 0x4573c3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0040e4e3
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4573fc
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00457005
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x45745a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x45747e
cmp dword [edi + 0x74], 0
jne 0x45747e
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.0040e4e3
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0045741b
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x48798e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x4879a8
call fcn.0040e4e3
mov esi, dword [eax + 0xc]
push dword [0x63fd1c]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4879c6
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x4879be
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4879f3
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x4879c0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.004878bc
mov esi, eax
jmp 0x4879e5

Function at 0x4d8e81
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.00416dcb
call fcn.0040e601
cmp eax, esi
pop esi
jne 0x4d8e9d
mov ecx, 0x63de88
jmp fcn.0041df32
ret

Function at 0x4dc816
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4dc82e
mov edi, dword [esi + 0xc]
jmp 0x4dc86e
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4dc847
call fcn.0041b5df
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4dc85c
call fcn.0041b5df
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4dc86e
call fcn.0041b5df
call fcn.0040e4e3
cmp dword [eax + 0x3c], 0
je 0x4dc883
push edi
mov ecx, ebx
call fcn.004db64a
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004dc730
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4dc8a1
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4dc8ad
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4fbd5c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x629d58]
jne 0x4fbd66
repz ret
jmp fcn.0050514c
Function at 0x401430
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x43501c
push 0x80000002
call dword [0x43550c]
test eax, eax
jne 0x40145c
mov eax, 0xd903
jmp 0x401506
mov dword [0x435504], 0x24e1
mov ecx, dword [0x435504]
sub ecx, 0x24e1
mov dword [0x435504], ecx
mov edx, 1
test edx, edx
je 0x401506
mov eax, dword [0x435504]
cmp eax, dword [ebp + 0xc]
jb 0x401491
jmp 0x401506
cmp dword [0x435504], 0
jne 0x4014af
push 0x263
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
test eax, eax
je 0x4014af
xor eax, eax
jmp 0x401506
mov ecx, dword [ebp + 8]
add ecx, dword [0x435504]
mov edx, dword [ecx]
add edx, dword [0x435504]
mov eax, dword [ebp + 8]
add eax, dword [0x435504]
mov dword [eax], edx
mov dword [ebp - 8], 0xf8c0dc94
mov ecx, dword [0x435504]
mov edx, dword [ebp - 8]
lea eax, [edx + ecx + 2]
push eax
mov ecx, dword [ebp + 8]
add ecx, dword [0x435504]
push ecx
call fcn.004011f0
add esp, 8
mov edx, dword [0x435504]
add edx, 4
mov dword [0x435504], edx
jmp 0x401478
mov esp, ebp
pop ebp
ret
Function at 0x404ef6
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push edi
push 4
pop edi
lea eax, [ebp - 4]
mov dword [ebp - 0xc], edi
push eax
push 0x2000000
push 0
push 0x401fb8
push 0x80000002
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x404f5f
push esi
lea eax, [ebp - 0xc]
mov dword [ebp - 8], edi
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x401fac
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x404f5f
cmp dword [ebp - 8], edi
jne 0x404f5f
mov eax, dword [ebp - 0x10]
pop edi
leave
ret
xor eax, eax
jmp 0x404f5c
Function at 0x40747d
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x4310b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, 0x104
mov byte [ebp - 0x1c], 1
xor ebx, ebx
mov dword [ebp - 0x18], edi
push edi
lea eax, [ebp - 0x228]
mov dword [ebp - 0x20], ebx
push ebx
push eax
mov si, cx
call sub.msvcrt.dll_memset
xor eax, eax
lea ecx, [ebp - 0x228]
add esp, 0xc
cmp byte [ebp - 0x1c], al
sete al
dec eax
and eax, 0x7ee3
add eax, edi
push eax
call fcn.0040d300
test eax, eax
js 0x407537
push 0x3a
pop eax
mov word [ebp - 0xe], ax
push 0x5c
pop eax
mov word [ebp - 0xc], ax
xor eax, eax
mov word [ebp - 0xa], ax
lea eax, [ebp - 0x10]
push eax
mov word [ebp - 0x10], si
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x41e174
cmp eax, 2
je 0x407537
cmp eax, 5
je 0x407537
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x40755a
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x230]
push ecx
push dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetVolumeInformationW]
test eax, eax
je 0x41e181
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x20], ebx
test eax, eax
je 0x407549
push eax
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417b90
leave
ret
lea eax, [ebp - 0x228]
jmp 0x407516
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x20], ebx
test eax, eax
je 0x41e1a2
push eax
jmp 0x41e19b
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 5
jne 0x407537
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x20], ebx
test ecx, ecx
je 0x41e1a2
push ecx
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
xor eax, eax
inc eax
jmp 0x40754b
Function at 0x4083c5
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
mov eax, dword [0x4310b4]
xor eax, esp
mov dword [esp + 0xc], eax
cmp word [ebp + 8], 0
push esi
push edi
mov edi, edx
mov esi, ecx
jne 0x408405
push esi
push edi
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCurrentDirectoryW]
xor eax, eax
mov ecx, dword [esp + 0x14]
pop edi
pop esi
xor ecx, esp
call fcn.00417b90
mov esp, ebp
pop ebp
ret 4
push 0x3d
pop eax
push dword [ebp + 8]
mov word [esp + 0x10], ax
call dword [sym.imp.msvcrt.dll_towupper]
pop ecx
mov word [esp + 0xe], ax
lea ecx, [esp + 0xc]
push 0x3a
pop eax
mov word [esp + 0x10], ax
xor eax, eax
mov word [esp + 0x12], ax
call fcn.0040d89b
test eax, eax
je 0x41e8c0
push eax
mov edx, edi
mov ecx, esi
call fcn.0040dfe0
jmp 0x4083f0
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_towupper]
pop ecx
mov word [esi], ax
push 0x3a
pop eax
mov word [esi + 2], ax
push 0x5c
pop eax
mov word [esi + 4], ax
xor eax, eax
mov word [esi + 6], ax
inc eax
jmp 0x4083f2
Function at 0x4090c0
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
push ecx
mov dword [ebp - 0xc], esi
call dword [sym.imp.msvcrt.dll__get_osfhandle]
cmp byte [0x44c128], 0
pop ecx
mov dword [ebp - 4], eax
jne 0x41f1a7
push edi
mov edi, dword [ebp + 0xc]
xor eax, eax
mov ecx, 0x2000
cmp esi, ecx
ja 0x41f1ba
test esi, esi
je 0x409136
push eax
push eax
push ecx
push 0x43d860
push 0xffffffffffffffff
push ebx
push eax
push dword [0x435618]
call dword [sym.imp.api_ms_win_core_string_l1_1_0.dll_WideCharToMultiByte]
push 0
push edi
lea esi, [eax - 1]
push esi
push 0x43d860
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
test eax, eax
je 0x409145
cmp dword [edi], esi
jne 0x409145
mov eax, dword [ebp - 0xc]
mov dword [edi], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 8
xor eax, eax
jmp 0x40913e
push 0
push dword [ebp + 0xc]
push esi
push ebx
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
jmp 0x40913f
push eax
push eax
push ecx
push 0x43d860
push 0x1000
push ebx
push eax
push dword [0x435618]
call dword [sym.imp.api_ms_win_core_string_l1_1_0.dll_WideCharToMultiByte]
push 0
push edi
push eax
push 0x43d860
push dword [ebp - 4]
mov ecx, 0x2000
mov dword [ebp - 8], eax
add ebx, ecx
sub esi, ecx
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
test eax, eax
je 0x409145
mov eax, dword [ebp - 8]
cmp dword [edi], eax
jne 0x409145
push 0
pop eax
jmp 0x4090f0

Function at 0x409548
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebx
xor ebx, ebx
mov byte [0x43963e], bl
push esi
push edi
test edx, edx
je 0x409573
mov esi, edx
lea edi, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, bx
jne 0x40955e
sub esi, edi
sar esi, 1
neg esi
sbb esi, esi
and edx, esi
push edx
push ecx
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_SetEnvironmentVariableW]
mov esi, dword [0x43560c]
mov edi, eax
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
push esi
push ebx
push eax
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
call fcn.004095ad
mov dword [0x43560c], eax
xor eax, eax
test edi, edi
pop edi
pop esi
sete al
pop ebx
ret

Function at 0x4095ad
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
push edi
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetEnvironmentStringsW]
mov esi, eax
xor edi, edi
test esi, esi
je 0x4095f2
push ebx
mov ecx, esi
call fcn.00409600
mov ebx, eax
push ebx
push 8
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
push eax
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x4095ea
push ebx
push esi
push edi
call sub.msvcrt.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_FreeEnvironmentStringsW]
pop ebx
mov eax, edi
pop edi
pop esi
ret
Function at 0x40d868
Capabilities:
Set console window title

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, ecx
push esi
push edi
test ebx, ebx
je 0x40d882
cmp dword [0x4397c0], 0
je 0x40d887
pop edi
pop esi
pop ebx
leave
ret
cmp dword [0x4397d0], 0
jne 0x40d882
jmp 0x4206d3
mov ecx, 0x20c
call fcn.0040cbc0
mov edi, eax
test edi, edi
je 0x40d882
push 0x104
push edi
call dword [sym.imp.api_ms_win_core_console_l2_2_0.dll_GetConsoleTitleW]
mov edx, eax
test edx, edx
je 0x40d882
and dword [ebp - 8], 0
mov ecx, ebx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 8]
jne 0x420706
mov eax, dword [0x439790]
sub ecx, esi
sar ecx, 1
add edx, 0xa
add eax, ecx
mov ecx, edi
add eax, edx
mov dword [ebp - 4], eax
lea edx, [eax + eax]
call fcn.0040cc10
mov esi, eax
test esi, esi
je 0x420795
cmp byte [0x4397d4], 0
mov edi, esi
mov edx, dword [ebp - 4]
je 0x420755
mov eax, dword [0x439790]
sub edx, eax
push ebx
lea ecx, [esi + eax*2]
call fcn.0040dfe0
jmp 0x42078e
push 0x4042c4
mov ecx, esi
call fcn.0040ebf0
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 8]
jne 0x420766
sub ecx, edx
mov edx, dword [ebp - 4]
sar ecx, 1
mov dword [0x439790], ecx
mov ecx, esi
push ebx
call fcn.0040ebf0
mov byte [0x4397d4], 1
push esi
call dword [sym.imp.api_ms_win_core_console_l2_2_0.dll_SetConsoleTitleW]
mov ecx, edi
call fcn.0040cb50
jmp 0x40d882
Function at 0x40d89b
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov ebx, 0x2000
mov edi, 0x431608
push ebx
mov esi, ecx
xor eax, eax
push edi
push esi
mov word [0x431608], ax
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetEnvironmentVariableW]
test eax, eax
je 0x40d8d1
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [0x4397cd], 0
je 0x40d98a
push 0x40247c
push esi
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x40d9ce
push 0x402484
push esi
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x40d9b4
push 0x4024c0
push esi
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x40d9ec
push 0x4024a8
push esi
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x4207a1
push 0x40249c
push esi
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x40d9de
push 0x4024dc
push esi
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x40d991
push 0x402724
push esi
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x4207ac
push 0x4026f8
push esi
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x4207b8
xor eax, eax
jmp 0x40d8ca
push ebx
xor edx, edx
xor ecx, ecx
push edi
inc edx
call fcn.00408602
add eax, eax
cmp eax, 0x4000
jae 0x40d9f0
xor ecx, ecx
mov word [eax + 0x431608], cx
jmp 0x40d8c8
push dword [0x439654]
push 0x402144
push ebx
push edi
call fcn.00409041
add esp, 0x10
jmp 0x40d8c8
push 0
mov edx, ebx
mov ecx, edi
call fcn.004083c5
jmp 0x40d8c8
push ebx
xor edx, edx
xor ecx, ecx
push edi
inc edx
call fcn.00406b11
jmp 0x40d99d
push 2
jmp 0x40d9ba
call fcn.00417cea
int3
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCommandLineW]
jmp 0x40d8ca
call dword [sym.imp.msvcrt.dll_rand]
push eax
jmp 0x40d9ba
and dword [esp + 0xc], 0
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.api_ms_win_core_systemtopology_l1_1_0.dll_GetNumaHighestNodeNumber]
push dword [esp + 0xc]
jmp 0x40d9ba
Function at 0x4106ce
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4310b4]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x3a
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0xc], cx
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetDriveTypeW]
xor ecx, ecx
inc ecx
cmp ecx, eax
mov ecx, dword [ebp - 4]
sbb eax, eax
xor ecx, ebp
neg eax
call fcn.00417b90
leave
ret