joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ca84
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40cb88
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x59eb8c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x59eba4]
jne 0x40cad0
mov eax, esi
mov edx, 0x59eba6
mov ecx, 0x55
call fcn.0040ab48
push 0x59eb8c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40cb72
push 0x59eb8c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00409f70
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40cb3f
cmp byte [0x59eb88], 0
je 0x40cb04
mov edx, esi
mov eax, ebx
call fcn.0040c968
jmp 0x40cb3f
mov edx, esi
mov eax, ebx
call fcn.0040c76c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40cb3f
cmp dword [esi], 0
je 0x40cb28
mov eax, esi
mov edx, 0x40cba0
call fcn.0040aca0
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040c76c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040aca0
push 0x59eb8c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x59eba4], bx
mov eax, dword [esi]
call fcn.0040aaa4
mov ecx, eax
mov eax, 0x59eba6
mov edx, 0xaa
call fcn.0040c5ec
push 0x59eb8c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cb8f
lea eax, [ebp - 4]
call fcn.00409f70
ret
Function at 0x40cdb8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040a054
xor eax, eax
push ebp
push 0x40cfdd
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40cdf8
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40ce12
mov eax, dword [ebp - 4]
call fcn.0040aaa4
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040c5ec
cmp word [ebp - 0x21a], 0
je 0x40cfc7
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cfec
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cee1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cfec
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cee1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d028
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cee1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d028
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cee1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d05c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cee1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d090
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40cfc7
xor eax, eax
push ebp
push 0x40cfc0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040cbc8
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40cf50
mov eax, dword [ebp - 0x10]
call fcn.00406a4c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040ab0c
jmp 0x40cf9b
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40d0d0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40cf9b
mov eax, dword [ebp - 0x10]
call fcn.00406a4c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40d0d0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040ab0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cfc7
cmp dword [ebp - 8], 0
je 0x40cfb6
mov eax, dword [ebp - 8]
call fcn.00406a68
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cfe4
lea eax, [ebp - 4]
call fcn.00409f70
ret
Function at 0x40d2cc
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040a054
xor eax, eax
push ebp
push 0x40d38c
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040ab48
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040acf8
mov eax, dword [ebx]
call fcn.0040d194
test al, al
jne 0x40d369
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040ab48
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040acf8
mov eax, dword [ebx]
call fcn.0040d194
test al, al
jne 0x40d369
mov eax, ebx
call fcn.00409f70
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d393
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00409fd0
lea eax, [ebp - 4]
call fcn.00409f70
ret

Function at 0x40dcdc
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret
Function at 0x41e81c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41e875
test eax, edx
je 0x41e878
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41e833
movzx eax, word [eax]
sub eax, ecx
jmp 0x41e85a
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x41e85b
add ecx, 4
js 0x41e84b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41e858
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41e85a
xor eax, eax
ret
test eax, eax
je 0x41e884
test edx, edx
jne 0x41e824
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x41f694
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [esi]
add eax, edi
push eax
push ebx
call sub.kernel32.dll_ReadFile_1
test eax, eax
jne 0x41f6c1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.0040aaa4
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41f7fe
test ah, 4
je 0x41f7f7
test bl, bl
jne 0x41f7bc
mov al, 1
jmp 0x41f825
test al, 0x10
je 0x41f7c4
xor eax, eax
jmp 0x41f825
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x41f7e8
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x41f825
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x41f825
test al, 0x10
sete al
jmp 0x41f825
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 2
je 0x41f81f
cmp ebx, 3
je 0x41f81f
cmp ebx, 0x7b
je 0x41f81f
mov eax, esi
call fcn.0041f754
test al, al
jne 0x41f823
xor eax, eax
jmp 0x41f825
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x4232b4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x4232ed
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040a0f8
jmp 0x4232f6
mov eax, ebx
mov edx, esi
call fcn.0040a350
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x423300
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x423322
movzx eax, word [esp]
jmp 0x423324
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x42461c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x424741
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00424424
mov esi, eax
mov eax, dword [0x59be40]
cmp byte [eax], 0
je 0x4246e9
mov eax, dword [0x59bc88]
call fcn.00407670
call fcn.00406ba0
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x4245ec]
call fcn.0040be9c
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x42475c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x424725
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x59bc50]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x59ec54]
call fcn.0040c28c
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x424748
lea eax, [ebp - 4]
mov edx, dword [0x4245ec]
call fcn.0040bfc0
ret

Function at 0x4263f4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.0040a44c
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040dcbc
mov edi, eax
cmp edi, 0x104
jbe 0x42639f
mov eax, edi
add eax, eax
call fcn.00406a4c
mov esi, eax
jmp 0x4263a1
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040dcbc
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x4263da
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x4263c4
mov eax, esp
cmp esi, eax
je 0x4263e7
mov eax, esi
call fcn.00406a68
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x426420
cmp bl, 0
je 0x42641c
cmp bl, 0x41
jl 0x426417
cmp bl, 0x5a
jg 0x426417
or bl, 0x20
xor al, bl
inc esi
jmp 0x4263fb
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x426360

Function at 0x426c6c
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.0040ab48
add esp, 0x800
pop ebx
ret
Function at 0x43576c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4357be
test eax, edx
je 0x4357c1
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x435781
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x4357a7
add ecx, 4
js 0x435797
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x4357a4
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x4357cd
test edx, edx
jne 0x435774
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x47e738
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
mov dl, 0xb5
mov ebx, eax
xor eax, eax
mov ecx, eax
mov esi, ebx
shr esi, cl
mov ecx, esi
and cl, 0xff
xor dl, cl
inc eax
cmp eax, 4
jne 0x47e740
mov eax, edx
pop esi
pop ebx
ret

Function at 0x4aeb98
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4aec36
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xd]
je 0x4aebfa
cmp byte [ebx + 0x11], 0
jne 0x4aebfa
cmp byte [ebx + 0x3c], 0
jne 0x4aebfa
mov byte [ebx + 0xf], 0
mov byte [ebx + 0xd], 0
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x4aec1b
lea edx, [ebp - 4]
mov eax, dword [0x59bdf4]
call fcn.0040dc28
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x489d7c]
call fcn.0042476c
call fcn.0040966c
jmp 0x4aec1b
lea edx, [ebp - 8]
mov eax, dword [0x59bdf4]
call fcn.0040dc28
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x489d7c]
call fcn.0042476c
call fcn.0040966c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aec3d
lea eax, [ebp - 8]
mov edx, 2
call fcn.00409fd0
ret

Function at 0x4af5d4
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xf]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x4af622
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xf], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.004aea18
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4af63b
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4af644
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.004aea18
dec esi
jne 0x4af666
mov byte [ebx + 0xf], 0
pop esi
pop ebx
ret

Function at 0x4cfbe4
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf4
mov ebx, edx
push esp
push 0
push 0
push eax
push 0
call sub.shell32.dll_SHGetFolderPathW
mov eax, ebx
mov edx, esp
mov ecx, 0x105
call fcn.0040ab48
add esp, 0x20c
pop ebx
ret

Function at 0x4cfd00
Capabilities:
Hide graphical window

Disassembly:
push 0
push 0x4cfd1c
call sub.user32.dll_FindWindowW
test eax, eax
je 0x4cfd18
push 0
push eax
call sub.user32.dll_ShowWindow
ret
Function at 0x4d5778
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [0x59be40]
mov byte [eax], 1
mov eax, 0x4d055c
call fcn.0040ed98
xor eax, eax
push ebp
push 0x4d584a
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4d57e9
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x4d5868
mov eax, 0x4d588c
call fcn.004cfd44
push 1
push 0
push 0
push 0x4d589c
push 0x4d58b4
push 0
call sub.shell32.dll_ShellExecuteW
call fcn.004cfea4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d5834
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d5851
lea eax, [ebp - 0x14]
call fcn.00409f70
ret

Function at 0x401020
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sub.ucrtbase.dll__configure_narrow_argv
call sub.ucrtbase.dll__initialize_narrow_environment
call 0x401090
mov esi, dword [eax]
call sub.ucrtbase.dll___p___argv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_narrow_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.004010d0
mov dword [esp], eax
call sub.ucrtbase.dll_exit
jmp dword [sym.imp.ucrtbase.dll___p___argc]
Function at 0x4041d0
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
mov eax, dword [0x56cd6c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0
jne 0x404291
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.0049ffd0
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x40427b
push edi
push 0x104
lea edi, [ebx + 4]
push 0
push edi
call fcn.0049ffd0
add esp, 0xc
lea eax, [ebp - 0x108]
push edi
push 0
push 0x5229b0
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x5229b4
push edi
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 4
push 0
push 7
push 0xc01200a0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebx], eax
pop edi
cmp dword [ebx], 0
jne 0x404291
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004735b8
mov esp, ebp
pop ebp
ret
push 0x208
lea eax, [ebp - 0x310]
push 0
push eax
call fcn.0049ffd0
add esp, 0xc
mov dword [ebp - 0x314], 0
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x310]
push 0x207
push eax
call fcn.00404360
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.004baf31
or ecx, 0xffffffff
add esp, 0x1c
test eax, eax
cmovs eax, ecx
test eax, eax
js 0x4042f1
cmp eax, 0x207
ja 0x4042f1
jne 0x4042f8
mov byte [ebp - 0x109], 0
lea ecx, [ebp - 0x310]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404301
push 0
lea eax, [ebp - 0x314]
sub ecx, edx
push eax
push ecx
lea eax, [ebp - 0x310]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004735b8
mov esp, ebp
pop ebp
ret
Function at 0x404dc0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2024
call fcn.004739e0
mov eax, dword [0x56cd6c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x404df0
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004735b8
mov esp, ebp
pop ebp
ret
push 0x2000
xorps xmm0, xmm0
mov dword [ebp - 0x200c], 0
lea eax, [ebp - 0x2004]
movq qword [ebp - 0x2014], xmm0
push 0
movups xmmword [ebp - 0x2024], xmm0
push eax
mov word [ebp - 0x2008], 0
mov dword [ebp - 0x2020], 3
call fcn.0049ffd0
push 0x1000
lea eax, [ebp - 0x2004]
push esi
push eax
call fcn.004bbf4a
lea eax, [ebp - 0x2004]
add esp, 0x18
mov dword [ebp - 0x201c], eax
mov eax, 0x614
mov word [ebp - 0x2014], ax
lea eax, [ebp - 0x2024]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.004735b8
mov esp, ebp
pop ebp
ret
Function at 0x404e80
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
mov eax, dword [0x56cd6c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x405093
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405093
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404eb3
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jbe 0x405093
push ebx
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov edi, 1
push 0
push eax
call fcn.0049ffd0
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.0049ffd0
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x414]
add esp, 0x18
push esi
push eax
call ebx
push 0x522a6c
lea eax, [ebp - 0x414]
push eax
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404f34
test al, 1
je 0x404f34
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x668], eax
cmp eax, 0xffffffff
je 0x405079
lea ecx, [ebp - 0x664]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x40506d
nop dword [eax]
test byte [ebp - 0x664], 0x10
je 0x404fe8
cmp word [ebp - 0x638], 0x2e
jne 0x404fa7
mov ax, word [ebp - 0x636]
test ax, ax
je 0x405052
cmp ax, 0x2e
jne 0x404fa7
cmp word [ebp - 0x634], 0
je 0x405052
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0049ffd0
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push eax
call ebx
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x20c]
push eax
call ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.00404e80
add esp, 4
jmp 0x405050
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0049ffd0
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push eax
call ebx
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x20c]
push eax
call ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40503f
test al, 1
je 0x40503f
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
and edi, eax
lea eax, [ebp - 0x664]
push eax
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x404f70
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
and eax, edi
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004735b8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.004735b8
mov esp, ebp
pop ebp
ret
Function at 0x4050b0
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x405108
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405108
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4050e8
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x405108
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405103
test al, 0x10
je 0x405103
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x405108
xor eax, eax
pop esi
pop ebp
ret
mov eax, 1
pop esi
pop ebp
ret
Function at 0x405bf0
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405c1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.delete__s_failed__error_d
call fcn.00426a60
add esp, 0xc
mov eax, 1
pop esi
pop ebp
ret
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405c17
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x405c45
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x405c02
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor eax, eax
pop esi
pop ebp
ret