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

Disassembly:
cmp ecx, dword [0x1000d004]
jne 0x10002b47
repz ret
jmp fcn.1000462c

Function at 0x1000956d
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.10003fae
and dword [ebp - 4], 0
cmp dword [0x1000e654], 0
mov ebx, eax
jne 0x1000961e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x100096cf
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x100096cf
push eax
call fcn.10003f3c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1000e654], eax
call esi
push eax
call fcn.10003f3c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1000e658], eax
call esi
push eax
call fcn.10003f3c
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1000e65c], eax
call esi
push eax
call fcn.10003f3c
pop ecx
mov dword [0x1000e664], eax
test eax, eax
je 0x1000961e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10003f3c
pop ecx
mov dword [0x1000e660], eax
mov eax, dword [0x1000e660]
cmp eax, ebx
je 0x10009676
cmp dword [0x1000e664], ebx
je 0x10009676
push eax
call fcn.10003fb7
push dword [0x1000e664]
mov esi, eax
call fcn.10003fb7
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10009676
test edi, edi
je 0x10009676
call esi
test eax, eax
je 0x1000966d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1000966d
test byte [ebp - 0xc], 1
jne 0x10009676
or dword [ebp + 0x10], 0x200000
jmp 0x100096af
mov eax, dword [0x1000e658]
cmp eax, ebx
je 0x100096af
push eax
call fcn.10003fb7
pop ecx
test eax, eax
je 0x100096af
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x100096af
mov eax, dword [0x1000e65c]
cmp eax, ebx
je 0x100096af
push eax
call fcn.10003fb7
pop ecx
test eax, eax
je 0x100096af
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1000e654]
call fcn.10003fb7
pop ecx
test eax, eax
je 0x100096cf
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100096d1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x428730
Capabilities:
Encode data using add xor sub operations

Disassembly:
push edi
push esi
mov esi, edx
push ebx
mov ebx, eax
lea edi, [ebx + 0xe]
sub esp, 0x10
movzx eax, byte [eax + 0xf]
shl eax, 4
add eax, edx
mov edx, dword [eax]
mov dword [esp], edx
mov edx, dword [eax + 4]
mov dword [esp + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov eax, esp
sub edi, 1
call fcn.004286e0
movzx eax, byte [edi + 1]
shl eax, 4
add eax, esi
mov edx, dword [eax]
xor dword [esp], edx
mov edx, dword [eax + 4]
xor dword [esp + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
xor dword [esp + 8], edx
xor dword [esp + 0xc], eax
cmp ebx, edi
jne 0x428760
mov eax, esp
call fcn.004286e0
movzx edx, byte [ebx]
mov eax, dword [esp]
shl edx, 4
add esi, edx
xor eax, dword [esi]
mov dword [ebx], eax
mov eax, dword [esp + 4]
xor eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov eax, dword [esp + 8]
xor eax, dword [esi + 8]
mov dword [ebx + 8], eax
mov eax, dword [esp + 0xc]
xor eax, dword [esi + 0xc]
mov dword [ebx + 0xc], eax
add esp, 0x10
pop ebx
pop esi
pop edi
ret

Function at 0x428830
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x2c
mov dword [esp + 0x1c], ecx
mov ebp, dword [esp + 0x40]
cmp ecx, 0xf
jbe 0x4288b1
mov eax, ecx
sub eax, 0x10
and eax, 0xfffffff0
lea edi, [ebp + eax + 0x10]
mov dword [esp + 4], ebp
add ebp, 0x10
mov dword [esp + 8], 0x10
mov dword [esp], ebx
call fcn.00428e30
mov edx, esi
mov eax, ebx
call fcn.00428730
cmp ebp, edi
jne 0x428854
and dword [esp + 0x1c], 0xf
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x42888d
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x1c]
mov dword [esp + 4], edi
mov dword [esp], ebx
mov dword [esp + 8], eax
call fcn.00428e30
add esp, 0x2c
mov edx, esi
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.00428730
mov edi, ebp
jmp 0x42887d
Function at 0x428960
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
mov edi, 0x40
push esi
push ebx
sub esp, 0x2c
mov eax, dword [esp + 0x40]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [esp + 0xc], eax
add eax, 0x800
mov dword [esp + 8], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 4], 0x10
mov dword [esp], eax
call dword [esp + 0x48]
mov dword [esp + 0x1c], 7
mov ecx, pe_nt_image_headers32
and ecx, 0xfffffffe
mov esi, edi
shl ecx, 4
add ecx, dword [esp + 0x40]
shl esi, 4
add esi, dword [esp + 0x40]
mov ebx, dword [ecx + 0xc]
mov edx, dword [ecx + 8]
mov eax, ebx
shr eax, 1
and eax, 0x7f7f7f7f
mov ebp, eax
mov eax, ebx
shl eax, 0xf
and eax, 0x80808000
or eax, ebp
mov ebp, edx
shr ebp, 0x11
and ebp, 0x80
or eax, ebp
mov ebp, edx
shl edx, 0xf
mov dword [esi + 0xc], eax
shr ebp, 1
mov eax, dword [ecx + 4]
and edx, 0x80808000
and ebp, 0x7f7f7f7f
or edx, ebp
mov ebp, eax
shr ebp, 0x11
and ebp, 0x80
or edx, ebp
mov dword [esi + 8], edx
mov edx, dword [ecx]
mov ecx, eax
shl eax, 0xf
shr ecx, 1
and eax, 0x80808000
and ecx, 0x7f7f7f7f
or eax, ecx
mov ecx, edx
shr ecx, 0x11
and ecx, 0x80
or eax, ecx
mov ecx, edi
mov dword [esi + 4], eax
mov eax, edx
shl edx, 0xf
shr eax, 1
and eax, 0x7f7f7f7f
and edx, 0x80808000
shl ebx, 7
sar ebx, 0x1f
or edx, eax
shr edi, 1
and ebx, 0xe1
xor ebx, edx
sub dword [esp + 0x1c], 1
mov dword [esi], ebx
jne 0x4289b8
mov eax, dword [esp + 0x40]
mov ebp, 7
mov edi, 2
add eax, 0x10
mov dword [esp + 0x1c], eax
mov edx, edi
mov eax, dword [esp + 0x1c]
shl edx, 4
add edx, dword [esp + 0x40]
mov esi, edx
mov ecx, edx
mov ebx, dword [ecx]
xor ebx, dword [eax]
add eax, 0x10
add edx, 0x10
mov dword [edx], ebx
mov ebx, dword [ecx + 4]
xor ebx, dword [eax - 0xc]
mov dword [edx + 4], ebx
mov ebx, dword [ecx + 8]
xor ebx, dword [eax - 8]
mov dword [edx + 8], ebx
mov ebx, dword [ecx + 0xc]
xor ebx, dword [eax - 4]
mov dword [edx + 0xc], ebx
cmp esi, eax
jne 0x428a9f
add edi, edi
sub ebp, 1
jne 0x428a8e
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x429110
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, eax
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [esp + 0x44]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
test eax, eax
je 0x4292a6
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x1c]
shl eax, 3
and edi, 0xfffffffc
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x40]
neg eax
lea eax, [eax*8 + 0x20]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x44]
lea esi, [eax*4]
mov eax, dword [esp + 0x40]
lea edx, [eax - 1]
lea eax, [edi + esi]
movzx eax, byte [eax + edx]
test edx, edx
je 0x42918a
mov ecx, dword [esp + 0x40]
lea edx, [edi + ecx - 2]
lea ecx, [edi + esi - 1]
add edx, esi
movzx ebx, byte [edx]
shl eax, 8
sub edx, 1
or eax, ebx
cmp ecx, edx
jne 0x42917b
movzx ecx, byte [esp + 0x10]
mov ebx, eax
shl ebx, cl
test byte [esp + 0x44], 1
jne 0x4291cc
sub dword [esp + 0x44], 1
mov eax, dword [esp + 0x44]
sub esi, 4
movzx ecx, byte [esp + 0x14]
mov eax, dword [edi + eax*4]
mov edx, eax
shr edx, cl
mov ecx, dword [esp + 0x18]
or ebx, edx
mov edx, dword [esp + 0x44]
xor ebx, dword [ecx + edx*4]
movzx ecx, byte [esp + 0x10]
mov dword [ebp + edx*4], ebx
mov ebx, eax
shl ebx, cl
cmp dword [esp + 0x44], 2
jbe 0x429242
mov edx, dword [esp + 0x44]
lea edi, [edi + esi - 4]
mov esi, dword [edi]
movzx ecx, byte [esp + 0x14]
sub edx, 2
sub edi, 8
mov ebx, esi
shr ebx, cl
movzx ecx, byte [esp + 0x10]
shl eax, cl
movzx ecx, byte [esp + 0x14]
or ebx, eax
mov eax, dword [esp + 0x18]
xor ebx, dword [eax + edx*4 + 4]
mov dword [ebp + edx*4 + 4], ebx
mov eax, dword [edi + 4]
mov ebx, eax
shr ebx, cl
movzx ecx, byte [esp + 0x10]
shl esi, cl
or ebx, esi
mov esi, dword [esp + 0x18]
xor ebx, dword [esi + edx*4]
mov dword [ebp + edx*4], ebx
cmp edx, 2
ja 0x4291db
mov edi, dword [esp + 0x44]
lea edx, [edi - 3]
lea ecx, [edi - 2]
and edx, 0xfffffffe
sub ecx, edx
mov dword [esp + 0x44], ecx
movzx ecx, byte [esp + 0x10]
shl eax, cl
mov ebx, eax
cmp dword [esp + 0x44], 1
je 0x429266
mov dword [esp + 8], 0x6b
mov dword [esp + 4], 0x430428
mov dword [esp], 0x430448
call dword [0x44063c]
mov esi, dword [esp + 0x1c]
mov edx, 3
sub edx, dword [esp + 0x40]
movzx eax, byte [esi + edx]
je 0x429289
sub edx, 1
shl eax, 8
movzx ecx, byte [esi + edx]
or eax, ecx
test edx, edx
jne 0x429279
mov edi, dword [esp + 0x14]
mov ecx, edi
shl eax, cl
shr eax, cl
or ebx, eax
mov eax, dword [esp + 0x18]
xor ebx, dword [eax]
mov dword [ebp], ebx
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 0x4d
mov dword [esp + 4], 0x430428
mov dword [esp], 0x430442
call dword [0x44063c]
jmp 0x42912d
Function at 0x4015e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x468
mov eax, dword [0x5d3640]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x428], 1
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x401621
mov ecx, dword [ebp - 0x428]
or ecx, 0x100
mov dword [ebp - 0x428], ecx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x424], edx
mov eax, dword [ebp - 0x424]
mov dword [ebp - 0x438], eax
mov ecx, dword [ebp - 0x424]
cmp dword [ecx + 0x14], 7
jbe 0x40164e
mov dword [ebp - 0x434], 1
jmp 0x401658
mov dword [ebp - 0x434], 0
mov dl, byte [ebp - 0x434]
mov byte [ebp - 0x41d], dl
movzx eax, byte [ebp - 0x41d]
test eax, eax
je 0x401689
mov ecx, dword [ebp - 0x424]
mov edx, dword [ecx]
mov dword [ebp - 0x444], edx
mov eax, dword [ebp - 0x444]
mov dword [ebp - 0x438], eax
mov ecx, dword [ebp - 0x438]
mov dword [ebp - 0x448], ecx
mov edx, dword [ebp - 0x448]
mov dword [ebp - 0x44c], edx
lea eax, [ebp - 0x430]
push eax
mov ecx, dword [ebp - 0x428]
push ecx
push 0
mov edx, dword [ebp - 0x44c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4016ce
or eax, 0xffffffff
jmp 0x4017fc
mov dword [ebp - 0x45c], 1
push 0x400
push 0
lea ecx, [ebp - 0x404]
push ecx
call fcn.0051f6b0
add esp, 0xc
mov dword [ebp - 0x458], 0x400
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x42c], edx
mov eax, dword [ebp - 0x42c]
mov dword [ebp - 0x440], eax
mov ecx, dword [ebp - 0x42c]
cmp dword [ecx + 0x14], 7
jbe 0x401725
mov dword [ebp - 0x43c], 1
jmp 0x40172f
mov dword [ebp - 0x43c], 0
mov dl, byte [ebp - 0x43c]
mov byte [ebp - 0x41e], dl
movzx eax, byte [ebp - 0x41e]
test eax, eax
je 0x401760
mov ecx, dword [ebp - 0x42c]
mov edx, dword [ecx]
mov dword [ebp - 0x450], edx
mov eax, dword [ebp - 0x450]
mov dword [ebp - 0x440], eax
mov ecx, dword [ebp - 0x440]
mov dword [ebp - 0x454], ecx
mov edx, dword [ebp - 0x454]
mov dword [ebp - 0x460], edx
lea eax, [ebp - 0x458]
push eax
lea ecx, [ebp - 0x404]
push ecx
lea edx, [ebp - 0x45c]
push edx
push 0
mov eax, dword [ebp - 0x460]
push eax
mov ecx, dword [ebp - 0x430]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x464], eax
mov edx, dword [ebp - 0x430]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x464], 0
jne 0x4017f7
lea eax, [ebp - 0x404]
push eax
lea ecx, [ebp - 0x41c]
call fcn.00404440
mov dword [ebp - 0x468], eax
mov ecx, dword [ebp - 0x468]
push ecx
mov ecx, dword [ebp + 0x14]
call fcn.004047e0
lea ecx, [ebp - 0x41c]
call fcn.00405e70
xor eax, eax
jmp 0x4017fc
mov eax, 0xfffffffe
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00510479
mov esp, ebp
pop ebp
ret
Function at 0x401910
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x5d3640]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x214], 0
push 0x208
push 0
lea eax, [ebp - 0x20c]
push eax
call fcn.0051f6b0
add esp, 0xc
mov dword [ebp - 0x230], 1
mov dword [ebp - 0x22c], 0x103
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x218], ecx
mov edx, dword [ebp - 0x218]
mov dword [ebp - 0x220], edx
mov eax, dword [ebp - 0x218]
cmp dword [eax + 0x14], 7
jbe 0x401984
mov dword [ebp - 0x21c], 1
jmp 0x40198e
mov dword [ebp - 0x21c], 0
mov cl, byte [ebp - 0x21c]
mov byte [ebp - 0x20d], cl
movzx edx, byte [ebp - 0x20d]
test edx, edx
je 0x4019bf
mov eax, dword [ebp - 0x218]
mov ecx, dword [eax]
mov dword [ebp - 0x224], ecx
mov edx, dword [ebp - 0x224]
mov dword [ebp - 0x220], edx
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x228], eax
mov ecx, dword [ebp - 0x228]
mov dword [ebp - 0x234], ecx
lea edx, [ebp - 0x22c]
push edx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x230]
push ecx
push 0
mov edx, dword [ebp - 0x234]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401a28
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00404440
mov edx, dword [ebp - 0x214]
or edx, 1
mov dword [ebp - 0x214], edx
mov eax, dword [ebp + 8]
jmp 0x401a47
push 0x579c50
mov ecx, dword [ebp + 8]
call fcn.00404440
mov eax, dword [ebp - 0x214]
or eax, 1
mov dword [ebp - 0x214], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00510479
mov esp, ebp
pop ebp
ret
Function at 0x405b00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x405b24
xor eax, eax
jmp 0x405ba4
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x405b3b
xor eax, eax
jmp 0x405ba4
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x405b87
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x405b87
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x405b5e
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x405b93
xor eax, eax
jmp 0x405ba4
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x405ba1
xor eax, eax
jmp 0x405ba4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x406a10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56a8a0
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x5d3640]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x250], 0
push 0x57a374
lea ecx, [ebp - 0x234]
call fcn.00404440
mov dword [ebp - 4], 0
push 0x20a
push 0
lea eax, [ebp - 0x21c]
push eax
call fcn.0051f6b0
add esp, 0xc
push 0
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x21c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x406ac0
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x24c]
call fcn.00404440
mov dword [ebp - 0x254], eax
mov ecx, dword [ebp - 0x254]
push ecx
lea ecx, [ebp - 0x234]
call fcn.004047e0
lea ecx, [ebp - 0x24c]
call fcn.00405e70
lea edx, [ebp - 0x234]
push edx
mov ecx, dword [ebp + 8]
call fcn.004042e0
mov eax, dword [ebp - 0x250]
or eax, 1
mov dword [ebp - 0x250], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x234]
call fcn.00405e70
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00510479
mov esp, ebp
pop ebp
ret
Function at 0x408340
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov ecx, dword [ebp + 8]
call fcn.00405cb0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4083c5
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
cmp dword [eax + 0x14], 7
jbe 0x40837e
mov dword [ebp - 0xc], 1
jmp 0x408385
mov dword [ebp - 0xc], 0
mov cl, byte [ebp - 0xc]
mov byte [ebp - 1], cl
movzx edx, byte [ebp - 1]
test edx, edx
je 0x4083a1
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
and eax, 0x10
je 0x4083c5
mov dword [ebp - 0x14], 1
jmp 0x4083cc
mov dword [ebp - 0x14], 0
movzx eax, byte [ebp - 0x14]
mov esp, ebp
pop ebp
ret

Function at 0x4083e0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov ecx, dword [ebp + 8]
call fcn.00405cb0
mov dword [ebp - 0x14], eax
push 0
mov eax, dword [ebp - 0x14]
push eax
call fcn.005291cc
add esp, 8
cmp eax, 0xffffffff
jne 0x40845d
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
cmp dword [eax + 0x14], 7
jbe 0x408422
mov dword [ebp - 0xc], 1
jmp 0x408429
mov dword [ebp - 0xc], 0
mov cl, byte [ebp - 0xc]
mov byte [ebp - 1], cl
movzx edx, byte [ebp - 1]
test edx, edx
je 0x408445
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
push edx
call fcn.0052b189
add esp, 4
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x408470
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5d3640]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x211], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x230], ecx
cmp dword [ebp - 0x230], 0
je 0x408658
xor edx, edx
mov dword [ebp - 0x264], edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 0x25c], edx
mov dword [ebp - 0x258], edx
mov dword [ebp - 0x254], edx
mov dword [ebp - 0x250], edx
mov dword [ebp - 0x24c], edx
mov word [ebp - 0x248], dx
mov eax, 0x614
mov word [ebp - 0x254], ax
push 0x20a
push 0
lea ecx, [ebp - 0x210]
push ecx
call fcn.0051f6b0
add esp, 0xc
mov edx, dword [ebp + 8]
mov dword [ebp - 0x218], edx
mov eax, dword [ebp - 0x218]
mov dword [ebp - 0x220], eax
mov ecx, dword [ebp - 0x218]
cmp dword [ecx + 0x14], 7
jbe 0x408525
mov dword [ebp - 0x21c], 1
jmp 0x40852f
mov dword [ebp - 0x21c], 0
mov dl, byte [ebp - 0x21c]
mov byte [ebp - 0x212], dl
movzx eax, byte [ebp - 0x212]
test eax, eax
je 0x408560
mov ecx, dword [ebp - 0x218]
mov edx, dword [ecx]
mov dword [ebp - 0x234], edx
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x220], eax
mov ecx, dword [ebp - 0x220]
mov dword [ebp - 0x238], ecx
mov edx, dword [ebp - 0x238]
mov dword [ebp - 0x23c], edx
mov eax, dword [ebp - 0x23c]
push eax
push 0x105
lea ecx, [ebp - 0x210]
push ecx
call fcn.0052b125
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x240], eax
mov ecx, dword [ebp - 0x240]
shl ecx, 1
mov dword [ebp - 0x224], ecx
cmp dword [ebp - 0x224], 0x20a
jae 0x4085bb
jmp 0x4085c0
call fcn.005105cc
xor edx, edx
mov eax, dword [ebp - 0x224]
mov word [ebp + eax - 0x210], dx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x244], edx
mov eax, dword [ebp - 0x244]
lea ecx, [eax + eax + 2]
mov dword [ebp - 0x228], ecx
cmp dword [ebp - 0x228], 0x20a
jae 0x4085fa
jmp 0x4085ff
call fcn.005105cc
xor edx, edx
mov eax, dword [ebp - 0x228]
mov word [ebp + eax - 0x210], dx
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x25c], ecx
mov dword [ebp - 0x260], 3
lea edx, [ebp - 0x264]
push edx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
jne 0x408642
mov dword [ebp - 0x22c], 1
jmp 0x40864c
mov dword [ebp - 0x22c], 0
mov al, byte [ebp - 0x22c]
mov byte [ebp - 0x211], al
mov al, byte [ebp - 0x211]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00510479
mov esp, ebp
pop ebp
ret
Function at 0x408970
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56aacd
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5d3640]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
mov dword [edx], 0
mov eax, dword [ebp - 0x18]
mov dword [eax + 4], 0
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 8], 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.DLL_GetLogicalDrives]
mov dword [ebp - 0x14], eax
mov edx, 0x41
mov word [ebp - 0x10], dx
cmp dword [ebp - 0x14], 0
je 0x408a0e
mov eax, dword [ebp - 0x14]
and eax, 1
je 0x4089f8
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00409fa0
mov edx, dword [ebp - 0x14]
shr edx, 1
mov dword [ebp - 0x14], edx
mov ax, word [ebp - 0x10]
add ax, 1
mov word [ebp - 0x10], ax
jmp 0x4089de
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040c4a0
mov edx, dword [ebp - 0x1c]
or edx, 1
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0040f420
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x40bdc0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56ae30
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x5d3640]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 8], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0xc], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x14], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x18], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x1c], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x20], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x24], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x28], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x2c], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x30], 0
push 8
call fcn.0049658d
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40bea2
mov dword [ebp - 4], 0
push 1
call fcn.0050ee2f
add esp, 4
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 4], eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x18], edx
jmp 0x40bea9
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x34], ecx
mov ecx, dword [ebp - 0x10]
call fcn.0040e960
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret