joyce8/EMBER2024-capa huggingface dataset:
Function at 0xe4de00
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0xe638f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov ecx, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x24]
lea eax, [esp + 4]
push edi
xor edi, edi
push eax
push 0x20019
push edi
push esi
push ecx
mov dword [esp + 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0xe4ded2
lea edx, [esp + 0x24]
push eax
push edx
call fcn.00e4a7a0
add esp, 8
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], edi
cmp eax, edi
je 0xe4de61
mov edx, dword [eax]
jmp 0xe4de63
xor edx, edx
xor ecx, ecx
push edi
xor eax, eax
push edx
push ecx
mov ecx, dword [esp + 0x38]
push eax
lea eax, [esp + 0x1c]
mov edx, dword [ecx + 4]
push eax
push esi
push 2
push edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call fcn.00e4c050
mov eax, dword [esp + 0x44]
add esp, 0x20
cmp eax, edi
mov dword [esp + 0x1c], 0xffffffff
je 0xe4debf
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0xe4debf
cmp esi, edi
je 0xe4debf
mov ecx, esi
call fcn.00e45a00
push esi
call fcn.00e531c8
add esp, 4
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
push edi
lea eax, [esp + 0x2c]
push edi
push eax
call fcn.00e4a990
add esp, 0xc
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], 1
cmp eax, edi
je 0xe4def5
mov eax, dword [eax]
jmp 0xe4def7
xor eax, eax
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x2c]
push ebx
push esi
push eax
push ecx
push edx
call fcn.00e49640
add esp, 0x10
mov bl, al
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x2c]
cmp eax, edi
je 0xe4df25
mov eax, dword [eax]
jmp 0xe4df27
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x20], 0xffffffff
cmp esi, edi
je 0xe4df76
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0xe4df76
cmp esi, edi
je 0xe4df76
mov eax, dword [esi]
cmp eax, edi
je 0xe4df5d
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, edi
je 0xe4df6d
push eax
call fcn.00e531c8
add esp, 4
push esi
call fcn.00e531c8
add esp, 4
mov ecx, dword [esp + 0x18]
mov al, bl
pop ebx
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0xe4df90
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x208
lea eax, [esp]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push ebp
push esi
push edi
xor edi, edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
mov esi, dword [esp + 0x21c]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0xe4dffb
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0xe4e035
lea edx, [esp + 0x10]
push esi
push edx
push SysStringLen
call fcn.00e4de00
add esp, 0xc
lea eax, [esp + 0x10]
inc edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
test eax, eax
je 0xe4dfc5
mov edi, 0xe688b0
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0xe4e035
mov edx, dword [edi]
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00e4de00
add edi, 4
add esp, 0xc
cmp edi, 0xe688c0
jb 0xe4e000
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x208
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x208
ret

Function at 0xe4e070
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x250
push esi
push edi
mov edi, dword [esp + 0x25c]
push 0x5c
push edi
call fcn.00e54082
mov esi, eax
add esp, 8
test esi, esi
je 0xe4e107
lea eax, [esp + 8]
mov word [esi], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0xe4e102
push ebx
lea ebx, [esi + 2]
push ebp
lea ecx, [esp + 0x3c]
push ebx
push ecx
call fcn.00e53946
add esp, 8
test eax, eax
je 0xe4e0e3
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea edx, [esp + 0x10]
push edx
push edi
call ebp
test eax, eax
je 0xe4e0e8
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.00e53946
add esp, 8
test eax, eax
jne 0xe4e0c5
mov word [esi], 0x5c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp word [esi], 0
pop ebp
pop ebx
je 0xe4e102
pop edi
mov al, 1
pop esi
add esp, 0x250
ret
mov word [esi], 0x5c
pop edi
xor al, al
pop esi
add esp, 0x250
ret
Function at 0xe4ef10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0xe639fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0xe4f002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.00e52dff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0xe4f002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.00e4a6e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.00e5320b
push 0x10
call fcn.00e531d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0xe4efc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.00e3f1c0
jmp 0xe4efc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.00e4eb80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0xe4eff0
mov ecx, edi
call fcn.00e3f2c0
push edi
call fcn.00e531c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0xe4f021
inc ebx
cmp ebx, 0x20
jb 0xe4ef3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0xe50250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xe64808
push 0xe54288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0xe50329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0xe50329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00e531d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0xe50329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0xe50329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0xe5032c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00e50351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xe50d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xe50d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0xe50d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xe50d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xe50d94
push eax
push esi
call fcn.00e5320b
add esp, 8
pop esi
ret 0x10

Function at 0xe50da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xe50e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xe50e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xe69320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00e52dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0xe50dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0xe50e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xe50ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xe50eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xe69320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00e52dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0xe50eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xe50e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0xe51000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xe51131
push esi
call fcn.00e54145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00e43080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xe51131
push 0
push ebp
call fcn.00e433a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00e43260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xe5108b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00e432f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xe51121
push 0xe69918
push edi
call fcn.00e523f0
push eax
push ebx
push esi
call fcn.00e50f60
push 0xe698f8
push edi
call fcn.00e523f0
push eax
push ebx
push esi
call fcn.00e50f60
push 0xe698d8
push edi
call fcn.00e523f0
push eax
push ebx
push esi
call fcn.00e50f60
push 0xe698c0
push edi
call fcn.00e523f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00e50f60
push 0xe698a0
push edi
call fcn.00e523f0
push eax
push ebx
push esi
call fcn.00e50f60
push 0xe69888
push edi
call fcn.00e523f0
push eax
push ebx
push esi
call fcn.00e50f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xe521b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00e52140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00e52140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00e52140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00e52140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xe52bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xe52c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xe6487c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xe52c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xe52c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x402ecc
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
xor ebx, ebx
push 8
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402f58
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
jne 0x402f43
cmp dword [ebp + 0x10], ebx
jne 0x402f35
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402ecc
test eax, eax
jne 0x402f43
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
jmp 0x402f08
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
jmp 0x402f58
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4032be
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x4032db
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x4032ea
mov ebx, 0x4183ac
mov eax, dword [ebp + 8]
test eax, eax
jl 0x4032ff
mov ecx, dword [0x44aa78]
add ecx, eax
push ecx
call fcn.004034ec
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.004034ba
test eax, eax
je 0x4034a8
test byte [ebp + 0x17], 0x80
je 0x40344e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x4142e0
mov dword [ebp - 0xc], eax
call fcn.004063f0
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x4034b0
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x40334f
mov esi, dword [ebp + 0x14]
mov edi, 0x4143ac
push esi
push edi
call fcn.004034ba
test eax, eax
je 0x4034a8
sub dword [ebp + 0x14], esi
mov dword [0x4142f8], edi
mov dword [0x4142fc], esi
mov eax, dword [ebp - 8]
mov ecx, 0x4142e0
mov dword [0x414300], ebx
mov dword [0x414304], eax
call fcn.00406412
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x403446
mov esi, dword [0x414300]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x409808], 1
mov edi, eax
je 0x4033f1
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x4033be
cmp dword [ebp + 0x14], 0
jne 0x4033f1
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x54]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push 0
call fcn.0040521f
mov dword [ebp - 0xc], edi
xor eax, eax
cmp esi, eax
je 0x40343b
cmp dword [ebp + 0x10], eax
jne 0x40341a
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40344a
cmp dword [ebp - 0x10], esi
jne 0x40344a
add dword [ebp - 4], esi
jmp 0x403430
sub dword [ebp - 8], esi
add dword [ebp - 4], esi
cmp dword [ebp - 8], 1
mov ebx, dword [0x414300]
jl 0x4034b0
cmp dword [ebp - 0x14], 1
je 0x4034b0
jmp 0x403372
cmp dword [ebp + 0x14], eax
jg 0x403342
jmp 0x4034b0
push 0xfffffffffffffffc
jmp 0x4034aa
push 0xfffffffffffffffe
jmp 0x4034aa
test edi, edi
jne 0x403495
cmp dword [ebp + 0x14], 0
jle 0x4034b0
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x403463
mov esi, dword [ebp + 0x14]
mov edi, 0x4143ac
push esi
push edi
call fcn.004034ba
test eax, eax
je 0x4034a8
lea eax, [ebp + 0x10]
push 0
push eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40344a
cmp esi, dword [ebp + 0x10]
jne 0x40344a
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
jmp 0x403452
cmp dword [ebp + 0x14], esi
jge 0x40349d
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.004034ba
test eax, eax
jne 0x4034ad
push 0xfffffffffffffffd
pop eax
jmp 0x4034b3
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x403baa
Capabilities:
Identify system language via api

Disassembly:
push ecx
cmp byte [0x47b000], 0
push ebx
push ebp
push esi
push edi
mov ebx, pe_overlay
mov ebp, 0x47b000
je 0x403bca
push ebp
call fcn.00405e89
jmp 0x403bd0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov dword [esp + 0x10], eax
xor esi, esi
mov edi, dword [0x44aa64]
mov eax, edi
dec edi
test eax, eax
je 0x403c2c
mov eax, dword [0x44aa28]
mov ecx, dword [eax + 0x64]
mov edx, ecx
imul ecx, edi
neg edx
add ecx, dword [0x44aa60]
mov ax, word [esp + 0x10]
mov esi, ecx
xor ax, word [ecx]
and eax, ebx
test ax, ax
je 0x403c14
mov eax, edi
dec edi
add ecx, edx
test eax, eax
jne 0x403bf8
jmp 0x403c2c
mov eax, dword [esi + 2]
mov dword [0x446a00], eax
mov eax, dword [esi + 6]
mov dword [0x44aac8], eax
lea eax, [esi + 0xa]
mov dword [0x4469fc], eax
cmp dword [0x4469fc], 0
jne 0x403c47
cmp bx, 0xffff
jne 0x403c43
mov ebx, 0x3ff
jmp 0x403bd6
xor ebx, ebx
jmp 0x403bd6
movzx eax, word [esi]
push eax
push ebp
call fcn.00405e70
push 0xfffffffffffffffe
push 0x446a20
call fcn.00405f42
push eax
push dword [0x4343c0]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [0x44aa4c]
mov esi, dword [0x44aa48]
mov ecx, eax
dec eax
test ecx, ecx
je 0x403c9b
lea ebx, [esi + 0x18]
lea ebp, [eax + 1]
mov edi, 0x2018
mov eax, dword [esi]
test eax, eax
je 0x403c94
push eax
push ebx
call fcn.00405f42
add esi, edi
add ebx, edi
dec ebp
jne 0x403c87
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x405743
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0xc]
mov dword [0x439be8], 0x44
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
je 0x405767
test al, 0x10
jne 0x40576a
mov dword [ebp + 0xc], ecx
lea eax, [ebp - 0x10]
push eax
push 0x439be8
push dword [ebp + 0xc]
push ecx
push ecx
push ecx
push ecx
push ecx
push dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x405795
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 8
Function at 0x405815
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.00405afa
test byte [ebp + 0xc], 8
mov dword [ebp - 4], eax
je 0x405849
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x44aaa8], eax
jmp 0x405a12
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp + 8], ebx
je 0x405867
test eax, eax
je 0x405996
test byte [ebp + 0xc], 2
je 0x405996
mov esi, 0x4353e8
push edi
push esi
call fcn.00405f13
test ebx, ebx
je 0x405884
push str..
push esi
call fcn.00405f31
jmp 0x40588a
push edi
call fcn.00405a5f
push 0x409228
push edi
call fcn.00405f31
push edi
call fcn.00405f24
mov ebx, eax
lea eax, [ebp - 0x144]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40598c
cmp byte [ebp - 0x118], 0x2e
jne 0x4058db
cmp byte [ebp - 0x117], 0x2e
je 0x40596f
cmp byte [ebp - 0x117], 0
je 0x40596f
lea eax, [ebp - 0x118]
push eax
push ebx
call fcn.00405f13
test byte [ebp - 0x144], 0x10
je 0x405906
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x40596f
push dword [ebp + 0xc]
push edi
call fcn.00405815
jmp 0x40596f
push edi
push str.Delete:_DeleteFile___s__
call fcn.004062b9
mov eax, dword [ebp - 0x144]
pop ecx
pop ecx
and al, 0xfe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405967
test byte [ebp + 0xc], 4
push edi
je 0x405953
push str.Delete:_DeleteFile_on_Reboot___s__
call fcn.004062b9
pop ecx
pop ecx
push edi
push 0xfffffffffffffff1
call fcn.0040521f
push 0
push edi
call fcn.00405c5c
jmp 0x40596f
push str.Delete:_DeleteFile_failed___s__
call fcn.004062b9
inc dword [0x44aaa8]
pop ecx
pop ecx
jmp 0x40596f
push edi
push 0xfffffffffffffff2
call fcn.0040521f
lea eax, [ebp - 0x144]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4058b8
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405996
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp + 8], esi
je 0x405a12
cmp dword [ebp - 4], esi
push edi
jne 0x4059b8
push str.RMDir:_RemoveDirectory_invalid_input___s__
call fcn.004062b9
inc dword [0x44aaa8]
pop ecx
pop ecx
jmp 0x405a12
call fcn.004062d5
test eax, eax
je 0x405a12
push edi
call fcn.00405a18
push edi
push str.RMDir:_RemoveDirectory___s__
call fcn.004062b9
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x405a0a
test byte [ebp + 0xc], 4
push edi
je 0x405a03
push str.RMDir:_RemoveDirectory_on_Reboot___s__
call fcn.004062b9
pop ecx
pop ecx
push edi
push 0xfffffffffffffff1
call fcn.0040521f
push esi
push edi
call fcn.00405c5c
jmp 0x405a12
push str.RMDir:_RemoveDirectory_failed___s__
jmp 0x4059a9
push edi
push 0xffffffffffffffe5
call fcn.0040521f
pop edi
pop esi
leave
ret 8