joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4177b0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x424
mov eax, dword [0x4a2e7c]
xor eax, esp
mov dword [esp + 0x420], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x438]
mov eax, dword [esp + 0x444]
xor ebp, ebp
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x28]
push ecx
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
lea edx, [esp + 0x34]
push edx
push ebp
push ebp
push ebp
push edi
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x417904
mov ebx, dword [esp + 0x440]
lea esp, [esp]
cmp dword [esp + 0x18], ebp
je 0x417910
push 0x400
lea eax, [esp + 0x34]
push ebp
push eax
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], 0x400
call fcn.0044c830
add esp, 0xc
lea ecx, [esp + 0x28]
push ecx
push ebp
push ebp
push ebp
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x44]
push eax
push ebp
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x41791d
mov esi, 0xf003f
call fcn.00421560
test eax, eax
je 0x41788b
mov esi, ebx
neg esi
sbb esi, esi
and esi, 0xffffff00
add esi, 0xf023f
lea ecx, [esp + 0x14]
push ecx
push esi
push ebp
lea edx, [esp + 0x3c]
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x417904
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
push ebx
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x30]
push edx
call fcn.004177b0
mov esi, eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebp
je 0x4178e2
cmp dword [esp + 0x20], ebp
jne 0x4178e2
lea ecx, [esp + 0x30]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x417929
lea edx, [esp + 0x28]
push edx
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0x34]
push eax
push ebp
push ebp
push ebp
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x417820
mov ecx, dword [esp + 0x10]
mov dword [ecx], 1
jmp 0x417933
mov edx, dword [esp + 0x10]
mov dword [edx], ebp
mov eax, 1
jmp 0x417935
mov eax, dword [esp + 0x10]
mov dword [eax], 1
jmp 0x417933
mov edx, dword [esp + 0x10]
mov dword [edx], 1
xor eax, eax
mov ecx, dword [esp + 0x430]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044b607
add esp, 0x424
ret 0x10
Function at 0x417950
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x14
push ebx
push edi
mov edi, ecx
mov eax, dword [edi + 4]
xor ebx, ebx
cmp eax, ebx
jne 0x41796a
pop edi
xor eax, eax
pop ebx
add esp, 0x14
ret 8
push ebx
push ebx
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
push ebx
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x30]
push edx
push ebx
push ebx
push ebx
push ebx
push eax
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x417960
mov eax, dword [esp + 8]
add eax, 0x64
push esi
push eax
call fcn.0044dad6
mov ecx, dword [esp + 0x10]
add esp, 4
lea edx, [esp + 0x10]
push edx
mov esi, eax
mov eax, dword [esp + 0x28]
push esi
push ebx
add ecx, 0x64
push ebx
mov dword [esp + 0x20], ecx
mov ecx, dword [edi + 4]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push esi
je 0x4179f1
call fcn.0044db99
add esp, 4
pop esi
pop edi
xor eax, eax
pop ebx
add esp, 0x14
ret 8
mov edx, dword [esi]
mov eax, dword [esp + 0x2c]
mov dword [eax], edx
call fcn.0044db99
add esp, 4
pop esi
pop edi
mov eax, 1
pop ebx
add esp, 0x14
ret 8

Function at 0x417a10
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx + 4]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
add eax, 1
ret 8

Function at 0x418120
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x481c21
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x4a2e7c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x18]
mov dword [esp + 8], 0
call fcn.004162d0
mov eax, dword [esp + 0x48]
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3c], 1
mov dword [esp + 0x10], eax
call fcn.004164d0
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00416560
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [esi + 4]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
mov esi, dword [esp + 0x40]
jne 0x4181b0
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.00416dd0
jmp 0x4181bc
push 0x49789d
mov ecx, esi
call fcn.00416300
lea ecx, [esp + 0x18]
mov dword [esp + 8], 1
mov byte [esp + 0x38], 0
call fcn.00416420
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x34
ret 0xc

Function at 0x4182c0
Capabilities:
Query or enumerate registry key

Disassembly:
push ecx
mov ecx, dword [ecx + 4]
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
push 0
push ecx
mov dword [esp + 0x30], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x4182f5
or eax, 0xffffffff
pop ecx
ret
mov eax, dword [esp]
add eax, 1
pop ecx
ret
Function at 0x41c230
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x48232b
mov eax, dword fs:[0]
push eax
sub esp, 0x168
mov eax, dword [0x4a2e7c]
xor eax, esp
mov dword [esp + 0x164], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a2e7c]
xor eax, esp
push eax
lea eax, [esp + 0x17c]
mov dword fs:[0], eax
push str.kernel32.dll
mov dword [esp + 0x18], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
jne 0x41be37
xor eax, eax
jmp 0x41bf4f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateToolhelp32Snapshot
push esi
call edi
mov ebp, eax
test ebp, ebp
je 0x41be30
push str.Process32First
push esi
call edi
mov ebx, eax
test ebx, ebx
je 0x41be30
push str.Process32Next
push esi
call edi
mov edi, eax
test edi, edi
je 0x41be30
push 0
push 2
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x41be30
lea eax, [esp + 0x30]
push eax
push esi
mov dword [esp + 0x38], 0x128
call ebx
test eax, eax
je 0x41bf43
mov ebp, dword [esp + 0x14]
lea ebx, [ebp + 0x14]
call fcn.00420d30
test eax, eax
je 0x41befd
mov ecx, dword [esp + 0x38]
push 0
push ecx
lea edx, [esp + 0x20]
push edx
mov ecx, ebp
call fcn.0041b360
lea ecx, [esp + 0x18]
mov dword [esp + 0x184], 0
call fcn.00416460
test eax, eax
jg 0x41bed5
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x1c]
call fcn.00416860
lea ecx, [esp + 0x18]
call fcn.00416560
push eax
lea ecx, [ebp + 4]
call fcn.0041a7b0
lea ecx, [esp + 0x18]
mov dword [esp + 0x184], 0xffffffff
call fcn.00416420
jmp 0x41bf0a
lea ecx, [esp + 0x54]
push ecx
lea ecx, [ebp + 4]
call fcn.0041a7b0
mov edx, dword [esp + 0x38]
push edx
lea eax, [esp + 0x15c]
push 0x48c278
push eax
call fcn.0040dd60
add esp, 0xc
lea ecx, [esp + 0x158]
push ecx
mov ecx, ebx
call fcn.0041a7b0
lea edx, [esp + 0x30]
push edx
push esi
call edi
test eax, eax
jne 0x41be93
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [esp + 0x17c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x164]
xor ecx, esp
call fcn.0044b607
add esp, 0x174
ret
push esi
mov esi, ecx
call fcn.0041adb0
mov ecx, esi
call fcn.0041b340
test eax, eax
mov ecx, esi
pop esi
je 0x41c24b
jmp fcn.0041b9e0
jmp 0x41bde0
Function at 0x41d1a0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x58
push 0x44
lea eax, [esp + 0x18]
push 0
push eax
call fcn.0044c830
add esp, 0xc
xor eax, eax
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x60]
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x68]
push eax
push 0
push 8
push 0
push 0
push 0
push ecx
push 0
mov dword [esp + 0x3c], 0x44
mov dword [esp + 0x68], 0x80
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x41d207
or eax, 0xffffffff
add esp, 0x58
ret
mov edx, dword [esp + 4]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 4]
lea eax, [esp]
push eax
push ecx
mov dword [esp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x41d236
mov dword [esp], 0xffffffff
mov edx, dword [esp + 4]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0xc]
push eax
call esi
mov eax, dword [esp + 4]
pop esi
add esp, 0x58
ret

Function at 0x41d530
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push 0x44
lea eax, [esp + 0x14]
push 0
push eax
call fcn.0044c830
add esp, 0xc
xor eax, eax
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0x5c]
lea edx, [esp + 0x14]
push edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x64]
push eax
push 0
push 8
push 0
push 0
push 0
push ecx
push 0
mov dword [esp + 0x38], 0x44
mov dword [esp + 0x64], 0x80
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x41d593
add esp, 0x54
ret
mov edx, dword [esp]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 8]
push eax
call esi
mov eax, 1
pop esi
add esp, 0x54
ret

Function at 0x41d770
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x4a2e7c]
xor eax, esp
mov dword [esp + 0x94], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov edx, 2
xor eax, eax
cmp dword [esp + 0x10], edx
jne 0x41d7bb
mov ecx, dword [esp + 4]
cmp ecx, 6
jne 0x41d7b4
cmp dword [esp + 8], edx
jb 0x41d7bb
jmp 0x41d7b6
jbe 0x41d7bb
mov eax, 1
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0044b607
add esp, 0x98
ret
Function at 0x41db80
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x4a2e7c]
xor eax, esp
mov dword [esp + 0x94], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esp + 0x10]
sub ecx, 0
mov eax, 0x63
je 0x41dce0
sub ecx, 1
je 0x41dc94
sub ecx, 1
jne 0x41dce0
mov ecx, dword [esp + 4]
cmp ecx, 4
jae 0x41dbed
mov eax, 0x5b
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0044b607
add esp, 0x98
ret
jne 0x41dc14
cmp dword [esp + 8], 0
jne 0x41dce0
mov eax, 5
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0044b607
add esp, 0x98
ret
cmp ecx, 5
jne 0x41dc77
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x41dc39
lea eax, [ecx + 6]
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0044b607
add esp, 0x98
ret
cmp ecx, 1
jne 0x41dc56
lea eax, [ecx + 6]
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0044b607
add esp, 0x98
ret
cmp ecx, 2
jne 0x41dce0
lea eax, [ecx + 6]
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0044b607
add esp, 0x98
ret
cmp ecx, 6
jne 0x41dce0
lea eax, [ecx + 3]
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0044b607
add esp, 0x98
ret
cmp dword [esp + 4], 4
jne 0x41dce0
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x41dcbb
lea eax, [ecx + 1]
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0044b607
add esp, 0x98
ret
cmp ecx, 0xa
jne 0x41dcd8
lea eax, [ecx - 7]
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0044b607
add esp, 0x98
ret
cmp ecx, 0x5a
jne 0x41dce0
lea eax, [ecx - 0x56]
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0044b607
add esp, 0x98
ret
cmp dword [esp + 4], 0
je 0x420d6c
jmp fcn.0041d9b0
jmp 0x41db80

Function at 0x41e480
Capabilities:
Copy file
Delete file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4827b0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4a2e7c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
push 0
lea ecx, [esp + 0x38]
mov dword [esp + 0x18], 1
call fcn.00416560
push eax
lea ecx, [esp + 0x24]
call fcn.00416560
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileA]
push eax
call edi
mov esi, eax
test esi, esi
jne 0x41e500
push 0x80
lea ecx, [esp + 0x38]
call fcn.00416560
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
lea ecx, [esp + 0x38]
call fcn.00416560
push eax
lea ecx, [esp + 0x24]
call fcn.00416560
push eax
call edi
mov esi, eax
test esi, esi
je 0x41e510
lea ecx, [esp + 0x1c]
call fcn.00416560
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14], 0
call fcn.00416420
lea ecx, [esp + 0x34]
mov dword [esp + 0x14], 0xffffffff
call fcn.00416420
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret
Function at 0x41ed00
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4829b9
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4a2e7c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov dword [esp + 8], 0
mov esi, dword [esp + 0x1c]
mov ecx, esi
mov dword [esp + 0x14], 0
call fcn.004162d0
push 0x103
mov ecx, esi
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 1
call fcn.004164d0
push 0x104
mov ecx, esi
call fcn.00416560
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x420d60
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x4a2e7c]
xor eax, esp
mov dword [esp + 0x94], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esp + 0x10]
sub ecx, 0
mov eax, 0x63
je 0x41dce0
sub ecx, 1
je 0x41dc94
sub ecx, 1
jne 0x41dce0
mov ecx, dword [esp + 4]
cmp ecx, 4
jae 0x41dbed
mov eax, 0x5b
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0044b607
add esp, 0x98
ret
jne 0x41dc14
cmp dword [esp + 8], 0
jne 0x41dce0
mov eax, 5
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0044b607
add esp, 0x98
ret
cmp ecx, 5
jne 0x41dc77
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x41dc39
lea eax, [ecx + 6]
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0044b607
add esp, 0x98
ret
cmp ecx, 1
jne 0x41dc56
lea eax, [ecx + 6]
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0044b607
add esp, 0x98
ret
cmp ecx, 2
jne 0x41dce0
lea eax, [ecx + 6]
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0044b607
add esp, 0x98
ret
cmp ecx, 6
jne 0x41dce0
lea eax, [ecx + 3]
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0044b607
add esp, 0x98
ret
cmp dword [esp + 4], 4
jne 0x41dce0
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x41dcbb
lea eax, [ecx + 1]
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0044b607
add esp, 0x98
ret
cmp ecx, 0xa
jne 0x41dcd8
lea eax, [ecx - 7]
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0044b607
add esp, 0x98
ret
cmp ecx, 0x5a
jne 0x41dce0
lea eax, [ecx - 0x56]
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0044b607
add esp, 0x98
ret
cmp dword [esp + 4], 0
je 0x420d6c
jmp fcn.0041d9b0
jmp 0x41db80
Function at 0x421620
Capabilities:
Get disk information

Disassembly:
sub esp, 0x228
mov eax, dword [0x4a2e7c]
xor eax, esp
mov dword [esp + 0x224], eax
push ebp
mov ebp, dword [esp + 0x230]
xor eax, eax
push esi
push edi
mov edi, dword [esp + 0x23c]
push 0x206
push eax
mov dword [esp + 0x1e], eax
mov dword [esp + 0x22], eax
mov dword [esp + 0x26], eax
mov dword [esp + 0x2a], eax
mov word [esp + 0x2e], ax
mov word [esp + 0x30], ax
lea eax, [esp + 0x32]
push eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], 0
mov word [esp + 0x20], 0
call fcn.0044c830
lea ecx, [esp + 0x20]
push 0x48d128
push ecx
call fcn.004203e0
add esp, 0x14
cmp word [esp + 0x14], 0x5b
mov esi, 0x41
je 0x42170e
mov ebp, dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
lea esp, [esp]
push 0x104
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x1c]
push eax
call ebp
lea eax, [esp + 0x28]
lea edx, [eax + 2]
jmp 0x4216d0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4216d0
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x2c]
push ecx
push edi
call fcn.00451473
add esp, 0xc
test eax, eax
jne 0x4216f9
cmp word [esp + 0x28], ax
jne 0x421734
mov ax, si
add esi, 1
cmp ax, 0x5b
mov word [esp + 0x14], ax
jne 0x4216b0
mov ebp, dword [esp + 0xc]
push 0x489164
mov ecx, ebp
call fcn.00419380
pop edi
pop esi
mov eax, ebp
pop ebp
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.0044b607
add esp, 0x228
ret
mov esi, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
mov ecx, esi
call fcn.00419430
mov ecx, dword [esp + 0x230]
pop edi
mov eax, esi
pop esi
pop ebp
xor ecx, esp
call fcn.0044b607
add esp, 0x228
ret

Function at 0x4219a0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x482d52
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x4a2e7c]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
push esi
push edi
mov eax, dword [0x4a2e7c]
xor eax, esp
push eax
lea eax, [esp + 0x120]
mov dword fs:[0], eax
mov esi, dword [esp + 0x130]
mov edi, dword [esp + 0x138]
xor ebx, ebx
push 0x49789d
mov ecx, esi
mov dword [esp + 0x12c], ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ebx
call fcn.00416300
push 0x103
lea eax, [esp + 0x1d]
push ebx
push eax
mov dword [esp + 0x134], ebx
mov dword [esp + 0x1c], 1
mov byte [esp + 0x24], bl
call fcn.0044c830
add esp, 0xc
cmp dword [esp + 0x134], ebx
je 0x421a5b
call fcn.00421560
test eax, eax
je 0x421a5b
push edi
lea ecx, [esp + 0x1c]
push 0x104
push ecx
call fcn.0041e060
add esp, 0xc
test eax, eax
je 0x421a7b
lea edx, [esp + 0x18]
push edx
jmp 0x421a74
push 0x104
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x421a7b
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.00416860
mov eax, esi
mov ecx, dword [esp + 0x120]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0044b607
add esp, 0x11c
ret
Function at 0x4282d0
Capabilities:
Create directory
Delete file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x484068
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x4a2e7c]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
push 0
sub esp, 0x18
lea eax, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
mov dword [esp + 0x30], 0
call fcn.00416dd0
call fcn.00428050
add esp, 0x1c
cmp eax, 1
je 0x428345
test eax, eax
je 0x42836a
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.00416420
mov eax, 1
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
add esp, 0x10
ret
push 0x80
lea ecx, [esp + 0x1c]
call fcn.00416550
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x18]
call fcn.00416550
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
lea ecx, [esp + 0x1c]
call fcn.00416550
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x42831f
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.00416420
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
add esp, 0x10
ret

Function at 0x428560
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4840e1
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
mov eax, dword [0x4a2e7c]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0xc], 0
call fcn.00420e30
add esp, 4
push 0x1000
mov ecx, eax
mov dword [esp + 0x30], 1
call fcn.00416550
mov esi, dword [esp + 0x38]
push eax
push esi
call fcn.004266c0
add esp, 0xc
lea ecx, [esp + 0xc]
mov dword [esp + 8], 1
mov byte [esp + 0x2c], 0
call fcn.00416420
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x28
ret
Function at 0x42bf60
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x90
mov eax, dword [0x4a2e7c]
xor eax, esp
mov dword [esp + 0x8c], eax
push ebp
push esi
push edi
push 0x100
mov esi, ecx
mov dword [esp + 0x14], 0
call fcn.0044aa3d
mov ebp, eax
mov eax, dword [esi + 0x18]
add esp, 4
cmp eax, 1
jne 0x42bfda
lea eax, [esp + 0x14]
push eax
call fcn.0043d5c0
mov edx, dword [esi + 8]
mov eax, edx
add esp, 4
lea edi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x42bfb0
sub eax, edi
push eax
push edx
lea ecx, [esp + 0x1c]
push ecx
call fcn.0043d7a0
lea edx, [esp + 0x20]
push ebp
push edx
call fcn.0043d840
add esp, 0x14
jmp 0x42c08e
cmp eax, 2
jne 0x42c10f
mov eax, dword [esi + 8]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x42bff0
sub eax, edx
cmp eax, 1
jb 0x42c118
lea eax, [esp + 0x14]
push eax
call fcn.0043d5c0
mov ecx, dword [esi + 8]
push 0x48e3fc
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.0044f9c8
add esp, 0x10
test eax, eax
jne 0x42c10f
lea esp, [esp]
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0xe8]
push eax
push 0x80000
push 1
push ecx
call fcn.00451cbc
mov edi, eax
add esp, 0x10
test edi, edi
je 0x42c066
mov edx, dword [esi + 0xe8]
push edi
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.0043d7a0
add esp, 0xc
cmp edi, 0x80000
je 0x42c030
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0044f729
lea edx, [esp + 0x18]
push ebp
push edx
mov dword [esp + 0x1c], 0
call fcn.0043d840
add esp, 0xc
xor edi, edi
add esi, 0x20
movzx ecx, byte [edi + ebp]
push 0x10
push 3
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.0045185a
lea eax, [esp + 0x1c]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x42c0b0
sub eax, edx
cmp eax, 1
jne 0x42c0d1
mov dl, byte [esp + 0xc]
mov byte [esp + 0xd], dl
mov byte [esp + 0xc], 0x30
mov byte [esp + 0xe], cl
lea eax, [esp + 0xc]
push eax
push 0xc8
push esi
call fcn.0044d289
add edi, 1
add esp, 0xc
cmp edi, 0x20
jl 0x42c093
push ebp
call fcn.0044ca76
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x8c]
xor ecx, esp
call fcn.0044b607
add esp, 0x90
ret
push ebp
call fcn.0044ca76
add esp, 4
mov ecx, dword [esp + 0x98]
pop edi
lea eax, [esi + 0x20]
pop esi
pop ebp
xor ecx, esp
call fcn.0044b607
add esp, 0x90
ret