joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45a070
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x45a0a3
push esi
call fcn.00468450
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x45a09c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x45a129
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x45a112
mov eax, dword [esi + 8]
test eax, eax
je 0x45a0c7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x45a10e
cmp eax, 2
je 0x45a112
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x45a0ba
cmp eax, 3
je 0x45a0ed
cmp eax, 1
jne 0x45a0ba
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x45a0ba
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x45a0ba
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0045a150
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x45a138
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0045a150
add esp, 4
pop esi
ret

Function at 0x45a9d0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x45a9f1
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x45a9f1
mov eax, dword [eax + 0x44]
test eax, eax
je 0x45a9f1
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x475a10
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x475ab3
test eax, eax
jbe 0x475ab3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x475ab3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x475a5e
xor esi, esi
jmp 0x475a64
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x475a8f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00415d10
add esi, eax
push esi
mov ebx, esi
call fcn.00415d10
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x475a70
pop ebp
test edi, edi
pop edi
jne 0x475ab3
test ebx, ebx
je 0x475ab3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0047a2d0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x475c15
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x475d2d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x475d2d
mov eax, dword [esi + 0x3c]
push eax
call fcn.0048aef4
mov esi, eax
test esi, esi
je 0x475d2d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x475d2d
mov ecx, esi
call fcn.00475ba0
cmp edi, eax
jge 0x475d2d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x475cb3
mov dword [esp + 0x34], 1
jmp 0x475d0e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x475d2d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00475160
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x48b897
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x48b8cf
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00489924
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004898fc
jmp 0x48b8db
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x48cf8c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x48cfce
call fcn.00492a46
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x48cfce
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x48cfc5
xor eax, eax
jmp 0x48cfd6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0048cfdc
pop edi
pop esi
pop ebx
ret 4
Function at 0x492f76
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x492fa4
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x492fc2
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00492edc
jmp 0x492fc2
mov eax, dword [esi + 0x14]
test eax, eax
je 0x492fc2
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00492edc
test edi, edi
mov eax, edi
jne 0x492fac
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x418ca0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xf000]
push edi
or ebp, 0xffffffff
jmp 0x418cc2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x418cc9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x418cb8
mov eax, 1
add ebx, ebx
jne 0x418cdb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x418cd0
jne 0x418cec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x418cd0
xor ecx, ecx
sub eax, 3
jb 0x418d00
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x418d72
mov ebp, eax
add ebx, ebx
jne 0x418d0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x418d18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x418d3c
inc ecx
add ebx, ebx
jne 0x418d28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x418d1d
jne 0x418d39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x418d1d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x418d5c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x418d4d
jmp 0x418cbe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x418d5c
add edi, ecx
jmp 0x418cbe
pop esi
mov edi, esi
mov ecx, 0x18f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x418d7a
cmp byte [edi], 0xa
jne 0x418d7a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x418d7f
lea edi, [esi + 0x16000]
mov eax, dword [edi]
or eax, eax
je 0x418dee
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1a664]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1a6a0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x418dac
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1a6a4]
or eax, eax
je 0x418de8
mov dword [ebx], eax
add ebx, 4
jmp 0x418dc9
call dword [esi + 0x1a6ac]
mov ebp, dword [esi + 0x1a6a8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x418e22
sub esp, 0xffffff80
jmp 0x406467
Function at 0x10427f70
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x10428154
pushal
mov esi, section.UPX1
lea edi, [esi - 0x41e000]
push edi
jmp 0x10427f9a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10427fa1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10427f90
mov eax, 1
add ebx, ebx
jne 0x10427fb3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10427fc4
jne 0x10427fe3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10427fe3
dec eax
add ebx, ebx
jne 0x10427fd0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x10427fa8
add ebx, ebx
jne 0x10427fdf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x10428035
xor ecx, ecx
sub eax, 3
jb 0x10427ffb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1042806a
sar eax, 1
mov ebp, eax
jmp 0x10428006
add ebx, ebx
jne 0x10428006
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10427fd4
inc ecx
add ebx, ebx
jne 0x10428014
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10427fd4
add ebx, ebx
jne 0x10428021
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x10428016
jne 0x10428032
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10428016
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x10428054
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x10428046
jmp 0x10427f96
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x10428054
add edi, ecx
jmp 0x10427f96
pop esi
mov edi, esi
mov ecx, 0x995
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x10428072
cmp byte [edi], 5
jne 0x10428072
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x10428077
lea edi, [esi + 0x425000]
mov eax, dword [edi]
or eax, eax
je 0x104280e6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x428000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x428050]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x104280a4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x428054]
or eax, eax
je 0x104280e0
mov dword [ebx], eax
add ebx, 4
jmp 0x104280c1
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x10428117
cmp al, 0xef
ja 0x1042810a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x104280ec
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x104280f9
mov ebp, dword [esi + 0x428058]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x1042814b
sub esp, 0xffffff80
jmp fcn.100016be
Function at 0x100491b
Capabilities:
Terminate process

Disassembly:
push 4
mov eax, 0x1013265
call fcn.01012132
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebx], 0x100161c
and dword [ebp - 4], 0
mov esi, dword [sym.imp.msvcrt.dll___iob_func]
call esi
mov edi, dword [sym.imp.msvcrt.dll_fflush]
add eax, 0x20
push eax
call edi
call esi
add eax, 0x40
push eax
call edi
pop ecx
pop ecx
push dword [0x1017788]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
or dword [ebp - 4], 0xffffffff
mov ecx, ebx
call fcn.010128ce
call fcn.010121e0
ret

Function at 0x1009760
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x1013828
call fcn.01012132
mov esi, ecx
lea ecx, [ebp - 0x10]
call sub.MFC42u.dll_CString::CString_2
xor edi, edi
mov dword [ebp - 4], edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call sub.MFC42u.dll_CString::LoadStringW
push dword [ebp - 0x10]
lea ecx, [esi + 0xa8]
call sub.MFC42u.dll_CWnd::SetWindowTextW
push 0x105
push edi
push edi
push dword [esi + 0xc8]
call dword [sym.imp.USER32.dll_RedrawWindow]
mov ecx, esi
call fcn.01009554
mov eax, dword [esi + 0x64]
cmp eax, edi
je 0x10097bc
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp - 0x14]
push eax
push edi
push esi
push dword [ebp + 8]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x60], eax
cmp eax, edi
jne 0x1009806
push 0x68
call fcn.0100aec8
pop ecx
push edi
push 0x3f6
push 0x111
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_PostMessageW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42u.dll_CString::CString
mov eax, edi
call fcn.010121e0
ret 8
xor edi, edi
inc edi
jmp 0x10097f0
Function at 0x1009f8f
Capabilities:
Get common file path
Get memory capacity

Disassembly:
push 0x54
mov eax, 0x10138c7
call fcn.0101216a
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [0x10177a4], eax
call fcn.01009dbd
mov ebx, eax
cmp ebx, esi
je 0x100a0e3
mov dword [ebp - 0x14], esi
lea ecx, [ebp - 0x20]
call sub.MFC42u.dll_AFX_EXCEPTION_LINK::AFX_EXCEPTION_LINK
mov dword [ebp - 4], esi
mov byte [ebp - 4], 1
push dword [0x1017dd4]
push 0x66
call fcn.0100a125
mov ebx, eax
mov dword [ebp - 0x14], ebx
cmp ebx, esi
jne 0x1009fe8
push 0x67
call fcn.0100aec8
pop ecx
mov dword [ebp - 4], esi
jmp 0x100a008
or dword [ebp - 4], 0xffffffff
call sub.MFC42u.dll_AfxTryCleanup
test ebx, ebx
je 0x100a0e3
mov edi, 0x105
push edi
mov esi, 0x10179b8
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x100a0d9
cmp eax, edi
ja 0x100a0d9
push esi
mov edi, 0x20a
push edi
mov esi, 0x10177a8
push esi
call fcn.01009eda
test eax, eax
jl 0x100a061
push 0x10029c0
push edi
push esi
call fcn.01009f15
test eax, eax
jge 0x100a068
push 0x160
jmp 0x100a0db
mov esi, 0x104
push esi
mov ecx, dword [0x10177a0]
call sub.MFC42u.dll_CString::GetBuffer
test eax, eax
jne 0x100a086
push 0x68
call fcn.0100aec8
jmp 0x100a0e2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
push 0xffffffffffffffff
mov ecx, dword [0x10177a0]
call sub.MFC42u.dll_CString::ReleaseBuffer
xor ebx, ebx
cmp edi, ebx
je 0x100a0d5
cmp edi, esi
jae 0x100a0d5
push 0x40
pop esi
push esi
push ebx
lea eax, [ebp - 0x60]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x60], esi
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov ebx, eax
test ebx, ebx
je 0x100a0e3
mov eax, dword [ebp - 0x38]
mov dword [0x101779c], eax
jmp 0x100a0e3
push 0x6c
jmp 0x100a07f
push 0x6a
call fcn.0100aec8
xor ebx, ebx
pop ecx
mov eax, ebx
call fcn.010121e0
ret

Function at 0x100afd4
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ecx, ecx
test eax, eax
sete cl
mov esi, ecx
or dword [0x1017de8], esi
cmp esi, 1
je 0x100b015
push eax
push dword [ebp + 0xc]
push 0x93
call fcn.0100aec8
add esp, 0xc
mov eax, esi
pop esi
pop ebp
ret 0xc

Function at 0x100b021
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x100b02c
push esi
sub eax, ecx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0x10]
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ecx, ecx
test eax, eax
sete cl
mov esi, ecx
or dword [0x1017de8], esi
cmp esi, 1
je 0x100b078
push eax
push dword [ebp + 0xc]
push 0x93
call fcn.0100aec8
add esp, 0xc
mov eax, esi
pop esi
pop ebp
ret 0xc
Function at 0x100b37d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 0x10]
push 4
pop esi
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x100b3b2
and dword [edi], 0
xor esi, esi
inc esi
jmp 0x100b3d3
test eax, eax
jne 0x100b3c0
cmp dword [ebp + 0x10], esi
jne 0x100b3c0
cmp dword [ebp - 4], esi
je 0x100b3ad
push eax
push dword [ebp + 0xc]
xor esi, esi
push 0x110
call fcn.0100aec8
add esp, 0xc
pop edi
mov eax, esi
pop esi
leave
ret 0xc

Function at 0x100b3e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 8], 0
push esi
push edi
mov dword [ebp - 0x10], 8
mov dword [ebp - 4], 0x80
mov edi, 0xfe
mov eax, dword [ebp - 4]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
mov esi, eax
pop ecx
test esi, esi
je 0x100b475
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp + 0xc]
mov dword [ebp - 0xc], edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x10], eax
sub eax, 0
je 0x100b468
dec eax
dec eax
jne 0x100b470
mov word [esi], ax
mov dword [ebp - 8], 1
mov ecx, dword [ebp + 0x10]
push esi
call sub.MFC42u.dll_CString::operator_3
push esi
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret 0xc
xor eax, eax
inc eax
cmp dword [ebp - 0x14], eax
je 0x100b4b1
xor eax, eax
mov word [esi], ax
mov ecx, dword [ebp + 0x10]
push esi
call sub.MFC42u.dll_CString::operator_3
push esi
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
sub dword [ebp - 4], 0xffffff80
add edi, 0x100
cmp dword [ebp - 4], 0x1000
pop ecx
jb 0x100b401
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push 0x93
call fcn.0100aec8
add esp, 0xc
jmp 0x100b45f
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
shr eax, 1
xor ecx, ecx
mov word [esi + eax*2], cx
jmp 0x100b44f

Function at 0x100b4c6
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x100b4f6
cmp eax, 2
je 0x100b4f6
push eax
push dword [ebp + 0xc]
xor esi, esi
push 0x96
call fcn.0100aec8
add esp, 0xc
jmp 0x100b507
xor esi, esi
xor ecx, ecx
inc esi
cmp eax, 2
setne cl
or dword [0x1017de8], ecx
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x100b9ac
Capabilities:
Acquire debug privileges

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push esi
lea eax, [ebp - 4]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
xor esi, esi
inc esi
cmp eax, esi
je 0x100b9de
push 0x91
call fcn.0100aec8
pop ecx
xor eax, eax
jmp 0x100ba42
push edi
lea eax, [ebp - 0x10]
push eax
push 0x1002b94
xor edi, edi
push edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
cmp eax, esi
jne 0x100ba2b
push edi
push edi
push edi
lea eax, [ebp - 0x14]
push eax
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
cmp eax, esi
jne 0x100ba2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100ba2b
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x100ba41
push 0x91
call fcn.0100aec8
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x100d12e
Capabilities:
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push 0x64
mov esi, ecx
mov ecx, dword [ebp + 0xc]
push 0
call fcn.0100cb37
mov ecx, dword [ebp + 0xc]
push 1
call fcn.0100cb59
mov ecx, dword [ebp + 0xc]
push 0
call fcn.0100cb7a
cmp dword [esi + 0x34], 1
je 0x100d200
push ebx
push edi
mov edi, 0x10177a8
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov dword [ebp - 8], eax
cmp eax, 1
je 0x100d182
push edi
push 0x6d
call fcn.0100aec8
pop ecx
pop ecx
mov ebx, dword [esi + 0x10]
mov ecx, dword [ebp + 0xc]
push ebx
push 0
call fcn.0100cb37
and dword [ebp - 4], 0
test ebx, ebx
jle 0x100d1e4
cmp dword [ebp + 8], 0
je 0x100d1ad
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x100d1eb
push dword [ebp - 4]
lea ecx, [esi + 8]
call fcn.01009c92
mov edi, eax
cmp dword [edi + 8], 1
jne 0x100d1d4
push dword [edi + 4]
call fcn.0100a77b
dec eax
neg eax
sbb eax, eax
neg eax
inc eax
inc eax
mov dword [edi + 8], eax
mov ecx, dword [ebp + 0xc]
call fcn.0100cf83
inc dword [ebp - 4]
cmp dword [ebp - 4], ebx
jl 0x100d198
mov dword [esi + 0x34], 1
cmp dword [ebp - 8], 1
pop edi
pop ebx
jne 0x100d200
mov eax, dword [0x10177a0]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [esi + 0x34]
pop esi
leave
ret 8
Function at 0x1012103
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x10155d0
call fcn.01012534
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x1018154
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1011ebe
cmp eax, esi
jne 0x1011eb1
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1011ec1
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1011e98
xor esi, esi
inc esi
mov eax, dword [0x1018150]
cmp eax, esi
jne 0x1011ed4
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1011f03
mov eax, dword [0x1018150]
test eax, eax
jne 0x1011efd
mov dword [0x1018150], esi
push 0x10015b4
push 0x10015a8
call fcn.01011dfa
pop ecx
pop ecx
test eax, eax
je 0x1011f03
jmp 0x1012027
mov dword [0x1017e10], esi
mov eax, dword [0x1018150]
cmp eax, esi
jne 0x1011f27
push 0x10015a4
push 0x100158c
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1018150], 2
cmp dword [ebp - 0x20], ebx
jne 0x1011f34
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1018160], ebx
je 0x1011f55
push 0x1018160
call fcn.010124a9
pop ecx
test eax, eax
je 0x1011f55
push ebx
push 2
push ebx
call dword [0x1018160]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x1012027
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x1011fbf
cmp cx, bx
je 0x1011f7a
cmp dword [ebp - 0x1c], ebx
jne 0x1011fbf
movzx ecx, word [eax]
cmp cx, bx
je 0x1011f8f
cmp cx, 0x20
ja 0x1011f8f
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x1011f7a
test byte [ebp - 0x40], 1
je 0x1011f9b
movzx ecx, word [ebp - 0x3c]
jmp 0x1011f9e
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x1017e0c], eax
cmp dword [0x1017e00], ebx
jne 0x1012004
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x1011fd0
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x1011f64
cmp dword [0x1017e10], ebx
jne 0x1012012
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1017e0c]
jmp 0x1012033
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01012579
ret
call fcn.01012681
jmp 0x1011e5b