joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404990
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
and eax, 0xffff
movzx ecx, ax
and ecx, 0xff
movzx edx, cl
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 5
sbb eax, eax
add eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x4049d0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x43c400]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.00404990
test eax, eax
je 0x404a56
push 0x9c
push 0
lea eax, [ebp - 0xa8]
push eax
call fcn.0041f300
add esp, 0xc
mov dword [ebp - 0xa8], 0x9c
lea ecx, [ebp - 0xa8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xa4], 5
jne 0x404a34
cmp dword [ebp - 0xa0], 1
jne 0x404a34
movzx edx, word [ebp - 0x14]
cmp edx, 2
jge 0x404a4f
cmp dword [ebp - 0xa4], 5
jne 0x404a46
cmp dword [ebp - 0xa0], 1
ja 0x404a4f
cmp dword [ebp - 0xa4], 5
jbe 0x404a56
mov eax, 1
jmp 0x404a58
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041f2bc
mov esp, ebp
pop ebp
ret

Function at 0x404af0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x43c400]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x9c
push 0
lea eax, [ebp - 0xa8]
push eax
call fcn.0041f300
add esp, 0xc
mov dword [ebp - 0xa8], 0x9c
lea ecx, [ebp - 0xa8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xa4], 6
jne 0x404b4e
cmp dword [ebp - 0xa0], 0
jne 0x404b4e
mov dword [ebp - 0xac], 1
jmp 0x404b58
mov dword [ebp - 0xac], 0
mov eax, dword [ebp - 0xac]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041f2bc
mov esp, ebp
pop ebp
ret

Function at 0x404b70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 1
call fcn.00404990
neg eax
sbb eax, eax
and eax, 9
add eax, 0x10
push eax
mov eax, dword [ebp + 8]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
pop ebp
ret

Function at 0x404ba0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push 1
push 0x26
mov eax, dword [ebp + 8]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x404c01
mov dword [ebp - 4], 0x104
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
push 1
push 0x432a34
push 0x432a44
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00405860
add esp, 0x18
test eax, eax
jne 0x404c01
push 0x432a70
mov eax, dword [ebp + 8]
push eax
call fcn.00420d90
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
call fcn.00405c40
add esp, 4
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x404c10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 1
call fcn.00404990
neg eax
sbb eax, eax
and eax, 0x15
add eax, 2
push eax
mov eax, dword [ebp + 8]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
pop ebp
ret
Function at 0x404c60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
call fcn.00404990
test eax, eax
je 0x404c80
push 1
push 0x23
mov eax, dword [ebp + 8]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
jmp 0x404c90
mov ecx, dword [ebp + 8]
push ecx
call fcn.00404ba0
add esp, 4
jmp 0x404c90
pop ebp
ret

Function at 0x404ca0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x104
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x404cdb
push 0x5c
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040aa40
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x404cd4
mov edx, dword [ebp - 4]
mov byte [edx], 0
mov eax, 1
jmp 0x404cdd
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x405300
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 1
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405353
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405349
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x405355
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x405490
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
neg eax
sbb eax, eax
add eax, 1
pop ebp
ret

Function at 0x405550
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x43c400]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0x104
mov dword [ebp - 8], 0
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x405619
mov eax, 1
test eax, eax
je 0x4055fb
push 0x104
push 0
lea ecx, [ebp - 0x118]
push ecx
call fcn.0041f300
add esp, 0xc
lea edx, [ebp - 0x120]
push edx
push 0
push 0
push 0
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x118]
push ecx
push 0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x4055e0
jmp 0x4055fb
lea eax, [ebp - 0x118]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00405490
add esp, 8
test eax, eax
je 0x4055f9
jmp 0x4055fb
jmp 0x405597
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00405490
add esp, 8
jmp 0x40561c
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041f2bc
mov esp, ebp
pop ebp
ret
Function at 0x4056d0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40571e
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x405714
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x405720
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x405860
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push eax
push 1
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4058e3
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ecx]
mov dword [ebp - 8], edx
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
lea edx, [ebp - 0xc]
push edx
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4058d9
mov edx, dword [ebp + 0x14]
cmp edx, dword [ebp - 0xc]
jne 0x4058d9
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax]
cmp ecx, dword [ebp - 8]
jb 0x4058d9
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp - 8]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x4058e5
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4058f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x405958
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40594e
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x40595a
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x405c40
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x43c400]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x405c6b
mov eax, 1
jmp 0x405d32
push 0x5c
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040aa60
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x405c98
push 0x5c
mov edx, dword [ebp - 4]
add edx, 1
push edx
call fcn.0040aa60
add esp, 8
mov dword [ebp - 4], eax
jmp 0x405c9f
xor eax, eax
jmp 0x405d32
cmp dword [ebp - 4], 0
je 0x405d0b
mov eax, dword [ebp - 4]
sub eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x110]
push edx
call fcn.004031b0
add esp, 0xc
mov eax, dword [ebp - 4]
sub eax, dword [ebp + 8]
mov byte [ebp + eax - 0x110], 0
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x405cf5
push 0
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x405cf5
xor eax, eax
jmp 0x405d32
push 0x5c
mov eax, dword [ebp - 4]
add eax, 1
push eax
call fcn.0040aa60
add esp, 8
mov dword [ebp - 4], eax
jmp 0x405c9f
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x405d2d
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x405d2d
xor eax, eax
jmp 0x405d32
mov eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041f2bc
mov esp, ebp
pop ebp
ret

Function at 0x405e20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jbe 0x405e7f
mov ecx, dword [ebp + 8]
push ecx
call fcn.00420cf0
add esp, 4
sub eax, 1
mov dword [ebp - 4], eax
jns 0x405e51
xor eax, eax
jmp 0x405e81
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
movsx eax, byte [edx]
cmp eax, 0x5c
jne 0x405e68
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
mov byte [ecx], 0
mov edx, dword [ebp + 8]
push edx
call fcn.00405c40
add esp, 4
test eax, eax
je 0x405e7f
mov eax, 1
jmp 0x405e81
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x406650
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x364
mov eax, dword [0x43c400]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jne 0x40666e
jmp 0x406887
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x40667d
jmp 0x406887
push 0x103
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x110]
push eax
call fcn.004031b0
add esp, 0xc
lea ecx, [ebp - 0x110]
push ecx
call fcn.00420cf0
add esp, 4
mov dword [ebp - 0x254], eax
mov edx, dword [ebp - 0x254]
movsx eax, byte [ebp + edx - 0x111]
cmp eax, 0x5c
jne 0x4066da
lea ecx, [ebp - 0x110]
push ecx
push 0x432bd0
lea edx, [ebp - 0x360]
push edx
call fcn.0041f20c
add esp, 0xc
jmp 0x4066f5
lea eax, [ebp - 0x110]
push eax
push 0x432bd8
lea ecx, [ebp - 0x360]
push ecx
call fcn.0041f20c
add esp, 0xc
lea edx, [ebp - 0x250]
push edx
lea eax, [ebp - 0x360]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x364], eax
cmp dword [ebp - 0x364], 0xffffffff
je 0x40685b
mov ecx, 1
test ecx, ecx
je 0x40685b
mov edx, dword [ebp - 0x254]
movsx eax, byte [ebp + edx - 0x111]
cmp eax, 0x5c
jne 0x406760
lea ecx, [ebp - 0x224]
push ecx
lea edx, [ebp - 0x110]
push edx
push 0x432be0
lea eax, [ebp - 0x360]
push eax
call fcn.0041f20c
add esp, 0x10
jmp 0x406782
lea ecx, [ebp - 0x224]
push ecx
lea edx, [ebp - 0x110]
push edx
push 0x432be8
lea eax, [ebp - 0x360]
push eax
call fcn.0041f20c
add esp, 0x10
mov ecx, dword [ebp - 0x250]
and ecx, 0x10
je 0x406807
push 0x432bf0
lea edx, [ebp - 0x224]
push edx
call fcn.00404510
add esp, 8
test eax, eax
jne 0x4067a7
jmp 0x406805
push 0x432bf4
lea eax, [ebp - 0x224]
push eax
call fcn.00404510
add esp, 8
test eax, eax
jne 0x4067c1
jmp 0x406805
lea ecx, [ebp - 0x360]
push ecx
call fcn.00406650
add esp, 4
mov edx, dword [ebp - 0x250]
and edx, 1
jne 0x4067e6
mov eax, dword [ebp - 0x250]
and eax, 4
je 0x4067f8
push 0x80
lea ecx, [ebp - 0x360]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea edx, [ebp - 0x360]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x40683c
mov eax, dword [ebp - 0x250]
and eax, 1
jne 0x40681d
mov ecx, dword [ebp - 0x250]
and ecx, 4
je 0x40682f
push 0x80
lea edx, [ebp - 0x360]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x360]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x250]
push ecx
mov edx, dword [ebp - 0x364]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x406856
jmp 0x40685b
jmp 0x40671c
mov eax, dword [ebp - 0x364]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x80
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041f2bc
mov esp, ebp
pop ebp
ret
Function at 0x4068a0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
mov eax, dword [0x43c400]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x110]
push ecx
call fcn.00420d90
add esp, 8
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0xffffffff
jne 0x4068e5
xor eax, eax
jmp 0x4069da
push 0x128
push 0
lea edx, [ebp - 0x240]
push edx
call fcn.0041f300
add esp, 0xc
mov dword [ebp - 0x240], 0x128
lea eax, [ebp - 0x240]
push eax
mov ecx, dword [ebp - 0x114]
push ecx
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x406930
mov edx, dword [ebp - 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4069da
push 0x5c
lea eax, [ebp - 0x21c]
push eax
call fcn.0040ab30
add esp, 8
mov dword [ebp - 0x34c], eax
cmp dword [ebp - 0x34c], 0
je 0x40696b
mov ecx, dword [ebp - 0x34c]
add ecx, 1
push ecx
lea edx, [ebp - 0x348]
push edx
call fcn.00420d90
add esp, 8
jmp 0x406981
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x348]
push ecx
call fcn.00420d90
add esp, 8
lea edx, [ebp - 0x348]
push edx
lea eax, [ebp - 0x110]
push eax
call fcn.004275b3
add esp, 8
test eax, eax
jne 0x4069b0
mov ecx, dword [ebp - 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x238]
jmp 0x4069da
lea edx, [ebp - 0x240]
push edx
mov eax, dword [ebp - 0x114]
push eax
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x406930
mov ecx, dword [ebp - 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041f2bc
mov esp, ebp
pop ebp
ret

Function at 0x406b80
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x406bca
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x3e8
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x406bcc
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x406eb0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 0xffffffff
je 0x406edc
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
xor edx, edx
mov cl, 0x20
call fcn.00421360
mov ecx, dword [ebp - 8]
xor esi, esi
add eax, ecx
adc edx, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x407d90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430d84
mov eax, dword fs:[0]
push eax
mov eax, 0x35a8
call fcn.0041f2d0
mov eax, dword [0x43c400]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x35a4]
call fcn.0040d0d0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x125c]
call fcn.0040ab50
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.004018e0
mov byte [ebp - 4], 2
push 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x125c]
call fcn.0040ab70
test eax, eax
jne 0x407e1b
mov ecx, dword [ebp + 8]
push ecx
push 0x432cbc
lea edx, [ebp - 0x10]
push edx
call fcn.00401e00
add esp, 0xc
jmp 0x407f32
push 0
lea eax, [ebp - 0x125c]
push eax
lea ecx, [ebp - 0x35a4]
call fcn.0040d410
movzx ecx, al
test ecx, ecx
jne 0x407e50
mov edx, dword [ebp + 8]
push edx
push 0x432ccc
lea eax, [ebp - 0x10]
push eax
call fcn.00401e00
add esp, 0xc
jmp 0x407f32
mov dword [ebp - 0x35a8], 0
mov dword [ebp - 0x35ac], 0
push 0
push 0x80
push 2
call fcn.00401920
mov ecx, eax
call fcn.004030a0
push eax
push 1
push 0x40000000
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x35a8], eax
cmp dword [ebp - 0x35a8], 0xffffffff
jne 0x407eb8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, dword [ebp + 0xc]
push edx
push 0x432cd0
lea eax, [ebp - 0x10]
push eax
call fcn.00401e00
add esp, 0x10
jmp 0x407f32
push 0
lea ecx, [ebp - 0x35ac]
push ecx
lea ecx, [ebp - 0x35a4]
call fcn.0040e270
push eax
lea ecx, [ebp - 0x35a4]
call fcn.0040e290
push eax
mov edx, dword [ebp - 0x35a8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x35a8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x35b0], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.00401900
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x125c]
call fcn.00401ae0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x35a4]
call fcn.0040c5d0
mov eax, dword [ebp - 0x35b0]
jmp 0x407f9e
cmp dword [ebp + 0x10], 0
je 0x407f61
cmp dword [ebp + 0x14], 0
jbe 0x407f61
mov ecx, dword [ebp + 0x14]
push ecx
lea ecx, [ebp - 0x10]
call fcn.0040d820
push eax
mov edx, dword [ebp + 0x10]
push edx
call fcn.004031b0
add esp, 0xc
mov eax, dword [ebp + 0x10]
add eax, dword [ebp + 0x14]
mov byte [eax - 1], 0
mov dword [ebp - 0x35b4], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.00401900
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x125c]
call fcn.00401ae0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x35a4]
call fcn.0040c5d0
mov eax, dword [ebp - 0x35b4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041f2bc
mov esp, ebp
pop ebp
ret
Function at 0x408e50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10028
call fcn.0041f2d0
mov eax, dword [0x43c400]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0xffffffff
je 0x408fb7
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
push eax
call fcn.00406eb0
add esp, 4
sub eax, dword [ebp + 0xc]
sbb edx, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00406c30
add esp, 0x10
mov ecx, dword [ebp + 0x14]
or ecx, dword [ebp + 0x18]
je 0x408eda
mov edx, dword [ebp + 0x18]
cmp edx, dword [ebp - 0xc]
ja 0x408eda
jb 0x408ece
mov eax, dword [ebp + 0x14]
cmp eax, dword [ebp - 0x10]
ja 0x408eda
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 0x18]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0
ja 0x408eea
cmp dword [ebp - 0x10], 0
jbe 0x408fa5
cmp dword [ebp - 0xc], 0
ja 0x408f0f
jb 0x408efb
cmp dword [ebp - 0x10], 0x10000
jae 0x408f0f
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x10028], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10024], ecx
jmp 0x408f23
mov dword [ebp - 0x10028], 0x10000
mov dword [ebp - 0x10024], 0
mov edx, dword [ebp - 0x10028]
mov dword [ebp - 0x10020], edx
push 0
lea eax, [ebp - 0x1001c]
push eax
mov ecx, dword [ebp - 0x10020]
push ecx
lea edx, [ebp - 0x10018]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x408f62
mov ecx, dword [ebp - 0x1001c]
cmp ecx, dword [ebp - 0x10020]
je 0x408f6b
mov dword [ebp - 4], 0
jmp 0x408fa5
mov edx, dword [ebp - 0x1001c]
push edx
lea eax, [ebp - 0x10018]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.004183a0
add esp, 0xc
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x1001c]
xor eax, eax
mov ecx, dword [ebp - 0x10]
sub ecx, edx
mov edx, dword [ebp - 0xc]
sbb edx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
jmp 0x408eda
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.00406c30
add esp, 0x10
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041f2bc
mov esp, ebp
pop ebp
ret
Function at 0x409220
Capabilities:
Extract resource via kernel32 functions
Get file attributes
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0xa
movzx eax, word [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x409310
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00406020
add esp, 4
test eax, eax
je 0x4092b0
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 1
jne 0x4092a1
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 4
je 0x4092b0
push 0x80
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push 0x80
push 2
call fcn.00401920
mov ecx, eax
call fcn.004030a0
push eax
push 3
push 0x40000000
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x409310
mov dword [ebp - 0x18], 0
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x409312
xor eax, eax
mov esp, ebp
pop ebp
ret