joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1023d91
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x1027050]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
lea eax, [ebp - 0x218]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1002738
push SysStringLen
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x210], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1023ecb
push edi
push 4
pop edi
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
mov esi, 0x10026f8
push esi
push dword [ebp - 0x218]
mov dword [ebp - 0x220], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1023ebe
push esi
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x20c]
push eax
call ebx
cmp dword [ebp - 0x21c], edi
jne 0x1023ebe
lea eax, [ebp - 0x20c]
push eax
call fcn.01023d30
xor ecx, ecx
cmp dword [ebp - 0x214], eax
sete cl
test ecx, ecx
mov dword [ebp - 0x210], ecx
je 0x1023ebe
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
mov esi, 0x1002710
push esi
push dword [ebp - 0x218]
mov dword [ebp - 0x220], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1023ebe
push esi
push dword [ebp - 0x224]
lea eax, [ebp - 0x20c]
push eax
call ebx
cmp dword [ebp - 0x21c], edi
jne 0x1023ebe
lea eax, [ebp - 0x20c]
push eax
call fcn.01023d30
xor ecx, ecx
cmp dword [ebp - 0x214], eax
sete cl
mov dword [ebp - 0x210], ecx
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
pop esi
xor ecx, ebp
pop ebx
call fcn.01023399
leave
ret 4

Function at 0x1023ee6
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x1027370], 0xffffffff
jne 0x1023f55
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x10027b8
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1023f55
and dword [0x1027370], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0x100279c
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1023f4c
cmp word [ebp - 0xc], 0x600
sbb eax, eax
inc eax
mov dword [0x1027370], eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x1027370]
leave
ret
Function at 0x1023fd0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x1027050]
xor eax, ebp
mov dword [ebp - 4], eax
and word [ebp - 0x20c], 0
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push eax
push 0x20019
push 0
push 0x1002738
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1024069
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0x1002780
push dword [ebp - 0x210]
mov dword [ebp - 0x214], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x102405d
test esi, esi
je 0x102405d
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0xc]
push esi
call fcn.01023f61
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp word [ebp - 0x20c], ax
pop esi
setne al
xor ecx, ebp
call fcn.01023399
leave
ret 8

Function at 0x1024089
Capabilities:
Check if file exists
Get file attributes
Read .ini file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x1027050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x41c], eax
mov edi, 0x104
push edi
lea eax, [ebp - 0x20c]
push eax
xor esi, esi
call fcn.01023fd0
test eax, eax
je 0x102416e
lea eax, [ebp - 0x20c]
push eax
call fcn.01023d91
test eax, eax
je 0x102416e
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.01023fd0
test eax, eax
je 0x102416e
push ebx
push 0x1002710
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.01024251
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 0x418], eax
push 0x80
lea eax, [ebp - 0x20c]
push eax
call ebx
lea eax, [ebp - 0x20c]
push eax
push edi
lea eax, [ebp - 0x414]
push eax
push 0x10013f0
push dword [ebp - 0x41c]
push 0x1002728
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, eax
neg esi
sbb esi, esi
neg esi
cmp dword [ebp - 0x418], 0xffffffff
je 0x102416d
push dword [ebp - 0x418]
lea eax, [ebp - 0x20c]
push eax
call ebx
pop ebx
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.01023399
leave
ret 4
Function at 0x1024185
Capabilities:
Check os version
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x320
mov eax, dword [0x1027050]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x1027374], 2
jne 0x102423b
and dword [0x1027374], 0
lea eax, [ebp - 0x320]
push eax
mov dword [ebp - 0x320], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x310], 2
jne 0x102423b
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x100280c
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01024251
cmp dword [ebp - 0x31c], 5
pop esi
jae 0x1024231
call fcn.01023ee6
test eax, eax
jne 0x1024231
push 0x7550005
push 0x50083
lea eax, [ebp - 0x20c]
push eax
call fcn.01023cf6
test eax, eax
je 0x102423b
lea eax, [ebp - 0x20c]
push eax
call fcn.01024089
test eax, eax
jne 0x102423b
mov dword [0x1027374], 1
mov ecx, dword [ebp - 4]
mov eax, dword [0x1027374]
xor ecx, ebp
call fcn.01023399
leave
ret

Function at 0x102440c
Capabilities:
Get common file path
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x1027050]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x234]
xor ebx, ebx
push eax
mov byte [ebp - 0x20d], bl
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [ebp - 0x234], bx
jne 0x1024450
cmp edi, 0x2a
jne 0x1024450
push 0x26
pop edi
push ebx
push edi
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x10244ae
push 0x1002890
lea eax, [ebp - 0x20c]
push eax
call sub.SHLWAPI.dll_PathAppendW
test eax, eax
je 0x10244ae
cmp byte [ebp + 0x14], bl
je 0x1024493
push 0x1002874
lea eax, [ebp - 0x20c]
push eax
call sub.SHLWAPI.dll_PathAppendW
test eax, eax
je 0x10244ae
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0xc]
push esi
call fcn.0101f655
test eax, eax
jl 0x10244ae
mov byte [ebp - 0x20d], 1
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x20d]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01023399
leave
ret 0x10

Function at 0x1024630
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x1027050]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x20
lea eax, [ebp - 0x44]
push eax
push 8
push 0x404
mov esi, 0xc04
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1024684
push 3
lea eax, [ebp - 0x44]
push 0x1002db0
push eax
call sub.msvcrt.dll_wcsncmp
add esp, 0xc
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xfffff800
add esi, 0xc04
mov ecx, dword [ebp - 4]
mov ax, si
xor ecx, ebp
pop esi
call fcn.01023399
leave
ret
Function at 0x10246aa
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x1027050]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 0x11c
push esi
lea eax, [ebp - 0x120]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
test eax, eax
jne 0x1024703
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x114
call esi
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x11c]
xor eax, eax
dec ecx
pop esi
je 0x1024757
dec ecx
jne 0x102477a
cmp edx, 5
jne 0x102474f
mov ecx, dword [ebp - 0x118]
sub ecx, eax
je 0x102474b
dec ecx
je 0x1024740
dec ecx
je 0x1024731
push 0x14
jmp 0x10247a2
cmp word [ebp - 0xc], 1
jb 0x102473b
push 0x10
pop eax
or eax, 4
jmp 0x102477a
cmp word [ebp - 0xc], 2
jb 0x102473b
push 8
jmp 0x102473a
push 4
jmp 0x10247a2
cmp edx, 4
ja 0x1024786
push 2
pop eax
cmp edx, 4
jne 0x102477a
cmp dword [ebp - 0x118], 0
je 0x1024777
cmp dword [ebp - 0x118], 0xa
je 0x1024777
cmp dword [ebp - 0x118], 0x5a
jne 0x102477a
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01023399
leave
ret
cmp edx, 6
jne 0x10247a5
cmp dword [ebp - 0x118], 0
jne 0x10247a5
cmp dword [ebp - 0x114], 0x1554
jae 0x10247a5
push 0x40
pop eax
jmp 0x102477a
push 0x20
jmp 0x10247a2

Function at 0x10248d5
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1027050]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
cmp word [0x10276e8], si
jne 0x102496d
lea eax, [ebp - 0x10]
push eax
push 1
push esi
push 0x1002ce0
push SysStringLen
mov dword [ebp - 0x14], 6
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x102496d
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push 0x1002d98
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
pop edi
jne 0x102496d
push 3
push dword [esi*8 + 0x1002b30]
lea eax, [ebp - 0xc]
push eax
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
test eax, eax
je 0x102495f
inc esi
cmp esi, 0x1c
jb 0x102493e
jmp 0x102496d
mov ax, word [esi*8 + 0x1002b34]
mov word [0x10276e8], ax
mov ecx, dword [ebp - 4]
mov ax, word [0x10276e8]
xor ecx, ebp
pop esi
call fcn.01023399
leave
ret
Function at 0x1008cec
Capabilities:
Delete file

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
xor ebx, ebx
push ebx
mov edi, 0x80
push edi
push 1
push ebx
push ebx
push 0x40000000
push ebp
call esi
cmp eax, 0xffffffff
jne 0x1008d38
push ebx
push edi
push 3
push ebx
push 3
push SysReAllocStringLen
push ebp
call esi
cmp eax, 0xffffffff
jne 0x1008d2c
xor eax, eax
jmp 0x1008d49
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x1008d49
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 2
pop eax
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x1008ede
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x1018890]
xor eax, dword [ebp + 4]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x1002728
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x14], ebx
jne 0x1008f4f
push 4
pop edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x1002710
push dword [ebp - 0xc]
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], edi
call esi
test eax, eax
jne 0x1008fa1
cmp dword [ebp - 8], edi
jne 0x1008fa1
cmp dword [ebp - 0x14], ebx
je 0x1008fa1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x1002700
push dword [ebp - 0xc]
xor edi, edi
inc edi
mov dword [ebp - 0x10], 0x208
mov dword [ebp - 8], edi
call esi
cmp eax, ebx
mov word [ebp - 0x16], bx
jne 0x1008fa1
cmp dword [ebp - 8], edi
jne 0x1008fa1
lea eax, [ebp - 0x21c]
push eax
call fcn.01008d55
cmp edx, 0x90000
jb 0x1008fa6
ja 0x1008f9d
cmp eax, ebx
jb 0x1008fa6
xor edi, edi
jmp 0x1008fa6
mov edi, 0x80004005
cmp dword [ebp - 0xc], ebx
je 0x1008fb4
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
mov eax, edi
pop edi
pop esi
pop ebx
call fcn.0100f7d5
leave
ret
Function at 0x100a210
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.msvcrt.dll_wcslen]
xor ebx, ebx
push eax
mov dword [ebp - 0x34], 0xd
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], eax
call edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x10]
pop ecx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x34]
push eax
push ebx
push 0x104d
push dword [esi + 0x14]
mov dword [ebp - 0x2c], ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
call ebx
test eax, eax
mov dword [ebp - 0x30], eax
jl 0x100a29d
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x14], 0
push eax
mov dword [ebp - 0x34], 9
mov dword [ebp - 0x20], eax
call edi
pop ecx
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x34]
push eax
push 0
push 0x104c
push dword [esi + 0x14]
xor edi, edi
inc edi
mov dword [ebp - 0x2c], edi
call ebx
test eax, eax
jne 0x100a2a1
xor eax, eax
jmp 0x100a2af
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_UpdateWindow]
inc dword [esi + 0x1c]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x100a2b6
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.msvcrt.dll_wcslen]
xor ebx, ebx
push eax
mov dword [ebp - 0x34], 0xd
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], eax
call edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x14]
pop ecx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x34]
push eax
push ebx
push 0x104d
push dword [esi + 0x14]
mov dword [ebp - 0x2c], ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
call ebx
test eax, eax
mov dword [ebp - 0x30], eax
jl 0x100a36c
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x14], 0
push eax
mov dword [ebp - 0x34], 9
mov dword [ebp - 0x20], eax
call edi
pop ecx
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x34]
push eax
push 0
push 0x104c
push dword [esi + 0x14]
mov dword [ebp - 0x2c], 1
call ebx
test eax, eax
je 0x100a36c
mov eax, dword [ebp + 0x10]
push eax
mov dword [ebp - 0x20], eax
call edi
pop ecx
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x34]
push eax
push 0
push 0x104c
push dword [esi + 0x14]
mov dword [ebp - 0x2c], 2
call ebx
test eax, eax
jne 0x100a370
xor eax, eax
jmp 0x100a37f
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_UpdateWindow]
inc dword [esi + 0x1c]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x100a49c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
cmp eax, dword [ebx + 0x1c]
jl 0x100a4b1
xor eax, eax
jmp 0x100a525
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push edi
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0x34]
push ecx
mov dword [ebp - 0x30], eax
xor eax, eax
push eax
mov edi, 0x104b
push edi
push dword [ebx + 0x14]
mov dword [ebp - 0x34], 0xd
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 0x103
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x14], eax
call esi
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x34]
push eax
push 0
push edi
push dword [ebx + 0x14]
mov dword [ebp - 0x34], 9
mov dword [ebp - 0x1c], 0x103
mov dword [ebp - 0x2c], 1
call esi
xor eax, eax
pop edi
inc eax
pop esi
pop ebx
leave
ret 0x10

Function at 0x100a52a
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
cmp eax, dword [ebx + 0x1c]
jl 0x100a542
xor eax, eax
jmp 0x100a5d6
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push edi
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0x34]
push ecx
mov dword [ebp - 0x30], eax
xor eax, eax
push eax
mov edi, 0x104b
push edi
push dword [ebx + 0x14]
mov dword [ebp - 0x34], 0xd
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 0x103
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x14], eax
call esi
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x34]
push eax
push 0
push edi
push dword [ebx + 0x14]
mov dword [ebp - 0x34], 9
mov dword [ebp - 0x1c], 0x103
mov dword [ebp - 0x2c], 1
call esi
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x34]
push eax
push 0
push edi
push dword [ebx + 0x14]
mov dword [ebp - 0x1c], 0x103
mov dword [ebp - 0x2c], 2
call esi
xor eax, eax
pop edi
inc eax
pop esi
pop ebx
leave
ret 0x14
Function at 0x100fce8
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1004290
call fcn.010102f0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
cmp word [0x1000000], 0x5a4d
jne 0x100fd30
mov eax, dword [0x100003c]
lea eax, [eax + 0x1000000]
cmp dword [eax], 0x4550
jne 0x100fd30
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x100fd49
cmp ecx, 0x20b
je 0x100fd36
and dword [ebp - 0x60], 0
jmp 0x100fd5d
cmp dword [eax + 0x84], 0xe
jbe 0x100fd30
xor ecx, ecx
cmp dword [eax + 0xf8], ecx
jmp 0x100fd57
cmp dword [eax + 0x74], 0xe
jbe 0x100fd30
xor ecx, ecx
cmp dword [eax + 0xe8], ecx
setne cl
mov dword [ebp - 0x60], ecx
and dword [ebp - 4], 0
push 2
pop esi
push esi
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or edi, 0xffffffff
mov dword [0x1019a8c], edi
mov dword [0x1019a90], edi
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1018c14]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1018c10]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1019a88], eax
call fcn.010102ea
cmp dword [0x10188a0], 0
jne 0x100fdbd
push fcn.010102ea
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.010102d8
push 0x1018024
push 0x1018020
call sub.msvcrt.dll__initterm
mov eax, dword [0x1018c0c]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x64]
push eax
push dword [0x1018c08]
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x74], eax
push 0x101801c
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], 0
jne 0x100fe21
mov dword [ebp - 4], edi
mov eax, 0xff
jmp 0x100fed2
mov eax, dword [eax]
mov dword [ebp - 0x78], eax
cmp word [eax], 0x22
jne 0x100fe64
add eax, esi
mov dword [ebp - 0x78], eax
mov cx, word [eax]
test cx, cx
je 0x100fe3f
cmp cx, 0x22
jne 0x100fe2c
cmp word [eax], 0x22
jne 0x100fe4a
add eax, esi
mov dword [ebp - 0x78], eax
mov cx, word [eax]
test cx, cx
je 0x100fe58
cmp cx, 0x20
jbe 0x100fe45
test byte [ebp - 0x30], 1
je 0x100fe71
movzx ecx, word [ebp - 0x2c]
jmp 0x100fe74
cmp word [eax], 0x20
jbe 0x100fe4a
add eax, esi
mov dword [ebp - 0x78], eax
jmp 0x100fe64
push 0xa
pop ecx
push ecx
push eax
push 0
push 0x1000000
call fcn.010146eb
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x60], 0
jne 0x100fe94
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], edi
jmp 0x100fed0
mov eax, esi
call fcn.0101032b
ret
Function at 0x101065e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x10043ec
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10106b4
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x1004428
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10106a7
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x10106b6
xor eax, eax
pop esi
leave
ret 4

Function at 0x10116f8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x10]
add eax, eax
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x101173f
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x101172f
call esi
mov esi, eax
jmp 0x101173f
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
mov eax, esi
pop esi
leave
ret 0xc
Function at 0x402c40
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor ecx, ecx
push 8
mov eax, ecx
pop edx
test al, 1
je 0x402c54
shr eax, 1
xor eax, 0xedb88320
jmp 0x402c56
shr eax, 1
dec edx
jne 0x402c47
mov dword [ecx*4 + 0x4151c0], eax
mov dword [ecx*4 + 0x4171c0], eax
inc ecx
cmp ecx, 0x100
jb 0x402c42
push ebx
push esi
push edi
mov ecx, 0x4155c0
mov edi, 0x101
mov eax, dword [ecx - 0x400]
push 7
mov edx, ecx
pop esi
movzx ebx, al
shr eax, 8
xor eax, dword [ebx*4 + 0x4151c0]
mov dword [edx], eax
add edx, 0x400
dec esi
jne 0x402c88
add ecx, 4
dec edi
jne 0x402c7d
pop edi
pop esi
pop ebx
ret

Function at 0x402caa
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x4171c4], 0
jne 0x402cb8
call fcn.00402c40
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
test esi, esi
jbe 0x402ce5
test cl, 7
je 0x402ce5
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x4151c0]
dec esi
inc ecx
jmp 0x402cc6
cmp esi, 8
jb 0x402d78
mov edi, esi
shr edi, 3
push ebx
xor eax, dword [ecx]
sub esi, 8
mov ebx, eax
shr ebx, 0x10
movzx ebx, bl
mov edx, eax
shr edx, 0x18
mov edx, dword [edx*4 + 0x4161c0]
xor edx, dword [ebx*4 + 0x4165c0]
mov ebx, eax
shr ebx, 8
movzx ebx, bl
xor edx, dword [ebx*4 + 0x4169c0]
movzx ebx, byte [ecx + 6]
xor edx, dword [ebx*4 + 0x4155c0]
movzx ebx, byte [ecx + 5]
xor edx, dword [ebx*4 + 0x4159c0]
movzx ebx, byte [ecx + 4]
xor edx, dword [ebx*4 + 0x415dc0]
movzx ebx, byte [ecx + 7]
xor edx, dword [ebx*4 + 0x4151c0]
movzx eax, al
xor edx, dword [eax*4 + 0x416dc0]
add ecx, 8
dec edi
mov eax, edx
jne 0x402cf4
pop ebx
jmp 0x402d78
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x4151c0]
dec esi
inc ecx
test esi, esi
ja 0x402d64
pop edi
pop esi
ret 0xc

Function at 0x403290
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00401200
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x403322
push esi
push edi
mov edi, 0x400
push edi
lea eax, [ebp - 0x800]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00406b36
lea eax, [ebp - 0x800]
push eax
call fcn.00409b3e
mov esi, eax
lea eax, [ebp - 0x800]
push eax
call fcn.00407413
test al, al
jne 0x4032fe
lea eax, [ebp - 0x1000]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x1000]
push eax
call fcn.00409b3e
lea esi, [esi + eax + 1]
mov eax, 0x104
pop edi
cmp esi, eax
pop esi
jbe 0x403322
push eax
push 0xaf
call fcn.00408e23
push eax
push 0x4132dc
call fcn.0040ac9e
add esp, 0xc
leave
ret 8