joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4017fd
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
cmp dword [0x404308], esi
push edi
mov edi, dword [sym.imp.USER32.dll_PostMessageA]
jne 0x401855
cmp dword [0x40430c], esi
jne 0x401855
cmp ebx, 0x10
je 0x401966
cmp ebx, 0x8000
je 0x401943
cmp dword [0x404310], esi
jne 0x401855
cmp ebx, 0x1c
ja 0x401893
je 0x40188e
cmp ebx, 0x18
jne 0x401855
cmp dword [ebp + 0x10], esi
je 0x401855
push esi
call dword [sym.imp.USER32.dll_SetCursor]
cmp ebx, dword [0x404320]
jne 0x401877
cmp ebx, esi
je 0x401877
push esi
push esi
push 0x10
push dword [ebp + 8]
call edi
xor eax, eax
cmp dword [0x404318], esi
setne al
jmp 0x401887
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DefWindowProcA]
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp dword [ebp + 0x10], esi
jmp 0x4018d6
cmp ebx, 0x48
ja 0x4018b1
je 0x4018ab
cmp ebx, 0x20
jne 0x401855
push esi
call dword [sym.imp.USER32.dll_SetCursor]
push 1
pop eax
jmp 0x401887
cmp dword [ebp + 0x10], 3
jmp 0x4018d6
mov eax, ebx
sub eax, 0x100
je 0x401935
sub eax, 4
je 0x401935
sub eax, 0xfc
je 0x4018dd
dec eax
je 0x401935
sub eax, 3
je 0x401935
sub eax, 3
je 0x401935
sub eax, 0x11
je 0x401935
jmp 0x401855
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [ebp - 8]
sub ecx, dword [0x404358]
je 0x4018f8
cmp ecx, esi
jge 0x4018f8
neg ecx
mov eax, dword [ebp - 4]
sub eax, dword [0x40435c]
je 0x401909
cmp eax, esi
jge 0x401909
neg eax
add ecx, eax
cmp ecx, dword [0x40418c]
jbe 0x401855
push esi
push esi
push 0x10
push dword [ebp + 8]
call edi
mov eax, dword [ebp - 8]
mov dword [0x404358], eax
mov eax, dword [ebp - 4]
mov dword [0x40435c], eax
jmp 0x401855
push esi
push esi
push 0x10
push dword [ebp + 8]
call edi
jmp 0x401855
cmp dword [0x404330], esi
je 0x401855
mov eax, dword [0x404318]
cmp eax, esi
je 0x4018a6
push dword [ebp + 8]
call eax
jmp 0x401887
cmp dword [0x404330], esi
je 0x401855
push dword [ebp + 8]
call fcn.00401de2
test eax, eax
jne 0x401855
push 0x404358
call dword [sym.imp.USER32.dll_GetCursorPos]
xor eax, eax
jmp 0x401887
Function at 0x401de2
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x1c
push ebx
push ebp
xor ebp, ebp
push esi
cmp dword [0x404310], ebp
push edi
jne 0x401ebe
cmp dword [0x40430c], ebp
jne 0x401ebe
cmp dword [0x404318], ebp
je 0x401ead
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [0x404334], ebp
mov esi, eax
je 0x401e33
push esi
push dword [0x404338]
call fcn.00401eca
cmp eax, dword [0x404334]
jb 0x401ead
mov eax, dword [0x404190]
cmp eax, 0xffffffff
je 0x401e4b
push esi
push eax
call fcn.00401eca
cmp eax, 0xc8
jb 0x401eb7
mov ebx, dword [esp + 0x30]
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov esi, 0x113
push 3
push esi
push esi
lea eax, [esp + 0x1c]
push ebx
push eax
mov dword [0x404310], 1
call edi
push 3
push esi
push esi
lea eax, [esp + 0x1c]
push ebx
push eax
call edi
push ebp
push ebp
push 0x8000
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, ebp
mov dword [0x40430c], eax
mov dword [0x404310], ebp
jne 0x401ea0
push ebp
call dword [sym.imp.USER32.dll_SetCursor]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x404190], eax
jmp 0x401eb7
mov dword [0x40430c], 1
mov eax, dword [0x40430c]
jmp 0x401ec0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4

Function at 0x401ed5
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x401f08
push esi
call edi
mov esi, eax
mov al, byte [esi]
test al, al
je 0x401f00
cmp al, 0x22
jne 0x401ef1
cmp byte [esi], 0x22
jne 0x401f16
inc esi
jmp 0x401f16
cmp al, 0x20
jbe 0x401f16
push esi
call edi
mov esi, eax
cmp byte [esi], 0x20
ja 0x401f0c
mov al, byte [esi]
test al, al
je 0x401f27
cmp al, 0x20
ja 0x401f27
push esi
call edi
mov esi, eax
jmp 0x401f16
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x18], 1
je 0x401f41
movzx eax, word [ebp - 0x14]
jmp 0x401f44
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call fcn.00401610
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4c6a00
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4c6a2e
mov eax, ebx
call fcn.004c74b4
cmp dword [ebx + 0x40], 0
je 0x4c6a27
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4c6a9f
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4c6a91
cmp dword [ebx + 8], 0
je 0x4c6a50
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4c6a62
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4c6a91
cmp dword [ebx + 8], 0
je 0x4c6a43
cmp eax, 3
je 0x4c6a75
dec eax
jne 0x4c6a43
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4c6a43
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4c6a43
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4c6abd
cmp dword [ebx + 0x14], 0xcc
je 0x4c6abd
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004c6ac8
pop ebx
ret
Function at 0x51259d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 8], 0
jne 0x5125b0
xor eax, eax
jmp 0x512653
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0xc], ecx
mov edx, 8
imul eax, edx, 0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax + 0x78]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x20]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
jmp 0x5125ef
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 0x18]
jae 0x512651
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + edx*4]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.0051254d
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x51264f
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x1c]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x24]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
movzx edx, word [ecx + eax*2]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + edx*4]
mov eax, ecx
jmp 0x512653
jmp 0x5125e6
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x530b60
Capabilities:
Reference http user-agent string

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [ebx]
add eax, 0x110
mov edx, 0x530bc4
call fcn.00404470
mov eax, dword [ebx]
mov edx, 0x530bd8
call fcn.00530104
mov eax, dword [ebx]
add eax, 0x114
mov edx, 0x530be4
call fcn.00404470
mov eax, dword [ebx]
add eax, 0x118
mov edx, 0x530c38
call fcn.00404470
mov eax, dword [ebx]
mov dword [eax + 0x3d4], 3
mov eax, dword [ebx]
mov byte [eax + 0x29b], 1
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 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x421004]
jne 0x401010
repz ret
jmp fcn.00401601

Function at 0x4076e5
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.00404bff
and dword [ebp - 4], 0
cmp dword [0x423c9c], 0
mov ebx, eax
jne 0x407796
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x407847
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x407847
push eax
call fcn.00404b8d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x423c9c], eax
call esi
push eax
call fcn.00404b8d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x423ca0], eax
call esi
push eax
call fcn.00404b8d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x423ca4], eax
call esi
push eax
call fcn.00404b8d
pop ecx
mov dword [0x423cac], eax
test eax, eax
je 0x407796
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404b8d
pop ecx
mov dword [0x423ca8], eax
mov eax, dword [0x423ca8]
cmp eax, ebx
je 0x4077ee
cmp dword [0x423cac], ebx
je 0x4077ee
push eax
call fcn.00404c08
push dword [0x423cac]
mov esi, eax
call fcn.00404c08
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4077ee
test edi, edi
je 0x4077ee
call esi
test eax, eax
je 0x4077e5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4077e5
test byte [ebp - 0xc], 1
jne 0x4077ee
or dword [ebp + 0x10], 0x200000
jmp 0x407827
mov eax, dword [0x423ca0]
cmp eax, ebx
je 0x407827
push eax
call fcn.00404c08
pop ecx
test eax, eax
je 0x407827
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x407827
mov eax, dword [0x423ca4]
cmp eax, ebx
je 0x407827
push eax
call fcn.00404c08
pop ecx
test eax, eax
je 0x407827
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x423c9c]
call fcn.00404c08
pop ecx
test eax, eax
je 0x407847
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x407849
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x409a80
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
mov eax, dword [0x421004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x233b3b4], 0x930
jne 0x409aaa
push str.sobugo
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
cmp dword [0x233b3b4], 0x114e
mov eax, dword [ebp + 8]
mov dword [0x233b1f8], eax
jne 0x409add
push 0
lea ecx, [ebp - 0x804]
push ecx
push 0
call sub.KERNEL32.dll_VerLanguageNameW
lea edx, [ebp - 0x820]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401006
mov esp, ebp
pop ebp
ret
Function at 0x1006348
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
xor eax, eax
test ecx, ecx
je 0x100634f
cmp ecx, 0x7fffffff
jbe 0x1006354
mov eax, 0x80070057
test eax, eax
jl 0x1006393
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea esi, [ecx - 1]
push esi
push edi
xor ebx, ebx
call dword [sym.imp.msvcrt.dll__vsnwprintf]
add esp, 0x10
test eax, eax
jl 0x1006385
cmp eax, esi
ja 0x1006385
jne 0x100638e
and word [edi + esi*2], bx
jmp 0x100638e
and word [edi + esi*2], bx
mov ebx, 0x8007007a
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret
Function at 0x10073ff
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x1014d9c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0xac], edi
mov dword [ebp - 0xa8], 0x1013144
mov ebx, 0x1001638
push dword [ebx]
mov esi, 0x1013020
push 0x1001948
push 0x28
push 0x10154a8
call fcn.01006339
add esp, 0x10
cmp eax, edi
jl 0x10074d0
mov eax, dword [ebp - 0xa8]
mov eax, dword [eax]
cmp eax, edi
je 0x10073b7
push eax
push 0x28
push 0x10150c0
call fcn.010061c4
cmp eax, edi
jl 0x10074d0
cmp dword [0x1013020], edi
je 0x100741e
lea ecx, [esi + 4]
cmp dword [ecx], edi
je 0x100741a
cmp dword [esi + 8], edi
je 0x100741a
mov eax, dword [esi]
mov esi, ecx
mov ecx, dword [esi]
push ecx
push eax
lea eax, [ebp - 0xa4]
push 0x50
push eax
add esi, 4
call fcn.01006339
add esp, 0x10
cmp eax, edi
jl 0x10074d0
lea eax, [ebp - 0xa4]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp eax, 0x3fa
je 0x1007417
cmp eax, 2
je 0x1007417
cmp eax, edi
je 0x1007417
inc dword [ebp - 0xac]
add esi, 0xc
cmp dword [esi], edi
jne 0x10073bf
add dword [ebp - 0xa8], 4
add ebx, 0x10
cmp ebx, 0x1001648
jl 0x1007373
mov esi, 0x2001f
call fcn.01005874
movzx ebx, al
cmp ebx, edi
je 0x100744a
mov esi, 0x2011f
lea eax, [ebp - 0xa8]
push eax
push esi
push edi
mov edi, reloc.KERNEL32.dll_GetUserDefaultLangID
push edi
mov esi, 0x80000002
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1007491
test ebx, ebx
jne 0x1007474
push 0x10018b8
jmp 0x1007479
push 0x10018a0
push dword [ebp - 0xa8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0xa8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x100749d
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
call fcn.01005915
test al, al
je 0x10074b1
push 0x1013074
call fcn.01006d87
pop ecx
call fcn.01005915
test al, al
jne 0x10074c3
call fcn.01005874
test al, al
je 0x10074ce
push 0x1013130
call fcn.01006d87
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010108f5
leave
ret
Function at 0x1007a24
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x1014d9c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push ebx
push ebx
push ebx
call fcn.010112e8
push ebx
push ebx
push 0x10019d4
mov byte [0x101551a], bl
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp eax, ebx
mov dword [ebp - 0x21c], eax
je 0x1007ba4
push 0x10019c0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [ebp - 0x218], eax
je 0x1007b98
mov eax, dword [ebp + 8]
cmp eax, ebx
push esi
push edi
mov esi, 0x10157a8
je 0x1007b5f
cmp eax, 0x644
je 0x1007b5f
cmp eax, 0xbc2
je 0x1007b5f
cmp eax, 0x669
je 0x1007b5f
cmp byte [0x10157a8], bl
mov dword [ebp - 0x214], ebx
jne 0x1007b6f
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
cmp dword [ebp + 8], 0x641
movzx eax, ax
mov dword [ebp - 0x220], eax
mov edi, 0x100
jb 0x1007ae0
push eax
push edi
push esi
push dword [ebp + 8]
push 0xffffffffffffffff
call fcn.010112f4
test eax, eax
jne 0x1007b6f
push 0x208
lea eax, [ebp - 0x20e]
push ebx
push eax
mov word [ebp - 0x210], bx
call fcn.010108ea
add esp, 0xc
push ebx
push 0x105
lea eax, [ebp - 0x210]
push eax
movzx eax, word [ebp - 0x220]
push eax
push dword [ebp + 8]
push ebx
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
cmp eax, ebx
je 0x1007b47
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
mov word [ebp + eax*2 - 0x214], bx
lea eax, [ebp - 0x210]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x1007b6f
jmp 0x1007b69
push dword [ebp + 8]
push 0x10019ac
push edi
push esi
call fcn.010062da
add esp, 0x10
test eax, eax
jge 0x1007b6f
jmp 0x1007b69
mov dword [ebp - 0x214], 1
mov byte [0x10157a8], bl
push dword [ebp - 0x214]
push esi
push ebx
push 0x10159e8
push 0x1015968
push 0x1015928
push 0x10158a8
push 0x1015798
call dword [ebp - 0x218]
pop edi
pop esi
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.010108f5
leave
ret
Function at 0x100845d
Capabilities:
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1014d9c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1013150]
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
cmp eax, 0xffffffff
push edi
mov edi, dword [ebp + 8]
jne 0x100841b
xor eax, eax
cmp esi, ebx
sete al
lea eax, [eax + eax + 3]
push ebx
push eax
call fcn.01011330
cmp byte [0x101551a], bl
je 0x100846c
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push reloc.ADVAPI32.dll_EqualSid
push edi
mov word [ebp - 0x20c], bx
mov dword [ebp - 0x210], 0x104
call fcn.01011324
cmp word [ebp - 0x20c], bx
lea eax, [ebp - 0x20c]
jne 0x1008465
mov eax, edi
push eax
call fcn.01005628
pop ecx
push dword [0x10131b8]
neg esi
sbb esi, esi
and esi, 0xfffffffd
add esi, 5
push esi
push ebx
push edi
call fcn.01011318
cmp byte [0x101551a], bl
mov esi, eax
je 0x1008495
push esi
call fcn.01007a0e
pop ecx
cmp esi, ebx
jne 0x100849e
mov esi, 0x8000
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.010108f5
leave
ret
Function at 0x100862a
Capabilities:
Print debug messages
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x1014d9c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x240], eax
lea eax, [ebp - 0x230]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x23c], eax
mov eax, dword [0x1013150]
cmp eax, 0xffffffff
push esi
push edi
mov dword [ebp - 0x244], ebx
mov dword [ebp - 0x238], 0x104
je 0x100862b
mov dword [ebp + 0x10], eax
push 0
push dword [ebp + 0x10]
call fcn.01011330
cmp word [0x1015748], 0
je 0x10086d7
push 9
pop ecx
mov esi, reloc.ADVAPI32.dll_SetSecurityDescriptorDacl
lea edi, [ebp - 0x28]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [0x10131b8]
push ebx
call esi
push edi
mov ebx, eax
call esi
lea edi, [ebx + eax]
mov ebx, 0x1015748
push ebx
call esi
add edi, eax
lea eax, [ebp - 0x28]
push eax
call esi
lea edi, [eax + edi + 2]
push 1
push edi
mov ecx, 0x10131b8
call fcn.01006089
test al, al
jne 0x10086a1
push 0xe
pop esi
lea ecx, [ebp - 0x23c]
call fcn.01006126
mov eax, esi
jmp 0x10087d1
lea eax, [ebp - 0x28]
push eax
push dword [0x10131bc]
push dword [0x10131b8]
call fcn.01006299
test eax, eax
jl 0x10086d0
push ebx
push dword [0x10131bc]
push dword [0x10131b8]
call fcn.01006299
test eax, eax
jge 0x10086fc
mov esi, 0x65b
jmp 0x100868f
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [0x10131b8]
push ebx
call esi
push edi
mov ebx, eax
call esi
lea eax, [ebx + eax + 2]
push 1
push eax
mov ecx, 0x10131b8
call fcn.01006089
push reloc.ADVAPI32.dll_SetSecurityDescriptorDacl
push dword [0x10131bc]
push dword [0x10131b8]
call fcn.01006299
test eax, eax
jl 0x10087c1
push dword [ebp - 0x244]
push dword [0x10131bc]
push dword [0x10131b8]
call fcn.01006299
test eax, eax
jl 0x10087c1
push dword [0x10131b8]
push dword [ebp - 0x240]
call fcn.01011348
mov esi, eax
cmp esi, 2
jne 0x1008793
lea eax, [ebp - 0x23c]
push eax
push 0x1001570
push dword [ebp - 0x240]
mov dword [ebp - 0x234], 0x104
call fcn.010075dc
add esp, 0xc
test eax, eax
je 0x1008793
mov eax, dword [ebp - 0x23c]
push dword [0x10131b8]
mov dword [ebp - 0x240], eax
push eax
call fcn.01011348
mov esi, eax
cmp byte [0x101551a], 0
je 0x10087af
push dword [ebp - 0x240]
call fcn.01005628
push esi
call fcn.01007a0e
pop ecx
pop ecx
test esi, esi
jne 0x100868f
mov esi, 0x8000
jmp 0x100868f
lea ecx, [ebp - 0x23c]
call fcn.01006126
mov eax, 0x65b
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010108f5
leave
ret
Function at 0x1008798
Capabilities:
Check os version
Get geographical location
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x1014d9c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x240], eax
lea eax, [ebp - 0x230]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x23c], eax
mov eax, dword [0x1013150]
cmp eax, 0xffffffff
push esi
push edi
mov dword [ebp - 0x244], ebx
mov dword [ebp - 0x238], 0x104
je 0x100862b
mov dword [ebp + 0x10], eax
push 0
push dword [ebp + 0x10]
call fcn.01011330
cmp word [0x1015748], 0
je 0x10086d7
push 9
pop ecx
mov esi, reloc.ADVAPI32.dll_SetSecurityDescriptorDacl
lea edi, [ebp - 0x28]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [0x10131b8]
push ebx
call esi
push edi
mov ebx, eax
call esi
lea edi, [ebx + eax]
mov ebx, 0x1015748
push ebx
call esi
add edi, eax
lea eax, [ebp - 0x28]
push eax
call esi
lea edi, [eax + edi + 2]
push 1
push edi
mov ecx, 0x10131b8
call fcn.01006089
test al, al
jne 0x10086a1
push 0xe
pop esi
lea ecx, [ebp - 0x23c]
call fcn.01006126
mov eax, esi
jmp 0x10087d1
lea eax, [ebp - 0x28]
push eax
push dword [0x10131bc]
push dword [0x10131b8]
call fcn.01006299
test eax, eax
jl 0x10086d0
push ebx
push dword [0x10131bc]
push dword [0x10131b8]
call fcn.01006299
test eax, eax
jge 0x10086fc
mov esi, 0x65b
jmp 0x100868f
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [0x10131b8]
push ebx
call esi
push edi
mov ebx, eax
call esi
lea eax, [ebx + eax + 2]
push 1
push eax
mov ecx, 0x10131b8
call fcn.01006089
push reloc.ADVAPI32.dll_SetSecurityDescriptorDacl
push dword [0x10131bc]
push dword [0x10131b8]
call fcn.01006299
test eax, eax
jl 0x10087c1
push dword [ebp - 0x244]
push dword [0x10131bc]
push dword [0x10131b8]
call fcn.01006299
test eax, eax
jl 0x10087c1
push dword [0x10131b8]
push dword [ebp - 0x240]
call fcn.01011348
mov esi, eax
cmp esi, 2
jne 0x1008793
lea eax, [ebp - 0x23c]
push eax
push 0x1001570
push dword [ebp - 0x240]
mov dword [ebp - 0x234], 0x104
call fcn.010075dc
add esp, 0xc
test eax, eax
je 0x1008793
mov eax, dword [ebp - 0x23c]
push dword [0x10131b8]
mov dword [ebp - 0x240], eax
push eax
call fcn.01011348
mov esi, eax
cmp byte [0x101551a], 0
je 0x10087af
push dword [ebp - 0x240]
call fcn.01005628
push esi
call fcn.01007a0e
pop ecx
pop ecx
test esi, esi
jne 0x100868f
mov esi, 0x8000
jmp 0x100868f
lea ecx, [ebp - 0x23c]
call fcn.01006126
mov eax, 0x65b
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010108f5
leave
ret
Function at 0x1008f89
Capabilities:
Check os version
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x86c
mov eax, dword [0x1014d9c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
cmp dword [0x10141e0], 0xffffffff
mov ebx, eax
jne 0x1009061
lea eax, [ebp - 0x868]
push eax
mov dword [0x10141e0], edi
mov dword [ebp - 0x86c], edi
mov dword [ebp - 0x868], 0x20019
call fcn.01004818
pop ecx
lea eax, [ebp - 0x86c]
push eax
push dword [ebp - 0x868]
push edi
push reloc.KERNEL32.dll_GetUserDefaultLangID
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1009061
lea eax, [ebp - 0x858]
mov dword [ebp - 0x864], eax
lea eax, [ebp - 0x868]
push eax
lea eax, [ebp - 0x858]
push eax
push edi
push edi
push 0x1001b14
push dword [ebp - 0x86c]
mov dword [ebp - 0x860], RegSetValueExW
mov dword [ebp - 0x868], GetUserDefaultLangID
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100904a
mov eax, dword [ebp - 0x864]
mov eax, dword [eax]
and eax, 3
mov dword [0x10141e0], eax
push dword [ebp - 0x86c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x864]
call fcn.0100619e
test dword [0x10141e0], 3
je 0x10090d1
push 0x800
lea eax, [ebp - 0x806]
push edi
push eax
mov word [ebp - 0x808], di
call fcn.010108ea
add esp, 0xc
cmp dword [ebp + 0xc], edi
push esi
lea eax, [ebp - 0x808]
je 0x10090ad
push dword [ebp + 0xc]
push 0x1001af0
push 0x401
push eax
call fcn.01006339
add esp, 0x14
jmp 0x10090c0
push 0x1001ae4
push 0x401
push eax
call fcn.01006339
add esp, 0x10
cmp eax, edi
jl 0x10090d1
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010108f5
leave
ret