joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10012c43
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
movzx eax, byte [ebp + 0x38]
test eax, eax
je 0x10012c98
lea eax, [ebp + 0x2c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
test eax, eax
je 0x10012c85
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp - 0x10]
call fcn.1002c572
mov dword [eax], 0x8bbca631
jmp 0x10012c96
push 0x1b65
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreatePipe]
jmp 0x10012d06
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push 0x67fd
push dword [ebp - 0x20]
push 0x6abe
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push 1
call fcn.1000eae4
add esp, 0x34
mov esp, ebp
pop ebp
ret
Function at 0x10019176
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005f94d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x38
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x100192e6
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2c], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
movzx eax, byte [eax]
test eax, eax
je 0x100191cc
push 0x127a
push 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x100192e4
mov dword [ebp - 0x24], 0x7d05
mov dword [ebp - 0x30], 0x10008828
cmp dword [ebp - 0x24], 0x8072
jle 0x1001927b
and dword [ebp - 0x14], 0
jmp 0x100191f4
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x5093
jge 0x1001926c
and dword [ebp - 0x18], 0
jmp 0x1001920a
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x19a
jge 0x1001926a
and dword [ebp - 0x1c], 0
jmp 0x10019220
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x2ec5
jge 0x10019268
and dword [ebp - 0x20], 0
jmp 0x10019236
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x2fb2
jge 0x10019266
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
sar eax, cl
and eax, dword [ebp - 0x20]
cdq
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], edx
push dword [ebp - 0x44]
push dword [ebp - 0x48]
mov ecx, 0x10607df8
call fcn.1002c3bf
jmp 0x1001922f
jmp 0x10019219
jmp 0x10019203
jmp 0x100191ed
push 0
push 0
push 0x129d
call dword [sym.imp.GDI32.dll_PlayEnhMetaFile]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
and dword [ebp - 4], 0
cmp dword [ebp - 0x24], 0x79ae
jge 0x1001929b
mov edx, dword [ebp - 0x30]
mov ecx, 0x10607df8
call fcn.1002de69
jmp 0x100192b7
or dword [ebp - 4], 0xffffffff
jmp 0x100192c1
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
movzx eax, byte [eax]
test eax, eax
je 0x100192e4
push 0
push 0
push 0x25f2
push 0
push 0
call dword [sym.imp.USER32.dll_DialogBoxParamA]
jmp 0x10019302
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3c], eax
push 1
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
call fcn.10010c2f
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001943f
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1001948f
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
test eax, eax
je 0x10019476
push 0x1b65
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreatePipe]
jmp 0x1001948d
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov eax, dword [eax]
and dword [eax + 0x10], 0
jmp 0x100194b5
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x18], eax
push dword [ebp - 0x14]
push 0
push 0x445
push 0x2b1b
push dword [ebp - 0x18]
call fcn.10010f8b
add esp, 0x14
mov esp, ebp
pop ebp
ret
Function at 0x10028268
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10028304
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
lea eax, [ebp + 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x100282e6
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x100282ca
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 3
jge 0x100282e4
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x1c]
call fcn.1002c572
or dword [eax], 0xffffffff
jmp 0x100282bf
jmp 0x10028302
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
movzx eax, byte [eax]
test eax, eax
je 0x10028302
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
jmp 0x10028318
push 0x2662
push 0
push 0x6ace
call fcn.1000d5bd
add esp, 0xc
mov esp, ebp
pop ebp
ret
Function at 0x10037835
Capabilities:
Get common file path

Disassembly:
mov eax, 0x10060151
call fcn.1005f250
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x1c], 0x6848
mov edi, edx
cmp dword [ebp - 0x1c], 0x6b74
mov ebx, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], ebx
jle 0x100378b3
push 0x46f
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
xor esi, esi
xor eax, eax
mov dword [ebp - 0x18], 0x67e8
mov dword [ebp - 0x14], eax
mov edi, eax
mov ebx, 0x4f71
mov eax, edi
mov ecx, 0x10607df8
cdq
push edx
push eax
call fcn.1002c3bf
inc edi
dec ebx
jne 0x10037884
mov eax, dword [ebp - 0x14]
add eax, esi
dec dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
jne 0x1003787d
inc esi
cmp esi, 0x4d06
jl 0x10037871
mov edi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x24]
and dword [ebp - 4], 0
cmp dword [ebp - 0x1c], 0x64e9
jge 0x100378f1
mov edx, 0x1000a704
mov ecx, 0x10607df8
call fcn.1002de69
jmp 0x100378f1
cmp edi, 0x9ac6cdfa
jae 0x10037903
add dword [0x10066870], 0x1ef74e7f
mov eax, dword [0x10608fdc]
test al, 1
jne 0x10037920
or eax, 1
mov dword [0x10608fdc], eax
call fcn.1003ae67
mov dword [0x10608fd8], eax
jmp 0x10037925
mov eax, dword [0x10608fd8]
mov eax, dword fs:[eax]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword [ebx], eax
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1005b715
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10065750]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.1004d8b8
mov dword [ebp - 0x14], eax
cmp dword [0x10608e5c], esi
jne 0x1005b808
push 0x800
push esi
push 0x10007510
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x1005b795
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1005b8e8
push esi
push esi
push 0x10007510
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x1005b8e8
push 0x10007528
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1005b8e8
push eax
call ebx
push 0x10007534
push edi
mov dword [0x10608e5c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007544
push edi
mov dword [0x10608e60], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007558
push edi
mov dword [0x10608e64], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10608e6c], eax
test eax, eax
je 0x1005b805
push 0x10007574
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10608e68], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1005b82d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1005b820
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x1005b842
push 4
pop eax
jmp 0x1005b8ea
cmp dword [ebp - 0x14], esi
je 0x1005b842
push dword [0x10608e5c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1005b827
mov eax, dword [0x10608e68]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x1005b8a0
cmp dword [0x10608e6c], edi
je 0x1005b8a0
push eax
call ebx
push dword [0x10608e6c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1005b8a0
test eax, eax
je 0x1005b8a0
call ecx
test eax, eax
je 0x1005b895
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x1005b895
test byte [ebp - 8], 1
jne 0x1005b8a0
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x1005b8d0
mov eax, dword [0x10608e60]
cmp eax, edi
je 0x1005b8cd
push eax
call ebx
test eax, eax
je 0x1005b8cd
call eax
mov esi, eax
test esi, esi
je 0x1005b8cd
mov eax, dword [0x10608e64]
cmp eax, edi
je 0x1005b8cd
push eax
call ebx
test eax, eax
je 0x1005b8cd
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x10608e5c]
call ebx
test eax, eax
je 0x1005b8e8
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x1005b8ea
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004adcc
mov esp, ebp
pop ebp
ret
Function at 0x40a15c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov word [ebp + 0xc], ax
mov ebx, 0x19826993
mov eax, ebx
mul ebx
mov dword [ebp - 0x10], eax
mov ebx, eax
xor esi, esi
mov eax, ebx
mul ebx
mov dword [ebp - 0x14], eax
mov ebx, eax
mov word [ebp - 0xc], 0
jmp 0x40a272
mov eax, ebx
xor eax, ebx
mov ebx, eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.00405066
pop ecx
mov edx, eax
mov byte [ebp - 1], dl
cmp byte [ebp - 1], 0
jne 0x40a1b3
mov byte [ebp - 2], 0
jmp 0x40a1dd
call fcn.0040ddd8
mov dword [ebp - 0x18], eax
mov eax, 0x7fff
mov edi, 7
movzx edx, byte [ebp - 1]
mov ecx, edi
sub ecx, edx
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x18]
cdq
idiv ecx
mov edx, eax
mov byte [ebp - 2], dl
mov eax, dword [ebp + 8]
mov al, byte [esi + eax]
cmp al, 0x70
jb 0x40a1fc
cmp al, 0x7f
ja 0x40a1fc
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, dword [ebp + 8]
movzx eax, byte [esi + eax]
cmp eax, 0xe2
jne 0x40a21b
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 8
push 0x90
lea eax, [ebp - 0xa]
push eax
call fcn.0040ddc0
movzx eax, byte [ebp - 1]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
lea eax, [ebp - 0xa]
movzx edx, byte [ebp - 2]
add eax, edx
push eax
call fcn.0040ddb4
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 6
lea eax, [ebp - 0xa]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.0040ddb4
add esp, 0x24
mov eax, ebx
add eax, ebx
mov ebx, eax
add esi, 6
inc word [ebp - 0xc]
movzx eax, word [ebp + 0xc]
dec eax
cmp esi, eax
jb 0x40a190
pop edi
pop esi
pop ebx
leave
ret

Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x402120
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
lea eax, [ebp - 0xc]
call fcn.00401000
lea eax, [ebp - 0x18]
call fcn.00401000
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.00420580
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 0x402171
and dword [ebp - 0x38], 0
mov dword [ebp - 0x50], 0x8740
test byte [ebp + 0xc], 2
je 0x40217e
mov dword [ebp - 0x48], str.runas
mov esi, dword [ebp + 0xc]
and esi, 0x10000
jne 0x402190
or dword [ebp - 0x50], 0x100
mov eax, dword [0x42f27c]
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]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0xc]
call fcn.004036d6
push eax
lea eax, [ebp - 0x18]
call fcn.0040100c
lea eax, [ebp - 0xc]
call fcn.0040b9c5
test eax, eax
jne 0x4021e0
lea eax, [ebp - 0x18]
call fcn.004017d0
lea eax, [ebp - 0xc]
call fcn.004017d0
xor eax, eax
inc eax
pop esi
leave
ret
lea eax, [ebp - 0xc]
call fcn.0040bbc2
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x18]
call fcn.0040bbc2
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x402233
test esi, esi
jne 0x402213
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 eax, [ebp - 0x18]
call fcn.004017d0
lea eax, [ebp - 0xc]
call fcn.004017d0
mov eax, esi
jmp 0x4021dd
xor esi, esi
jmp 0x40221f
Function at 0x402c94
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
push dword [ebp + 8]
mov eax, esi
call fcn.0040274d
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x402da8
push edi
push edi
mov dword [0x42cee0], esi
mov dword [0x42f278], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x42cee4], eax
cmp eax, edi
je 0x402cef
cmp dword [0x42f28c], 2
je 0x402ce1
call fcn.00409fb5
mov eax, dword [0x42cee4]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x42cee4]
mov ecx, dword [0x42f278]
mov dword [0x42f2b8], edi
cmp ecx, edi
je 0x402d35
cmp ecx, 1
je 0x402d29
cmp ecx, 2
je 0x402d25
cmp ecx, 3
je 0x402d21
cmp ecx, 0x67
jle 0x402d1c
cmp ecx, 0x6b
jle 0x402d9e
push ecx
push 0x14
jmp 0x402d6f
push 0x12
jmp 0x402d2b
push 0x13
jmp 0x402d2b
push 0x11
push edi
call fcn.00409eb8
pop ecx
pop ecx
jmp 0x402d9e
mov dword [ebp + 8], edi
cmp dword [0x42f2c0], edi
jne 0x402d9e
cmp eax, edi
je 0x402d5c
lea ecx, [ebp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x402d5c
cmp dword [ebp + 8], edi
jne 0x402d5c
xor eax, eax
jmp 0x402da3
mov ecx, dword [ebp + 8]
mov eax, 0x80070000
and ecx, eax
cmp ecx, eax
je 0x402d72
push dword [ebp + 8]
push 0x21
push edi
jmp 0x402d96
mov eax, dword [ebp + 8]
and eax, 0xffff
cmp eax, 0xe
jne 0x402d88
cmp dword [0x42f290], 0xffffffff
je 0x402d9e
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 8]
push 0x22
push 1
call fcn.00409eb8
add esp, 0xc
mov eax, 0x80004005
pop edi
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov eax, esi
call fcn.00401000
push 2
mov eax, esi
call fcn.004034b3
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
push eax
push 1
call edi
mov ebx, eax
xor eax, eax
mov ecx, esi
call fcn.004017ea
test ebx, ebx
je 0x40364b
inc ebx
push ebx
mov eax, esi
call fcn.004034b3
push eax
push ebx
call edi
push esi
call fcn.00403495
mov eax, esi
call fcn.0040b9c5
and dword [ebp - 4], 0
lea ebx, [eax + 0xf]
lea edi, [eax + eax]
push ebx
mov eax, esi
call fcn.004034b3
push dword [ebp - 4]
add eax, edi
push dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push esi
call fcn.00403495
mov eax, esi
call fcn.0040bbc2
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40369b
inc dword [ebp - 4]
cmp dword [ebp - 4], 0xfff
jl 0x40365c
pop edi
mov eax, esi
pop ebx
leave
ret
Function at 0x403886
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 0x4038c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0xb7
cmp eax, esi
je 0x4038b3
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x4038cb
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4038c8
test al, 0x10
jne 0x4038c8
push esi
jmp 0x4038a9
xor eax, eax
inc eax
pop esi
pop ebp
ret

Function at 0x4041ca
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
mov dword [ebp - 8], eax
push ebx
lea eax, [ebp - 0x1c]
push eax
call fcn.004017d5
push 0
lea eax, [ebp - 0x1c]
call fcn.004034b3
mov edi, eax
movzx eax, word [ebx + esi*2 - 2]
cmp eax, 0x5c
je 0x404207
cmp eax, 0x2f
jne 0x404235
xor eax, eax
mov word [edi + esi*2 - 2], ax
dec esi
mov dword [ebp - 8], esi
jmp 0x404235
movzx eax, word [edi + esi*2]
cmp eax, 0x2f
je 0x404227
cmp eax, 0x5c
je 0x404227
dec esi
test esi, esi
jg 0x404214
test esi, esi
je 0x4042d8
xor eax, eax
mov word [edi + esi*2], ax
push edi
call fcn.00403886
pop ecx
test eax, eax
je 0x404223
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x40426c
lea eax, [ebp - 0x10]
push eax
mov eax, edi
call fcn.00403818
pop ecx
test eax, eax
je 0x40426c
xor esi, esi
jmp 0x4042fb
push edi
call fcn.00403886
pop ecx
test eax, eax
jne 0x4042c6
push edi
push 0xc
push 1
call fcn.00409eb8
add esp, 0xc
jmp 0x404265
mov eax, dword [ebp - 8]
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.00420ec0
xor ecx, ecx
add esp, 0xc
cmp word [ebx], cx
je 0x4042b8
jmp 0x4042b7
movzx eax, word [edi + esi*2]
cmp eax, 0x5c
je 0x4042be
cmp eax, 0x2f
je 0x4042be
inc esi
cmp word [edi + esi*2], cx
jne 0x4042a9
xor eax, eax
mov word [edi + esi*2], ax
jmp 0x40426c
cmp esi, dword [ebp - 8]
jl 0x404286
lea eax, [ebp - 0x1c]
call fcn.004017d0
xor eax, eax
inc eax
jmp 0x40431e
cmp dword [ebp - 8], 2
jne 0x404307
mov ax, word [ebx]
or ax, 0x20
cmp ax, 0x61
jb 0x404307
cmp ax, 0x7a
ja 0x404307
cmp word [ebx + 2], 0x3a
jne 0x404307
xor esi, esi
inc esi
lea eax, [ebp - 0x1c]
call fcn.004017d0
mov eax, esi
jmp 0x40431e
push ebx
push 0xc
push 1
call fcn.00409eb8
add esp, 0xc
lea eax, [ebp - 0x1c]
call fcn.004017d0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404323
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, 0x268
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.004017d5
push 0x426ad8
lea esi, [ebp - 0x10]
call fcn.00412685
lea eax, [ebp - 0x264]
push eax
mov eax, esi
call fcn.0040bbc2
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
je 0x404412
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push dword [ebp + 8]
lea eax, [ebp - 0x10]
call fcn.0040100c
push 0x5c
lea esi, [ebp - 0x10]
call fcn.00401d07
lea eax, [ebp - 0x238]
push eax
call fcn.00412685
test byte [ebp - 0x264], 0x10
je 0x4043d3
push 0x426ae0
lea eax, [ebp - 0x238]
push eax
call ebx
test eax, eax
je 0x4043f1
push 0x426ae4
lea eax, [ebp - 0x238]
push eax
call ebx
test eax, eax
je 0x4043f1
mov eax, esi
call fcn.0040bbc2
push eax
call fcn.00404323
pop ecx
jmp 0x4043ed
lea eax, [ebp - 0x10]
call fcn.0040bbc2
mov esi, eax
push 0
push esi
call edi
test eax, eax
je 0x404448
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x404448
lea eax, [ebp - 0x264]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x404375
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 0x42f2f8
call fcn.0040bbc2
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0
push dword [ebp + 8]
call edi
test eax, eax
je 0x404448
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x404448
lea eax, [ebp - 0x10]
call fcn.004017d0
xor eax, eax
inc eax
jmp 0x404452
lea eax, [ebp - 0x10]
call fcn.004017d0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x404457
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x250
cmp dword [0x42f2c8], 0
je 0x404471
xor eax, eax
inc eax
jmp 0x4044af
lea eax, [esp]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x40446c
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [esp], 0x10
jne 0x4044a8
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4044a4
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4044af
xor eax, eax
jmp 0x4044af
push esi
call fcn.00404323
pop ecx
mov esp, ebp
pop ebp
ret