joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405eba
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x405ede
xor eax, eax
test eax, eax
je 0x405ef0
cmp byte [ebp + eax - 0x121], 0x5c
je 0x405ef0
xor ecx, ecx
jmp 0x405ef3
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x409010]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

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

Disassembly:
cmp dword [0x422acc], 0
push esi
jne 0x405fce
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405fa8
mov dword [ecx*4 + 0x422ac8], eax
inc ecx
cmp ecx, 0x100
jl 0x405fa3
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405fff
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422ac8]
xor eax, esi
inc ecx
dec edx
jne 0x405fe1
pop edi
not eax
pop esi
ret 0xc

Function at 0xc364dd
Capabilities:
Encode data using xor

Disassembly:
xor al, al
mov al, byte [edi]
xor al, bl
mov byte [edi], al
inc edi
cmp edi, ecx
jne fcn.00c364dd
ret
Function at 0x401140
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42522a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
mov esi, ecx
push 0
mov dword [ebp - 0x10], esi
call fcn.0040c1eb
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 eax, dword [ebp + 8]
mov byte [ebp - 4], 6
test eax, eax
jne 0x4011ef
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.0040e404
add esp, 8
mov dword [ebp - 0x24], vtable.std::runtime_error.0
lea eax, [ebp - 0x24]
push 0x434bcc
push eax
call fcn.0040f88d
push eax
push esi
call fcn.0040c533
mov ecx, dword [ebp - 0xc]
add esp, 8
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x404a10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4252b6
push eax
mov dword fs:[0], esp
push esi
push edi
mov edi, ecx
push 8
mov dword [edi], 0x4320f8
call fcn.0040d5ca
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.0040c430
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 ecx, dword [ebp - 0xc]
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
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x409b10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x408
add eax, 4
cmp dword [eax + 0x14], 0x10
jb 0x409b27
mov eax, dword [eax]
lea ecx, [ebp - 4]
push ecx
push 1
push 0
push eax
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x409b90
mov eax, dword [ebp + 0xc]
add eax, 4
mov dword [ebp + 8], 0x400
cmp dword [eax + 0x14], 0x10
jb 0x409b52
mov eax, dword [eax]
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x408]
push ecx
lea ecx, [ebp - 8]
push ecx
push 0
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x409b81
cmp dword [ebp + 8], eax
jbe 0x409b81
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x408]
mov dword [ecx], eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov esp, ebp
pop ebp
ret
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x409ba0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x425a58
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov eax, dword [ebp + 8]
add eax, 4
cmp dword [eax + 0x14], 0x10
jb 0x409bc9
mov eax, dword [eax]
lea ecx, [ebp - 0x10]
push ecx
push 1
push 0
push eax
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x409c8b
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ecx, ecx
nop dword [eax + eax]
add ecx, 0x400
push ecx
mov dword [ebp + 8], ecx
call fcn.0040d878
add esp, 4
mov esi, eax
cmp dword [edi + 0x18], 0x10
jb 0x409c0f
mov eax, dword [edi + 4]
jmp 0x409c12
lea eax, [edi + 4]
lea ecx, [ebp + 8]
push ecx
push esi
lea ecx, [ebp - 0x14]
push ecx
push 0
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
test ebx, ebx
jne 0x409c59
cmp dword [ebp + 8], eax
jbe 0x409c59
push esi
lea ecx, [ebp - 0x30]
call fcn.00409690
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 4], ebx
call fcn.00409770
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
call fcn.00409730
push esi
call fcn.0040d370
add esp, 4
cmp ebx, 0xea
jne 0x409c6f
mov ecx, dword [ebp + 8]
jmp 0x409bf0
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
xor al, al
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x409d60
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
add eax, 4
cmp dword [eax + 0x14], 0x10
jb 0x409d71
mov eax, dword [eax]
push 0
lea ecx, [ebp + 8]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x409dca
mov eax, dword [ebp + 0xc]
add eax, 4
cmp dword [eax + 0x14], 0x10
jb 0x409da0
mov eax, dword [eax]
push 4
push dword [ebp + 0x10]
push 4
push 0
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 8]
test eax, eax
jne 0x409dc4
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop ebp
ret
Function at 0x409dd0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
add eax, 4
cmp dword [eax + 0x14], 0x10
jb 0x409de1
mov eax, dword [eax]
push 0
lea ecx, [ebp + 8]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x409e48
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x18], 0x10
lea ecx, [eax + 4]
mov edx, dword [eax + 0x14]
jb 0x409e13
mov ecx, dword [ecx]
mov eax, dword [ebp + 0xc]
add eax, 4
cmp dword [eax + 0x14], 0x10
jb 0x409e21
mov eax, dword [eax]
push edx
push ecx
push 1
push 0
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 8]
test eax, eax
jne 0x409e42
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop ebp
ret

Function at 0x415e35
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push eax
push esi
push dword [ebp + 8]
call fcn.00415aaf
add esp, 0x10
mov dword [ebp - 0x88], eax
call fcn.00415aea
shl dword [esi + 0x458de79a], cl
call 0x5129bbe0
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
invalid

Function at 0x415ed3
Capabilities:
Contain obfuscated stackstrings

Disassembly:
lahf
adc esi, eax
inc ebp
mov al, byte [0xa145c633]
mov byte cs:[ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.00415afa
push eax
push esi
push dword [ebp + 8]
call fcn.00415aaf
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.00415afa
push eax
push esi
push dword [ebp + 8]
call fcn.00415aaf
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.00415aea
std
adc al, 0xb
pop esi
mov byte [ebp - 0x84], bl
mov byte [ebp - 0x83], bl
mov byte [ebp - 0x82], 0xe9
mov byte [ebp - 0x81], bl
mov byte [ebp - 0x80], 0x51
mov byte [ebp - 0x7f], 0x73
mov byte [ebp - 0x7e], 0x62
mov byte [ebp - 0x7d], 0x5b
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
mov byte [ebp - 0x75], 0x78
mov byte [ebp - 0x74], 0x72
mov byte [ebp - 0x73], 0x7a
mov byte [ebp - 0x72], 0x73
mov byte [ebp - 0x71], 0x57
mov byte [ebp - 0x70], 0x16
call fcn.00415aea
push ebp
mov eax, dword [0x858db763]
jl 0x415fd5
invalid
invalid
Function at 0x4161c5
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x4161c1
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x4161df
movzx eax, ax
lea eax, [eax + eax*4]
add al, 0x80
add al, 0x80
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x41623d
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x416224
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x41622d
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x416237
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x416219
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x4161a3
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x41628a
dec eax
je 0x416281
sub eax, 3
je 0x416278
mov dword [ebp - 4], 0x40
jmp 0x4162a7
mov dword [ebp - 4], 4
jmp 0x41628d
mov dword [ebp - 4], 0x20
jmp 0x41628d
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x4162d9
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x416259
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.00415aea
sub al, 0xda
hlt
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4163ce
Capabilities:
Contain obfuscated stackstrings

Disassembly:
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.00415afa
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00415aaf
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
mov byte [ebp - 0x3e4], 0x81
mov byte [ebp - 0x3e3], 0x8a
mov byte [ebp - 0x3e2], 0x9b
mov byte [ebp - 0x3e1], 0x82
mov byte [ebp - 0x3e0], 0x8b
mov byte [ebp - 0x3df], 0xa6
mov byte [ebp - 0x3de], 0x8f
mov byte [ebp - 0x3dd], 0x80
mov byte [ebp - 0x3dc], 0x8a
mov byte [ebp - 0x3db], 0x82
mov byte [ebp - 0x3da], 0x8b
mov byte [ebp - 0x3d9], 0xaf
mov byte [ebp - 0x3d8], 0xee
lea eax, [ebp - 0x3ec]
push eax
call fcn.00415afa
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00415aaf
add esp, 0xc
mov dword [ebp - 0x340], eax
call fcn.00415aea
popfd
dec ecx

Function at 0x41746e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call [ecx + 0x50]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00415aaf
add esp, 0xc
mov dword [ebp - 0x730], eax
and dword [ebp - 0x6fc], 0
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x66404fc8
nop
nop
nop
nop
test eax, eax
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
mov ecx, 0x355f1c39
nop
nop
nop
nop
nop
test eax, eax
je 0x433084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x100015f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1001c0ff
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebp
push esi
mov esi, dword [esp + 0x30]
push edi
mov edi, dword [esp + 0x30]
mov ebp, ecx
mov dword [esp + 0xc], 0
mov eax, dword [ebp + 4]
lea ecx, [edi + esi]
cmp ecx, eax
jle 0x1000162b
mov esi, eax
sub esi, edi
cmp edi, eax
jle 0x10001631
xor esi, esi
lea ecx, [esp + 0x10]
call fcn.10001070
push 0
push edi
lea edx, [esp + 0x18]
push esi
push edx
mov ecx, ebp
mov dword [esp + 0x34], 1
call fcn.10001110
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.10001080
mov dword [esp + 0xc], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 0
call fcn.10001100
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc

Function at 0x10001690
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1001c12f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x2c]
mov eax, dword [esi + 4]
mov dword [esp + 8], 0
cmp edi, eax
jle 0x100016c1
mov edi, eax
lea ecx, [esp + 0xc]
call fcn.10001070
push 0
push 0
lea eax, [esp + 0x14]
push edi
push eax
mov ecx, esi
mov dword [esp + 0x30], 1
call fcn.10001110
mov esi, dword [esp + 0x28]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.10001080
mov dword [esp + 8], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 0
call fcn.10001100
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x10002d80
Capabilities:
Create directory

Disassembly:
sub esp, 0x11c
push ebx
mov ebx, dword [esp + 0x128]
push edi
push 0x1001d294
push ebx
call fcn.10003230
add esp, 8
test eax, eax
je 0x10002e69
lea eax, [esp + 0x20]
push 0x104
push eax
call fcn.10002ef0
mov edx, dword [esp + 0x138]
add esp, 8
test edx, edx
je 0x10002e61
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, ecx
mov ecx, dword [esp + 0x134]
inc eax
cmp ecx, eax
jb 0x10002e61
push ebp
mov ebp, ecx
xor eax, eax
mov edi, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebp
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x24]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x24]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edx, dword [esp + 0x12c]
mov ecx, dword [esp + 0x13c]
lea eax, [esp + 0x24]
push edx
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
push eax
push ebx
mov dword [esp + 0x18], 3
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], ecx
call fcn.10002e80
add esp, 0xc
pop ebp
pop edi
pop ebx
add esp, 0x11c
ret
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop ebx
add esp, 0x11c
ret

Function at 0x10002ef0
Capabilities:
Create directory
Get common file path

Disassembly:
sub esp, 0x30c
lea eax, [esp + 0x104]
push esi
push 0x104
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jbe 0x10003003
lea ecx, [esp + 0x108]
push str.temp
push ecx
call fcn.100053d0
lea edx, [esp + 0x108]
push edx
call fcn.10003010
add esp, 4
test eax, eax
jne 0x10002f51
push eax
lea eax, [esp + 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x10003005
push ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call ebp
push eax
lea ecx, [esp + 0x21c]
push str._08lX
push ecx
call ebx
lea edi, [esp + 0x120]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x218]
push ecx
push edx
call fcn.100053d0
lea eax, [esp + 0x10]
push eax
call fcn.10003010
mov esi, eax
add esp, 4
test esi, esi
jne 0x10002f60
lea edi, [esp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x324]
pop edi
not ecx
pop ebp
cmp eax, ecx
pop ebx
jbe 0x10002ffb
mov edx, dword [esp + 0x314]
lea ecx, [esp + 4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, 1
pop esi
add esp, 0x30c
ret
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop esi
add esp, 0x30c
ret
Function at 0x10003010
Capabilities:
Get common file path
Set current directory

Disassembly:
sub esp, 0x104
lea eax, [esp]
push esi
push edi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, dword [esp + 0x110]
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push ecx
call esi
lea edx, [esp + 8]
mov edi, eax
push edx
call esi
mov eax, edi
pop edi
pop esi
add esp, 0x104
ret

Function at 0x10003050
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x244
lea ecx, [esp]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
push edi
push eax
push ecx
mov esi, 1
call ebx
lea edx, [esp + 0xc]
push 0x1001d288
push edx
call fcn.100053d0
lea eax, [esp + 0x110]
lea ecx, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x10003165
push ebp
mov ebp, dword [esp + 0x25c]
mov edx, dword [esp + 0x258]
lea eax, [esp + 0x10]
push edx
push eax
call ebx
lea ecx, [esp + 0x140]
lea edx, [esp + 0x10]
push ecx
push edx
call fcn.100053d0
test byte [esp + 0x114], 0x10
je 0x10003112
lea eax, [esp + 0x140]
push 0x1002047c
push eax
call fcn.1001bcb0
add esp, 8
test eax, eax
je 0x10003123
lea ecx, [esp + 0x140]
push 0x10020478
push ecx
call fcn.1001bcb0
add esp, 8
test eax, eax
je 0x10003123
lea edx, [esp + 0x10]
push ebp
push edx
call fcn.10003050
add esp, 8
jmp 0x10003121
test ebp, ebp
je 0x1000313f
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
test esi, esi
je 0x10003141
lea ecx, [esp + 0x114]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x10003141
jmp 0x100030a5
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
test esi, esi
pop ebp
je 0x10003165
mov edx, dword [esp + 0x254]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
pop ebx
add esp, 0x244
ret
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x244
ret

Function at 0x10003180
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
sub esp, 0x244
lea eax, [esp]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebp
mov ebp, dword [esp + 0x250]
push esi
push edi
push ebp
push eax
mov esi, 1
call ebx
lea ecx, [esp + 0x10]
push 0x1001d288
push ecx
call fcn.100053d0
lea edx, [esp + 0x114]
lea eax, [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x1000321c
lea ecx, [esp + 0x10]
push ebp
push ecx
call ebx
lea edx, [esp + 0x140]
lea eax, [esp + 0x10]
push edx
push eax
call fcn.100053d0
test byte [esp + 0x114], 0x10
jne 0x100031fe
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
test esi, esi
je 0x10003215
lea edx, [esp + 0x114]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x100031cd
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x244
ret