joyce8/EMBER2024-capa huggingface dataset:
Function at 0x453a30
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x46751c], esi
push edi
jne 0x453a50
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x467518], esi
mov byte [0x467514], al
jne 0x453ab6
mov ecx, dword [0x468aec]
test ecx, ecx
je 0x453a97
mov eax, dword [0x468ae8]
sub eax, 4
cmp eax, ecx
jmp 0x453a90
mov eax, dword [eax]
test eax, eax
je 0x453a82
call eax
mov eax, dword [0x468ae8]
sub eax, 4
cmp eax, dword [0x468aec]
mov dword [0x468ae8], eax
jae 0x453a7a
mov eax, 0x461040
mov esi, 0x461048
cmp eax, esi
mov edi, eax
jae 0x453ab6
mov eax, dword [edi]
test eax, eax
je 0x453aaf
call eax
add edi, 4
cmp edi, esi
jb 0x453aa7
mov eax, 0x46104c
mov esi, 0x461050
cmp eax, esi
mov edi, eax
jae 0x453ad5
mov eax, dword [edi]
test eax, eax
je 0x453ace
call eax
add edi, 4
cmp edi, esi
jb 0x453ac6
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x453aef
push dword [ebp + 8]
mov dword [0x46751c], 1
call fcn.0043d393
pop ebp
ret
Function at 0x10010511
Capabilities:
Hash data with md5

Disassembly:
pop edi
call fcn.100631db
jecxz 0x100103f5
jne 0x10010441
retf
mov esp, 0x7b5c6c09
insd dword es:[edi], dx
xchg edi, eax
dec cl
push 0xe9e3bb0f
popal
sub al, 5
add byte [ebx - 0x1053a2de], cl
pop ebp
inc edi
inc esp
dec ebp
in eax, dx
jl 0x10010429
inc ebx
lahf
pop ebx
mov dl, 0x8d
and al, 4
push ebp
mov ebp, esp
jmp 0x1001047b
mov ecx, 0xdd12a01e
jecxz 0x1001044f
insb byte es:[edi], dx
cld
lock xor dl, byte [edi + 0x60]
loopne 0x100103db
dec ebp
or cl, bh
mov ecx, dword [esi]
lea edx, [esi + ebp]
sub esp, 0x40
mov edx, dword [esp]
call fcn.10010465
xor ebp, dword [edx]
inc ebp
hlt
lea esp, [esp + 4]
add dword [esi + 4], ecx
pushal
jmp 0x10010582
lea esp, [esp + 2]
je 0x100103d3
mov cx, word [esp]
lea ecx, [ebx + edi]
jmp 0x10010592
mov dword [esi], edx
lea esp, [esp + 0x20]
test edi, edi
push dx
jmp 0x1001055b
push ebx
jmp 0x1001044f

Function at 0x1001d287
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov dx, word [esp]
mov cl, 0xaa
mov dx, word [esp]
mov dx, di
neg ch
jmp 0x1001d2c7
lea esp, [esp + 1]
lea esp, [esp + 4]
add esi, 0x28fcb52e
jmp 0x1001d271
jge 0x1001d2e3
jl 0x1001d2e3
or ecx, 0x72e1a61b
jmp 0x1001d2eb
inc esi
bswap edx
call fcn.1001d2b1
lea esp, [esp + 4]
sub esi, 0x44029bb3
bsf eax, esp
jmp 0x1001d523
pushal
lea esp, [esp + 0x16]
lea esp, [esp + 2]
jmp 0x1001d3e4
add esi, dword [edi]
inc ax
jp 0x1001d39d
rdtsc
rdtsc
jmp fcn.1001d346
lea esp, [esp + 2]
jmp 0x1001d3e4
jbe 0x1001d30b
pushal
lea esp, [esp + 0x16]
jmp 0x1001d426

Function at 0x1001d2b1
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov word [esp], dx
dec ax
jmp 0x1001d301
jno 0x1001d2cb
or ecx, 0x72e1a61b
jmp 0x1001d2eb
Function at 0x1002250c
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea esi, reloc.KERNEL32.dll_LoadLibraryExW
call fcn.10022518
sub ebx, 0x648d6043
jmp 0x1002255d
pushal
lea esp, [esp + 0xd]

Function at 0x10022537
Capabilities:
Execute anti-debugging instructions

Disassembly:
pushal
xchg dword [esp + 0x20], esi
push esi
mov word [esp + 1], cx
call fcn.1002250c

Function at 0x100225c3
Capabilities:
Execute anti-debugging instructions

Disassembly:
jmp 0x1002260d
pop word [esp]
lea esp, [esp + 2]
mov dword [esp + 0x20], esi
push edi
call fcn.100225c5
jg 0x10022603
jo 0x1002263a
loop 0x10022682
mov dword [reloc.KERNEL32.dll_LoadLibraryExW], eax
pushal
jmp 0x1002251b
in al, dx
rol byte [eax], 0
add bl, ch
cmp byte [0xbf4c25b5], dl
cmp ah, byte [esi]
xor al, 0x53
scasb al, byte es:[edi]
sbb byte [esi - 0x25], dl
dec ebx
fstp qword cs:[edi]
mov esi, 0xd086c187
invalid

Function at 0x100225c5
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov dword [esp + 2], eax
push word [esp + 5]
jmp 0x10022b53
lea esp, [esp + 0x24]
jmp 0x100227f3
je 0x100225f7
lea esp, [esp + 2]
mov dword [esp + 0x24], edi
jmp 0x1002283e

Function at 0x1002b9d6
Capabilities:
Check for trap flag exception

Disassembly:
push ebx
jmp 0x10011fc6
pushfd
or dword [esp], reloc.KERNEL32.dll_LoadLibraryExW
popfd
cpuid
nop
jmp 0x10011fdd
pop ebx
ret
jmp 0x10011fba

Function at 0x100d00a1
Capabilities:
Access peb ldr_data

Disassembly:
call fcn.100ce288
push ebx
mov byte [esp + 5], dl
mov dword [esp + 0x48], edi
lea esp, [esp + 0x48]
jmp 0x100d0085
mov byte [esp + 6], bh
lea esp, [esp + 2]
mov dword [esp + 0x44], ebp
push esp
mov dword [esp + 0x44], esi
pushfd
jmp 0x100d005b
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
jmp 0x100d00c6
push dword [esp + 1]
push word [esp + 2]
mov dword [esp + 5], ebp
jmp 0x100d0071
push eax
jmp 0x100ce283
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
mov eax, dword [eax + 8]
jmp 0x100d00b0

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 0x4059a8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 0x10]
xor eax, eax
cmp dword [ecx + 0x14], ebx
mov dword [ebp - 0xc], esi
sete al
xor ecx, ecx
cmp dword [ebp + 0x14], ebx
mov byte [ebp - 1], bl
sete cl
cmp eax, ecx
jne 0x405a63
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp + 0x10]
push eax
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
test eax, eax
jne 0x405a62
cmp dword [esi + 0x78], ebx
jne 0x4059fd
mov byte [ebp - 1], 1
jmp 0x405a62
mov eax, dword [ebp + 0x10]
cmp eax, ebx
jbe 0x405a62
add eax, 2
push eax
call fcn.0042c364
mov esi, eax
pop ecx
cmp esi, ebx
je 0x405a62
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
test eax, eax
jne 0x405a5b
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0xc]
mov byte [esi + eax], bl
mov eax, dword [ebp + 0x10]
mov byte [esi + eax + 1], bl
cmp dword [ecx + 0x7c], 8
jb 0x405a45
mov eax, dword [ecx + 0x68]
jmp 0x405a48
lea eax, [ecx + 0x68]
push eax
push dword [ebp + 0x14]
push dword [ebp - 8]
push dword [ebp + 0x10]
push esi
call fcn.0040591f
mov byte [ebp - 1], al
push esi
call fcn.0042c244
pop ecx
pop edi
mov al, byte [ebp - 1]
pop esi
pop ebx
leave
ret 0x10

Function at 0x405a6c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push esi
push edi
push 0x110
lea eax, [ebp - 0x110]
push 0
push eax
mov esi, ecx
call fcn.0042c331
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
mov dword [ebp - 0x114], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x405b00
cmp dword [esi + 0x28], 8
jb 0x405ab5
mov eax, dword [esi + 0x14]
jmp 0x405ab8
lea eax, [esi + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x42d998
push eax
call edi
test eax, eax
jne 0x405ad6
cmp dword [ebp - 0x110], 5
sete al
jmp 0x405b02
cmp dword [esi + 0x28], 8
jb 0x405ae1
mov esi, dword [esi + 0x14]
jmp 0x405ae4
add esi, 0x14
push 0x42d990
push esi
call edi
test eax, eax
jne 0x405afc
cmp dword [ebp - 0x110], 5
setne al
jmp 0x405b02
mov al, 1
jmp 0x405b02
xor al, al
pop edi
pop esi
leave
ret
Function at 0x405b06
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor ebx, ebx
mov edi, ecx
mov byte [ebp - 1], bl
cmp dword [edi + 0x78], ebx
je 0x405bf6
cmp dword [edi + 0x60], 8
jb 0x405b29
mov eax, dword [edi + 0x4c]
jmp 0x405b2c
lea eax, [edi + 0x4c]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x405bf6
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea eax, [esi + 1]
push eax
mov dword [ebp - 0x14], eax
call fcn.0042c364
pop ecx
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x405bec
push ebx
lea ecx, [ebp - 0x10]
push ecx
push esi
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405bec
cmp dword [ebp - 0x10], esi
jne 0x405bec
mov eax, dword [ebp - 8]
mov byte [eax + esi], bl
xor ecx, ecx
push 2
pop edx
lea eax, [esi + 2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042c364
mov esi, eax
pop ecx
cmp esi, ebx
je 0x405be3
push dword [ebp - 0x14]
push esi
push 0xffffffffffffffff
push dword [ebp - 8]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x405bdc
cmp dword [edi + 0x7c], 8
jb 0x405bcd
mov edi, dword [edi + 0x68]
jmp 0x405bd0
add edi, 0x68
push edi
push esi
call fcn.0040a08a
pop ecx
pop ecx
mov byte [ebp - 1], al
push esi
call fcn.0042c244
pop ecx
push dword [ebp - 8]
call fcn.0042c244
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, byte [ebp - 1]
pop edi
pop ebx
leave
ret 4
Function at 0x405ccb
Capabilities:
Check if file exists

Disassembly:
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x5c], 0
push edi
je 0x405e14
push 8
pop ebx
cmp dword [esi + 0x44], ebx
jb 0x405ce7
mov eax, dword [esi + 0x30]
jmp 0x405cea
lea eax, [esi + 0x30]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x42da28
push eax
call edi
test eax, eax
jne 0x405d39
cmp dword [esi + 0x60], ebx
jb 0x405d06
mov eax, dword [esi + 0x4c]
jmp 0x405d09
lea eax, [esi + 0x4c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405d32
cmp dword [esi + 0x60], ebx
jb 0x405d1e
mov esi, dword [esi + 0x4c]
jmp 0x405d21
add esi, 0x4c
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x405d32
inc eax
jmp 0x405e16
xor eax, eax
jmp 0x405e16
cmp dword [esi + 0x44], ebx
jb 0x405d43
mov eax, dword [esi + 0x30]
jmp 0x405d46
lea eax, [esi + 0x30]
push str.folder
push eax
call edi
test eax, eax
jne 0x405d71
cmp dword [esi + 0x60], ebx
jb 0x405d5c
mov esi, dword [esi + 0x4c]
jmp 0x405d5f
add esi, 0x4c
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
neg eax
sbb eax, eax
neg eax
jmp 0x405e16
cmp dword [esi + 0x44], ebx
jb 0x405d7b
mov eax, dword [esi + 0x30]
jmp 0x405d7e
lea eax, [esi + 0x30]
push str.contentasutf
push eax
call edi
test eax, eax
jne 0x405dc8
cmp dword [esi + 0x60], ebx
jb 0x405d94
mov eax, dword [esi + 0x4c]
jmp 0x405d97
lea eax, [esi + 0x4c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405e14
cmp dword [esi + 0x60], ebx
jb 0x405dac
mov eax, dword [esi + 0x4c]
jmp 0x405daf
lea eax, [esi + 0x4c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x405e14
push 0xfde9
mov ecx, esi
call fcn.00405b06
jmp 0x405e16
cmp dword [esi + 0x44], ebx
jb 0x405dd2
mov eax, dword [esi + 0x30]
jmp 0x405dd5
lea eax, [esi + 0x30]
push str.contentasansi
push eax
call edi
test eax, eax
jne 0x405e14
cmp dword [esi + 0x60], ebx
jb 0x405deb
mov eax, dword [esi + 0x4c]
jmp 0x405dee
lea eax, [esi + 0x4c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405e14
cmp dword [esi + 0x60], ebx
jb 0x405e03
mov eax, dword [esi + 0x4c]
jmp 0x405e06
lea eax, [esi + 0x4c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x405e14
push eax
jmp 0x405dbf
xor al, al
pop edi
pop esi
pop ebx
ret

Function at 0x40652c
Capabilities:
Check if process is running under wine

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
cmp byte [0x435e4a], al
jne 0x406572
lea ecx, [ebp - 4]
push ecx
push 0x20019
push eax
push str.SoftwareWine
push SysReAllocString
mov dword [ebp - 4], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40656b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [0x435e49], 1
mov byte [0x435e4a], 1
mov al, byte [0x435e49]
leave
ret
Function at 0x40687a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
xor ebx, ebx
cmp byte [0x435e4e], bl
jne 0x406992
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push str.HARDWAREACPIDSDTXen
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push edi
mov dword [ebp - 4], ebx
call esi
test eax, eax
jne 0x4068c5
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [0x435e4d], 1
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push str.HARDWAREDESCRIPTIONSystemBIOS
push edi
mov dword [ebp - 4], ebx
call esi
test eax, eax
jne 0x406989
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push ebx
mov edi, str.SystemManufacturer
push edi
push dword [ebp - 4]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call esi
test eax, eax
jne 0x406980
cmp dword [ebp - 0xc], 1
jne 0x406980
push ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x10], 7
call fcn.00404961
mov eax, dword [ebp - 8]
cmp eax, ebx
jbe 0x40695a
push ebx
shr eax, 1
push eax
lea ecx, [ebp - 0x28]
call fcn.00406748
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
jae 0x40693c
lea eax, [ebp - 0x24]
lea ecx, [ebp - 8]
push ecx
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push edi
push dword [ebp - 4]
call esi
mov eax, dword [ebp - 0x14]
push ebx
dec eax
push eax
lea ecx, [ebp - 0x28]
call fcn.00406748
push 3
push ebx
push 0x42db6c
lea ecx, [ebp - 0x28]
call fcn.0040634d
cmp eax, 0xffffffff
push ebx
setne al
push 1
lea ecx, [ebp - 0x28]
mov byte [0x435e4d], al
call fcn.004049f8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov byte [0x435e4e], 1
pop esi
mov al, byte [0x435e4d]
pop ebx
leave
ret
Function at 0x406ab7
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x14c8
call fcn.0042c4d8
push ebx
push esi
push edi
mov edi, ecx
call fcn.004061f2
push eax
lea ecx, [ebp - 0x24]
call fcn.00404cea
push 0x42dc2c
lea ecx, [ebp - 0x40]
call fcn.00404cea
push 0x42dc28
lea ecx, [ebp - 0x78]
call fcn.00404cea
xor ebx, ebx
push ebx
lea eax, [ebp - 0x40]
lea ecx, [edi + 0x18]
push eax
mov dword [ebp - 4], ecx
call fcn.00406619
mov esi, eax
cmp esi, 0xffffffff
je 0x406b78
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x24]
add edi, 0x4c
push eax
mov ecx, edi
call fcn.00404bbf
mov ecx, dword [ebp - 4]
push esi
lea eax, [ebp - 0x78]
push eax
call fcn.00406619
cmp eax, 0xffffffff
je 0x406b46
mov ecx, dword [ebp - 0x2c]
sub eax, ecx
sub eax, esi
push eax
add ecx, esi
push ecx
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x5c]
push eax
call fcn.0040685d
jmp 0x406b60
lea eax, [ebp - 5]
push eax
mov eax, dword [ebp - 0x2c]
push 0xffffffffffffffff
add eax, esi
push eax
push dword [ebp - 4]
lea ecx, [ebp - 0x5c]
call fcn.00406792
lea eax, [ebp - 0x5c]
push 0xffffffffffffffff
push ebx
push eax
mov ecx, edi
call fcn.0040506b
push ebx
push 1
lea ecx, [ebp - 0x5c]
call fcn.004049f8
jmp 0x406bc6
cmp dword [ebp - 0xc], 8
mov eax, dword [ebp - 0x20]
jae 0x406b84
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x14c8]
push ecx
push ebx
push 0x42dc20
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x406bc6
lea eax, [ebp - 0x14c8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x14c8]
add edi, 0x4c
push eax
mov ecx, edi
call fcn.00404cc6
push str..exe
mov ecx, edi
call fcn.00405678
push ebx
push 1
lea ecx, [ebp - 0x78]
call fcn.004049f8
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.004049f8
push ebx
push 1
lea ecx, [ebp - 0x24]
call fcn.004049f8
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407cdd
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
push ebx
push esi
push 0x30b
lea eax, [ebp - 0x61c]
xor ebx, ebx
push eax
mov esi, ecx
push ebx
mov dword [esi + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x407dcc
push edi
push ebx
push ebx
push 3
push ebx
xor eax, eax
push 1
mov word [ebp - 6], ax
push SysReAllocString
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x407dc8
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [esi + 4], eax
jle 0x407d45
mov dword [esi + 4], eax
mov ecx, dword [esi + 8]
cmp ecx, ebx
jle 0x407d52
cmp ecx, eax
jg 0x407d5a
cmp ecx, ebx
jge 0x407d5d
neg eax
cmp ecx, eax
jge 0x407d5d
mov dword [esi + 8], eax
xor eax, eax
cmp byte [esi], bl
setne al
dec eax
and eax, 2
push eax
push ebx
push dword [esi + 8]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x407dc8
mov eax, dword [esi + 4]
cmp byte [esi + 0xc], bl
je 0x407d82
inc eax
push eax
call fcn.0042c364
pop ecx
mov dword [esi + 0x10], eax
cmp eax, ebx
je 0x407dc8
push ebx
lea ecx, [ebp - 4]
push ecx
push dword [esi + 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x407dba
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 4]
jne 0x407dba
push dword [esi + 0x10]
call fcn.0042c244
pop ecx
mov dword [esi + 0x10], ebx
jmp 0x407dc8
cmp byte [esi + 0xc], bl
je 0x407dc8
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x10]
mov byte [eax + ecx], bl
mov eax, dword [esi + 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x407e7e
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
push ebx
push 0x80
push 4
push ebx
push 1
push 0x40000000
push dword [ebp + 0x10]
mov byte [ebp - 1], bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x407eef
push edi
mov edi, dword [ebp + 0xc]
push ebx
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x407ee7
cmp dword [ebp - 8], edi
jne 0x407ee7
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, edi
jne 0x407ee7
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 1], 1
jmp 0x407eee
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov al, byte [ebp - 1]
pop esi
pop ebx
leave
ret

Function at 0x407f8d
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
cmp byte [0x435094], 0
je 0x407fe5
push 0x114
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.0042c331
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
mov dword [ebp - 0x114], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x110], 6
mov byte [0x435094], 0
sbb al, al
inc al
mov byte [0x435e54], al
leave
ret
mov al, byte [0x435e54]
leave
ret
Function at 0x408692
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
sub ecx, dword [eax + 4]
je 0x408738
push esi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x408737
push ebx
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
call fcn.0042c364
mov ebx, eax
pop ecx
cmp ebx, esi
je 0x40872c
push esi
lea eax, [ebp - 8]
push eax
push edi
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x408725
cmp edi, dword [ebp - 8]
jne 0x408725
push dword [ebp + 0xc]
push edi
push ebx
call fcn.00408532
add esp, 0xc
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
lea eax, [ebp + 0xc]
push eax
push edi
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call fcn.0042c244
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
pop esi
leave
ret
Function at 0x409c3d
Capabilities:
Check if file exists
Get common file path
Get file attributes
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2028
call fcn.0042c4d8
push ebx
push esi
xor eax, eax
push 0x1ffe
mov word [ebp - 0x2028], ax
xor ebx, ebx
lea eax, [ebp - 0x2026]
push ebx
push eax
mov esi, ecx
call fcn.0042c331
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders
push SysReAllocString
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x409d8b
push str.123374DE290_123F_4565_9164_39C4925E467B
lea ecx, [ebp - 0x28]
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], 0x2000
call fcn.00404cea
push 0x42d93c
push 3
push 1
lea ecx, [ebp - 0x28]
call fcn.00409970
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
jae 0x409cc7
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x2028]
push ecx
lea ecx, [ebp - 8]
push ecx
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x409d7f
push edi
mov edi, str._USERPROFILE_
push edi
lea eax, [ebp - 0x2028]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
cmp eax, ebx
je 0x409d70
lea ecx, [ebp - 0x2028]
sub eax, ecx
sar eax, 1
mov ebx, eax
mov eax, ecx
push eax
mov ecx, esi
call fcn.00404cc6
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push ebx
mov ecx, esi
call fcn.00404a43
push 0
push 0x28
lea eax, [ebp - 0x2028]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x2028]
push eax
push ebx
mov ecx, esi
call fcn.00409948
cmp dword [esi + 0x18], 8
jb 0x409d54
mov eax, dword [esi + 4]
jmp 0x409d57
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x409d67
test al, 0x10
jne 0x409d7e
mov ecx, esi
call fcn.00409454
jmp 0x409d7e
lea eax, [ebp - 0x2028]
push eax
mov ecx, esi
call fcn.00404cc6
pop edi
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.004049f8
pop esi
pop ebx
leave
ret
Function at 0x40a0e6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x18]
xor esi, esi
push esi
push dword [ebp + 0x10]
mov dword [ebp - 4], esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a1a8
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0x14]
mov dword [ebp - 0xc], esi
push dword [ebp - 4]
mov dword [ebp - 8], esi
call edi
test eax, eax
jne 0x40a19f
cmp dword [ebp - 0xc], 1
jne 0x40a19f
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x10], 7
call fcn.00404961
mov eax, dword [ebp - 8]
cmp eax, esi
jbe 0x40a186
push esi
shr eax, 1
push eax
lea ecx, [ebp - 0x28]
call fcn.00406748
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
jae 0x40a166
lea eax, [ebp - 0x24]
lea ecx, [ebp - 8]
push ecx
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0x14]
push dword [ebp - 4]
call edi
mov eax, dword [ebp - 0x14]
push esi
dec eax
push eax
lea ecx, [ebp - 0x28]
call fcn.00406748
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
call fcn.0040676c
push esi
push 1
lea ecx, [ebp - 0x28]
call fcn.004049f8
jmp 0x40a1b5
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
push 0x42d93c
call fcn.00404cea
mov eax, dword [ebp + 8]
pop edi
pop esi
leave
ret

Function at 0x40a5fa
Capabilities:
Get file size

Disassembly:
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40a62b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
jmp 0x40a637
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
test edi, edi
pop edi
setne al
pop esi
ret 8