joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4036e0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x407660
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x403704
add eax, 8
inc ebp
cmp eax, 0x4076f0
jb 0x4036f5
cmp ecx, dword [ebp*8 + 0x407660]
jne 0x4038ab
mov eax, dword [0x409ac8]
cmp eax, 1
je 0x40386d
test eax, eax
jne 0x403730
cmp dword [0x407234], 1
je 0x40386d
cmp ecx, 0xfc
je 0x4038ab
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40376b
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x4037b4
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x406358
add ebx, ecx
push ebx
call fcn.00404e10
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x406338
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x407664]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00404d80
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x409dc0]
test eax, eax
je 0x40387e
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x403888
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x407664]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x404310
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x409ec0]
sub esp, 0x41c
cmp eax, ecx
push ebx
push ebp
push esi
push edi
jae 0x4044bd
mov ecx, eax
mov esi, eax
sar ecx, 5
and esi, 0x1f
mov edx, dword [ecx*4 + 0x409dc0]
lea edi, [ecx*4 + 0x409dc0]
shl esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], esi
mov cl, byte [esi + edx + 4]
test cl, 1
je 0x4044bd
mov ebx, dword [esp + 0x438]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x40437e
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
test cl, 0x20
je 0x40438f
push 2
push ebp
push eax
call fcn.00404f10
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x4044ee
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x404439
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x4043ea
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x4043d7
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x4043ba
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4044df
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x404435
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x4043b6
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4044ae
mov eax, dword [esp + 0x18]
test eax, eax
je 0x404482
cmp eax, 5
jne 0x40446b
mov dword [0x409ae0], eax
mov dword [0x409adc], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.00403fe0
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x4044a2
cmp byte [ebp], 0x1a
jne 0x4044a2
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x409adc], 0x1c
jmp 0x4044c7
sub eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x409adc], 9
pop edi
pop esi
pop ebp
mov dword [0x409ae0], 0
or eax, 0xffffffff
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x404435
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40451f
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x404439
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x404439
Function at 0x404fd0
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.004054c0
mov eax, dword [0x409ec0]
push ebx
mov ebx, dword [esp + 0x100c]
push ebp
xor ebp, ebp
push esi
cmp ebx, eax
push edi
jae 0x405132
mov eax, ebx
mov ecx, ebx
sar eax, 5
and ecx, 0x1f
mov edx, dword [eax*4 + 0x409dc0]
test byte [edx + ecx*8 + 4], 1
je 0x405132
push 1
push ebp
push ebx
call fcn.00404f10
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x40513c
push 2
push ebp
push ebx
call fcn.00404f10
add esp, 0xc
cmp eax, 0xffffffff
je 0x40513c
mov ecx, dword [esp + 0x101c]
mov esi, ecx
sub esi, eax
test esi, esi
jle 0x4050d8
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x14]
push 0x8000
rep stosd dword es:[edi], eax
push ebx
call fcn.00405440
add esp, 8
mov edi, eax
cmp esi, 0x1000
mov eax, 0x1000
jge 0x40507f
mov eax, esi
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.00404310
add esp, 0xc
cmp eax, 0xffffffff
je 0x40509b
sub esi, eax
test esi, esi
jle 0x4050b1
jmp 0x405070
cmp dword [0x409ae0], 5
jne 0x4050ae
mov dword [0x409adc], 0xd
or ebp, 0xffffffff
push edi
push ebx
call fcn.00405440
mov edi, dword [esp + 0x18]
add esp, 8
push 0
push edi
push ebx
call fcn.00404f10
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
jge 0x405119
push 0
push ecx
push ebx
call fcn.00404f10
add esp, 0xc
push ebx
call fcn.00404260
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ebp, eax
neg ebp
sbb ebp, ebp
neg ebp
dec ebp
cmp ebp, 0xffffffff
jne 0x405119
mov dword [0x409adc], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x409ae0], eax
push 0
push edi
push ebx
call fcn.00404f10
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
mov dword [0x409adc], 9
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1004
ret
Function at 0x43cf5e
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x43ccda
call fcn.0043cf79
sub ebx, 0x2d0b7553
xor dword [ecx], esi
inc ecx
cmp ecx, eax
jne fcn.0043cf5e
dec edi
and ebx, ebx
ret
Function at 0x4047e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x487e70
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x4b12c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edx, dword [esi + 0x30]
or eax, 0xffffffff
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x404820
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, esi
call fcn.004046b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x405610
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4881b6
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x4b12c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
xor eax, eax
mov dword [ebp - 4], 0
cmp dword [ecx + 0x2c], eax
lea ecx, [ebp - 0x230]
push 0x2001f
setne al
push str.SoftwareMicrosoftWindowsCurrentVersionRun
add eax, 0x80000001
push eax
call fcn.004093f0
mov edi, dword [ebp - 0x230]
test eax, eax
jne 0x4057a7
call fcn.00408700
mov ecx, eax
test ecx, ecx
je 0x4057d4
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
push dword [esi + 8]
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 1
push dword [esi]
push str.__s___s
push eax
call fcn.00408610
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00460350
add esp, 0x1c
mov dword [ebp - 0x21c], 0x208
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x224]
push eax
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405736
mov eax, dword [ebp - 0x224]
cmp eax, 1
je 0x405724
cmp eax, 2
jne 0x405736
cmp dword [ebp - 0x21c], 0
jne 0x405736
xor eax, eax
mov word [ebp - 0x218], ax
mov esi, dword [ebp - 0x220]
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.00463cc6
add esp, 8
test eax, eax
je 0x405784
test esi, esi
je 0x405784
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405760
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4057a0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, 1
jmp 0x4057a9
xor esi, esi
test edi, edi
je 0x4057b4
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00445670
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.00407d70
int3
Function at 0x4087e0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4886c8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4b12c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp word [0x4d85f8], 0
jne 0x408824
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x100
push eax
push 0x4d85f8
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
call fcn.00408700
mov ecx, eax
test ecx, ecx
je 0x408890
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
push 0x4d85f8
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.00407d90
test al, al
jne 0x40887c
mov ecx, 0x4d85f8
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408860
sub ecx, edx
sar ecx, 1
push ecx
push 0x4d85f8
mov ecx, esi
call fcn.00409e30
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00407d70
int3

Function at 0x408c90
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x4b12c8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
cmp dword [ecx + 0x2c], eax
lea ecx, [ebp - 0x220]
push edi
push 0x2001f
setne al
mov dword [ebp - 0x220], 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
add eax, 0x80000001
mov dword [ebp - 0x21c], 0
push eax
mov dword [ebp - 0x218], 0
call fcn.004093f0
mov edi, dword [ebp - 0x220]
test eax, eax
jne 0x408d72
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00460350
add esp, 0xc
mov dword [ebp - 0x210], 0x208
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x408d72
mov eax, dword [ebp - 0x214]
cmp eax, 1
je 0x408d46
cmp eax, 2
jne 0x408d72
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x408d72
test al, 1
jne 0x408d72
shr eax, 1
cmp word [ebp + eax*2 - 0x20e], 0
jne 0x408d72
cmp word [ebp - 0x20c], 0
je 0x408d72
mov esi, 1
jmp 0x408d74
xor esi, esi
test edi, edi
je 0x408d7f
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00445670
mov esp, ebp
pop ebp
ret 4
Function at 0x409130
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x488811
mov eax, dword fs:[0]
push eax
sub esp, 0x2d8
mov eax, dword [0x4b12c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push str.YxhGametray
push dword [ebx]
call fcn.00463cc6
add esp, 8
test eax, eax
je 0x4091a1
push str.LeyouGametray
push dword [ebx]
call fcn.00463cc6
add esp, 8
test eax, eax
je 0x4091a1
push dword [ebx + 0x14]
push 0xffffffffffffffff
push dword [ebx + 0x1c]
push dword [ebx + 0x18]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
neg eax
sbb eax, eax
inc eax
jmp 0x409310
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00460350
add esp, 0xc
lea eax, [ebp - 0x218]
push dword [ebx + 0x14]
push 0x104
push eax
push str.true
push dword [ebx + 0x1c]
push dword [ebx + 0x18]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push str.false
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
xor ecx, ecx
test eax, eax
setne cl
mov dword [ebp - 0x24c], ecx
test eax, eax
je 0x40930e
call fcn.00444450
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x409308
push 0x63
push str.d:jenkins.jenkinsworkspacelib_commoncommonhelpercommonhelper_autorunmanger_autorunmanager.cpp
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], al
call fcn.0040b710
push 3
push 0x48fbcc
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.0040b710
mov byte [ebp - 4], 1
call fcn.00444450
mov edi, eax
lea ecx, [ebp - 0x2e4]
push 0x33a
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.004039e0
mov esi, eax
push str.IsDisable_
push esi
mov byte [ebp - 4], 2
call fcn.00405030
mov ecx, dword [ebx + 0x14]
mov edx, 0x48fb20
test ecx, ecx
cmovne edx, ecx
push edx
push esi
call fcn.00402900
push 0x49022c
push esi
call fcn.00405030
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.00402900
mov edx, dword [edi]
add esp, 0x20
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x2e4]
call fcn.00405160
lea ecx, [ebp - 0x230]
call fcn.00404410
lea ecx, [ebp - 0x248]
call fcn.00404410
mov ecx, dword [ebp - 0x24c]
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00445670
mov esp, ebp
pop ebp
ret
Function at 0x40a100
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40a159
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40a159
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40a14a
cmp esi, edx
jae 0x40a159
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x40a138
cmp esi, edx
jae 0x40a159
cmp word [esi], 0
je 0x40a159
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0x40f3f0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4b12c8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
push 0x30
push 0
push esi
call fcn.00460350
push 0x110
lea eax, [ebp - 0x114]
mov dword [ebp - 0x118], 0x114
push 0
push eax
call fcn.00460350
add esp, 0x18
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40f453
cmp dword [ebp - 0x114], 6
mov eax, 0x30
jae 0x40f458
mov eax, 0x2c
mov ecx, dword [ebp + 0x10]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [esi + 4], eax
test ecx, ecx
jne 0x40f476
push edi
call dword [sym.imp.USER32.dll_GetParent]
or dword [esi + 4], 1
mov ecx, edi
jmp 0x40f478
mov eax, edi
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0xc], ecx
test eax, eax
je 0x40f48c
movups xmm0, xmmword [eax]
movups xmmword [esi + 0x10], xmm0
mov ecx, dword [0x4d8af0]
mov eax, esi
mov dword [esi + 0x20], ecx
mov ecx, dword [ebp + 0x18]
mov dword [esi + 0x24], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [esi + 0x28], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00445670
mov esp, ebp
pop ebp
ret 0x18
Function at 0x412050
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x489176
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x4b12c8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push esi
mov byte [ebp - 4], 1
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x4120fc
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x4120fc
call fcn.00410230
mov esi, eax
jmp 0x4121ec
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x41211f
call fcn.00410230
jmp 0x4121df
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x41213d
call fcn.00410230
jmp 0x4121df
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x41c], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x41215e
mov esi, 0x8007000e
jmp 0x4121e1
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.00410030
jmp 0x412188
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x41219f
mov esi, 0x8007000e
jmp 0x4121e1
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x4121bf
call fcn.00410230
jmp 0x4121df
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.00411eb0
mov esi, eax
test edi, edi
je 0x4121ec
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x412210
lea ecx, [ebp - 0x418]
call fcn.004108b0
nop word [eax + eax]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00445670
mov esp, ebp
pop ebp
ret 0x10
Function at 0x416600
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x489458
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4b12c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0xc], 0
je 0x41664d
push 0xa
push str.drv_giveup
lea ecx, [edi + 0x10]
call fcn.00409e30
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 4]
sub eax, 0x10
push eax
call fcn.00407ed0
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x416685
push 9
lea ecx, [edi + 0x10]
push str.drv_other
call fcn.00409e30
jmp 0x4166a5
push esi
call fcn.00439df0
add esp, 4
test eax, eax
je 0x4166a5
mov eax, dword [edi]
push 0
push 0
push esi
push 1
push eax
push eax
call fcn.004169c0
add esp, 0x18
or eax, 0xffffffff
add esi, 0xfffffff0
mov dword [ebp - 4], eax
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4166c0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x416f10
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], ecx
push esi
and eax, 0x8000000f
jns 0x416f2b
dec eax
or eax, 0xfffffff0
add eax, 1
jne 0x41708a
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41708a
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
push esi
movq qword [ebp - 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x417083
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x417083
cmp dword [ebp - 0x10], 0
jg 0x417083
jl 0x416f94
cmp eax, 0x1000000
ja 0x417083
push edi
push 0x1000000
call fcn.004458bd
add esp, 4
mov dword [ebp + 0x14], 0
mov edi, eax
lea eax, [ebp + 0x14]
push 0
push eax
push dword [ebp - 0x14]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x417067
cmp dword [ebp + 0x14], 0
je 0x417067
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call ebx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 8]
mov dword [ebp + 8], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
push eax
push edi
call fcn.00416cb0
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 0x10]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x417039
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
push dword [ebp + 8]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
test eax, eax
jne 0x41704f
call ebx
push 1
push esi
call fcn.004453c8
add esp, 8
xor al, al
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
call ebx
push 1
push esi
call fcn.004453c8
add esp, 8
mov al, 1
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
push 1
push edi
call fcn.004453c8
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 0x10
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4171c0
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, ecx
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4171e0
push 9
push str.svc_other
lea ecx, [esi + 0xc]
call fcn.00409e30
pop esi
ret
call fcn.0041d930
test eax, eax
je 0x4171fa
push 6
push str.svc_hr
lea ecx, [esi + 0xc]
call fcn.00409e30
pop esi
ret
push dword [esi]
call fcn.00439df0
add esp, 4
test eax, eax
je 0x41722b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x41722b
push 0x490ddc
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41722b
push 0x48e62c
call eax
pop esi
ret