joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10091cd0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 8], esi
mov edx, dword [esi + 0xc]
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor ecx, eax
movzx eax, byte [edi + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edi + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [esi + 0x18]
mov esi, dword [esi + 4]
and ecx, eax
mov eax, dword [edx + ecx*8]
lea ecx, [ecx*8 + 4]
add ecx, edx
mov edx, eax
mov dword [ebp - 4], ecx
cmp edx, esi
jne 0x10091d3a
mov ecx, esi
jmp 0x10091d3e
mov ecx, dword [ecx]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x10091d65
mov ecx, dword [eax + 8]
cmp ecx, dword [edi]
je 0x10091d50
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
jmp 0x10091d32
cmp eax, esi
je 0x10091d65
pop edi
mov dword [ebx], eax
mov eax, ebx
pop esi
mov byte [ebx + 4], 0
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [esi]
lea eax, [ebp - 4]
push ecx
push eax
push ecx
mov dword [ebp - 4], edi
mov edi, dword [esi + 4]
push edi
push esi
call fcn.10092450
mov edx, eax
mov ecx, 0xaaaaaa9
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
sub ecx, eax
cmp ecx, 1
jae 0x10091d99
push str.list_T__too_long
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
mov ecx, dword [ebp - 8]
inc eax
mov dword [ecx + 8], eax
mov dword [esi + 4], edx
mov dword [edi], edx
mov eax, dword [ecx + 4]
mov eax, dword [eax]
push eax
add eax, 8
push eax
push ebx
call fcn.100920b0
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x100923a0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov edx, ecx
mov ebx, dword [ebp + 8]
movzx eax, byte [edi + 8]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edi + 9]
xor ecx, eax
movzx eax, byte [edi + 0xa]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edi + 0xb]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [edx + 0x18]
and ecx, eax
lea esi, [ecx*8]
mov ecx, dword [edx + 0xc]
add ecx, esi
mov eax, dword [ecx]
cmp dword [ecx + 4], edi
jne 0x10092416
cmp eax, edi
jne 0x1009240e
mov eax, dword [edx + 4]
mov dword [ecx], eax
mov ecx, dword [edx + 0xc]
mov eax, dword [edx + 4]
mov dword [esi + ecx + 4], eax
jmp 0x1009241e
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
jmp 0x1009241e
cmp eax, edi
jne 0x1009241e
mov eax, dword [edi]
mov dword [ecx], eax
mov eax, dword [edi + 4]
mov esi, dword [edi]
mov dword [eax], esi
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
lea ecx, [edi + 0xc]
dec dword [edx + 8]
call fcn.10091ae0
push 0x2c
push edi
call fcn.100b7d6a
add esp, 8
mov dword [ebx], esi
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x10092480
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
movzx edx, byte [eax + 8]
mov edi, ecx
movzx ecx, byte [eax + 9]
xor edx, 0x811c9dc5
imul edx, edx, 0x1000193
mov ebx, dword [ebp + 8]
xor edx, ecx
movzx ecx, byte [eax + 0xa]
imul edx, edx, 0x1000193
xor edx, ecx
movzx ecx, byte [eax + 0xb]
imul edx, edx, 0x1000193
xor edx, ecx
imul ecx, edx, 0x1000193
mov edx, dword [edi + 0x18]
and edx, ecx
lea esi, [edx*8]
mov edx, dword [edi + 0xc]
add edx, esi
mov ecx, dword [edx]
cmp dword [edx + 4], eax
jne 0x100924f7
cmp ecx, eax
jne 0x100924ef
mov ecx, dword [edi + 4]
mov dword [edx], ecx
mov edx, dword [edi + 0xc]
mov ecx, dword [edi + 4]
mov dword [esi + edx + 4], ecx
jmp 0x100924ff
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
jmp 0x100924ff
cmp ecx, eax
jne 0x100924ff
mov ecx, dword [eax]
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov esi, dword [eax]
push 0x18
push eax
mov dword [ecx], esi
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
dec dword [edi + 8]
call fcn.100b7d6a
add esp, 8
mov dword [ebx], esi
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x10093180
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
jne 0x100931ab
push 0
push 0
push 0
push 0x100270f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x100931ab
mov eax, 1
pop ebp
ret 0xc
xor eax, eax
pop ebp
ret 0xc
Function at 0x100a5fe0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x100a6171
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 0x280]
call eax
test al, al
je 0x100a6171
mov eax, dword [0x100f4908]
cmp dword [eax + 0x174], 0xffffffff
je 0x100a6171
mov eax, dword [0x100f4b88]
add eax, 0xffffff91
xor eax, 0xd8948d93
cmp dword [eax + ebx], 0
mov eax, dword [0x100f4b50]
setle cl
add eax, 0xffffff9f
xor eax, 0xd8948d85
xor edi, edi
mov byte [eax + ebx], cl
mov eax, dword [0x100f4b44]
add eax, 0xffffffa2
xor eax, 0xd8948d82
mov dword [eax + ebx + 0xc], 0
mov eax, dword [0x100f4b48]
add eax, 0xffffffa1
xor eax, 0xd8948d83
mov dword [eax + ebx + 0xc], 0
mov ecx, dword [0x100f4b4c]
lea eax, [ecx - 0x60]
xor eax, 0xd8948d84
mov edx, dword [eax + ebx + 0xc]
mov dword [ebp - 4], edx
test edx, edx
je 0x100a60ce
lea eax, [ecx - 0x60]
xor eax, 0xd8948d84
mov eax, dword [eax + ebx]
mov esi, dword [eax + edi*4]
lea ebx, [eax + edi*4]
test esi, esi
je 0x100a60c6
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x100a60ba
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 4]
call eax
test al, al
je 0x100a60b7
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov edx, dword [ebp - 4]
mov dword [ebx], 0
mov ecx, dword [0x100f4b4c]
mov ebx, dword [ebp + 8]
inc edi
cmp edi, edx
jb 0x100a6083
lea eax, [ecx - 0x60]
xor eax, 0xd8948d84
lea ecx, [ebx + 8]
push 0
mov dword [eax + ebx + 0xc], 0
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x1c]
call eax
mov eax, dword [ebx + 8]
lea ecx, [ebx + 8]
push 0
mov eax, dword [eax + 0x14]
call eax
mov ecx, dword [0x100f491c]
xor ebx, ebx
mov dword [ebp - 4], ecx
mov eax, dword [ecx + 0x28]
mov dword [ebp - 8], eax
test eax, eax
je 0x100a6162
nop dword [eax]
mov eax, dword [ecx + 0x1c]
mov ecx, dword [eax + ebx*4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
mov esi, eax
mov edi, 0x811c9dc5
xor ecx, ecx
inc ecx
cmp byte [ecx + esi], 0
jne 0x100a6126
xor edx, edx
test ecx, ecx
je 0x100a614c
movsx eax, byte [edx + esi]
inc edx
xor eax, edi
imul edi, eax, 0x1000193
cmp edx, ecx
jb 0x100a6133
cmp edi, 0x79705c5e
je 0x100a6157
inc ebx
cmp ebx, dword [ebp - 8]
jae 0x100a6162
mov ecx, dword [ebp - 4]
jmp 0x100a6110
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
mov ecx, dword [eax + ebx*4]
jmp 0x100a6164
xor ecx, ecx
push 0
push dword [ebp + 8]
push 0
call dword [0x100f49f0]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100b6c60
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 8], esi
mov edx, dword [esi + 0xc]
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor ecx, eax
movzx eax, byte [edi + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edi + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [esi + 0x18]
mov esi, dword [esi + 4]
and ecx, eax
mov eax, dword [edx + ecx*8]
lea ecx, [ecx*8 + 4]
add ecx, edx
mov edx, eax
mov dword [ebp - 4], ecx
cmp edx, esi
jne 0x100b6cca
mov ecx, esi
jmp 0x100b6cce
mov ecx, dword [ecx]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x100b6cf5
mov ecx, dword [eax + 8]
cmp ecx, dword [edi]
je 0x100b6ce0
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
jmp 0x100b6cc2
cmp eax, esi
je 0x100b6cf5
pop edi
mov dword [ebx], eax
mov eax, ebx
pop esi
mov byte [ebx + 4], 0
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [esi]
lea eax, [ebp - 4]
push ecx
push eax
push ecx
mov dword [ebp - 4], edi
mov edi, dword [esi + 4]
push edi
push esi
call fcn.100b6df0
mov edx, eax
mov ecx, 0xffffffe
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
sub ecx, eax
cmp ecx, 1
jae 0x100b6d29
push str.list_T__too_long
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
mov ecx, dword [ebp - 8]
inc eax
mov dword [ecx + 8], eax
mov dword [esi + 4], edx
mov dword [edi], edx
mov eax, dword [ecx + 4]
mov eax, dword [eax]
push eax
add eax, 8
push eax
push ebx
call fcn.1002a280
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x402174
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
lea ecx, [ebp - 0xc]
call fcn.00401274
lea ecx, [ebp - 0x18]
call fcn.00401274
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.0041c740
mov eax, dword [ebp + 0x10]
add esp, 0xc
test byte [ebp + 0xc], 1
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x50], 0x740
mov dword [ebp - 0x38], 0xa
je 0x4021c5
and dword [ebp - 0x38], 0
mov dword [ebp - 0x50], 0x8740
test byte [ebp + 0xc], 2
je 0x4021d2
mov dword [ebp - 0x48], str.runas
mov esi, dword [ebp + 0xc]
and esi, 0x10000
jne 0x4021e4
or dword [ebp - 0x50], 0x100
mov eax, dword [0x42c248]
push 5
push eax
mov dword [ebp - 0x4c], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 0x4c]
call dword [sym.imp.USER32.dll_BringWindowToTop]
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call fcn.0040356e
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.00401000
lea ecx, [ebp - 0xc]
call fcn.0040102e
test eax, eax
jne 0x402237
lea ecx, [ebp - 0x18]
call fcn.00401894
lea ecx, [ebp - 0xc]
call fcn.00401894
xor eax, eax
inc eax
pop esi
leave
ret
lea ecx, [ebp - 0xc]
call fcn.0040a9b3
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x44], eax
call fcn.0040a9b3
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40228a
test esi, esi
jne 0x40226a
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
inc esi
lea ecx, [ebp - 0x18]
call fcn.00401894
lea ecx, [ebp - 0xc]
call fcn.00401894
mov eax, esi
jmp 0x402234
xor esi, esi
jmp 0x402276
Function at 0x402b5d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
call fcn.004026e6
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x4029b6
push edi
push edi
mov dword [0x42c23c], esi
mov dword [0x42c244], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x42c240], eax
cmp eax, edi
je 0x402bb8
cmp dword [0x42c28c], 2
je 0x402baa
call fcn.0040a10a
mov eax, dword [0x42c240]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x42c240]
mov ecx, dword [0x42c244]
mov dword [0x42c3e4], edi
cmp ecx, edi
je 0x402bfe
cmp ecx, 1
je 0x402bf2
cmp ecx, 2
je 0x402bee
cmp ecx, 3
je 0x402bea
cmp ecx, 0x67
jle 0x402be5
cmp ecx, 0x6b
jle 0x402c67
push ecx
push 0x14
jmp 0x402c38
push 0x12
jmp 0x402bf4
push 0x13
jmp 0x402bf4
push 0x11
push edi
call fcn.0040a397
pop ecx
pop ecx
jmp 0x402c67
mov dword [ebp + 8], edi
cmp dword [0x42c3ec], edi
jne 0x402c67
cmp eax, edi
je 0x402c25
lea ecx, [ebp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x402c25
cmp dword [ebp + 8], edi
jne 0x402c25
xor eax, eax
jmp 0x402c6c
mov ecx, dword [ebp + 8]
mov eax, 0x80070000
and ecx, eax
cmp ecx, eax
je 0x402c3b
push dword [ebp + 8]
push 0x21
push edi
jmp 0x402c5f
mov eax, dword [ebp + 8]
and eax, 0xffff
cmp eax, 0xe
jne 0x402c51
cmp dword [0x42c290], 0xffffffff
je 0x402c67
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 8]
push 0x22
push 1
call fcn.0040a397
add esp, 0xc
mov eax, 0x80004005
pop edi
pop esi
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x403623
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0xb7
cmp eax, esi
je 0x40360e
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x403626
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x403623
test al, 0x10
jne 0x403623
push esi
jmp 0x403604
xor eax, eax
inc eax
pop esi
pop ebp
ret
Function at 0x403a68
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx ecx, word [0x42c24c]
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceExA]
push ecx
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [ebp + 8]
push eax
call esi
mov ebx, eax
mov edi, 0x409
test ebx, ebx
jne 0x403ab0
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call esi
mov ebx, eax
test ebx, ebx
je 0x403ada
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x403ac3
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi], eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x403ada
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
jmp 0x403b44
cmp dword [0x42c250], 0
jne 0x403b42
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetProcessPreferredUILanguages
push dword [0x42c258]
mov dword [0x42c250], 1
call esi
push 0
mov ebx, eax
movzx eax, word [0x42c24c]
push edi
push 0
push eax
lea eax, [ebp - 0x44]
push str._04X_c_04X_c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
test ebx, ebx
jne 0x403b38
push str.SetThreadPreferredUILanguages
push dword [0x42c258]
call esi
mov ebx, eax
test ebx, ebx
je 0x403b42
push 0
lea eax, [ebp - 0x44]
push eax
push 4
call ebx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403e28
Capabilities:
Get geographical location
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp dword [0x42b0c0], ebx
je 0x403e5b
mov eax, 0x42b0c0
mov ecx, dword [ebp + 8]
cmp dword [eax], ecx
je 0x403e5b
inc esi
mov eax, esi
shl eax, 4
lea eax, [eax + 0x42b0c0]
cmp dword [eax], ebx
jne 0x403e44
shl esi, 4
cmp dword [esi + 0x42b0c0], ebx
jne 0x403e70
mov eax, 0x424998
jmp 0x403fe3
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x64]
push str.SfxString_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push ebx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x64]
push eax
call ebx
mov dword [ebp - 4], eax
call edi
test eax, eax
jne 0x403f20
mov eax, dword [ebp - 4]
xor ecx, ecx
push 2
add eax, 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041c56d
pop ecx
mov ecx, dword [ebp - 4]
inc ecx
push ecx
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x64]
push eax
call ebx
cmp eax, dword [ebp - 4]
ja 0x403f17
call edi
test eax, eax
jne 0x403f17
mov eax, dword [esi + 0x42b0cc]
test eax, eax
je 0x403f0c
mov edi, dword [ebp - 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x403f09
push dword [esi + 0x42b0cc]
call fcn.0041c4e9
mov dword [esi + 0x42b0cc], edi
jmp 0x403f1f
push edi
jmp 0x403f1a
mov eax, dword [ebp - 8]
mov dword [esi + 0x42b0cc], eax
jmp 0x403f20
push dword [ebp - 8]
call fcn.0041c4e9
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi + 0x42b0cc]
test eax, eax
jne 0x403fe2
mov ebx, dword [esi + 0x42b0c4]
cmp dword [esi + 0x42b0c8], eax
je 0x403f58
call fcn.00403dcd
cmp eax, dword [0x4258e8]
jne 0x403f58
mov ebx, dword [esi + 0x42b0c8]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [eax + 1]
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041c56d
cmp dword [0x42b088], 0xffffffff
pop ecx
mov dword [esi + 0x42b0cc], eax
jne 0x403fc2
and dword [0x42b088], 0
push 0x1f
lea eax, [ebp - 0xa4]
push eax
movzx eax, word [0x42c24c]
push 0x1004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x403fc2
lea eax, [ebp - 0xa4]
push eax
call fcn.0041c727
pop ecx
mov dword [0x42b088], eax
lea eax, [edi + 1]
push eax
push dword [esi + 0x42b0cc]
push edi
push ebx
push 0
push dword [0x42b088]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esi + 0x42b0cc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404056
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 0xc], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4040a9
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 8]
pop ebx
leave
ret

Function at 0x40447b
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set current directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
push esi
push edi
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.00401899
push 0x424c68
lea ecx, [ebp - 0xc]
call fcn.00412e74
lea eax, [ebp - 0x25c]
push eax
lea ecx, [ebp - 0xc]
call fcn.0040a9b3
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40456f
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.00401000
push 0x5c
lea ecx, [ebp - 0xc]
call fcn.0040181b
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0xc]
call fcn.00412e74
test byte [ebp - 0x25c], 0x10
je 0x40452e
push 0x424c64
lea eax, [ebp - 0x230]
push eax
call edi
test eax, eax
je 0x404552
push 0x424c5c
lea eax, [ebp - 0x230]
push eax
call edi
test eax, eax
je 0x404552
lea ecx, [ebp - 0xc]
call fcn.0040a9b3
push eax
call fcn.0040447b
pop ecx
jmp 0x40454e
push 0
lea ecx, [ebp - 0xc]
call fcn.0040a9b3
push eax
call esi
test eax, eax
je 0x4045a5
lea ecx, [ebp - 0xc]
call fcn.0040a9b3
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4045a5
lea eax, [ebp - 0x25c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4044cc
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, 0x42c2bc
call fcn.0040a9b3
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0
push dword [ebp + 8]
call esi
test eax, eax
je 0x4045a5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x4045a5
lea ecx, [ebp - 0xc]
call fcn.00401894
xor eax, eax
inc eax
jmp 0x4045af
lea ecx, [ebp - 0xc]
call fcn.00401894
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4045b4
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
cmp dword [0x42c3f8], 0
je 0x4045cb
xor eax, eax
inc eax
leave
ret
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x4045e7
xor eax, eax
inc eax
jmp 0x404618
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [ebp - 0x250], 0x10
jne 0x404611
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x40460d
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x404618
xor eax, eax
jmp 0x404618
push esi
call fcn.0040447b
pop ecx
pop esi
leave
ret

Function at 0x404b9e
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, esi
call fcn.00401274
push 2
mov ecx, esi
call fcn.00404ae6
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
push eax
push 1
call edi
push 0
mov ecx, esi
mov ebx, eax
call fcn.004018ae
test ebx, ebx
je 0x404be5
inc ebx
push ebx
mov ecx, esi
call fcn.00404ae6
push eax
push ebx
call edi
mov ecx, esi
call fcn.00404acd
mov ecx, esi
call fcn.0040102e
and dword [ebp + 8], 0
lea ebx, [eax + 0xf]
lea edi, [eax + eax]
push ebx
mov ecx, esi
call fcn.00404ae6
push dword [ebp + 8]
add eax, edi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov ecx, esi
call fcn.00404acd
mov ecx, esi
call fcn.0040a9b3
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404c36
inc dword [ebp + 8]
cmp dword [ebp + 8], 0xfff
jl 0x404bf6
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
Function at 0x404fea
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
lea ecx, [ebp - 0x18]
mov esi, eax
mov dword [ebp - 4], eax
call fcn.00401899
push 0
lea ecx, [ebp - 0x18]
call fcn.00404ae6
mov edi, eax
movzx eax, word [ebx + esi*2 - 2]
cmp eax, 0x5c
je 0x405026
cmp eax, 0x2f
jne 0x405054
xor eax, eax
mov word [edi + esi*2 - 2], ax
dec esi
mov dword [ebp - 4], esi
jmp 0x405054
movzx eax, word [edi + esi*2]
cmp eax, 0x2f
je 0x405046
cmp eax, 0x5c
je 0x405046
dec esi
test esi, esi
jg 0x405033
test esi, esi
je 0x4050f7
xor eax, eax
mov word [edi + esi*2], ax
push edi
call fcn.004035e1
pop ecx
test eax, eax
je 0x405042
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x40508b
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.00404d33
pop ecx
pop ecx
test eax, eax
je 0x40508b
xor esi, esi
jmp 0x40511a
push edi
call fcn.004035e1
pop ecx
test eax, eax
jne 0x4050e5
push edi
push 0xc
push 1
call fcn.0040a397
add esp, 0xc
jmp 0x405084
mov eax, dword [ebp - 4]
sub eax, esi
inc eax
push eax
mov eax, dword [ebp + 8]
lea eax, [eax + esi*2]
push eax
lea ebx, [edi + esi*2]
push ebx
call fcn.0041cb30
xor ecx, ecx
add esp, 0xc
cmp word [ebx], cx
je 0x4050d7
jmp 0x4050d6
movzx eax, word [edi + esi*2]
cmp eax, 0x5c
je 0x4050dd
cmp eax, 0x2f
je 0x4050dd
inc esi
cmp word [edi + esi*2], cx
jne 0x4050c8
xor eax, eax
mov word [edi + esi*2], ax
jmp 0x40508b
cmp esi, dword [ebp - 4]
jl 0x4050a5
lea ecx, [ebp - 0x18]
call fcn.00401894
xor eax, eax
inc eax
jmp 0x40513d
cmp dword [ebp - 4], 2
jne 0x405126
mov ax, word [ebx]
or ax, 0x20
cmp ax, 0x61
jb 0x405126
cmp ax, 0x7a
ja 0x405126
cmp word [ebx + 2], 0x3a
jne 0x405126
xor esi, esi
inc esi
lea ecx, [ebp - 0x18]
call fcn.00401894
mov eax, esi
jmp 0x40513d
push ebx
push 0xc
push 1
call fcn.0040a397
add esp, 0xc
lea ecx, [ebp - 0x18]
call fcn.00401894
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret