joyce8/EMBER2024-capa huggingface dataset:
Function at 0x190062f4
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [0x1902ffd8], esi
jle 0x19006348
mov eax, dword [0x1902ffd4]
lea ecx, [ebp - 0xc]
mov eax, dword [eax + esi*4]
add eax, 0xc
push eax
call fcn.1901132e
lea eax, [ebp - 0xc]
push eax
call fcn.19005f1f
mov eax, dword [0x1902ffd4]
pop ecx
push dword [ebp - 0xc]
mov eax, dword [eax + esi*4]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push dword [ebp - 0xc]
call fcn.19019869
inc esi
pop ecx
cmp esi, dword [0x1902ffd8]
jl 0x19006305
pop esi
leave
ret

Function at 0x19006361
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
push ebx
push esi
push edi
push 0x190269dc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x1902feb8], eax
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call fcn.1900a236
call fcn.190047b3
push 3
call fcn.19004207
push 0x28
mov dword [0x1902fe7c], eax
call fcn.19004207
push 2
mov dword [0x1902febc], eax
call fcn.19004207
push 5
mov dword [0x1902fe78], eax
call fcn.19004207
push 0x15
mov dword [0x1902fe84], eax
call fcn.19004207
push 0x16
mov dword [0x1902fe88], eax
call fcn.19004207
push 0x17
mov dword [0x1902fe8c], eax
call fcn.19004207
add esp, 0x1c
mov dword [0x1902fe94], eax
xor ebx, ebx
mov dword [0x1902fe90], ebx
mov esi, ebx
mov dword [0x1902fe80], ebx
push ebx
push esi
lea eax, [ebp - 0x268]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x19006455
push esi
lea eax, [ebp - 0x5c]
push str.SfxFolder_02d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
push 1
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.19005730
add esp, 0x18
mov edi, ebx
cmp dword [edi + 0x1902f3c4], esi
jne 0x1900644d
push ebx
lea eax, [ebp - 0x268]
push eax
push dword [edi + 0x1902f3c8]
call fcn.19005730
add esp, 0xc
add edi, 8
cmp edi, 0x28
jb 0x1900642f
inc esi
cmp esi, 0x40
jl 0x190063f4
pop edi
pop esi
pop ebx
leave
ret
Function at 0x190075fb
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push eax
call fcn.1901b6c6
mov ecx, dword [ebp + 8]
push eax
mov dword [ecx], eax
call fcn.19007526
add esp, 0x1c
leave
ret
Function at 0x19008b8a
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4d0
push ebx
push esi
push edi
lea eax, [ebp - 0x10]
mov esi, 0x4b6
push eax
push esi
mov edi, ecx
call fcn.190082e6
mov eax, dword [ebp - 4]
mov ecx, edi
sub eax, dword [ebp - 0xc]
push 1
add eax, 2
push esi
mov dword [edi + 0x58], eax
call fcn.19009bb8
push 1
lea ebx, [esi + 1]
mov ecx, edi
push ebx
call fcn.19009bb8
mov esi, 0x2b4
lea eax, [ebp - 0x2c4]
push esi
push 0
push eax
call fcn.190158f0
add esp, 0xc
lea eax, [ebp - 0x4d0]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x103
push esi
lea eax, [ebp - 0x2c4]
push eax
push 0
lea eax, [ebp - 0x4d0]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [ebp - 0x2c4]
push ebx
push dword [edi + 4]
mov dword [edi + 0x50], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x19007c40
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, edi
mov dword [edi + 0x54], eax
call fcn.1900861c
mov ecx, edi
mov esi, eax
call fcn.19009692
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x19009b69
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
call fcn.190083c9
test eax, eax
jne 0x19009b87
push eax
push eax
push esi
push 0x19009da4
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
ret
push dword [0x1902fe78]
mov ecx, esi
push dword [esi + 4]
call fcn.19009897
push 0x2d
call fcn.19004207
pop ecx
push eax
push 0x4b2
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
mov ecx, esi
call fcn.19009897
pop esi
ret

Function at 0x1900a236
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
push esi
push 8
mov ecx, edx
pop esi
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor ecx, eax
sub esi, 1
jne 0x1900a23e
mov dword [edx*4 + 0x19032ce0], ecx
inc edx
cmp edx, 0x100
jb 0x1900a239
mov esi, 0x800
jmp 0x1900a286
mov ecx, dword [edx*4 + 0x190328e0]
movzx eax, cl
shr ecx, 8
xor ecx, dword [eax*4 + 0x19032ce0]
mov dword [edx*4 + 0x19032ce0], ecx
inc edx
cmp edx, esi
jb 0x1900a26a
mov eax, 0x19024970
mov esi, 0x19024890
mov dword [0x19032cc0], eax
mov dword [0x19032cb8], eax
mov dword [0x19032cbc], esi
call fcn.1900fca2
mov ecx, dword [0x19032cb8]
test eax, eax
cmove ecx, esi
mov dword [0x19032cb8], ecx
pop esi
ret
Function at 0x1900fff8
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1901001e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1901001e
xor al, al
jmp 0x19010032
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4

Function at 0x190132d1
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
xor esi, esi
lea ecx, [edi + 0x1c]
shr edi, 2
mov eax, edi
mov dword [ebp - 0xc], ecx
shr eax, 1
add eax, 3
mov dword [ebx], eax
add ebx, 0x10
test edi, edi
je 0x19013307
mov eax, dword [edx]
lea edx, [edx + 4]
mov dword [ebx + esi*4], eax
inc esi
cmp esi, edi
jb 0x190132fa
cmp esi, ecx
jae 0x190133ea
mov eax, esi
sub eax, edi
lea eax, [ebx + eax*4]
mov dword [ebp - 4], eax
xor edx, edx
mov ecx, dword [ebx + esi*4 - 4]
mov eax, esi
mov dword [ebp + 8], ecx
div edi
mov dword [ebp - 8], eax
test edx, edx
jne 0x19013380
movzx ecx, cl
movzx edx, byte [ecx + str.cw]
mov ecx, dword [ebp + 8]
shr ecx, 0x18
shl edx, 8
movzx eax, byte [ecx + str.cw]
mov ecx, dword [ebp + 8]
or edx, eax
mov eax, ecx
shl edx, 8
shr eax, 0x10
movzx eax, al
shr ecx, 8
movzx eax, byte [eax + str.cw]
or edx, eax
movzx eax, cl
shl edx, 8
movzx ecx, byte [eax + str.cw]
mov eax, dword [ebp - 8]
movzx eax, byte [eax + 0x19027310]
xor ecx, eax
or ecx, edx
jmp 0x190133d0
cmp edi, 6
jbe 0x190133d0
cmp edx, 4
jne 0x190133d0
mov edx, dword [ebp + 8]
mov eax, ecx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
or ecx, eax
mov eax, edx
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
mov edx, dword [ebp - 4]
mov eax, dword [edx]
add edx, 4
xor eax, ecx
mov dword [ebp - 4], edx
mov dword [ebx + esi*4], eax
inc esi
cmp esi, dword [ebp - 0xc]
jb 0x19013319
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x19013f16
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x20], 0
and dword [eax + 0x24], 0
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
pop ebp
ret

Function at 0x1901fa00
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1901f6a2
Function at 0x408920
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x4085d8
call fcn.00408937
xor dword [ebx], edi
dec esi
and esi, ecx
inc ebx
cmp ebx, edx
jne fcn.00408920
ret

Function at 0x16a59f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.FKP1
lea edi, [esi - 0x1272000]
push edi
or ebp, 0xffffffff
jmp 0x16a5a12
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x16a5a19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16a5a08
mov eax, 1
add ebx, ebx
jne 0x16a5a2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x16a5a3c
jne 0x16a5a5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16a5a5b
dec eax
add ebx, ebx
jne 0x16a5a48
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x16a5a20
add ebx, ebx
jne 0x16a5a57
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x16a5aad
xor ecx, ecx
sub eax, 3
jb 0x16a5a73
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x16a5ae2
sar eax, 1
mov ebp, eax
jmp 0x16a5a7e
add ebx, ebx
jne 0x16a5a7e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16a5a4c
inc ecx
add ebx, ebx
jne 0x16a5a8c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16a5a4c
add ebx, ebx
jne 0x16a5a99
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x16a5a8e
jne 0x16a5aaa
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x16a5a8e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x16a5acc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x16a5abe
jmp 0x16a5a0e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x16a5acc
add edi, ecx
jmp 0x16a5a0e
pop esi
mov edi, esi
mov ecx, 0x34f3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x16a5aea
cmp byte [edi], 0x16
jne 0x16a5aea
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 0x16a5aef
lea edi, [esi + 0x12a2000]
mov eax, dword [edi]
or eax, eax
je 0x16a5b5e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12a67a0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12a6890]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x16a5b1c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12a6894]
or eax, eax
je 0x16a5b58
mov dword [ebx], eax
add ebx, 4
jmp 0x16a5b39
call dword [esi + 0x12a68a4]
mov ebp, dword [esi + 0x12a6898]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x16a5b92
sub esp, 0xffffff80
jmp 0x46c1ac
Function at 0x409958
Capabilities:
Hash data with crc32

Disassembly:
push ebp
cmp dword [0x47d244], 0
mov ebp, esp
push esi
mov edx, dword [ebp + 0xc]
push ebx
jne 0x409995
xor ecx, ecx
mov eax, ecx
mov ebx, 8
mov esi, eax
shr esi, 1
and eax, 1
je 0x409980
mov eax, 0xedb88320
xor eax, esi
dec ebx
jne 0x409972
mov dword [ecx*4 + 0x47d240], eax
inc ecx
cmp ecx, 0x100
jne 0x40996b
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
not eax
add ebx, edx
cmp edx, ebx
je 0x4099b7
mov cl, byte [edx]
inc edx
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x47d240]
jmp 0x40999f
pop ebx
not eax
pop esi
pop ebp
ret 0xc
Function at 0x10005020
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10005039
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10005076
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x10005072
nop word [eax + eax]
cmp esi, edx
jae 0x10005076
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x10005060
cmp esi, edx
jb 0x1000507d
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x10005b20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005556a
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x1007000c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x28], esi
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x2c], esi
call fcn.1001a55b
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x10005be0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.std::exception.0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.bad_locale_name
xorps xmm0, xmm0
mov byte [ebp - 0x14], 1
push eax
movq qword [ebp - 0x20], xmm0
call fcn.10034572
add esp, 8
mov dword [ebp - 0x24], vtable.std::runtime_error.0
lea eax, [ebp - 0x24]
push 0x1006e4f4
push eax
call fcn.10035256
push edi
push esi
call fcn.1001a90d
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100193f0
mov esp, ebp
pop ebp
ret 4
Function at 0x10007b10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100556c8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x1007000c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x10007c3e
cmp byte [ebx + 0x3d], 0
je 0x10007c3e
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x10007b69
xor al, al
jmp 0x10007c40
push 0
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.10007890
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x10007bcf
sub eax, 1
je 0x10007bd3
mov ecx, dword [ebp - 0x14]
sub eax, 2
je 0x10007c26
xor bl, bl
jmp 0x10007c28
mov byte [ebx + 0x3d], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x10007c08
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.1003b2b7
mov ecx, dword [ebp - 0x14]
add esp, 0x10
cmp esi, eax
jne 0x10007bcb
cmp byte [ebx + 0x3d], 0
je 0x10007c26
test esi, esi
jne 0x10007b91
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.10007960
jmp 0x10007b8e
mov bl, 1
cmp ecx, 0x10
jb 0x10007c3a
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.10007d60
mov al, bl
jmp 0x10007c40
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100193f0
mov esp, ebp
pop ebp
ret
Function at 0x1000e7b0
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0x3c
mov esi, ecx
push 0
push esi
call fcn.10034c30
mov edi, dword [ebp + 8]
lea eax, [esi + 0x3c]
mov dword [esi + 0x10], eax
add esp, 0xc
lea eax, [esi + 0x13c]
mov dword [esi], 0x3c
mov dword [esi + 0x14], 0x100
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], 0x800
cmp dword [edi + 0x14], 0x10
jb 0x1000e7f4
mov eax, dword [edi]
jmp 0x1000e7f6
mov eax, edi
push esi
push 0
push dword [edi + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
mov dword [esi + 0x93c], eax
test eax, eax
je 0x1000e829
lea ecx, [esi + 0x94c]
cmp ecx, edi
je 0x1000e821
push 0xffffffffffffffff
push 0
push edi
call fcn.1000bd50
pop edi
mov al, 1
pop esi
pop ebp
ret 4
pop edi
xor al, al
pop esi
pop ebp
ret 4

Function at 0x1000f350
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10055438
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x1007000c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
call fcn.10005350
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1000f44e
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1000f44e
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0xb7
je 0x1000f44e
mov eax, dword [ebp - 0x14]
cmp dword [eax - 4], 1
jle 0x1000f3de
push dword [eax - 0xc]
lea ecx, [ebp - 0x14]
call fcn.100054b0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [ebp - 0x14]
push dword [eax - 8]
push eax
call fcn.10037d84
mov edx, eax
add esp, 8
test edx, edx
js 0x1000f444
mov ecx, dword [ebp - 0x14]
cmp edx, dword [ecx - 8]
jg 0x1000f444
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x14]
mov word [eax + edx*2], cx
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], ecx
jne 0x1000f41a
xor esi, esi
jmp 0x1000f453
mov ecx, dword [ebp - 0x14]
call fcn.1000f350
test eax, eax
jne 0x1000f42a
xor esi, esi
jmp 0x1000f453
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1000f44e
call edi
cmp eax, 0xb7
je 0x1000f44e
xor esi, esi
jmp 0x1000f453
push 0x80070057
call fcn.100055d0
mov esi, 1
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edi, dword [ebp - 0x14]
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x1000f475
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100193f0
mov esp, ebp
pop ebp
ret
Function at 0x10011f40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10056216
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x1007000c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.100199b7
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.1001a80a
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100131c0
Capabilities:
Create thread

Disassembly:
push esi
push edi
push 0xc
mov esi, edx
mov edi, ecx
call fcn.100199b7
add esp, 4
test eax, eax
jne 0x100131d7
pop edi
pop esi
ret
push 0
push 0
push eax
push 0x10014000
push 0
push 0
mov dword [eax], edi
mov dword [eax + 8], 0
mov dword [eax + 4], esi
call fcn.1003c56e
add esp, 0x18
pop edi
pop esi
ret

Function at 0x10046a07
Capabilities:
Read file on windows

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

Function at 0x1004a054
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10049d14
Function at 0x401030
Capabilities:
Delete file
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [ebp + 8]
mov ecx, dword [0x425058]
mov edx, dword [0x42505c]
push ebx
push esi
push edi
mov edi, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 8], eax
xor esi, esi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], edx
call fcn.00401020
mov ebx, dword [ebp - 0x18]
mov eax, dword [0x425060]
mov ecx, dword [0x425064]
add ebx, 0x23f
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x20], 0x20
jmp 0x401092
xor esi, esi
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov ecx, dword [0x846f4c]
mov eax, edi
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x4010ec
push esi
lea edx, [ebp - 0x38]
push edx
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_PurgeComm]
xor eax, eax
xor ecx, ecx
lea edx, [ebp - 0x3c]
push edx
mov word [ebp - 0x1c], ax
mov word [ebp - 0x1a], cx
mov eax, dword [ebp - 0x1c]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
mov eax, dword [ebp - 4]
mov ecx, dword [0x846f4c]
add eax, dword [ebp - 0x24]
mov dword [ebp - 4], eax
cmp ecx, 0xfa9
jne 0x401106
mov dword [0x846f48], 0xedeb2e40
jmp 0x401122
cmp ecx, 0x3eb
jne 0x401122
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [0x8468fc], esi
lea ecx, [ebx + edi]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0xc]
mov edx, edi
shr edx, cl
mov dword [0x846f44], 0xf4ea3dee
add edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
mov edx, dword [ebp - 8]
shl edx, 4
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
mov dword [ebp - 0x10], esi
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
nop
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
shr esi, cl
add esi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
cmp dword [0x846f4c], 0xb03
jne 0x4011a0
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
mov eax, dword [ebp - 4]
xor eax, esi
add ebx, 0x61c88647
sub edi, eax
sub dword [ebp - 0x20], 1
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ebx
jne 0x401090
cmp dword [0x846f4c], 0xa6d
mov esi, dword [ebp + 8]
mov dword [esi], edi
jne 0x4011eb
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 8]
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 8]
pop edi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4