joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1015b750
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1021c3ec]
mov dword [ebp - 4], eax
jmp 0x1015b768
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x1015b77e
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x1015b77c
mov eax, dword [ebp - 4]
jmp 0x1015b7f9
jmp 0x1015b760
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1015b7f6
mov ecx, dword [ebp - 4]
add ecx, 0x20
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
mov dword [edx + 4], 0
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
mov dword [ecx], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 8]
add eax, 0x20
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 4]
cmp ecx, 0xfe0
jbe 0x1015b7b8
mov edx, dword [ebp - 4]
mov eax, dword [0x1021c3ec]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x1021c3ec], ecx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x1015c890
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
imul eax, dword [ebp + 8], 0x2c
add eax, dword [0x1021c3e0]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 5
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 4]
mov cl, byte [eax + 0x14]
and cl, 1
movzx edx, cl
test edx, edx
je 0x1015c8d4
mov eax, dword [ebp - 8]
sub eax, 5
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
add ecx, 2
mov dword [ebp - 0xc], ecx
lea edx, [ebp - 0x18]
push edx
push 0x40
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1015c8f6
mov eax, 0xa
jmp 0x1015c9dd
cmp dword [ebp + 0xc], 0
je 0x1015c942
mov edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov byte [eax], 0xe9
mov ecx, dword [ebp - 8]
add ecx, 5
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
sub eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 1], eax
mov edx, dword [ebp - 4]
mov al, byte [edx + 0x14]
and al, 1
movzx ecx, al
test ecx, ecx
je 0x1015c940
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov byte [ecx], 0xeb
mov edx, dword [ebp - 0x14]
mov byte [edx + 1], 0xf9
jmp 0x1015c97e
mov eax, dword [ebp - 4]
mov cl, byte [eax + 0x14]
and cl, 1
movzx edx, cl
test edx, edx
je 0x1015c969
push 7
mov eax, dword [ebp - 4]
add eax, 0xc
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.100bf430
add esp, 0xc
jmp 0x1015c97e
push 5
mov edx, dword [ebp - 4]
add edx, 0xc
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.100bf430
add esp, 0xc
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov cl, byte [ebp + 0xc]
and cl, 1
shl cl, 1
mov edx, dword [ebp - 4]
mov al, byte [edx + 0x14]
and al, 0xfd
or al, cl
mov ecx, dword [ebp - 4]
mov byte [ecx + 0x14], al
mov dl, byte [ebp + 0xc]
and dl, 1
shl dl, 2
mov eax, dword [ebp - 4]
mov cl, byte [eax + 0x14]
and cl, 0xfb
or cl, dl
mov edx, dword [ebp - 4]
mov byte [edx + 0x14], cl
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1015c9f0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x1015ca66
mov dword [ebp - 4], 0
jmp 0x1015ca10
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
cmp eax, dword [edx + 8]
jae 0x1015ca51
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [ebp - 4]
mov ecx, dword [edx + eax*4]
push ecx
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1015ca4f
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x1015ca07
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
push 0
mov eax, dword [0x10200674]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
nop
mov esp, ebp
pop ebp
ret

Function at 0x1015ca70
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], 0
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0
mov eax, dword [ebp + 8]
push eax
call fcn.1015cb20
add esp, 4
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0
je 0x1015cb0e
mov dword [ebp - 4], 0
jmp 0x1015cab9
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 8]
jae 0x1015cb0e
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 4]
mov edx, dword [eax + ecx*4]
push edx
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1015cb0c
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.1015cc70
add esp, 0xc
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x1015cab0
mov esp, ebp
pop ebp
ret
Function at 0x1015cb20
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x101ae0c0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
je 0x1015cc62
mov dword [ebp - 0x20], 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1015cc57
cmp dword [ebp - 0x20], 0x10
jb 0x1015cc3a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x1015cc3a
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x1015cc3a
mov edx, dword [ebp + 8]
cmp dword [edx], 0
jne 0x1015cbca
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0x80
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
shl edx, 2
push edx
push 0
mov eax, dword [0x10200674]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp + 8]
cmp dword [edx], 0
jne 0x1015cbc8
jmp 0x1015cc57
jmp 0x1015cc1a
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 8]
cmp edx, dword [ecx + 4]
jb 0x1015cc1a
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
shl ecx, 1
shl ecx, 2
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
push 0
mov ecx, dword [0x10200674]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x1015cc04
jmp 0x1015cc57
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
shl eax, 1
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x28]
mov dword [edx], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x18]
mov dword [ecx + edx*4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
add edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 8], edx
mov dword [ebp - 0x20], 0x1c
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x1015cb64
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100bdc32
mov esp, ebp
pop ebp
ret
Function at 0x1015cfe0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movzx eax, byte [edx + ecx]
test eax, eax
je 0x1015d029
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + edx]
cmp ecx, 0x90
je 0x1015d029
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + eax]
cmp edx, 0xcc
je 0x1015d029
xor eax, eax
jmp 0x1015d06a
mov dword [ebp - 4], 1
jmp 0x1015d03b
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1015d065
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
movzx eax, byte [edx]
mov ecx, 1
imul edx, ecx, 0
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + edx]
cmp eax, edx
je 0x1015d063
xor eax, eax
jmp 0x1015d06a
jmp 0x1015d032
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x10173250
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
cmp dword [ebp + 8], 0
jne 0x10173263
xor eax, eax
jmp 0x1017343c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
movzx eax, word [edx]
cmp eax, 0x5a4d
je 0x10173283
xor eax, eax
jmp 0x1017343c
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0x4550
je 0x101732a1
xor eax, eax
jmp 0x1017343c
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
add eax, dword [edx + 0x50]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 8], 0
mov ecx, dword [ebp + 0xc]
call fcn.10011bd0
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0xc], ecx
jmp 0x101732d6
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x2c]
jae 0x1017343a
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx]
cmp edx, 0x3f
je 0x101733b2
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp - 4]
movzx eax, byte [edx + ecx]
cmp eax, 0x30
jl 0x10173330
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + edx]
cmp ecx, 0x39
jg 0x10173330
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + eax]
sub edx, 0x30
mov dword [ebp - 0x1c], edx
jmp 0x10173348
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp - 4]
movzx eax, byte [edx + ecx]
and eax, 0xffffffdf
sub eax, 0x37
mov dword [ebp - 0x1c], eax
mov ecx, 1
shl ecx, 0
mov edx, dword [ebp - 4]
movzx eax, byte [edx + ecx]
cmp eax, 0x30
jl 0x10173387
mov ecx, 1
shl ecx, 0
mov edx, dword [ebp - 4]
movzx eax, byte [edx + ecx]
cmp eax, 0x39
jg 0x10173387
mov ecx, 1
shl ecx, 0
mov edx, dword [ebp - 4]
movzx eax, byte [edx + ecx]
sub eax, 0x30
mov dword [ebp - 0x20], eax
jmp 0x1017339f
mov ecx, 1
shl ecx, 0
mov edx, dword [ebp - 4]
movzx eax, byte [edx + ecx]
and eax, 0xffffffdf
sub eax, 0x37
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0xc]
movzx edx, byte [ecx]
mov eax, dword [ebp - 0x1c]
shl eax, 4
or eax, dword [ebp - 0x20]
cmp edx, eax
jne 0x10173417
cmp dword [ebp - 8], 0
jne 0x101733be
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 8], ecx
mov edx, 1
shl edx, 1
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + edx]
test ecx, ecx
jne 0x101733d5
mov eax, dword [ebp - 8]
jmp 0x1017343c
mov edx, dword [ebp - 4]
movzx eax, word [edx]
cmp eax, 0x3f3f
je 0x101733f6
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx]
cmp edx, 0x3f
jne 0x101733f6
mov dword [ebp - 0x24], 2
jmp 0x101733fd
mov dword [ebp - 0x24], 3
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x24]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx]
test edx, edx
jne 0x10173415
mov eax, dword [ebp - 8]
jmp 0x1017343c
jmp 0x10173435
cmp dword [ebp - 8], 0
je 0x10173435
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0xc]
call fcn.10011bd0
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
jmp 0x101732cd
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1017cd40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
push 0xf
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
nop
cmp dword [ebp - 4], 0
je 0x1017cd7d
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
mov esp, ebp
pop ebp
ret
Function at 0x404624
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x4a0234]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x3fe
push eax
mov word [ebp - 0x404], ax
lea eax, [ebp - 0x402]
push eax
call fcn.0042ef80
add esp, 0xc
push 0x200
lea eax, [ebp - 0x404]
push eax
push dword [edi + 0x68]
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x404]
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x404673
sub eax, ecx
push esi
sar eax, 1
lea esi, [edi + 0x8c]
lea ecx, [ebp - 0x404]
call fcn.00401f96
push 1
push dword [edi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
inc eax
pop esi
call fcn.0042cc90
leave
ret
Function at 0x4073bf
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4a0234]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
push edi
or ecx, 0x2001f
push ecx
push eax
push dword [esi]
xor ebx, ebx
lea edi, [ebp - 0x218]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x210], ebx
call fcn.00407378
mov edi, eax
cmp edi, ebx
je 0x40742d
cmp dword [ebp - 0x218], ebx
je 0x407426
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x4074f0
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x407451
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x218]
call fcn.004073bf
mov dword [ebp - 0x224], eax
cmp eax, ebx
jne 0x4074ba
lea eax, [ebp - 0x22c]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
push dword [ebp - 0x218]
mov dword [ebp - 0x21c], 0x100
call edi
test eax, eax
je 0x407435
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x218], ebx
je 0x40749c
push dword [ebp - 0x218]
call edi
mov dword [ebp - 0x218], ebx
mov eax, dword [esi + 8]
push dword [ebp - 0x220]
mov dword [ebp - 0x214], ebx
push dword [esi]
cmp eax, ebx
je 0x4074d6
mov esi, eax
call fcn.00407552
jmp 0x4074dc
cmp dword [ebp - 0x218], ebx
je 0x4074ce
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x224]
jmp 0x4074f0
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
cmp dword [ebp - 0x218], ebx
je 0x4074ee
push dword [ebp - 0x218]
call edi
mov eax, esi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042cc90
leave
ret 4
Function at 0x407e0d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x47e87c
call fcn.0043333b
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor esi, esi
mov edi, edx
mov dword [ebp - 0x430], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x41c], eax
cmp eax, esi
jne 0x407e65
call fcn.004068b2
mov esi, eax
jmp 0x407f6f
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x407e7e
call fcn.004068b2
jmp 0x407f61
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x420], eax
cmp eax, esi
je 0x407e74
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x424], edi
cmp eax, edi
jae 0x407ebb
mov esi, 0x8007000e
jmp 0x407f63
xor ecx, ecx
shld ecx, eax, 1
add eax, eax
mov byte [ebp - 4], 2
cmp ecx, esi
ja 0x407ed0
cmp eax, 0xffffffff
jbe 0x407eda
push 0x80070216
call fcn.00403c0d
cmp eax, 0x400
jbe 0x407f07
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.00406e0a
jmp 0x407f13
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], esi
je 0x407eb1
push edi
push dword [ebp - 0x418]
push edi
push dword [ebp - 0x420]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x407e74
mov edx, dword [ebp - 0x418]
push dword [ebp + 0x10]
xor ecx, ecx
mov word [edx + eax*2], cx
mov ecx, dword [ebp - 0x418]
lea edx, [ebp - 0x42c]
call fcn.00407cad
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x407f88
lea eax, [ebp - 0x418]
call fcn.0040689c
mov eax, esi
call fcn.00433397
ret 0xc
Function at 0x40a0f8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x4a0234]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x10], edi
jne 0x40a233
push ebx
lea eax, [ebp - 0x220]
push eax
push edi
push edi
push 0x1a
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x40a232
lea eax, [ebp - 0x220]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40a13e
sub eax, edx
sar eax, 1
lea ecx, [ebp - 0x220]
call fcn.00401f96
push 8
pop ebx
cmp dword [esi + 0x14], ebx
jb 0x40a164
mov eax, dword [esi]
jmp 0x40a166
mov eax, esi
push eax
call fcn.0042e211
pop ecx
test eax, eax
jne 0x40a232
push str.DoneEx
push 7
pop edi
mov eax, esi
call fcn.004028aa
cmp dword [esi + 0x14], ebx
jb 0x40a18d
mov eax, dword [esi]
jmp 0x40a18f
mov eax, esi
push eax
call fcn.0042e211
pop ecx
test eax, eax
je 0x40a1b0
cmp dword [esi + 0x14], ebx
jb 0x40a1a3
mov eax, dword [esi]
jmp 0x40a1a5
mov eax, esi
push eax
call fcn.0042e33d
pop ecx
test eax, eax
jne 0x40a226
push str.XCell_Compiler
push 0xf
pop edi
mov eax, esi
call fcn.004028aa
cmp dword [esi + 0x14], ebx
jb 0x40a1c8
mov eax, dword [esi]
jmp 0x40a1ca
mov eax, esi
push eax
call fcn.0042e211
pop ecx
test eax, eax
je 0x40a1eb
cmp dword [esi + 0x14], ebx
jb 0x40a1de
mov eax, dword [esi]
jmp 0x40a1e0
mov eax, esi
push eax
call fcn.0042e33d
pop ecx
test eax, eax
jne 0x40a226
push str.AddIns
push 7
pop edi
mov eax, esi
call fcn.004028aa
cmp dword [esi + 0x14], ebx
jb 0x40a203
mov eax, dword [esi]
jmp 0x40a205
mov eax, esi
push eax
call fcn.0042e211
pop ecx
test eax, eax
je 0x40a232
cmp dword [esi + 0x14], ebx
jb 0x40a219
mov eax, dword [esi]
jmp 0x40a21b
mov eax, esi
push eax
call fcn.0042e33d
pop ecx
test eax, eax
je 0x40a232
xor eax, eax
mov ecx, 0x48cba4
call fcn.00401f96
pop ebx
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042cc90
leave
ret

Function at 0x40a243
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [eax + 0x14], 8
jb 0x40a24e
mov eax, dword [eax]
push esi
push 0x4911a0
push eax
call fcn.0042e42d
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x40a296
cmp dword [edi + 0x14], 0x10
jb 0x40a26c
mov eax, dword [edi]
jmp 0x40a26e
mov eax, edi
add eax, dword [ebp + 8]
push esi
push 1
push dword [ebp + 0xc]
push eax
call fcn.0042e59b
add esp, 0x10
push esi
cmp eax, 1
je 0x40a290
call fcn.0042e682
pop ecx
xor eax, eax
jmp 0x40a299
call fcn.0042e682
pop ecx
xor eax, eax
inc eax
pop esi
pop ebp
ret 8
Function at 0x40ffde
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2d14
call fcn.0043f530
mov eax, dword [0x4a0234]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push ebx
lea eax, [ebp - 0x5ec]
push 0x4916c0
push eax
mov dword [ebp - 0x2d10], ebx
call fcn.0042d8fd
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea eax, [ebp - 0x5ec]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2d0c], eax
cmp eax, 0xffffffff
je 0x410236
push edi
push 0xc
lea eax, [ebp - 0x2d08]
push ebx
push eax
mov dword [ebp - 0x2d14], ebx
call fcn.0042ef80
mov edi, 0x2710
push edi
lea eax, [ebp - 0x2cfc]
push ebx
push eax
mov dword [ebp - 0x2d08], ebx
mov dword [ebp - 0x2d04], ebx
call fcn.0042ef80
add esp, 0x18
push ebx
lea eax, [ebp - 0x2d14]
push eax
push edi
lea eax, [ebp - 0x2cfc]
push eax
push 0xc
lea eax, [ebp - 0x2d08]
push eax
push 0x2d1400
push dword [ebp - 0x2d0c]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x410169
push esi
push 0x3e7
lea eax, [ebp - 0x3eb]
push ebx
push eax
mov byte [ebp - 0x3ec], bl
call fcn.0042ef80
mov eax, dword [ebp - 0x2cf0]
push ebx
mov esi, 0x4ab6e8
lea ecx, [ebp - 0x2cfc]
call fcn.0040fe92
mov eax, dword [ebp - 0x2cec]
push ebx
mov esi, 0x4abae8
lea ecx, [ebp - 0x2cfc]
call fcn.0040fe92
mov eax, dword [ebp - 0x2ce4]
push 1
lea esi, [ebp - 0x3ec]
lea ecx, [ebp - 0x2cfc]
call fcn.0040fe92
push 0x4abae8
push 0x4ab2e8
call fcn.00430950
add esp, 0x20
pop esi
cmp byte [0x4aaee8], bl
jne 0x410155
movzx eax, byte [ebp - 0x3ec]
push eax
call fcn.0043195c
pop ecx
test eax, eax
jne 0x410140
movzx eax, byte [ebp - 0x3d9]
push eax
call fcn.0043195c
pop ecx
test eax, eax
je 0x410155
lea eax, [ebp - 0x3ec]
push eax
push 0x4aaee8
call fcn.00430950
pop ecx
pop ecx
jmp 0x41016f
cmp byte [0x4ab2e8], bl
je 0x41016f
mov dword [ebp - 0x2d10], 1
jmp 0x41016f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
lea eax, [ebp - 0x2cfc]
push ebx
push eax
call fcn.0042ef80
add esp, 0xc
push ebx
lea eax, [ebp - 0x2d14]
push eax
push edi
lea eax, [ebp - 0x2cfc]
push eax
push ebx
push ebx
push 0x2d0c10
push dword [ebp - 0x2d0c]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
pop edi
test eax, eax
je 0x410224
xor eax, eax
push 0x3e6
mov word [ebp - 0x3ec], ax
lea eax, [ebp - 0x3ea]
push ebx
push eax
call fcn.0042ef80
lea eax, [ebp - 0x2cec]
push eax
lea eax, [ebp - 0x3ec]
push eax
call fcn.00430950
add esp, 0x14
cmp byte [0x4aaee8], bl
jne 0x41022a
movsx eax, byte [ebp - 0x3ec]
push eax
call fcn.0043195c
pop ecx
test eax, eax
jne 0x410205
movsx eax, byte [ebp - 0x3d9]
push eax
call fcn.0043195c
pop ecx
test eax, eax
je 0x41022a
lea eax, [ebp - 0x3ec]
push eax
push 0x4aaee8
call fcn.00430950
pop ecx
pop ecx
mov dword [ebp - 0x2d10], 1
jmp 0x41022a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x2d0c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2d10]
xor ecx, ebp
pop ebx
call fcn.0042cc90
leave
ret