joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409990
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.00406d28
xor eax, eax
push ebp
push 0x409bb5
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x4099d0
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW
jmp 0x4099ea
mov eax, dword [ebp - 4]
call fcn.00407780
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.004091c4
cmp word [ebp - 0x21a], 0
je 0x409b9f
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409bc4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409ab9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409bc4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409ab9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409c00
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409ab9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409c00
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409ab9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409c34
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409ab9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409c68
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x409b9f
xor eax, eax
push ebp
push 0x409b98
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.004097a0
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 0x409b28
mov eax, dword [ebp - 0x10]
call fcn.00404d94
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.004077d8
jmp 0x409b73
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409ca8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409b73
mov eax, dword [ebp - 0x10]
call fcn.00404d94
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409ca8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004077d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409b9f
cmp dword [ebp - 8], 0
je 0x409b8e
mov eax, dword [ebp - 8]
call fcn.00404db0
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 0x409bbc
lea eax, [ebp - 4]
call fcn.00406c44
ret
Function at 0x409ea4
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.00406d28
xor eax, eax
push ebp
push 0x409f64
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.00407814
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407958
mov eax, dword [ebx]
call fcn.00409d6c
test al, al
jne 0x409f41
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00407814
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407958
mov eax, dword [ebx]
call fcn.00409d6c
test al, al
jne 0x409f41
mov eax, ebx
call fcn.00406c44
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409f6b
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00406ca4
lea eax, [ebp - 4]
call fcn.00406c44
ret

Function at 0x40b83c
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 0x419960
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
test eax, eax
jle 0x419999
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406d80
jmp 0x4199a2
mov eax, ebx
mov edx, esi
call fcn.00406fd8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4199ac
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
test eax, eax
jle 0x4199ce
movzx eax, word [esp]
jmp 0x4199d0
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x41a9e4
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 0x41ab09
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0041a7ec
mov esi, eax
mov eax, dword [0x46f300]
cmp byte [eax], 0
je 0x41aab1
mov eax, dword [0x46f158]
call fcn.00405154
call fcn.00404ee8
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
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x41a9b4]
call fcn.00408c7c
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
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x41ab24
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x41aaed
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x46f128]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x473620]
call fcn.00408e68
push eax
call sub.user32.dll_LoadStringW
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 0x41ab10
lea eax, [ebp - 4]
mov edx, dword [0x41a9b4]
call fcn.00408da0
ret
Function at 0x41b798
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x41b898
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00407020
lea eax, [ebp - 4]
call fcn.004071c0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00407780
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x41b882
mov eax, ebx
call fcn.00404d94
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x41b87b
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00407780
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x41b865
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x41b8ac
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x41b865
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x10]
shr eax, 0x10
movzx eax, ax
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0x10]
mov dword [edi], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x14]
shr eax, 0x10
movzx eax, ax
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41b882
mov eax, dword [ebp - 0x10]
call fcn.00404db0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41b89f
lea eax, [ebp - 4]
call fcn.00406c44
ret
Function at 0x424b50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push esi
push edi
add esp, 0xffffffc4
mov dword [esp + 4], ecx
mov dword [esp], edx
mov esi, eax
mov edi, dword [esp + 4]
test edi, edi
jle 0x424cdd
movzx eax, word [esi]
mov word [esp + 8], ax
mov eax, 0x424cec
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
movzx edx, word [esp + 8]
cmp dx, 0xff
ja 0x424b91
movzx edx, dx
bt dword [eax], edx
setb al
test al, al
je 0x424b9c
mov al, 1
jmp 0x424bc6
movzx eax, word [esi]
mov word [esp + 0x10], ax
mov eax, 0x424d0c
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
movzx edx, word [esp + 0x10]
cmp dx, 0xff
ja 0x424bc3
movzx edx, dx
bt dword [eax], edx
setb al
test al, al
je 0x424bce
mov dl, 1
jmp 0x424c38
movzx eax, word [esi + 2]
mov word [esp + 0x18], ax
mov eax, 0x424cec
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
movzx edx, word [esp + 0x18]
cmp dx, 0xff
ja 0x424bf6
movzx edx, dx
bt dword [eax], edx
setb al
test al, al
je 0x424c04
mov byte [esp + 0x28], 1
jmp 0x424c33
movzx eax, word [esi + 2]
mov word [esp + 0x20], ax
mov eax, 0x424d0c
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
movzx edx, word [esp + 0x20]
cmp dx, 0xff
ja 0x424c2c
movzx edx, dx
bt dword [eax], edx
setb al
mov byte [esp + 0x28], al
movzx edx, byte [esp + 0x28]
test dl, dl
jne 0x424cdd
movzx eax, word [esi]
mov word [esp + 0x2a], ax
mov eax, 0x424d2c
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x2c]
movzx edx, word [esp + 0x2a]
cmp dx, 0xff
ja 0x424c67
movzx edx, dx
bt dword [eax], edx
setb al
test al, al
jne 0x424c75
mov byte [esp + 0x38], 1
jmp 0x424ca6
movzx eax, word [esi + 2]
mov word [esp + 0x30], ax
mov eax, 0x424d2c
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x34]
movzx edx, word [esp + 0x30]
cmp dx, 0xff
ja 0x424c9d
movzx edx, dx
bt dword [eax], edx
setb al
xor al, 1
mov byte [esp + 0x38], al
cmp byte [esp + 0x38], 0
jne 0x424cdd
movzx eax, byte [esi]
movzx eax, word [eax*2 + 0x46d850]
shl eax, 4
movzx edx, byte [esi + 2]
movzx edx, word [edx*2 + 0x46d850]
add al, dl
mov edx, dword [esp]
mov byte [edx], al
inc dword [esp]
add esi, 4
dec edi
test edi, edi
jg 0x424b6a
mov eax, dword [esp + 4]
sub eax, edi
add esp, 0x3c
pop edi
pop esi
ret
Function at 0x425f60
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edx
mov esi, eax
xor eax, eax
push ebp
push 0x426034
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
call sub.KERNEL32.DLL_GetEnvironmentStringsW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x426019
xor eax, eax
push ebp
push 0x426012
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.00425970
mov ebx, dword [esi + 8]
dec ebx
cmp ebx, 0
jl 0x425ff7
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
mov edx, ebx
mov eax, esi
call fcn.00429490
mov eax, dword [ebp - 0x10]
mov ecx, 1
mov edx, 1
call fcn.00407ac8
mov eax, dword [ebp - 0xc]
mov edx, 0x426054
call fcn.00407a90
jne 0x425ff1
mov edx, ebx
mov eax, esi
call fcn.00429980
dec ebx
cmp ebx, 0xffffffff
jne 0x425fb7
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x426019
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_FreeEnvironmentStringsW
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42603b
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00406ca4
ret
Function at 0x4260c0
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, 0x475970
cmp byte [0x46d884], 0
jne 0x426274
mov eax, ebx
xor ecx, ecx
mov edx, 0x11c
call fcn.004051b8
mov eax, 0x475a8c
xor ecx, ecx
mov edx, 0x24
call fcn.004051b8
xor eax, eax
mov dword [0x46d890], eax
mov dword [ebx], 0x11c
push ebx
call sub.KERNEL32.DLL_GetVersionExW
test eax, eax
je 0x426274
movzx esi, word [ebx + 0x114]
movzx eax, si
mov dword [0x46d888], eax
mov eax, dword [0x46f094]
cmp dword [eax], 0
je 0x426157
push 0x46d890
movzx eax, word [ebx + 0x116]
push eax
movzx eax, si
push eax
mov eax, dword [ebx + 8]
push eax
mov eax, dword [ebx + 4]
push eax
mov eax, dword [0x46f094]
mov eax, dword [eax]
call eax
test eax, eax
jne 0x426157
xor eax, eax
mov dword [0x46d890], eax
mov edx, dword [0x46f2f4]
cmp dword [edx], 0
je 0x426185
mov eax, dword [ebx + 4]
cmp eax, 5
jb 0x426170
cmp dword [ebx + 8], 1
jae 0x426175
cmp eax, 5
jbe 0x426185
push 0x475a8c
mov eax, dword [0x46f2f4]
mov eax, dword [eax]
call eax
jmp 0x42618f
push 0x475a8c
call sub.KERNEL32.DLL_GetSystemInfo
cmp dword [ebx + 0x10], 2
jne 0x426274
cmp word [0x475a8c], 9
sete al
and eax, 0x7f
movzx eax, byte [eax + 0x46d940]
mov byte [0x46d88c], al
call fcn.00426060
mov byte [0x46d88d], al
mov eax, dword [ebx + 4]
cmp eax, 0xa
jb 0x4261d1
mov byte [0x46d884], 7
jmp 0x426274
cmp eax, 6
jne 0x426239
mov eax, dword [ebx + 8]
sub eax, 1
jb 0x4261eb
je 0x426202
dec eax
je 0x426219
dec eax
je 0x426230
jmp 0x426274
cmp byte [ebx + 0x11a], 1
setne byte [0x46d88d]
mov byte [0x46d884], 3
jmp 0x426274
cmp byte [ebx + 0x11a], 1
setne byte [0x46d88d]
mov byte [0x46d884], 4
jmp 0x426274
cmp byte [ebx + 0x11a], 1
setne byte [0x46d88d]
mov byte [0x46d884], 5
jmp 0x426274
mov byte [0x46d884], 6
jmp 0x426274
cmp eax, 5
jne 0x426274
mov eax, dword [ebx + 8]
sub eax, 1
jb 0x42624d
je 0x426256
dec eax
je 0x42625f
jmp 0x426274
mov byte [0x46d884], 1
jmp 0x426274
mov byte [0x46d884], 2
jmp 0x426274
cmp byte [ebx + 0x11a], 1
setne byte [0x46d88d]
mov byte [0x46d884], 2
pop esi
pop ebx
pop ebp
ret
Function at 0x426450
Capabilities:
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax - 4], edx
push 0
mov eax, dword [ebp + 8]
add eax, 0xfffffffc
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_PeekNamedPipe
test eax, eax
je 0x4265ad
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
jbe 0x4265ad
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov eax, dword [ebp + 8]
add eax, 0xfffffff8
xor ecx, ecx
call fcn.004075ac
mov eax, dword [ebp + 8]
add eax, 0xfffffff8
call fcn.004071b8
mov edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
test eax, eax
je 0x4264c2
sub eax, 4
mov eax, dword [eax]
xor ecx, ecx
xchg edx, eax
call fcn.004051b8
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax - 4], edx
mov eax, dword [ebp + 8]
add eax, 0xfffffff8
call fcn.004071b8
mov esi, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov ebx, eax
test ebx, ebx
je 0x4264f0
sub ebx, 4
mov ebx, dword [ebx]
push 0
mov eax, dword [ebp + 8]
add eax, 0xfffffffc
push eax
push ebx
push esi
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_ReadFile
test eax, eax
je 0x4265ad
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
jbe 0x4265a0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
cmp word [eax + 0x2a], 0
je 0x42653e
mov eax, dword [ebp + 8]
mov ebx, dword [eax - 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 8]
movzx ecx, byte [ebp - 5]
mov eax, dword [ebx + 0x2c]
call dword [ebx + 0x28]
jmp 0x4265a0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov eax, dword [eax + 0x20]
test eax, eax
je 0x426550
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebp + 8]
mov dword [edx - 0x10], eax
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x10]
mov eax, dword [ebp + 8]
add edx, dword [eax - 4]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
add eax, 0x20
xor ecx, ecx
call fcn.004075ac
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
add eax, 0x20
call fcn.004071b8
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x10]
add eax, edx
push eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff8
call fcn.004071b8
mov edx, dword [ebp + 8]
mov ecx, dword [edx - 4]
pop edx
call fcn.00404f38
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
jne 0x42645e
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x426eb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
mov ebx, eax
call dword [0x46d85c]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov eax, ebx
call fcn.00407780
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x426eea
test al, 0x10
sete bl
jmp 0x426eec
xor ebx, ebx
lea eax, [ebp - 8]
call fcn.00423eb0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
mov eax, dword [0x46d830]
mov edx, dword [0x46d834]
cmp edx, dword [ebp - 0xc]
jne 0x426f12
cmp eax, dword [ebp - 0x10]
jae 0x426f26
jmp 0x426f14
jge 0x426f26
mov eax, dword [ebp - 0x10]
mov dword [0x46d830], eax
mov eax, dword [ebp - 0xc]
mov dword [0x46d834], eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x426f60
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, eax
mov eax, esi
call fcn.00407780
mov edi, eax
push edi
call sub.KERNEL32.DLL_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x426fb7
push edi
call sub.KERNEL32.DLL_GetFileAttributesW
mov edi, eax
cmp edi, 0xffffffff
je 0x426fb7
test edi, 1
je 0x426fb7
and edi, 0xfffffffe
push edi
mov eax, esi
call fcn.00407780
mov ebx, eax
push ebx
call sub.KERNEL32.DLL_SetFileAttributesW
push ebx
call sub.KERNEL32.DLL_DeleteFileW
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x426fc0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, eax
mov bl, 1
mov eax, esi
call fcn.00407780
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
mov edi, eax
cmp edi, 0xffffffff
je 0x426ffd
test edi, 1
je 0x426ffd
and edi, 0xfffffffe
push edi
mov eax, esi
call fcn.00407780
push eax
call sub.KERNEL32.DLL_SetFileAttributesW
test eax, eax
jne 0x426ffd
xor ebx, ebx
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00407780
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x42702c
test al, 1
jne 0x427031
xor eax, eax
pop ebx
pop ebp
ret
mov al, 1
pop ebx
pop ebp
ret
Function at 0x427040
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
mov ebx, eax
call dword [0x46d85c]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov eax, ebx
call fcn.00407780
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x42707e
test eax, 0x10
seta bl
jmp 0x427080
xor ebx, ebx
lea eax, [ebp - 8]
call fcn.00423eb0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
mov eax, dword [0x46d838]
mov edx, dword [0x46d83c]
cmp edx, dword [ebp - 0xc]
jne 0x4270a6
cmp eax, dword [ebp - 0x10]
jae 0x4270ba
jmp 0x4270a8
jge 0x4270ba
mov eax, dword [ebp - 0x10]
mov dword [0x46d838], eax
mov eax, dword [ebp - 0xc]
mov dword [0x46d83c], eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x428340
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
call sub.KERNEL32.DLL_FindResourceW
mov edi, eax
mov dword [ebx + 0x10], edi
test edi, edi
jne 0x42836e
push ebp
call fcn.00428290
pop ecx
mov eax, dword [ebx + 0x10]
push eax
push esi
call sub.KERNEL32.DLL_LoadResource
mov edi, eax
mov dword [ebx + 0x14], edi
test edi, edi
jne 0x428388
push ebp
call fcn.00428290
pop ecx
mov edi, ebx
mov eax, dword [ebx + 0x14]
push eax
call sub.KERNEL32.DLL_LockResource
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x10]
push eax
push esi
call sub.KERNEL32.DLL_SizeofResource
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [edi + 8], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x42b350
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x42b3ec
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 8]
cmp word [eax], 0x5a4d
jne 0x42b3ec
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x3c]
add dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0xc]
cmp dword [eax], 0x4550
jne 0x42b3ec
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0xc]
movzx eax, word [eax + 0x14]
cmp eax, 0xe0
jne 0x42b3ec
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0xc]
cmp word [eax + 0x18], 0x10b
jne 0x42b3ec
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
mov dword [edx + 4], eax
pop ecx
pop ebp
ret