joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410f2d
Capabilities:
Create thread

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push esi
push edi
mov esi, ecx
push 0x20
pop ecx
mov dword [esi], eax
cmp eax, ecx
jbe 0x410f42
mov dword [esi], ecx
xor edi, edi
xor ebx, ebx
inc edi
cmp dword [esi], ebx
jne 0x410f4d
mov dword [esi], edi
cmp dword [esi], ecx
jbe 0x410f53
mov dword [esi], ecx
push ebx
push ecx
push ebx
push ebx
mov byte [esi + 0x190], bl
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
push ebx
push edi
push edi
push ebx
mov dword [esi + 0x194], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x198], eax
lea eax, [esi + 0x19c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
cmp dword [esi + 0x194], ebx
je 0x410f96
cmp dword [esi + 0x198], ebx
jne 0x410fb1
push str._nThread_pool_initialization_failed.
mov edi, 0x42f76c
push edi
call fcn.00406409
pop ecx
pop ecx
push 2
mov ecx, edi
call fcn.004064c5
mov dword [esp + 0x14], ebx
cmp dword [esi], ebx
jbe 0x411026
push ebp
lea ebp, [esi + 4]
lea eax, [esp + 0x10]
push eax
push ebx
push esi
push 0x410ee4
push 0x10000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
cmp edi, ebx
jne 0x411002
push str.CreateThread_failed
push 0x42f76c
call fcn.00406409
pop ecx
pop ecx
mov ecx, 0x42f76c
call fcn.00401000
push 2
mov ecx, 0x42f76c
call fcn.004064c5
mov dword [ebp], edi
mov eax, dword [0x44b74c]
cmp eax, ebx
je 0x411016
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
inc dword [esp + 0x18]
mov eax, dword [esp + 0x18]
add ebp, 4
cmp eax, dword [esi]
jb 0x410fbd
pop ebp
pop edi
mov dword [esi + 0x188], ebx
mov dword [esi + 0x18c], ebx
mov dword [esi + 0x84], ebx
mov eax, esi
pop esi
pop ebx
pop ecx
ret 4
Function at 0x4172c7
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x425fc0
call fcn.00419d48
push ecx
push ebx
push esi
mov esi, ecx
push 1
lea ecx, [esi + 4]
mov dword [ebp - 0x10], esi
call fcn.004096b5
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
lea ecx, [esi + 0x4b38]
call fcn.00411d52
lea ecx, [esi + 0x98d0]
call fcn.00412743
lea ecx, [esi + 0xe678]
mov byte [ebp - 4], 5
call fcn.0040a9d7
push 1
lea ecx, [esi + 0xe6b0]
mov byte [ebp - 4], 6
call fcn.004096b5
lea eax, [esi + 0xe6c0]
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
lea eax, [esi + 0xe6d0]
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
lea eax, [esi + 0xe6e0]
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 0xa
mov dword [esi], eax
mov dword [esi + 0x4b34], ebx
mov byte [esi + 0x4c38], bl
mov byte [esi + 0x4c48], bl
mov byte [esi + 0x4c49], bl
mov byte [esi + 0x4c4a], bl
mov dword [esi + 0x1c], 1
call fcn.00411041
push ebx
mov ecx, esi
mov dword [esi + 0x14], eax
mov dword [esi + 0x20], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0xe6f4], ebx
mov dword [esi + 0xe6f8], ebx
call fcn.00415417
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x418dd7
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push esi
call dword [eax + 0x48]
test eax, eax
jl 0x418e09
cmp dword [ebp - 4], edi
jne 0x418e4a
call ebx
sub eax, dword [ebp - 0xc]
cmp eax, 0x2710
ja 0x418e4a
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x418df6
push edi
push edi
push edi
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x418df6
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push esi
call dword [eax + 0x48]
mov esi, eax
cmp esi, edi
jl 0x418ea0
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x4280e8
push eax
call dword [ecx]
mov esi, eax
cmp esi, edi
jl 0x418e97
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
mov esi, eax
cmp esi, edi
jl 0x418e8e
mov eax, dword [ebp - 8]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov esi, eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
cmp esi, edi
pop edi
pop esi
setge al
pop ebx
leave
ret 8
Function at 0x41965e
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 0x18]
sub esp, 0x10
push ebx
push esi
push edi
push 0
push dword [ebp + 0xc]
mov esi, ecx
mov byte [esi + 0x21], al
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp + 8]
mov ecx, esi
call fcn.004195f7
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ebx, dword [sym.imp.USER32.dll_GetParent]
push 2
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
call ebx
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esi + 4]
test eax, eax
je 0x4196c5
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 8]
push esi
push dword [esi]
sub edi, eax
push 0
push dword [ebp + 0xc]
lea ecx, [eax + 1]
dec edi
mov dword [ebp + 0x18], ecx
dec edi
call ebx
push eax
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
push eax
push edi
push dword [ebp - 0xc]
xor edi, edi
push dword [ebp + 0x18]
push 0x40000000
push edi
push str.RarHtmlClassName
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [esi + 4], eax
cmp dword [esi + 0xc], edi
jne 0x419747
cmp dword [ebp + 0xc], edi
je 0x41976a
cmp dword [esi + 0x14], edi
jne 0x41976a
mov eax, dword [esi + 0x10]
cmp eax, edi
je 0x41976a
push eax
mov ecx, esi
call fcn.004192d2
mov esi, eax
cmp esi, edi
je 0x41976a
push 5
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push esi
call fcn.00419d72
pop ecx
jmp 0x41976a
cmp eax, edi
je 0x41975d
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp dword [esi + 0x1c], 0x64
jbe 0x41976a
mov ecx, esi
call fcn.00418fdc
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x419771
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push 0x4280d8
push 1
xor ebx, ebx
push ebx
push 0x428188
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x419842
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x428178
push eax
call dword [ecx]
test eax, eax
jl 0x419839
cmp byte [ebp + 8], bl
je 0x4197c4
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 2
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
cmp dword [ebp + 0x18], ebx
je 0x4197e1
mov eax, dword [ebp - 4]
push dword [ebp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ebx
cmp dword [ebp + 0x1c], ebx
jne 0x4197f3
push 0x427554
jmp 0x4197f6
push dword [ebp + 0x1c]
push eax
call dword [ecx + 0x44]
cmp dword [ebp + 0x20], ebx
je 0x41980b
mov eax, dword [ebp - 4]
push dword [ebp + 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
cmp dword [ebp + 0x14], ebx
je 0x41981c
mov eax, dword [ebp - 4]
push dword [ebp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 1
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x419830
mov bl, 1
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov al, bl
pop ebx
leave
ret 0x1c

Function at 0x41985c
Capabilities:
Get common file path

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
ret 8

Function at 0x41e00b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42c2a0]
jne 0x41e015
repz ret
jmp fcn.00422c1b
Function at 0x4244c5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0041e08c
and dword [ebp - 4], 0
cmp dword [0x44c380], 0
mov ebx, eax
jne 0x424576
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x424627
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x424627
push eax
call fcn.0041e01a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x44c380], eax
call esi
push eax
call fcn.0041e01a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x44c384], eax
call esi
push eax
call fcn.0041e01a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44c388], eax
call esi
push eax
call fcn.0041e01a
pop ecx
mov dword [0x44c390], eax
test eax, eax
je 0x424576
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041e01a
pop ecx
mov dword [0x44c38c], eax
mov eax, dword [0x44c38c]
cmp eax, ebx
je 0x4245ce
cmp dword [0x44c390], ebx
je 0x4245ce
push eax
call fcn.0041e095
push dword [0x44c390]
mov esi, eax
call fcn.0041e095
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4245ce
test edi, edi
je 0x4245ce
call esi
test eax, eax
je 0x4245c5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4245c5
test byte [ebp - 0xc], 1
jne 0x4245ce
or dword [ebp + 0x10], 0x200000
jmp 0x424607
mov eax, dword [0x44c384]
cmp eax, ebx
je 0x424607
push eax
call fcn.0041e095
pop ecx
test eax, eax
je 0x424607
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x424607
mov eax, dword [0x44c388]
cmp eax, ebx
je 0x424607
push eax
call fcn.0041e095
pop ecx
test eax, eax
je 0x424607
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44c380]
call fcn.0041e095
pop ecx
test eax, eax
je 0x424627
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x424629
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x433072
nop
nop
nop
nop
nop
mov ebx, 0x40de38
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x35e73668
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x433060
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4330d2
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x7e8654d3
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4330c0
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x40141e
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x214
lea eax, [esp]
push ebp
push esi
mov esi, dword [esp + 0x228]
push edi
mov edi, dword [esp + 0x22c]
and esi, 0x300
push eax
mov eax, esi
and edi, 1
or eax, 9
push eax
push dword [esp + 0x230]
push dword [esp + 0x230]
call fcn.004063ed
test eax, eax
jne 0x401527
xor ebp, ebp
test byte [esp + 0x22c], 2
je 0x401493
push ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0x20]
mov dword [esp + 0x20], ebp
push eax
lea eax, [esp + 0x28]
push eax
push ebp
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x401503
push 0x105
lea eax, [esp + 0x18]
push eax
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x4014ce
test edi, edi
jne 0x401503
push dword [esp + 0x22c]
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call fcn.0040141e
test eax, eax
jne 0x4014d8
push 0x105
lea eax, [esp + 0x18]
push eax
push edi
push dword [esp + 0x18]
call ebp
test eax, eax
je 0x4014a6
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.004069fb
test eax, eax
jne 0x401514
push dword [esp + 0x228]
push dword [esp + 0x228]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x401527
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x401527
push 0
push esi
push dword [esp + 0x230]
push dword [esp + 0x230]
call eax
pop edi
pop esi
pop ebp
add esp, 0x214
ret 0xc
Function at 0x4032c7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
push edi
xor edi, edi
test ecx, ecx
js 0x4032f0
mov eax, dword [0x429d98]
push edi
add eax, ecx
push edi
push eax
push dword [0x40a014]
mov dword [0x40c94c], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.00403148
test eax, eax
js 0x4033c6
push ebx
push esi
push 4
lea eax, [ebp + 8]
push eax
push dword [0x40a014]
call fcn.00406a5d
test eax, eax
je 0x4033c1
push dword [ebp + 8]
add dword [0x40c94c], 4
call fcn.00403148
mov esi, eax
test esi, esi
js 0x4033bd
cmp dword [ebp + 0x10], edi
jne 0x403391
mov ecx, dword [ebp + 8]
test ecx, ecx
jle 0x4033bd
mov ebx, 0x4000
mov edi, 0x4149f0
cmp ecx, ebx
mov eax, ebx
cmovl eax, ecx
push eax
push edi
push dword [0x40a014]
mov dword [ebp - 4], eax
call fcn.00406a5d
test eax, eax
je 0x4033c1
push dword [ebp - 4]
push edi
push dword [ebp + 0xc]
call fcn.00406b20
test eax, eax
je 0x40338d
mov eax, dword [ebp - 4]
add esi, eax
mov ecx, dword [ebp + 8]
add dword [0x40c94c], eax
sub ecx, eax
mov dword [ebp + 8], ecx
test ecx, ecx
jg 0x403349
jmp 0x4033bd
push 0xfffffffffffffffe
jmp 0x4033c3
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x14]
cmp dword [ebp + 8], eax
cmovl eax, dword [ebp + 8]
push eax
push dword [ebp + 0x10]
push dword [0x40a014]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4033c1
mov esi, dword [ebp - 4]
add dword [0x40c94c], esi
mov eax, esi
jmp 0x4033c4
push 0xfffffffffffffffd
pop eax
pop esi
pop ebx
pop edi
leave
ret 0x10

Function at 0x4033e9
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
cmp dword [ebp + 8], 0
je 0x403411
mov eax, dword [0x40c960]
test eax, eax
je 0x403408
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
and dword [0x40c960], 0
leave
ret
cmp dword [0x40c960], 0
je 0x403423
push 0
call fcn.00406324
leave
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x429d40]
jbe 0x40348d
cmp dword [0x428d38], 0
je 0x403468
test byte [0x429e34], 1
je 0x40348d
call fcn.004033cb
push eax
lea eax, [ebp - 0x80]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
push 0
call fcn.00405e3d
leave
ret
push 0
push 0x403747
push 0
push 0x6f
push dword [0x428d34]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
push 5
push eax
mov dword [0x40c960], eax
call dword [sym.imp.USER32.dll_ShowWindow]
leave
ret
Function at 0x405f21
Capabilities:
Create directory

Disassembly:
push esi
xor esi, esi
push esi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x405f3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
pop esi
ret 4

Function at 0x405f41
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
push 4
pop eax
mov word [ebp - 0x1e], ax
mov eax, 0x408780
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
mov word [ebp - 0x20], 1
mov dword [ebp - 0x10], 0x408770
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x405faf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x405fb9
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
je 0x405fb3
xor eax, eax
jmp 0x405fb9
call dword [sym.imp.KERNEL32.dll_GetLastError]
leave
ret 4
Function at 0x4062b3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
lea eax, [ebp - 0x23c]
push esi
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
ja 0x4062ed
test eax, eax
je 0x4062ed
add eax, eax
cmp word [ebp + eax - 0x23e], 0x5c
je 0x4062ef
mov ecx, 0x4082b0
jmp 0x4062f4
xor eax, eax
mov ecx, 0x4082b2
push dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x23c]
add eax, ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406352
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x406375
push dword [esp + 8]
push dword [esp + 8]
call fcn.0040641b
pop ecx
pop ecx
inc dword [0x429e10]
ret 8

Function at 0x40641b
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
mov ebx, 0x400
mov dword [0x426e78], 0x55004e
mov ebp, 0x426e78
mov dword [0x426e7c], 0x4c
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test esi, esi
je 0x406471
push 1
push 0
push esi
call fcn.00406a30
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebp
push esi
call edi
test eax, eax
je 0x406551
cmp eax, ebx
jg 0x406551
push ebx
mov esi, 0x426678
push esi
push dword [esp + 0x1c]
call edi
test eax, eax
je 0x406551
cmp eax, ebx
jg 0x406551
push esi
push ebp
push str._ls_ls_r_n
push 0x426278
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [0x429d50]
add esp, 0x10
mov ebp, eax
push dword [ecx + 0x128]
push esi
call fcn.00405fbd
push 4
push 0xc0000000
push esi
call fcn.00406a30
mov ebx, eax
cmp ebx, 0xffffffff
je 0x406551
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea ecx, [ebp + 0xa]
add ecx, esi
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x40654a
push esi
push edi
push ebx
call fcn.00406a5d
test eax, eax
je 0x40654a
push str._Rename__r_n
push edi
call fcn.00406c4b
test eax, eax
jne 0x406556
push str._Rename__r_n
lea eax, [edi + esi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esi, 0xa
mov ecx, esi
push ebp
push 0x426278
lea eax, [ecx + edi]
push eax
call fcn.004067c9
xor eax, eax
push eax
push eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esi + ebp]
push eax
push edi
push ebx
call fcn.00406b20
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret
push 0x4089a4
add eax, 0xa
push eax
call fcn.00406c4b
mov ecx, eax
test ecx, ecx
je 0x40651b
lea edx, [edi + esi]
jmp 0x406575
mov al, byte [edx]
mov byte [edx + ebp], al
dec edx
cmp edx, ecx
ja 0x40656f
sub ecx, edi
inc ecx
jmp 0x40651d
Function at 0x40669a
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
call fcn.00406cb2
mov edi, eax
cmp edi, 0xffffffff
je 0x4066dd
test byte [ebp + 0xc], 1
push dword [ebp + 8]
je 0x4066be
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4066c4
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4066cd
xor eax, eax
inc eax
jmp 0x4066df
test byte [ebp + 0xc], 4
jne 0x4066dd
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop ebp
ret 8

Function at 0x40674d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push dword [esp + 0xc]
mov ebx, 0x425a78
push ebx
call fcn.00406c2f
push ebx
call fcn.00406cda
mov esi, eax
test esi, esi
je 0x4067c2
push esi
call fcn.00406e52
test byte [0x429d4c], 0x80
je 0x406786
movzx eax, word [esi]
test ax, ax
je 0x4067c2
cmp eax, 0x5c
je 0x4067c2
sub esi, ebx
sar esi, 1
jmp 0x4067a0
call fcn.004066e4
test eax, eax
je 0x40679a
test byte [eax], 0x10
je 0x4067c2
push ebx
call fcn.00406e25
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
cmp eax, esi
jg 0x40678c
call fcn.0040666b
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4067c2
xor eax, eax
inc eax
jmp 0x4067c4
xor eax, eax
pop esi
pop ebx
ret 4

Function at 0x4067eb
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x425230], 0x44
lea eax, [ebp - 0x10]
push eax
push 0x425230
xor eax, eax
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40682a
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4