joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4db0a3
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x51efb882
cmp eax, 0x213fafda
aas
and dword [ecx], ebp
clc
aas
and dword [ecx], ebp
clc
pop dword [ebp + 0x2087a321]
add byte [ecx - 0x2dc1cb7a], ch
aam 0xf0
inc edx
push ds
adc dword [esi - 0x4a], 0x3a
jl 0x4db0f7
mov byte [edx], ch
xchg ebx, eax
push ss
shr dh, 0xc0
mov esi, 0xc8182215
invalid
mov ch, 0x7d
xchg ebp, eax
or dword [edi], ecx
sub al, 0x66
ret 0xb744
ret 0xb744
stosb byte es:[edi], al
js 0x4db12d
xchg ebp, eax
out dx, eax
adc eax, ebp
sub al, 0x2a
inc edx
mov cl, 0x36
sbb eax, 0xad071ec1
dec esi
jg 0x4db09b
int1
xchg ecx, eax
invalid
jle 0x4db0d5
inc ebx
rol bl, 1
mov dh, 0x40
scasd eax, dword es:[edi]
mov bh, 0x67
in al, 0x6e
mov eax, 0xe964ea80
push cs
or dl, ch
and al, 6
add al, 0x18
dec esp
jo 0x4db0db
movsd dword es:[edi], dword [esi]
in eax, dx
adc eax, 0xb7a9f856
xlatb
or esi, dword [edx - 0x47c5dd19]
and byte [edx], al
cmp byte [esi + 0x53], dh
fprem1
sbb al, 0x4b
pop esi
fdivr qword [ebp - 0x5f]
imul edx, dword [eax + 0x5009033e], 0xbbdc881f
inc esi
pop edi
popal
cmp dword [ebx - 0x50fc44d4], ecx
dec ebx
mov dl, 0xf2
out dx, eax
lds ecx, [ecx]
mov ah, 0
xor eax, 0x51272dd2
jle 0x4db170
push es
mov ebp, 0x39669a31
fcmovb st(0), st(5)
mov ch, bl
sbb al, 0xf1
push cs
mov ebx, 0x2116da76
jno 0x4db1ca
aas
and al, 0x14
fiadd word [edi - 0x47c7b664]
dec ebx
mov dl, 0x24
push 0xa9c76c26
iretd
ja 0x4db220
xchg esp, eax
or edi, eax
mov ebp, 0x1a4e1989
jno 0x4db1c6
aaa
xchg esi, eax
into
xchg ebx, eax
arpl word [ecx], si
aam 0xe8
fiadd dword [0xfa54a55c]
call 0xa5a9b7a5
movsd dword es:[edi], dword [esi]
push esp
cli
call 0x5a11367f
push ebp
mov al, byte [0xf1d8acb6]
cli
push esi
mov cl, byte [edi + 0x6771c70c]
pop ecx
popfd
cld
mov ecx, 0xe68cceae
inc edi
mov esp, dword es:[ebx - 0x73]
std
push ebp
adc byte [edx + ecx*8 + 0x69], dl
dec edx
fst st(5)
xchg edi, eax
jg 0x4db1b3
sub al, 0xe7
dec ebp
push ds
dec esp
xchg esi, eax
invalid
cmp al, 0x8a
adc al, byte [edx - 0x26]
adc eax, 0x23b93c33
fidiv word [ebp + 0x42125327]
mov ah, 0x5b
add dl, ah
aam 0x8b
not dword [ebx - 0x750e67c]
fucomp st(7)
dec edi
mov al, 0xc4
cmp esi, edi
outsd dx, dword [esi]
insd dword es:[edi], dx
jb 0x4db1d8
aaa
dec eax
sbb eax, 0x9791f192
popal
or eax, 0xb7eaa57a
xchg edx, eax
add byte [edx + 0x6d], ch
iretd
Function at 0x409e0c
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
call fcn.00403520
mov eax, dword [ebp - 0x18]
call fcn.00403520
mov eax, dword [ebp - 0x1c]
call fcn.00403520
xor eax, eax
push ebp
push 0x409f10
push dword fs:[eax]
mov dword fs:[eax], esp
push ebp
mov eax, dword [ebp - 0x14]
call fcn.00403530
push eax
mov eax, dword [ebp - 0x18]
call fcn.00403530
mov edx, eax
mov eax, dword [0x40c650]
pop ecx
call fcn.00409d94
pop ecx
test al, al
je 0x409ef5
mov eax, dword [ebp - 0x1c]
call fcn.004048ec
test al, al
je 0x409e86
mov eax, dword [ebp - 0x1c]
call fcn.00403530
push eax
call sub.kernel32.dll_DeleteFileA
xor eax, eax
push ebp
push 0x409eda
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp - 0x1c]
call fcn.00403530
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
push 0
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
push ebx
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x409ee4
mov eax, dword [ebp - 0x10]
call fcn.00404520
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_FreeResource
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409f17
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00403140
ret

Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x4afce4
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
jmp 0x4afda3
cmp dword [esi + 0x10], 0x1000
jne 0x4afd8f
test byte [esi + 0x15], 1
jne 0x4afd8f
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4afd40
cmp ebp, 2
je 0x4afd40
cmp ebp, 0x10
je 0x4afd40
cmp ebp, 0x20
jne 0x4afd5c
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4afd5c
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4afd6d
mov eax, dword [esi]
add eax, ebx
call fcn.004afcdc
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4afd60
cmp byte [esp + 4], 0
je 0x4afd8f
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4afd15
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x107be
Capabilities:
Create device object
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
call fcn.00010785
pop ebp
jmp fcn.00010450
Function at 0x10002da0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
xor eax, eax
jne 0x10002da9
xor ecx, ecx
jne 0x10002da9
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
shl eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x10002df0
mov eax, dword [ebp - 0xc]
jmp 0x10002e4d
cmp dword [ebp - 4], 1
je 0x10002e03
cmp dword [ebp - 4], 2
je 0x10002e03
mov eax, 0xd
jmp 0x10002e4d
cmp dword [ebp + 0xc], 0
je 0x10002e41
cmp dword [ebp - 8], 0
je 0x10002e39
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x10002e30
mov edx, dword [ebp - 8]
shr edx, 1
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + edx*2 - 2]
test ecx, ecx
je 0x10002e37
mov eax, 0xd
jmp 0x10002e4d
jmp 0x10002e41
xor edx, edx
mov eax, dword [ebp + 0xc]
mov word [eax], dx
mov ecx, dword [ebp - 8]
shr ecx, 1
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10004cab
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10021030]
jne 0x10004cb5
repz ret
jmp fcn.100061ac
Function at 0x1000ca1b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.10006324
and dword [ebp - 4], 0
cmp dword [0x10023e38], 0
mov ebx, eax
jne 0x1000cacc
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1000cb7d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1000cb7d
push eax
call fcn.100062b2
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10023e38], eax
call esi
push eax
call fcn.100062b2
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10023e3c], eax
call esi
push eax
call fcn.100062b2
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10023e40], eax
call esi
push eax
call fcn.100062b2
pop ecx
mov dword [0x10023e48], eax
test eax, eax
je 0x1000cacc
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.100062b2
pop ecx
mov dword [0x10023e44], eax
mov eax, dword [0x10023e44]
cmp eax, ebx
je 0x1000cb24
cmp dword [0x10023e48], ebx
je 0x1000cb24
push eax
call fcn.1000632d
push dword [0x10023e48]
mov esi, eax
call fcn.1000632d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1000cb24
test edi, edi
je 0x1000cb24
call esi
test eax, eax
je 0x1000cb1b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1000cb1b
test byte [ebp - 0xc], 1
jne 0x1000cb24
or dword [ebp + 0x10], 0x200000
jmp 0x1000cb5d
mov eax, dword [0x10023e3c]
cmp eax, ebx
je 0x1000cb5d
push eax
call fcn.1000632d
pop ecx
test eax, eax
je 0x1000cb5d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1000cb5d
mov eax, dword [0x10023e40]
cmp eax, ebx
je 0x1000cb5d
push eax
call fcn.1000632d
pop ecx
test eax, eax
je 0x1000cb5d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10023e38]
call fcn.1000632d
pop ecx
test eax, eax
je 0x1000cb7d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1000cb7f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100141a0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x10023f34], 0
je 0x100141f3
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [0x10023f34]
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 4], 0x103
jne 0x100141dd
push 1
mov edx, dword [0x10023f34]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [0x10023f34]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x10023f34], 0
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x10014200
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10017840
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x10014234
xor eax, eax
jmp 0x1001430f
mov edx, 1
test edx, edx
je 0x100142f9
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x1001425a
jmp 0x100142f9
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
cmp dword [edx], 0x4550
je 0x10014276
jmp 0x100142f9
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x54]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x1c]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 4]
jbe 0x1001429a
mov dword [ebp - 0x20], 0
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 0x20]
cmp edx, dword [ebp - 4]
jbe 0x100142ae
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 0x20]
push ecx
call fcn.10017910
add esp, 0x10
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x100142db
jmp 0x100142f9
mov edx, dword [ebp - 0x14]
add edx, dword [ebp + 0x14]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x10]
sub edx, dword [ecx + 0x34]
mov dword [ebp - 8], edx
jmp 0x100142f9
mov eax, dword [ebp - 0xc]
push eax
call fcn.10005939
add esp, 4
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x10016b80
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x10023f34], 0
je 0x10016ba5
push 1
mov eax, dword [0x10023f34]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [0x10023f34], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 4]
push ecx
push 0
push 0
push 0x10016b30
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x10023f34], eax
xor eax, eax
cmp dword [0x10023f34], 0
setne al
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebp
ret
Function at 0x10017200
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10019233
mov eax, dword fs:[0]
push eax
mov eax, 0x203c
call fcn.1000c9f0
mov eax, dword [0x10021030]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2030], 0
lea ecx, [ebp - 0x201c]
call fcn.10001100
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2020]
call fcn.10001100
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2018]
call fcn.10001100
mov byte [ebp - 4], 2
lea eax, [ebp - 0x2024]
push eax
call fcn.10016d30
add esp, 4
mov dword [ebp - 0x2034], eax
mov ecx, dword [ebp - 0x2034]
mov dword [ebp - 0x2038], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x2038]
push edx
lea ecx, [ebp - 0x2020]
call fcn.10001160
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2024]
call fcn.10001140
mov ecx, 0x10023f64
call fcn.10001880
push eax
lea eax, [ebp - 0x2028]
push eax
call fcn.10011220
add esp, 8
mov dword [ebp - 0x203c], eax
mov ecx, dword [ebp - 0x203c]
mov dword [ebp - 0x2040], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x2040]
push edx
lea ecx, [ebp - 0x2020]
call fcn.10001180
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2028]
call fcn.10001140
mov ax, word [0x1001e7c4]
mov word [ebp - 0x2014], ax
push 0x1ffe
push 0
lea ecx, [ebp - 0x2012]
push ecx
call fcn.10004e00
add esp, 0xc
lea ecx, [ebp - 0x2020]
call fcn.10001880
push eax
push 0x1000
lea edx, [ebp - 0x2014]
push edx
push 0x1001e7c8
push str.Item1
push str.Main
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x2014]
push eax
call fcn.10004e7a
add esp, 4
cmp eax, 0x1b
jbe 0x10017434
lea ecx, [ebp - 0x1fde]
push ecx
lea ecx, [ebp - 0x2018]
call fcn.100027f0
push 1
lea ecx, [ebp - 0x2018]
call fcn.10001880
push eax
lea edx, [ebp - 0x202c]
push edx
call fcn.10011860
add esp, 0xc
mov dword [ebp - 0x2044], eax
mov eax, dword [ebp - 0x2044]
mov dword [ebp - 0x2048], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x2048]
push ecx
lea ecx, [ebp - 0x201c]
call fcn.10001160
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x202c]
call fcn.10001140
lea ecx, [ebp - 0x201c]
call fcn.10001250
movzx edx, al
test edx, edx
jne 0x10017434
lea eax, [ebp - 0x201c]
push eax
call fcn.10016f10
add esp, 4
lea ecx, [ebp - 0x201c]
call fcn.10001880
push eax
call fcn.10016c30
add esp, 4
test eax, eax
jne 0x10017414
lea ecx, [ebp - 0x201c]
call fcn.100011a0
jmp 0x10017434
movzx ecx, byte [0x10023f2c]
and ecx, 0xf
mov byte [0x10023f2c], cl
movzx edx, byte [0x10023f2c]
add edx, 0x10
mov byte [0x10023f2c], dl
lea eax, [ebp - 0x201c]
push eax
mov ecx, dword [ebp + 8]
call fcn.10001120
mov ecx, dword [ebp - 0x2030]
or ecx, 1
mov dword [ebp - 0x2030], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2018]
call fcn.10001140
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2020]
call fcn.10001140
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x201c]
call fcn.10001140
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10004cab
mov esp, ebp
pop ebp
ret
Function at 0x10017760
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 8], 0
je 0x10017778
cmp dword [ebp + 0xc], 0
je 0x10017778
cmp dword [ebp + 0x10], 0
jne 0x1001777c
xor eax, eax
jmp 0x100177d5
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
push 0x40
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x100177d3
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10005240
add esp, 0xc
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, 1
jmp 0x100177d5
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x100177e0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
jmp 0x100177f6
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0x10]
jge 0x1001782b
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
movzx eax, byte [edx]
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 4]
movzx edx, byte [ecx]
cmp eax, edx
je 0x10017829
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 4]
movzx ecx, byte [eax]
cmp ecx, 0xcc
je 0x10017829
xor eax, eax
jmp 0x10017830
jmp 0x100177ed
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x10017840
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x1001786f
xor eax, eax
jmp 0x1001790a
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10017892
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1001790a
mov eax, dword [ebp - 8]
push eax
call fcn.1000516a
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10017907
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
cmp eax, dword [ebp - 8]
jae 0x10017907
mov dword [ebp - 0x10], 0
push 0
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 8]
sub eax, dword [edx]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
add edx, dword [ecx]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100178f0
jmp 0x10017907
cmp dword [ebp - 0x10], 0
jne 0x100178f8
jmp 0x10017907
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
jmp 0x100178b7
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x10018340
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10019014
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x10021030]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], 0
cmp dword [ebp + 8], 0
jne 0x10018379
xor eax, eax
jmp 0x100184e8
push 0
mov eax, dword [ebp + 8]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x10018394
xor eax, eax
jmp 0x100184e8
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x28]
add ecx, 8
push ecx
call fcn.1000583a
add esp, 4
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], 0
jne 0x100183c7
xor eax, eax
jmp 0x100184e8
mov eax, dword [ebp - 0x28]
add eax, 8
push eax
push 0
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.10004e00
add esp, 0xc
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x28]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x100183f8
jmp 0x100184c6
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
push str.762A792A5E2A582A432A442A4D2A6C2A432A462A4F2A632A442A4C2A452A762A1A2A122A1A2A1E2A1A2A1E2A482A1A2A762A792A5A2A4F2A492A432A4B2A462A682A5F2A432A462A4E2A2A2A
lea edx, [ebp - 0x34]
push edx
call fcn.100110b0
add esp, 8
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x20]
push edx
mov ecx, dword [ebp - 0x48]
call fcn.10001210
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.VERSION.dll_VerQueryValueW
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.10001140
cmp dword [ebp - 0x24], 0
jbe 0x100184c6
mov eax, dword [ebp - 0x24]
add eax, 1
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1000583a
add esp, 4
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x24]
add eax, 1
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.10005845
add esp, 0x10
xor edx, edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x2c]
mov word [ecx + eax*2], dx
mov edx, dword [ebp - 0x2c]
push edx
call fcn.10005918
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.1000592e
add esp, 4
cmp dword [ebp - 0x18], 0
je 0x100184e5
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x40]
push eax
call fcn.1000592e
add esp, 4
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x10018500
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10019037
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10021030]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 8], 0
jne 0x10018532
xor eax, eax
jmp 0x10018631
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.10002770
mov dword [ebp - 4], 0
push 0x104
lea ecx, [ebp - 0x18]
call fcn.10002b80
mov dword [ebp - 0x14], eax
push 0x5c
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.10002d80
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x1001858a
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.10001140
mov eax, dword [ebp - 0x1c]
jmp 0x10018631
push str.7A2A582A792A492A582A442A042A4E2A462A462A2A2A
lea edx, [ebp - 0x20]
push edx
call fcn.100110b0
add esp, 8
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
call fcn.10001880
push eax
mov eax, dword [ebp - 0x10]
add eax, 2
push eax
call fcn.100057e4
add esp, 8
lea ecx, [ebp - 0x20]
call fcn.10001140
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.10001270
lea ecx, [ebp - 0x18]
call fcn.10001880
push eax
mov ecx, 0x10023f80
call fcn.10017aa0
test eax, eax
jne 0x10018607
lea ecx, [ebp - 0x18]
call fcn.10001880
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.10001140
mov eax, dword [ebp - 0x24]
jmp 0x10018631
mov dword [ebp - 0x28], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.10001140
mov eax, dword [ebp - 0x28]
jmp 0x10018631
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret