joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10031373
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100313af
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100313af
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x100313af
xor eax, eax
cmp dword [ecx + 0x74], 0xe
jbe 0x100313ae
cmp dword [ecx + 0xe8], eax
setne al
ret
xor eax, eax
ret

Function at 0x10068350
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x24
mov eax, 0x100da940
call fcn.10021e72
mov ebx, ecx
mov dword [ebp - 0x30], ebx
mov edx, dword [ebx + 0x30]
lea eax, [edx + 1]
mov dword [ebx + 0x30], eax
test edx, edx
jne 0x1006846c
cmp dword [ebx + 0x1c], edx
mov ecx, dword [ebx + 0x14]
setne al
mov byte [ebp - 0x29], al
cmp dword [ebx + 0x18], edx
jne 0x1006843c
test al, al
sete al
movzx eax, al
push eax
push dword [ebx + 0x28]
push dword [ebx + 0x24]
call sym.MSVCR120.dll_clogf
cmp byte [ebp - 0x29], 0
jne 0x10068448
call dword [sym.imp.kernel32.dll_GetCurrentThread]
mov ebx, eax
lea ecx, [ebp - 0x28]
push ebx
call sym.MSVCR120.dll_clogf
mov edx, dword [ebp - 0x30]
lea edi, [ebp - 0x1c]
push ebx
mov cx, word [eax + 4]
mov word [edx + 0xc], cx
mov ecx, dword [eax]
mov dword [edx + 8], ecx
mov ecx, dword [edx + 0x14]
imul edx, dword [edx + 0x24], 0x34
mov eax, dword [ecx + 0x10]
movzx ecx, word [edx + eax + 0xc]
mov esi, dword [edx + eax]
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov word [ebp - 0x18], cx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], esi
call sym.MSVCR120.dll_clogf
mov ebx, dword [ebp - 0x30]
push ebx
mov ecx, dword [ebx + 0x14]
call sym.MSVCR120.dll_clogf
mov edi, dword [ebx + 0x14]
lea esi, [edi + 0x20]
push esi
mov dword [ebp - 0x30], esi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
and dword [ebp - 4], 0
mov ecx, ebx
mov eax, dword [ebx]
call dword [eax]
imul ecx, dword [ebx + 0x28], 0x34
imul edx, eax, 0x34
mov eax, dword [edi + 0x10]
push ebx
add ecx, 0xc
mov eax, dword [edx + eax + 0x30]
add ecx, eax
call sym.MSVCR120.dll_clogf
or dword [ebp - 4], 0xffffffff
push esi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
jmp 0x10068448
push ebx
add ecx, 0xc4
call sym.MSVCR120.dll_clogf
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x70]
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
push ebx
push esi
mov dword [ebx + 0x20], eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
test eax, eax
jne 0x1006846c
call sym.MSVCR120.dll_clogf
call fcn.10021eea
ret
Function at 0x10070f7c
Capabilities:
Get thread local storage value

Disassembly:
push 4
mov eax, 0x100da5f0
call fcn.100157c2
mov ebx, ecx
mov eax, dword [ebx + 0xc]
push dword [eax + 0x70]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x1007103b
push 0
pop edi
and eax, 3
je 0x10070fc4
cmp eax, 1
jne 0x10070fcd
and esi, 0xfffffffe
mov esi, dword [esi + 0x10]
add esi, 8
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x10070fc4
mov al, byte [eax + 0x44]
test al, al
jne 0x1007103b
mov ecx, esi
call fcn.10068350
jmp 0x10071002
and esi, 0xfffffffd
lea ecx, [esi + 4]
mov eax, dword [ecx]
mov dword [ebp - 0x10], ecx
call dword [eax + 0x10]
mov esi, dword [esi + 0x20]
mov eax, dword [esi + 0x2c]
add esi, 0x10
test eax, eax
je 0x10070ff3
mov al, byte [eax + 0x44]
test al, al
je 0x10070ff3
mov esi, edi
jmp 0x10070ffa
mov ecx, esi
call fcn.10068350
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x14]
test esi, esi
je 0x1007103b
cmp dword [esi + 0x14], ebx
je 0x10071035
push 0x3c
call sym.MSVCR120.dll_clogf
pop ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], edi
test eax, eax
je 0x10071028
push esi
push ebx
mov ecx, eax
call sym.MSVCR120.dll_clogf
mov edi, eax
or dword [ebp - 4], 0xffffffff
mov ecx, edi
call fcn.10068350
jmp 0x10071037
mov edi, esi
mov eax, edi
jmp 0x1007103d
xor eax, eax
call fcn.100157f5
ret

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

Disassembly:
push 4
mov eax, 0x100db7e8
call fcn.100157c2
mov edi, ecx
mov dword [ebp - 0x10], edi
or dword [edi + 4], 0xfffffff
lea ecx, [edi + 0x3c]
xor esi, esi
mov dword [edi + 8], esi
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], 0x80000000
mov dword [edi + 0x18], esi
mov dword [edi + 0x38], esi
call sym.MSVCR120.dll_public:_void___thiscall_Concurrency::event::constructor_void_
mov dword [ebp - 4], esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x64]
mov dword [edi + 0x64], eax
xor eax, eax
mov dword [edi + 0x6c], eax
mov dword [edi + 0x78], eax
mov dword [edi + 0x84], eax
mov dword [edi + 0x88], eax
call sym.MSVCR120.dll_clogf
mov dword [edi + 0xc], eax
mov eax, dword [eax + 0x34]
mov dword [edi], eax
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
test eax, eax
je 0x10073fe8
cmp eax, 2
je 0x10073fe8
xor edx, edx
add eax, 4
inc edx
lock xadd dword [eax], edx
mov ecx, edi
call fcn.10074d68
lea ecx, [edi + 0x3c]
call sym.MSVCR120.dll_public:_void___thiscall_Concurrency::event::set_void_
cmp byte [ebp + 0xc], 0
je 0x10074029
mov edx, dword [edi + 0x64]
mov ecx, edi
add edx, 0x68
mov esi, dword [edx]
mov eax, esi
mov dword [edi + 0x68], esi
lock cmpxchg dword [edx], ecx
jmp 0x10074023
mov dword [edi + 0x68], eax
mov esi, eax
mov ecx, dword [edi + 0x64]
mov edx, edi
add ecx, 0x68
lock cmpxchg dword [ecx], edx
cmp eax, esi
je 0x10074031
jmp 0x10074012
or dword [edi + 0x78], 1
and dword [edi + 0x68], 0
call fcn.1001ffa7
mov esi, eax
cmp dword [esi + 0x20], 0
jne 0x10074045
mov ecx, esi
call fcn.10065b8a
mov eax, dword [esi + 0x20]
mov eax, dword [eax + 0x40]
and dword [edi + 4], 0xfffffff
mov dword [edi + 0x80], eax
mov eax, edi
call fcn.100157f5
ret 8
Function at 0x10075d62
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x100de7b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x100e3510]
test dword [ebp + 8], eax
je 0x10075dfc
mov edx, dword [ebp + 0xc]
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp - 0x808]
call sym.MSVCR120.dll_clogf
xor eax, eax
mov word [ebp - 8], ax
mov eax, dword [0x100dfd60]
pop ecx
test eax, eax
je 0x10075def
push esi
push edi
lea ecx, [ebp - 0x808]
push ecx
push eax
call sym.MSVCR120.dll_fwprintf
mov edi, dword [0x100e3524]
mov esi, dword [0x100e3520]
pop ecx
pop ecx
push 0
push 0x32
push edi
push esi
call fcn.10032225
add esi, 1
mov dword [0x100e3520], esi
adc edi, 0
or eax, edx
mov dword [0x100e3524], edi
pop edi
pop esi
jne 0x10075dfc
push dword [0x100dfd60]
call sym.MSVCR120.dll_fflush
pop ecx
jmp 0x10075dfc
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10010cbc
mov esp, ebp
pop ebp
ret

Function at 0x100c594d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x100c595c
pop dword [ebp - 0x1c]
mov eax, 0xaa8d60f3
sub eax, 0x9a810797
sub dword [ebp - 0x1c], eax
push 0x40
push 0x1000
push 0x62729
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x1c]
call dword [eax]
mov ecx, 0x742ecb33
add ecx, 0x8bd1912a
mov edi, eax
mov ebx, 0x5e16f19b
add ebx, 0xb1f7dc65
add ebx, dword [ebp - 0x1c]
mov edx, 0x3be42da3
sub edx, 0xa207dabf
sub dword [ebp - 4], 0xa99e171
mov esi, dword [ebx]
sub dword [ebp - 0x18], ecx
xor esi, edx
mov dword [edi], esi
mov dword [ebp - 0x18], 0x32b33d55
add edi, 4
add ebx, 4
loop 0x100c59b6
add eax, 0x9083a391
sub eax, 0x90823f4a
mov ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x67642480
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test byte [0x67644028], 1
jne 0x67642490
xor eax, eax
ret 4
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x20
mov eax, dword [ebp + 8]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.__s_:_stub__n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.MprAdminIsServiceRunning
mov dword [esp + 4], 0x67644028
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
xor eax, eax
leave
ret 4
Function at 0x67642f20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x67642f7b
cmp byte [esi + ebx - 1], 0xa
je 0x67642f4f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x67644118], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x1001bd34
Capabilities:
Log keystrokes

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
xor ebx, ebx
push edi
mov edi, ecx
push 5
pop eax
push ebx
mov dword [edi], eax
mov dword [edi + 4], eax
mov word [edi + 8], 1
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
push 0x5b
mov dword [edi + 0xc], 4
call esi
push ebx
push 0x10
mov byte [edi + 0x29], al
call esi
push ebx
push 0xa0
mov byte [edi + 0x26], al
call esi
push ebx
push 0xa1
mov byte [edi + 0x27], al
call esi
push ebx
push 0x11
mov byte [edi + 0x28], al
call esi
push ebx
push 0x12
mov byte [edi + 0x24], al
call esi
mov byte [edi + 0x25], al
pop edi
pop esi
pop ebx
ret
Function at 0x45fdf0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x3e000]
push edi
jmp 0x45fe0a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x45fe11
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x45fe00
mov eax, 1
add ebx, ebx
jne 0x45fe23
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x45fe18
jne 0x45fe34
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x45fe18
xor ecx, ecx
sub eax, 3
jb 0x45fe48
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x45feba
mov ebp, eax
add ebx, ebx
jne 0x45fe53
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x45fe60
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x45fe84
inc ecx
add ebx, ebx
jne 0x45fe70
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x45fe65
jne 0x45fe81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x45fe65
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x45fea4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x45fe95
jmp 0x45fe06
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x45fea4
add edi, ecx
jmp 0x45fe06
pop esi
lea edi, [esi + 0x5d000]
mov eax, dword [edi]
or eax, eax
je 0x45ff03
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x65bac]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x65c18]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x45fec1
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x65c20]
or eax, eax
je 0x45fefd
mov dword [ebx], eax
add ebx, 4
jmp 0x45fede
call dword [esi + 0x65c1c]
mov ebp, dword [esi + 0x65c24]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
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 0x45ff37
sub esp, 0xffffff80
jmp 0x401a60
Function at 0x401660
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi]
mov ecx, dword [esi + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40167c
xor al, al
pop esi
pop ecx
ret 4
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x401692
pop ebx
xor al, al
pop esi
pop ecx
ret 4
mov edx, dword [esi]
mov eax, dword [esi + 4]
push edi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x14]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4016e9
push 0
lea edx, [esp + 0x10]
push edx
push edi
push ebx
push esi
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
jne 0x4016f2
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
xor al, al
pop esi
pop ecx
ret 4
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
test eax, eax
pop ebx
setne al
pop esi
pop ecx
ret 4

Function at 0x4019b0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [section..data]
sub esp, 0x208
push ebx
push esi
push edi
test eax, eax
jne 0x401a37
push 0x206
push eax
lea eax, [esp + 0x16]
push eax
call fcn.00401e60
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
add esp, 0xc
xor esi, esi
jmp 0x4019f0
mov eax, dword [esi + 0x401250]
push 0x104
lea edx, [esp + 0x10]
push edx
xor ecx, ecx
push eax
mov word [esp + 0x18], cx
call edi
dec eax
cmp eax, 0x103
ja 0x401a24
push 8
push 0
lea ecx, [esp + 0x14]
push ecx
call ebx
mov dword [section..data], eax
jmp 0x401a29
mov eax, dword [section..data]
test eax, eax
jne 0x401a37
add esi, 4
cmp esi, 0xc
jb 0x4019f0
jmp 0x401a6f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401244
push eax
call esi
mov edx, dword [section..data]
push 0x401238
push edx
mov dword [0x404004], eax
call esi
mov dword [0x404008], eax
mov eax, dword [section..data]
push 0x401230
push eax
call esi
mov dword [0x40400c], eax
cmp dword [0x404004], 0
pop edi
pop esi
pop ebx
je 0x401a99
cmp dword [0x404008], 0
je 0x401a99
cmp dword [0x40400c], 0
je 0x401a99
mov eax, 1
add esp, 0x208
ret
xor eax, eax
add esp, 0x208
ret

Function at 0x401d30
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
lea eax, [edi + edi]
push esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
mov eax, dword [ecx]
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401d9f
cmp dword [esp + 0x10], 1
je 0x401d71
pop edi
mov eax, 0x32
pop esi
ret 0xc
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x401d81
pop edi
mov word [esi], cx
pop esi
ret 0xc
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x401d9f
cmp ecx, edi
jae 0x401d9a
xor edx, edx
pop edi
mov word [esi + ecx*2], dx
pop esi
ret 0xc
mov eax, 0xea
pop edi
pop esi
ret 0xc
Function at 0x401db0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push 0x40
lea eax, [esp + 0x18]
push 0
push eax
mov dword [esp + 0x1c], 0x44
call fcn.00401e60
add esp, 0xc
xor eax, eax
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0x5c]
lea edx, [esp + 0x14]
push edx
push eax
push eax
push 0x8000000
push eax
push eax
push eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x7c]
push eax
push ecx
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x401e0f
xor al, al
add esp, 0x54
ret
mov edx, dword [esp + 4]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 8]
push 0xffffffffffffffff
push eax
mov bl, 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x401e49
mov eax, dword [esp + 0x68]
test eax, eax
je 0x401e4b
mov ecx, dword [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x401e4b
xor bl, bl
mov edx, dword [esp + 8]
push edx
call esi
pop esi
mov al, bl
pop ebx
add esp, 0x54
ret

Function at 0x401f90
Capabilities:
Create directory

Disassembly:
push ecx
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
push eax
push 0x104
push esi
call fcn.004030f0
add esp, 0xc
test al, al
je 0x40207a
push 0x4013c4
push 0x104
push esi
call fcn.00403140
add esp, 0xc
test al, al
je 0x40207a
push ebx
push ebp
push 0x104
push esi
call fcn.004030c0
mov ebp, eax
mov ebx, 0x104
sub ebx, ebp
add esp, 8
cmp ebx, 0xb
jae 0x401ff1
pop ebp
pop ebx
xor al, al
pop esi
pop ecx
ret
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
shr ecx, 0xc
xor eax, ecx
mov dword [esp + 0x10], eax
mov edi, 0xa
push ebx
lea eax, [esi + ebp*2]
push eax
lea edx, [esp + 0x18]
push 4
push edx
dec edi
call fcn.00403050
add esp, 0x10
test al, al
je 0x402059
lea eax, [ebp + 5]
cmp eax, 0x104
jae 0x402031
xor ecx, ecx
mov word [esi + eax*2], cx
push 0x4014a4
push 0x104
push esi
call fcn.00403140
add esp, 0xc
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x402061
inc dword [esp + 0x10]
test edi, edi
jne 0x402008
pop edi
pop ebp
pop ebx
xor al, al
pop esi
pop ecx
ret
push 0x4014a0
push 0x104
push esi
call fcn.00403140
add esp, 0xc
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret
xor al, al
pop esi
pop ecx
ret
Function at 0x402080
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x250
push esi
mov esi, dword [esp + 0x258]
push edi
push 0x104
push esi
call fcn.004030c0
push 0x4014b0
push 0x104
push esi
mov edi, eax
call fcn.00403140
add esp, 0x14
test al, al
je 0x402198
push ebp
push 0x24c
lea eax, [esp + 0x14]
push 0
push eax
mov dword [esp + 0x18], 0
call fcn.00401e60
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x402182
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x402100
cmp word [esp + 0x244], 0
lea eax, [esp + 0x244]
jne 0x402116
lea eax, [esp + 0x3c]
cmp word [eax], 0x2e
jne 0x402132
movzx ecx, word [eax + 2]
test cx, cx
je 0x40216a
cmp cx, 0x2e
jne 0x402132
cmp word [eax + 4], 0
je 0x40216a
lea ecx, [edi + 1]
cmp ecx, 0x104
jae 0x402143
xor edx, edx
mov word [esi + ecx*2], dx
push eax
push 0x104
push esi
call fcn.00403140
add esp, 0xc
test al, al
je 0x40216a
test byte [esp + 0x10], 0x10
push esi
je 0x402168
call fcn.00402080
add esp, 4
jmp 0x40216a
call ebx
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402100
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
pop ebp
cmp edi, 0x104
jae 0x402191
xor ecx, ecx
mov word [esi + edi*2], cx
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
pop esi
add esp, 0x250
ret
Function at 0x402a40
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
push esi
lea edx, [esp + 4]
push edx
xor eax, eax
xor ecx, ecx
push 0x104
mov word [esp + 0x214], ax
mov word [esp + 0xc], cx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, dword [esp + 0x218]
test eax, eax
je 0x402a96
cmp eax, 0x104
jae 0x402a96
lea eax, [esp + 4]
push esi
push eax
call fcn.00401f90
add esp, 8
test al, al
je 0x402a96
mov al, 1
pop esi
add esp, 0x20c
ret
mov edx, dword [esp + 0x214]
push 0x104
lea ecx, [esp + 8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, 0x104
jae 0x402ae6
test eax, eax
je 0x402ae6
push eax
lea eax, [esp + 8]
push eax
call fcn.00403310
add esp, 8
test eax, eax
je 0x402ae6
lea edx, [esp + 4]
xor ecx, ecx
push esi
push edx
mov word [eax], cx
call fcn.00401f90
add esp, 8
pop esi
add esp, 0x20c
ret
xor al, al
pop esi
add esp, 0x20c
ret

Function at 0x402af0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x668
push ebx
mov ebx, dword [esp + 0x670]
push ebx
lea edx, [esp + 0x258]
xor eax, eax
xor ecx, ecx
push 0x104
push edx
mov word [esp + 0x468], ax
mov word [esp + 0x260], cx
call fcn.004030f0
add esp, 0xc
test al, al
je 0x402c6d
mov eax, dword [esp + 0x674]
push eax
lea ecx, [esp + 0x258]
push 0x104
push ecx
call fcn.00403140
add esp, 0xc
test al, al
je 0x402c6d
push 0x4014d0
lea edx, [esp + 0x258]
push 0x104
push edx
call fcn.00403140
add esp, 0xc
test al, al
je 0x402c6d
push edi
push 0x24c
lea eax, [esp + 0x10]
push 0
push eax
mov dword [esp + 0x14], 0
call fcn.00401e60
add esp, 0xc
push 0
push 0
push 1
lea ecx, [esp + 0x14]
push ecx
push 0
lea edx, [esp + 0x26c]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov edi, eax
cmp edi, 0xffffffff
je 0x402c6c
xor eax, eax
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
xor ecx, ecx
push esi
mov word [esp + 0x674], ax
mov word [esp + 0x46c], cx
test byte [esp + 0x10], 0x10
je 0x402c53
cmp word [esp + 0x244], 0
lea esi, [esp + 0x244]
jne 0x402bf3
lea esi, [esp + 0x3c]
cmp word [esi], 0x2e
jne 0x402c0f
movzx eax, word [esi + 2]
test ax, ax
je 0x402c53
cmp ax, 0x2e
jne 0x402c0f
cmp word [esi + 4], 0
je 0x402c53
push ebx
lea edx, [esp + 0x470]
push 0x104
push edx
call fcn.004030f0
add esp, 0xc
test al, al
je 0x402c53
push esi
lea eax, [esp + 0x470]
push 0x104
push eax
call fcn.00403140
add esp, 0xc
test al, al
je 0x402c53
lea ecx, [esp + 0x46c]
push ecx
call fcn.00402080
add esp, 4
lea edx, [esp + 0x10]
push edx
push edi
call ebp
test eax, eax
jne 0x402bd6
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x668
ret

Function at 0x402c80
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
lea edx, [esp]
push edx
xor eax, eax
xor ecx, ecx
push 0x104
mov word [esp + 0x210], ax
mov word [esp + 8], cx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x402cd1
cmp eax, 0x104
jae 0x402cd1
push esi
xor esi, esi
mov eax, dword [esi + 0x4014d8]
push eax
lea ecx, [esp + 8]
push ecx
call fcn.00402af0
add esi, 4
add esp, 8
cmp esi, 8
jb 0x402cb4
pop esi
add esp, 0x20c
ret
Function at 0x402ce0
Capabilities:
Delete directory
Delete file

Disassembly:
sub esp, 0x640
push esi
call fcn.00402c80
lea ecx, [esp + 8]
mov dword [esp + 4], 0x65
call fcn.00402fc0
lea ecx, [esp + 8]
call fcn.00403030
test al, al
je 0x402e32
mov eax, dword [esp + 0x18]
sub eax, 1
jne 0x402d2e
lea ecx, [esp + 8]
mov dword [esp + 4], eax
call fcn.00402ff0
xor eax, eax
pop esi
add esp, 0x640
ret
mov esi, dword [esp + 0x648]
lea edx, [esp + 0x438]
push edx
xor eax, eax
xor ecx, ecx
push esi
mov word [esp + 0x648], ax
mov word [esp + 0x440], cx
call fcn.00402a40
add esp, 8
test al, al
jne 0x402d74
lea ecx, [esp + 8]
call fcn.00402ff0
mov eax, 0x65
pop esi
add esp, 0x640
ret
xor ecx, ecx
mov word [esp + 0x20], cx
xor edx, edx
xor eax, eax
lea ecx, [esp + 0x22c]
push ecx
mov word [esp + 0x438], dx
lea edx, [esp + 0x24]
push edx
mov word [esp + 0x230], ax
mov word [esp + 0x234], ax
lea eax, [esp + 0x440]
push eax
lea ecx, [esp + 0x14]
push esi
push ecx
call fcn.00402560
add esp, 0x14
test al, al
jne 0x402dc8
mov dword [esp + 4], 0x66
jmp 0x402e04
push 0xffffffffffffffff
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetProcessWorkingSetSize]
lea edx, [esp + 4]
push edx
lea eax, [esp + 0x230]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.00402900
add esp, 0x10
test al, al
jne 0x402e04
mov dword [esp + 4], 0x67
call fcn.004021b0
test al, al
je 0x402e32
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x20]
push eax
call esi
lea ecx, [esp + 0x22c]
push ecx
call esi
lea edx, [esp + 0x438]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, dword [esp + 4]
lea ecx, [esp + 8]
call fcn.00402ff0
mov eax, esi
pop esi
add esp, 0x640
ret

Function at 0x402e50
Capabilities:
Terminate process

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call main
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]