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

Disassembly:
sub esp, 8
mov eax, 0x1fffffff
bsr ecx, eax
push ebx
push ebp
push esi
push edi
mov edi, 1
mov eax, edi
shl eax, cl
mov ecx, dword [esp + 0x1c]
cmp ecx, eax
ja 0x1000887a
lea eax, [ecx - 1]
mov esi, dword [0x1002c59c]
or eax, edi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
mov ecx, 0x1002c5a4
lea eax, [edi + edi]
push eax
call fcn.10008190
mov eax, dword [0x1002c59c]
lea ebx, [edi - 1]
mov dword [0x1002c5b0], ebx
mov dword [0x1002c5b4], edi
mov eax, dword [eax]
mov ecx, eax
cmp eax, esi
je 0x10008870
nop word [eax + eax]
movzx edx, byte [eax + 8]
xor edx, 0x811c9dc5
mov ecx, dword [ecx]
imul edi, edx, 0x1000193
movzx edx, byte [eax + 9]
xor edi, edx
movzx edx, byte [eax + 0xa]
imul edi, edi, 0x1000193
xor edi, edx
movzx edx, byte [eax + 0xb]
imul edi, edi, 0x1000193
xor edi, edx
mov edx, dword [0x1002c5a4]
imul edi, edi, 0x1000193
and edi, ebx
mov ebx, dword [edx + edi*8]
lea ebp, [edx + edi*8]
mov dword [esp + 0x1c], ebp
cmp ebx, esi
jne 0x100087d4
mov dword [ebp], eax
mov dword [ebp + 4], eax
jmp 0x1000883d
mov edx, dword [ebp + 4]
mov edi, dword [eax + 8]
cmp edi, dword [edx + 8]
jne 0x1000880e
mov edx, dword [edx]
mov dword [esp + 0x14], edx
cmp edx, eax
je 0x10008809
mov ebx, dword [eax + 4]
mov ebp, dword [esp + 0x14]
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [ebp + 4], edi
mov ebp, dword [esp + 0x1c]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
mov dword [ebp + 4], eax
jmp 0x1000883d
cmp ebx, edx
je 0x1000881e
mov edx, dword [edx + 4]
cmp edi, dword [edx + 8]
je 0x1000884e
cmp ebx, edx
jne 0x10008812
mov ebp, dword [eax + 4]
mov dword [ebp], ecx
mov ebx, dword [ecx + 4]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov dword [edx + 4], ebx
mov edx, dword [esp + 0x1c]
mov dword [ecx + 4], ebp
mov dword [eax + 4], edi
mov dword [edx], eax
mov eax, ecx
cmp ecx, esi
je 0x10008870
mov ebx, dword [0x1002c5b0]
jmp 0x10008780
mov ebx, dword [eax + 4]
mov ebp, dword [edx]
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], ebp
mov edx, dword [ebp + 4]
mov dword [edx], eax
mov dword [ebp + 4], edi
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
jmp 0x1000883d
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
push str.invalid_hash_bucket_count
call fcn.1000c036
int3
Function at 0x10008b80
Capabilities:
Enumerate pe sections

Disassembly:
push esi
mov esi, ecx
test edx, edx
jle 0x10008b8c
cmp edx, 6
jl 0x10008b98
cmp edx, 3
je 0x10008b98
mov eax, 2
pop esi
ret
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x10]
push ebx
mov dword [esi], edx
mov dword [esi + 4], eax
mov dword [esi + 0xc], ecx
mov dword [esi + 0x14], 0
cmp dword [ecx], 0
push edi
jne 0x10008bc6
call fcn.10008ad0
test eax, eax
jne 0x10008c09
mov edi, dword [esi + 4]
mov ebx, dword [esi + 8]
test edi, edi
je 0x10008be8
mov ecx, dword [ebx]
cmp dword [ecx], 0
jne 0x10008be0
call fcn.10008ad0
test eax, eax
jne 0x10008c09
add ebx, 4
sub edi, 1
jne 0x10008bd0
mov edx, dword [esi + 0xc]
mov dword [esi + 0x10], 0
movzx ecx, word [edx + 6]
cmp ecx, 0xd
ja case.0x10008c02.1
movzx eax, byte [ecx + 0x10008cc0]
jmp dword [eax*4 + 0x10008cb0]
pop edi
pop ebx
mov eax, 1
pop esi
ret
mov dword [esi + 0x14], ecx
jmp 0x10008c70
mov eax, dword [edx]
cmp eax, 1
jne 0x10008c27
mov dword [esi + 0x14], 0xf
jmp 0x10008c70
cmp eax, 2
jne 0x10008c35
mov dword [esi + 0x14], 0x10
jmp 0x10008c70
cmp eax, 4
je case.0x10008c02.1
cmp eax, 8
jne 0x10008c48
mov dword [esi + 0x14], 0xc
jmp 0x10008c70
cmp dword [esi], 5
mov ecx, 0xd
mov eax, 0x12
cmovne eax, ecx
mov ecx, 4
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], 4
jmp 0x10008c72
mov dword [esi + 0x14], 1
xor ecx, ecx
mov edi, dword [esi + 4]
mov edx, dword [esi + 8]
test edi, edi
je 0x10008ca8
nop dword [eax]
mov eax, dword [edx]
movzx ebx, word [eax + 4]
dec ebx
test ecx, ebx
je 0x10008c92
dec ecx
or ecx, ebx
inc ecx
mov dword [esi + 0x10], ecx
mov eax, dword [edx]
inc ecx
add edx, 4
mov eax, dword [eax]
dec eax
or eax, 3
add ecx, eax
mov dword [esi + 0x10], ecx
sub edi, 1
jne 0x10008c80
pop edi
pop ebx
xor eax, eax
pop esi
ret

Function at 0x10009250
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
cmp dword [0x1002c5c8], 0
jne 0x1000930d
push edi
mov dword [0x1002c5d0], 0xffffffff
mov ecx, 1
mov dword [0x1002c5d4], 0x200000
mov edi, 0x1002c5dc
mov dword [0x1002c5d8], 7
xor eax, eax
lock cmpxchg dword [edi], ecx
test eax, eax
je 0x100092b4
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
nop word [eax + eax]
push 0
call esi
mov ecx, 1
xor eax, eax
lock cmpxchg dword [edi], ecx
test eax, eax
jne 0x100092a0
pop esi
cmp dword [0x1002c5c4], 0
jne 0x100092db
mov eax, dword [0x1002c5d8]
mov dword [0x1002c5c4], 0x58585858
mov dword [0x1002c798], 0
mov dword [0x1002c794], eax
xor eax, eax
xchg dword [edi], eax
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 8]
mov dword [0x1002c5c8], edx
mov dword [0x1002c5cc], ecx
lea eax, [ecx - 1]
pop edi
test ecx, eax
jne 0x10009313
lea eax, [edx - 1]
test edx, eax
jne 0x10009313
xor eax, eax
add esp, 0x24
ret
call fcn.10013737
int3
Function at 0x100155be
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10015540
Function at 0x10018a0c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10018aa9
push ebx
push esi
call fcn.100189d5
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1001891e
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10018a56
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10018aa8
push edi
push eax
call fcn.10015fbc
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10018a76
call fcn.10015f82
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10018aa7
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001891e
add esp, 0x20
test eax, eax
jne 0x10018a95
push edi
call fcn.10015f82
jmp 0x10018a9d
push ebx
call fcn.10015f82
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10018dc8
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10024528
push 0x10024520
push str.FlsAlloc
push 0x1e
call fcn.10018c66
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10018dfc
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002213c]
call esi
jmp 0x10018e02
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10018e46
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10024538
push 0x10024530
push str.FlsGetValue
push 0x20
call fcn.10018c66
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10018e7d
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002213c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x10020b30
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10020b5d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10020b5d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0xdc4fa8
Capabilities:
Encode data using xor

Disassembly:
jmp 0xdc4fb2
pushal
call 0xdc4fb8
pop ebp
sub ebp, 0x10
sub ebp, 0x9c4fa8
jmp 0xdc4fce
mov eax, 0x9c4fa8
add eax, ebp
add eax, 0x4c
mov ecx, 0x5b5
mov edx, 0x2bd5235
xor byte [eax], dl
inc eax
dec ecx
jne 0xdc4fe5
jmp 0xdc4ff8
mov esi, 0x9bcbef8
xor eax, 0xf4b43535
int 0x35
xor eax, 0x8df83635
xor esi, dword [0x1d8f3535]
xor eax, 0xd7c23535
std
mov esi, 0x353539b4
xor eax, 0x6565f036
pop ebp
push ebp
invalid
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
mov ecx, 0x22145f90
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x430024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
mov ecx, 0x3ec97140
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x422740]
sub esp, 0x904
push ebx
xor ebx, ebx
push esi
push edi
cmp eax, ebx
je 0x401039
cmp word [0x422742], bx
je 0x401027
call eax
mov dword [0x422740], eax
push eax
call fcn.004025d4
push eax
call fcn.00408dc7
pop ecx
jmp 0x4010cc
push 0x27
call fcn.004025d4
mov esi, dword [ebp + 8]
push dword [esi + 0xc]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push dword [esi]
push eax
lea eax, [ebp - 0x904]
push eax
call edi
add esp, 0x14
mov dword [ebp - 4], ebx
cmp dword [esi + 0x10], ebx
jbe 0x40109d
lea ebx, [esi + 0x14]
push dword [ebx]
lea eax, [ebp - 0x104]
push str._t0x_p_n
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x904]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add ebx, 4
cmp eax, dword [esi + 0x10]
jb 0x401066
xor ebx, ebx
cmp byte [str.___Install__UTF_8_], 0x3b
je 0x4010c0
push ebx
push 3
call fcn.004025d4
pop ecx
push eax
lea eax, [ebp - 0x904]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x4010cd
lea eax, [ebp - 0x904]
push eax
call fcn.00408dc7
pop ecx
call fcn.00404774
push 0xa
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x401462
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
lea ecx, [esi + 0xc]
call fcn.004012bb
push dword [ebp + 0xc]
lea ecx, [esi + 0x10]
call fcn.004142f0
push 0x5c
lea ecx, [esi + 0x10]
call fcn.004011ee
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x40135a
push edi
push edi
mov dword [0x422744], esi
mov dword [0x42274c], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x422748], eax
cmp eax, edi
je 0x4014d5
cmp dword [0x4227b0], 2
je 0x4014c7
call fcn.00408d0b
mov eax, dword [0x422748]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x422748]
mov ecx, dword [0x42274c]
mov dword [0x422850], edi
cmp ecx, edi
je 0x40151b
cmp ecx, 1
je 0x40150f
cmp ecx, 2
je 0x40150b
cmp ecx, 3
je 0x401507
cmp ecx, 0x67
jle 0x401502
cmp ecx, 0x6b
jle 0x401584
push ecx
push 0x14
jmp 0x401555
push 0x12
jmp 0x401511
push 0x13
jmp 0x401511
push 0x11
push edi
call fcn.00408eab
pop ecx
pop ecx
jmp 0x401584
mov dword [ebp + 8], edi
cmp dword [0x422858], edi
jne 0x401584
cmp eax, edi
je 0x401542
lea ecx, [ebp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x401542
cmp dword [ebp + 8], edi
jne 0x401542
xor eax, eax
jmp 0x401589
mov ecx, dword [ebp + 8]
mov eax, 0x80070000
and ecx, eax
cmp ecx, eax
je 0x401558
push dword [ebp + 8]
push 0x21
push edi
jmp 0x40157c
mov eax, dword [ebp + 8]
and eax, 0xffff
cmp eax, 0xe
jne 0x40156e
cmp dword [0x4227b4], 0xffffffff
je 0x401584
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 8]
push 0x22
push 1
call fcn.00408eab
add esp, 0xc
mov eax, 0x80004005
pop edi
pop esi
leave
ret 8
Function at 0x401d97
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
push 0
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401dd8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0xb7
cmp eax, esi
je 0x401dc2
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
ret
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401dd8
test al, 0x10
jne 0x401dd8
push esi
jmp 0x401db8
xor eax, eax
inc eax
pop esi
ret

Function at 0x402214
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 [0x422764]
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 0x40225c
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call esi
mov ebx, eax
test ebx, ebx
je 0x402286
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x40226f
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 0x402286
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
jmp 0x4022f0
cmp dword [0x422774], 0
jne 0x4022ee
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetProcessPreferredUILanguages
push dword [0x422778]
mov dword [0x422774], 1
call esi
push 0
mov ebx, eax
movzx eax, word [0x422764]
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 0x4022e4
push str.SetThreadPreferredUILanguages
push dword [0x422778]
call esi
mov ebx, eax
test ebx, ebx
je 0x4022ee
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 0x4025d4
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 [0x4220b0], ebx
je 0x402607
mov eax, 0x4220b0
mov ecx, dword [ebp + 8]
cmp dword [eax], ecx
je 0x402607
inc esi
mov eax, esi
shl eax, 4
lea eax, [eax + 0x4220b0]
cmp dword [eax], ebx
jne 0x4025f0
shl esi, 4
cmp dword [esi + 0x4220b0], ebx
jne 0x40261c
mov eax, 0x41d650
jmp 0x402790
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 0x4026cc
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 sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
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 0x4026c3
call edi
test eax, eax
jne 0x4026c3
mov eax, dword [esi + 0x4220bc]
test eax, eax
je 0x4026b8
mov edi, dword [ebp - 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4026b5
push dword [esi + 0x4220bc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov dword [esi + 0x4220bc], edi
jmp 0x4026cb
push edi
jmp 0x4026c6
mov eax, dword [ebp - 8]
mov dword [esi + 0x4220bc], eax
jmp 0x4026cc
push dword [ebp - 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi + 0x4220bc]
test eax, eax
jne 0x40278f
mov ebx, dword [esi + 0x4220b4]
cmp dword [esi + 0x4220b8], eax
je 0x402704
call fcn.00402579
cmp eax, dword [0x41e4c4]
jne 0x402704
mov ebx, dword [esi + 0x4220b8]
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 sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp dword [0x422084], 0xffffffff
pop ecx
mov dword [esi + 0x4220bc], eax
jne 0x40276f
and dword [0x422084], 0
push 0x1f
lea eax, [ebp - 0xa4]
push eax
movzx eax, word [0x422764]
push 0x1004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x40276f
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x422084], eax
lea eax, [edi + 1]
push eax
push dword [esi + 0x4220bc]
push edi
push ebx
push 0
push dword [0x422084]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esi + 0x4220bc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40288b
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 0x4028de
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 0x402a92
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.004142c1
push 0x41d764
lea ecx, [ebp - 0xc]
call fcn.00414348
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402b6e
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.004142f0
push 0x5c
lea ecx, [ebp - 0xc]
call fcn.004011ee
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0xc]
call fcn.00414348
test byte [ebp - 0x25c], 0x10
je 0x402b39
push 0x41d760
lea eax, [ebp - 0x230]
push eax
call edi
test eax, eax
je 0x402b51
push 0x41d758
lea eax, [ebp - 0x230]
push eax
call edi
test eax, eax
je 0x402b51
push dword [ebp - 0xc]
call fcn.00402a92
pop ecx
jmp 0x402b4d
push 0
push dword [ebp - 0xc]
call esi
test eax, eax
je 0x402b9f
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x402b9f
lea eax, [ebp - 0x25c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402add
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [0x4227e0]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0
push dword [ebp + 8]
call esi
test eax, eax
je 0x402b9f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x402b9f
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
inc eax
jmp 0x402ba9
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402baf
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
cmp dword [0x422864], 0
je 0x402bc6
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 0x402be2
xor eax, eax
inc eax
jmp 0x402c13
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [ebp - 0x250], 0x10
jne 0x402c0c
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x402c08
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x402c13
xor eax, eax
jmp 0x402c13
push esi
call fcn.00402a92
pop ecx
pop esi
leave
ret

Function at 0x4034c6
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.004142c1
push 0
lea ecx, [ebp - 0x18]
call fcn.004030a9
mov edi, eax
movzx eax, word [ebx + esi*2 - 2]
cmp eax, 0x5c
je 0x403502
cmp eax, 0x2f
jne 0x403530
xor eax, eax
mov word [edi + esi*2 - 2], ax
dec esi
mov dword [ebp - 4], esi
jmp 0x403530
movzx eax, word [edi + esi*2]
cmp eax, 0x2f
je 0x403522
cmp eax, 0x5c
je 0x403522
dec esi
test esi, esi
jg 0x40350f
test esi, esi
je 0x4035d4
xor eax, eax
mov word [edi + esi*2], ax
push edi
call fcn.00401d97
pop ecx
test eax, eax
je 0x40351e
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 0x403567
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.004031bf
pop ecx
pop ecx
test eax, eax
je 0x403567
xor esi, esi
jmp 0x4035f7
push edi
call fcn.00401d97
pop ecx
test eax, eax
jne 0x4035c1
push edi
push 0xc
push 1
call fcn.00408eab
add esp, 0xc
jmp 0x403560
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 sub.MSVCRT.dll_memcpy
xor ecx, ecx
add esp, 0xc
cmp word [ebx], cx
je 0x4035b3
jmp 0x4035b2
movzx eax, word [edi + esi*2]
cmp eax, 0x5c
je 0x4035b9
cmp eax, 0x2f
je 0x4035b9
inc esi
cmp word [edi + esi*2], cx
jne 0x4035a4
xor eax, eax
mov word [edi + esi*2], ax
jmp 0x403567
cmp esi, dword [ebp - 4]
jl 0x403581
push dword [ebp - 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
pop ecx
inc eax
jmp 0x40361b
cmp dword [ebp - 4], 2
jne 0x403604
mov ax, word [ebx]
or ax, 0x20
cmp ax, 0x61
jb 0x403604
cmp ax, 0x7a
ja 0x403604
cmp word [ebx + 2], 0x3a
jne 0x403604
xor esi, esi
inc esi
push dword [ebp - 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, esi
jmp 0x40361b
push ebx
push 0xc
push 1
call fcn.00408eab
push dword [ebp - 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret