joyce8/EMBER2024-capa huggingface dataset:
Function at 0x445e4a
Capabilities:
Terminate thread

Disassembly:
mov eax, 0x4cbdd2
call fcn.004b346c
push ecx
mov dword [ebp - 0x10], ecx
and dword [ebp - 4], 0
push 0x4f4fd4
call dword [sym.imp.kernel32.dll_DeleteCriticalSection]
push dword [0x4f4fc4]
call dword [sym.imp.kernel32.dll_SetEvent]
push 0x3e8
mov eax, dword [ebp - 0x10]
push dword [eax + 0x48]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x445eaa
push 0
push 0
push 0
push 0x4d1b50
call dword [sym.imp.winmm.dll_mciSendStringA]
push 0
mov eax, dword [ebp - 0x10]
push dword [eax + 0x48]
call dword [sym.imp.kernel32.dll_TerminateThread]
mov eax, dword [ebp - 0x10]
push dword [eax + 0x48]
call dword [sym.imp.kernel32.dll_CloseHandle]
push dword [0x4f4fbc]
call dword [sym.imp.kernel32.dll_CloseHandle]
push dword [0x4f4fc8]
call dword [sym.imp.kernel32.dll_CloseHandle]
push dword [0x4f4fd0]
call dword [sym.imp.kernel32.dll_CloseHandle]
push dword [0x4f4ff4]
call dword [sym.imp.kernel32.dll_CloseHandle]
push dword [0x4f4fc4]
call dword [sym.imp.kernel32.dll_CloseHandle]
push dword [0x4f4fc0]
call dword [sym.imp.kernel32.dll_CloseHandle]
push dword [0x4f4ff0]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
push dword [eax + 0x3c]
mov ecx, dword [ebp - 0x10]
add ecx, 4
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
call dword [eax + 0x1c]
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.0044a0e4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x44a110
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov dword [ebp - 0x50], ecx
call dword [sym.imp.winmm.dll_mixerGetNumDevs]
test eax, eax
jne 0x44a12a
xor al, al
jmp 0x44a23a
lea eax, [ebp - 0x4c]
push eax
call fcn.0044a23c
pop ecx
push 0
push 0
push 0
lea eax, [ebp - 0x4c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
call dword [sym.imp.winmm.dll_waveOutOpen]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x44a15a
xor al, al
jmp 0x44a23a
push 0x90000000
mov eax, dword [ebp - 0x50]
add eax, 0xc
push eax
push dword [ebp - 8]
call dword [sym.imp.winmm.dll_mixerGetID]
mov dword [ebp - 4], eax
push dword [ebp - 8]
call dword [sym.imp.winmm.dll_waveOutClose]
cmp dword [ebp - 4], 0
je 0x44a188
xor al, al
jmp 0x44a23a
push 0x30
push 0
lea eax, [ebp - 0x38]
push eax
call fcn.004b5810
add esp, 0xc
mov dword [ebp - 0x38], 0x30
mov dword [ebp - 0x10], str.Wave_Output_Volume_Msg_Wnd_Class
mov dword [ebp - 0x30], 0x44abe4
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x88000000
push str.Wave_Output_Volume_Msg_Wnd
push str.Wave_Output_Volume_Msg_Wnd_Class
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov ecx, dword [ebp - 0x50]
mov dword [ecx + 0x20], eax
mov eax, dword [ebp - 0x50]
cmp dword [eax + 0x20], 0
jne 0x44a1f1
xor al, al
jmp 0x44a23a
push 0
mov eax, dword [ebp - 0x50]
push dword [eax + 0x20]
call dword [sym.imp.user32.dll_ShowWindow]
push 0x10000
push 0
mov eax, dword [ebp - 0x50]
push dword [eax + 0x20]
mov eax, dword [ebp - 0x50]
push dword [eax + 0xc]
mov eax, dword [ebp - 0x50]
add eax, 0x10
push eax
call dword [sym.imp.winmm.dll_mixerOpen]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x44a238
mov eax, dword [ebp - 0x50]
push dword [eax + 0x20]
call dword [sym.imp.user32.dll_DestroyWindow]
xor al, al
jmp 0x44a23a
mov al, 1
leave
ret

Function at 0x44bbbd
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov dword [ebp - 8], ecx
and dword [ebp - 4], 0
push 0x10
call dword [sym.imp.user32.dll_GetAsyncKeyState]
movsx eax, ax
and eax, 0x8000
test eax, eax
je 0x44bbe6
mov eax, dword [ebp - 4]
or eax, 1
mov dword [ebp - 4], eax
push 0x11
call dword [sym.imp.user32.dll_GetAsyncKeyState]
movsx eax, ax
and eax, 0x8000
test eax, eax
je 0x44bc03
mov eax, dword [ebp - 4]
or eax, 2
mov dword [ebp - 4], eax
push 0x12
call dword [sym.imp.user32.dll_GetAsyncKeyState]
movsx eax, ax
and eax, 0x8000
test eax, eax
je 0x44bc20
mov eax, dword [ebp - 4]
or eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
leave
ret
Function at 0x44bc25
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
push dword [eax + 0x42c]
call dword [sym.imp.user32.dll_OpenClipboard]
test eax, eax
je 0x44bca7
push 7
call dword [sym.imp.user32.dll_GetClipboardData]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x44bca1
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_GlobalLock]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x44bca1
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
jge 0x44bc9b
mov eax, dword [ebp - 8]
movsx eax, byte [eax]
test eax, eax
je 0x44bc9b
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov cl, byte [ecx]
mov byte [eax], cl
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
jmp 0x44bc68
mov eax, dword [ebp + 8]
and byte [eax], 0
call dword [sym.imp.user32.dll_CloseClipboard]
leave
ret 8
Function at 0x44bcab
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x4f1410]
xor eax, dword [ebp + 4]
mov dword [ebp - 4], eax
mov dword [ebp - 0xac], ecx
mov eax, dword [ebp - 0xac]
cmp dword [eax + 0x450], 0
je 0x44bcdb
mov al, 1
jmp 0x44bec2
mov dword [ebp - 0xa0], 0x94
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.kernel32.dll_GetVersionExA]
cmp dword [ebp - 0x9c], 4
ja 0x44bd0b
cmp dword [ebp - 0x98], 0xa
jae 0x44bd0b
xor al, al
jmp 0x44bec2
mov eax, dword [ebp - 0xac]
and byte [eax + 0x460], 0
mov eax, dword [ebp - 0xac]
and dword [eax + 0x454], 0
mov eax, dword [ebp - 0xac]
and dword [eax + 0x45c], 0
push 0
lea eax, [ebp - 0xa4]
push eax
push 0
call sub.ddraw.dll_DirectDrawCreate
mov dword [ebp - 0xa8], eax
cmp dword [ebp - 0xa8], 0
je 0x44bd58
xor al, al
jmp 0x44bec2
mov eax, dword [ebp - 0xac]
add eax, 0x450
push eax
push 0x4d9fe4
mov eax, dword [ebp - 0xa4]
mov eax, dword [eax]
push dword [ebp - 0xa4]
call dword [eax]
mov eax, dword [ebp - 0xa4]
mov eax, dword [eax]
push dword [ebp - 0xa4]
call dword [eax + 8]
and dword [ebp - 0xa4], 0
push 0x11
mov eax, dword [ebp - 0xac]
push dword [eax + 0x42c]
mov eax, dword [ebp - 0xac]
mov eax, dword [eax + 0x450]
mov ecx, dword [ebp - 0xac]
mov ecx, dword [ecx + 0x450]
mov eax, dword [eax]
push ecx
call dword [eax + 0x50]
mov dword [ebp - 0xa8], eax
cmp dword [ebp - 0xa8], 0
je 0x44bdd3
xor al, al
jmp 0x44bec2
push 0
push 0
push 0x20
push 0x258
push 0x320
mov eax, dword [ebp - 0xac]
mov eax, dword [eax + 0x450]
mov ecx, dword [ebp - 0xac]
mov ecx, dword [ecx + 0x450]
mov eax, dword [eax]
push ecx
call dword [eax + 0x54]
mov dword [ebp - 0xa8], eax
cmp dword [ebp - 0xa8], 0
je 0x44be9d
push 0
push 0
push 0x18
push 0x258
push 0x320
mov eax, dword [ebp - 0xac]
mov eax, dword [eax + 0x450]
mov ecx, dword [ebp - 0xac]
mov ecx, dword [ecx + 0x450]
mov eax, dword [eax]
push ecx
call dword [eax + 0x54]
mov dword [ebp - 0xa8], eax
cmp dword [ebp - 0xa8], 0
je 0x44be9d
push 0
push 0
push 0x10
push 0x258
push 0x320
mov eax, dword [ebp - 0xac]
mov eax, dword [eax + 0x450]
mov ecx, dword [ebp - 0xac]
mov ecx, dword [ecx + 0x450]
mov eax, dword [eax]
push ecx
call dword [eax + 0x54]
mov dword [ebp - 0xa8], eax
cmp dword [ebp - 0xa8], 0
je 0x44be9d
mov ecx, dword [ebp - 0xac]
call fcn.0044bfe3
xor al, al
jmp 0x44bec2
mov ecx, dword [ebp - 0xac]
call fcn.0044becf
movzx eax, al
test eax, eax
jne 0x44beb3
xor al, al
jmp 0x44bec2
mov eax, dword [ebp - 0xac]
mov byte [eax + 0x460], 1
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.004b3f19
leave
ret
Function at 0x45662c
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0xca
jne 0x45666b
push dword [ebp + 8]
call fcn.0045e22f
pop ecx
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 0x40]
test eax, eax
je 0x456661
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0xcf
mov al, 1
jmp 0x456773
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0xcb
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0xcb
jne 0x456739
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x190]
movzx eax, byte [eax + 0x10]
test eax, eax
je 0x456728
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0
je 0x4566a5
push dword [ebp + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
call dword [eax]
pop ecx
push dword [ebp + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x190]
call dword [eax]
pop ecx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4566c4
xor al, al
jmp 0x456773
cmp dword [ebp - 4], 2
jne 0x4566cc
jmp 0x456728
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0
je 0x456723
cmp dword [ebp - 4], 3
je 0x4566e1
cmp dword [ebp - 4], 1
jne 0x456723
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax + 4]
inc eax
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 8]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 8]
mov eax, dword [eax + 4]
cmp eax, dword [ecx + 8]
jl 0x456723
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax + 8]
mov ecx, dword [ebp + 8]
add eax, dword [ecx + 0x11c]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 8]
mov dword [ecx + 8], eax
jmp 0x456690
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x7c]
mov dword [eax + 0x84], ecx
jmp 0x45676a
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0xcc
je 0x45676a
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [eax + 0x14], 0x14
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x14]
mov dword [eax + 0x18], ecx
push dword [ebp + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
call dword [eax]
pop ecx
push dword [ebp + 8]
call fcn.00456775
pop ecx
leave
ret
Function at 0x456775
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0xcc
je 0x4567a5
push dword [ebp + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x180]
call dword [eax]
pop ecx
mov eax, dword [ebp + 8]
and dword [eax + 0x78], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0xcc
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x180]
movzx eax, byte [eax + 8]
test eax, eax
je 0x45685d
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov eax, dword [eax + 0x78]
cmp eax, dword [ecx + 0x60]
jae 0x456832
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0
je 0x4567fb
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x78]
mov dword [eax + 4], ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x60]
mov dword [eax + 8], ecx
push dword [ebp + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
call dword [eax]
pop ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x78]
mov dword [ebp - 4], eax
push 0
mov eax, dword [ebp + 8]
add eax, 0x78
push eax
push 0
push dword [ebp + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x184]
call dword [eax + 4]
add esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x78]
cmp eax, dword [ebp - 4]
jne 0x456830
xor al, al
jmp 0x456877
jmp 0x4567ba
push dword [ebp + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x180]
call dword [eax + 4]
pop ecx
push dword [ebp + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x180]
call dword [eax]
pop ecx
mov eax, dword [ebp + 8]
and dword [eax + 0x78], 0
jmp 0x4567a5
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 0x41]
neg eax
sbb eax, eax
neg eax
add eax, 0xcd
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x14], eax
mov al, 1
leave
ret

Function at 0x49c9f7
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x4f55a8], 0
je 0x49ca0a
xor eax, eax
jmp 0x49cb16
mov eax, dword [ebp + 8]
mov dword [0x4f55a0], eax
push 0x800
call fcn.004b77d8
pop ecx
mov dword [0x4f55a8], eax
cmp dword [0x4f55a8], 0
jne 0x49ca33
or eax, 0xffffffff
jmp 0x49cb16
call fcn.0049d2e9
push 0x80
call fcn.004b77d8
pop ecx
mov dword [0x4f55a4], eax
cmp dword [0x4f55a4], 0
jne 0x49ca65
push dword [0x4f55a8]
call fcn.004b5f98
pop ecx
or eax, 0xffffffff
jmp 0x49cb16
cmp dword [ebp + 8], 1
je 0x49ca71
cmp dword [ebp + 8], 2
jne 0x49ca78
xor eax, eax
jmp 0x49cb16
push 0x800
call fcn.004b77d8
pop ecx
mov dword [0x4f559c], eax
cmp dword [0x4f559c], 0
jne 0x49caae
push dword [0x4f55a8]
call fcn.004b5f98
pop ecx
push dword [0x4f55a4]
call fcn.004b5f98
pop ecx
or eax, 0xffffffff
jmp 0x49cb16
push 0x4f04a8
push dword [0x4f559c]
call fcn.0049d1ba
pop ecx
pop ecx
push 0x800
call fcn.004b77d8
pop ecx
mov dword [0x4f5598], eax
cmp dword [0x4f5598], 0
jne 0x49cb02
push dword [0x4f55a8]
call fcn.004b5f98
pop ecx
push dword [0x4f55a4]
call fcn.004b5f98
pop ecx
push dword [0x4f559c]
call fcn.004b5f98
pop ecx
or eax, 0xffffffff
jmp 0x49cb16
push 0x4f04e8
push dword [0x4f5598]
call fcn.0049d1ba
pop ecx
pop ecx
xor eax, eax
pop ebp
ret
Function at 0x49d2e9
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x4f1410]
xor eax, dword [ebp + 4]
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
jmp 0x49d307
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x20
jge 0x49d340
and dword [ebp - 8], 0
jmp 0x49d31a
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x20
jge 0x49d33e
mov eax, dword [ebp - 8]
movsx eax, byte [eax + 0x4f07a0]
dec eax
cmp eax, dword [ebp - 4]
jne 0x49d33c
mov eax, dword [ebp - 4]
mov cl, byte [ebp - 8]
mov byte [ebp + eax - 0x30], cl
jmp 0x49d33e
jmp 0x49d313
jmp 0x49d300
and dword [ebp - 0xc], 0
jmp 0x49d34d
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 8
jge 0x49d409
and dword [ebp - 8], 0
jmp 0x49d364
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x40
jge 0x49d404
and dword [ebp - 0x38], 0
mov eax, dword [ebp - 8]
and eax, 0x20
mov ecx, dword [ebp - 8]
and ecx, 1
neg ecx
sbb ecx, ecx
and ecx, 0x10
or eax, ecx
mov ecx, dword [ebp - 8]
sar ecx, 1
and ecx, 0xf
or eax, ecx
mov dword [ebp - 0x34], eax
and dword [ebp - 0x3c], 0
jmp 0x49d3a1
mov eax, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 4
jge 0x49d3e8
mov eax, dword [ebp - 0xc]
shl eax, 6
mov ecx, dword [ebp - 0x34]
movsx eax, byte [eax + ecx + 0x4f05a0]
push 8
pop edx
mov ecx, dword [ebp - 0x3c]
sar edx, cl
and eax, edx
test eax, eax
je 0x49d3e6
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x3c]
lea eax, [ecx + eax*4]
movsx eax, byte [ebp + eax - 0x30]
push 0x1f
pop ecx
sub ecx, eax
xor eax, eax
inc eax
shl eax, cl
mov ecx, dword [ebp - 0x38]
or ecx, eax
mov dword [ebp - 0x38], ecx
jmp 0x49d39a
mov eax, dword [ebp - 0xc]
shl eax, 8
mov ecx, dword [0x4f55a8]
add ecx, eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x38]
mov dword [ecx + eax*4], edx
jmp 0x49d35d
jmp 0x49d346
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp + 4]
call fcn.004b3f19
leave
ret

Function at 0x49e286
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push 0
push 0
push dword [ebp + 8]
mov eax, dword [ebp - 0xc]
push dword [eax + 8]
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x49e2ca
cmp dword [ebp - 8], 0xea
je 0x49e2ca
mov dword [ebp - 0x10], 1
jmp 0x49e2ce
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov dword [eax + 0xc], ecx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x10]
jae 0x49e2e8
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 4]
and byte [eax], 0
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x10]
jb 0x49e300
cmp dword [ebp + 0x10], 0
jle 0x49e300
mov eax, dword [ebp + 0xc]
add eax, dword [ebp + 0x10]
and byte [eax - 1], 0
mov eax, dword [ebp - 4]
leave
ret 0xc
Function at 0x49e307
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push 0
push 0
push dword [ebp + 8]
mov eax, dword [ebp - 0xc]
push dword [eax + 8]
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x49e34b
cmp dword [ebp - 8], 0xea
je 0x49e34b
mov dword [ebp - 0x10], 1
jmp 0x49e34f
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov dword [eax + 0xc], ecx
mov eax, dword [ebp - 4]
leave
ret 0xc

Function at 0x4b2578
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and byte [ebp - 4], 0
push edi
xor eax, eax
lea edi, [ebp - 3]
stosb byte es:[edi], al
push 2
lea eax, [ebp - 4]
push eax
push 0x22
call fcn.004ba775
push dword [eax + 0x14]
call dword [sym.imp.kernel32.dll_GetLocaleInfoA]
mov al, byte [ebp - 4]
cmp al, 0x30
pop edi
jne 0x4b25aa
push 2
pop eax
leave
ret
cmp al, 0x31
jne 0x4b25b3
xor eax, eax
inc eax
leave
ret
sub al, 0x32
neg al
sbb eax, eax
and eax, 0xfffffffd
add eax, 3
leave
ret

Function at 0x4b4004
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.004ba8d8
xor esi, esi
inc esi
cmp dword [0x4f7578], esi
pop ecx
jne 0x4b402c
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 [0x4f7574], esi
mov byte [0x4f7570], al
jne 0x4b4092
mov ecx, dword [0x4f8d6c]
test ecx, ecx
je 0x4b4073
mov eax, dword [0x4f8d68]
sub eax, 4
cmp eax, ecx
jmp 0x4b406c
mov eax, dword [eax]
test eax, eax
je 0x4b405e
call eax
mov eax, dword [0x4f8d68]
sub eax, 4
cmp eax, dword [0x4f8d6c]
mov dword [0x4f8d68], eax
jae 0x4b4056
mov eax, 0x4f00c8
mov esi, 0x4f00d0
cmp eax, esi
mov edi, eax
jae 0x4b4092
mov eax, dword [edi]
test eax, eax
je 0x4b408b
call eax
add edi, 4
cmp edi, esi
jb 0x4b4083
mov eax, 0x4f00d4
mov esi, 0x4f00dc
cmp eax, esi
mov edi, eax
jae 0x4b40b1
mov eax, dword [edi]
test eax, eax
je 0x4b40aa
call eax
add edi, 4
cmp edi, esi
jb 0x4b40a2
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x4b40c2
push 8
call fcn.004ba82c
jmp 0x4b40d4
push dword [ebp + 8]
mov dword [0x4f7578], 1
call fcn.004b3f27
pop ecx
pop ebp
ret
Function at 0x4b4ee5
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
xor ebx, ebx
test edi, edi
jne 0x4b4f01
call fcn.004b9b57
mov dword [eax], 0x16
or eax, 0xffffffff
jmp 0x4b4f73
push esi
push 0x88
push 1
call fcn.004bd195
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4b4f59
push esi
call fcn.004bc7b2
mov eax, dword [esp + 0x1c]
pop ecx
push esi
push 4
push esi
push 0x4b4e45
push dword [esp + 0x24]
mov dword [esi + 0x4c], edi
push 0
mov dword [esi + 0x50], eax
call dword [sym.imp.kernel32.dll_CreateThread]
mov edi, eax
test edi, edi
mov dword [esi + 4], edi
je 0x4b4f51
push edi
call dword [sym.imp.kernel32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x4b4f70
call dword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.004b5f98
test ebx, ebx
pop ecx
je 0x4b4f6b
push ebx
call fcn.004b9b69
pop ecx
or eax, 0xffffffff
jmp 0x4b4f72
mov eax, edi
pop esi
pop edi
pop ebx
ret

Function at 0x4b55e8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4f1410]
xor eax, dword [ebp + 4]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x4b5663
push ebx
call fcn.004b55b1
test eax, eax
pop ecx
jne 0x4b5635
call fcn.004b9b60
mov dword [eax], 0xf
call fcn.004b9b57
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop ebx
call fcn.004b3f19
leave
ret
and byte [ebp + 0xb], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10c]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
call dword [sym.imp.kernel32.dll_GetFullPathNameA]
jmp 0x4b5675
lea eax, [ebp - 0x10c]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x4b5625
inc eax
cmp eax, 0x104
ja 0x4b5625
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x4b56ad
cmp eax, dword [ebp + 0x10]
jg 0x4b5690
mov eax, dword [ebp + 0x10]
push eax
call fcn.004b77d8
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x4b56c2
call fcn.004b9b57
mov dword [eax], 0xc
jmp 0x4b5625
cmp eax, dword [ebp + 0x10]
jle 0x4b56c2
call fcn.004b9b57
mov dword [eax], 0x22
jmp 0x4b5625
lea eax, [ebp - 0x10c]
push eax
push ecx
call fcn.004b4120
pop ecx
pop ecx
jmp 0x4b5627
Function at 0x4b7fdf
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4dacd8
call fcn.004bcca0
mov edi, 0x94
mov eax, edi
call fcn.004b57d0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.kernel32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x4f7538], ecx
mov eax, dword [esi + 4]
mov dword [0x4f7544], eax
mov edx, dword [esi + 8]
mov dword [0x4f7548], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4f753c], esi
cmp ecx, 2
je 0x4b803f
or esi, 0x8000
mov dword [0x4f753c], esi
shl eax, 8
add eax, edx
mov dword [0x4f7540], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.kernel32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4b807a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4b807a
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4b8092
cmp eax, 0x20b
je 0x4b807f
mov dword [ebp - 0x1c], esi
jmp 0x4b80a6
cmp dword [ecx + 0x84], 0xe
jbe 0x4b807a
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4b80a0
cmp dword [ecx + 0x74], 0xe
jbe 0x4b807a
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004bf919
pop ecx
test eax, eax
jne 0x4b80ba
push 0x1c
call fcn.004b7f65
pop ecx
call fcn.004bc9ad
test eax, eax
jne 0x4b80cb
push 0x10
call fcn.004b7f65
pop ecx
call fcn.004bccec
mov dword [ebp - 4], esi
call fcn.004bcf4b
test eax, eax
jge 0x4b80e4
push 0x1b
call fcn.004b7f40
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x4f7d50], eax
call fcn.004c3168
mov dword [0x4f7588], eax
call fcn.004c30c6
test eax, eax
jge 0x4b810a
push 8
call fcn.004b7f40
pop ecx
call fcn.004c2e93
test eax, eax
jge 0x4b811b
push 9
call fcn.004b7f40
pop ecx
call fcn.004b3f9f
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x4b812e
push eax
call fcn.004b7f40
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
call fcn.004c2e2a
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x4b814f
movzx eax, word [ebp - 0x34]
jmp 0x4b8152
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.00418447
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4b8170
push edi
call fcn.004b40d7
call fcn.004b40f9
jmp 0x4b81a2
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004bccdb
ret