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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010fd53
mov eax, dword fs:[0]
push eax
sub esp, 0x82c
mov eax, dword [0x10152034]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
lea eax, [ebp + 0xc]
cmp dword [ebp + 0x20], 8
cmovae eax, dword [ebp + 0xc]
push eax
push str.SYSTEMCurrentControlSet_serviceseventlog
lea eax, [ebp - 0x834]
push 0x10123aec
push eax
call fcn.10040660
add esp, 0x10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x838]
cmp dword [ebp - 0x820], 8
lea eax, [ebp - 0x834]
push ecx
cmovae eax, dword [ebp - 0x834]
push 0x20019
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x838], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10031d56
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RegOpenKeyEx_fail_lasterror:0x_x_ret__0x_x
push 1
push 0x28
push 0x10123b7c
push 0x10123bb4
call fcn.100ff930
add esp, 0x1c
xor bl, bl
jmp 0x10031e32
xor eax, eax
xor bl, bl
push 0x7fe
push eax
mov word [ebp - 0x814], ax
lea eax, [ebp - 0x812]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x81c], 0x800
lea eax, [ebp - 0x81c]
mov dword [ebp - 0x818], 1
push eax
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x818]
push eax
push 0
push str.EventMessageFile
push dword [ebp - 0x838]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10031e02
cmp word [ebp - 0x814], ax
jne 0x10031dd4
xor ecx, ecx
lea eax, [ebp - 0x814]
push ecx
push eax
mov ecx, esi
call fcn.10002100
mov bl, 1
jmp 0x10031e26
lea ecx, [ebp - 0x814]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10031de0
sub ecx, edx
lea eax, [ebp - 0x814]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.10002100
mov bl, 1
jmp 0x10031e26
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RegQueryValueEx_fail_lasterror:0x_x_ret__0x_x
push 1
push 0x37
push 0x10123c38
push str.CEventProviderManager::QueryEventMessageFile
call fcn.100ff930
add esp, 0x1c
push dword [ebp - 0x838]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x820], 8
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x10031e4c
push dword [ebp - 0x834]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x820], 7
cmp dword [ebp + 0x20], 8
mov dword [ebp - 0x824], 0
mov word [ebp - 0x834], ax
jb 0x10031e77
push dword [ebp + 0xc]
call esi
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1010a06b
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x10036550
Capabilities:
Create thread
Initialize winsock library
Monitor local ipv4 address changes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x10152034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push str.Start_Location_Monitor.
push 1
push 0xcb
push 0x101258a8
push 0x101258dc
mov esi, ecx
call fcn.100ff930
add esp, 0x14
lea eax, [ebp - 0x198]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x100365c9
push str.WSAStartup_failed.
push 1
push 0xd2
push 0x10125910
push 0x10125944
call fcn.100ff930
add esp, 0x14
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1010a06b
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x14], eax
test eax, eax
jne 0x10036642
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateEvent_failed:_d
push 1
push 0xda
push 0x1012597c
push 0x101259b0
call fcn.100ff930
mov eax, dword [esi + 0x14]
add esp, 0x18
test eax, eax
je 0x10036618
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x14], 0
mov eax, dword [esi]
test eax, eax
je 0x1003662b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1010a06b
mov esp, ebp
pop ebp
ret
lea eax, [esi + 4]
push eax
push 0
call dword [sym.imp.IPHLPAPI.DLL_NotifyAddrChange]
cmp eax, 0x3e5
je 0x1003668c
push eax
push str.NotifyAddrChange_failed:__d
push 1
push 0xe3
push 0x101259ec
push 0x10125a20
call fcn.100ff930
add esp, 0x18
mov ecx, esi
call fcn.10035bd0
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1010a06b
mov esp, ebp
pop ebp
ret
push 0
push 0
push esi
push 0x10036050
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x100366c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateThread_failed:_d
push 1
push 0xec
push str..._srcMoniterHelperlocationLocationMonitor.cpp
push str.CLocationMonitor::StartMonitor
jmp 0x1003666c
mov dword [esi], eax
call fcn.100366e0
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.1010a06b
mov esp, ebp
pop ebp
ret
Function at 0x10037050
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x10152034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x2c
mov esi, eax
lea eax, [ebp - 0x30]
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x34], 0x30
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0x10037040
mov dword [ebp - 0x20], esi
push eax
mov dword [ebp - 0xc], 0x10125adc
mov dword [ebp - 0x10], 0
call dword [sym.imp.USER32.dll_RegisterClassExW]
test ax, ax
jne 0x100370e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10125af8
push 3
push 0x33
push 0x10125b38
push 0x10125b84
call fcn.100ffcc0
add esp, 0x18
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1010a06b
mov esp, ebp
pop ebp
ret
push 0
push esi
push 0
push 0
push 0x64
push 0x64
push 0x64
push 0x64
push 0xcf0000
push 0x10125b98
push 0x10125bb4
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
jne 0x10037140
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10125bd0
push 3
push 0x39
push 0x10125c10
push str.CreateWnd
call fcn.100ffcc0
add esp, 0x18
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1010a06b
mov esp, ebp
pop ebp
ret
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.1010a06b
mov esp, ebp
pop ebp
ret
Function at 0x100390a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10110556
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x10152034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor eax, eax
mov dword [ebp - 0x24c], 0
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
test eax, eax
je 0x10039203
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x264]
call fcn.10002200
push str.InjectUwp.exe
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x248]
call fcn.10007580
mov ebx, eax
add esp, 4
lea eax, [ebp - 0x230]
cmp eax, ebx
je 0x100391bb
cmp dword [ebp - 0x21c], 8
jb 0x10039192
push dword [ebp - 0x230]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x21c], 7
push ebx
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
call fcn.10001be0
cmp dword [ebp - 0x234], 8
jb 0x100391cf
push dword [ebp - 0x248]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x234], 7
mov byte [ebp - 4], al
cmp dword [ebp - 0x250], 8
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
jb 0x10039203
push dword [ebp - 0x264]
call esi
add esp, 4
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10039234
push 0x3d
push str.C:Program_Files__x86_Windows_Assistant_AppPSInjectUwp.exe
lea ecx, [ebp - 0x230]
call fcn.10002100
lea edx, [ebp - 0x230]
mov ecx, edi
call fcn.1002ccc0
cmp dword [ebp - 0x21c], 8
jb 0x10039255
push dword [ebp - 0x230]
call esi
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1010a06b
mov esp, ebp
pop ebp
ret
Function at 0x1003bbf0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x1003bc09
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1003bc44
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x1003bc40
lea ebx, [ebx]
cmp esi, edx
jae 0x1003bc44
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x1003bc30
cmp esi, edx
jb 0x1003bc4b
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10041490
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10110ee8
mov eax, dword fs:[0]
push eax
push ebx
mov eax, dword [0x10152034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0
call fcn.10041500
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne bl
cmp dword [ebp + 0x1c], 8
jb 0x100414eb
push dword [ebp + 8]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10046d40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], edx
mov dword [edi], 0
cmp dword [0x10152ce8], 0
je 0x10046d97
mov eax, dword [0x101570b8]
test eax, eax
je 0x10046d70
push eax
call dword [0x10152d40]
add esp, 4
lea edx, [ebp - 4]
mov ecx, 0x14
call fcn.100443e0
mov eax, dword [0x101570b8]
test eax, eax
je 0x10046d92
push eax
call dword [0x10152d48]
mov esi, dword [ebp - 4]
jmp 0x10046da1
mov esi, dword [ebp - 4]
jmp 0x10046da4
push 0x14
call dword [0x10152d10]
mov esi, eax
add esp, 4
test esi, esi
jne 0x10046db2
lea eax, [esi + 7]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x10152cec], 0
mov ebx, dword [ebp + 8]
je 0x10046dfd
mov eax, dword [0x10152df0]
test eax, eax
je 0x10046dd5
push 0xc8
call eax
add esp, 4
test eax, eax
jne 0x10046dfd
mov eax, dword [ebp - 8]
mov dword [esi + 8], eax
lea eax, [esi + 4]
push eax
push 0
push esi
push 0x10046d10
push 0
push 0
mov dword [esi + 0xc], ebx
call dword [sym.imp.MSVCR120.dll__beginthreadex]
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x10046e0b
xorps xmm0, xmm0
movdqu xmmword [esi], xmm0
mov dword [esi + 0x10], 0
cmp dword [esi + 8], 0
jne 0x10046e24
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push ebx
mov dword [esi + 4], eax
call dword [ebp - 8]
add esp, 4
mov dword [esi + 0x10], eax
mov dword [edi], esi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10067d70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
mov ebx, edx
mov esi, ecx
push edi
mov ecx, ebx
call fcn.1005aaf0
mov edi, dword [ebx + 0x18]
xor eax, eax
mov word [ebp - 0x2c], ax
mov dword [ebp - 0x1c], eax
movsx eax, byte [ebx + 0x44]
mov dword [ebp - 0x14], esi
mov esi, dword [ebx + 0x1c]
mov eax, dword [ebx + eax*4 + 0x78]
mov ecx, dword [eax + 0x3c]
movzx eax, word [ebx + 0x20]
sub ecx, edi
cmp eax, ecx
cmovb ecx, eax
cmp esi, ecx
ja 0x10067dc1
mov eax, 0x1010
mov dword [ebp - 0x24], edi
mov word [ebp - 0x2c], ax
mov dword [ebp - 0x28], esi
jmp 0x10067de0
lea eax, [ebp - 0x34]
xor edx, edx
push eax
push esi
mov ecx, ebx
call fcn.10062cd0
add esp, 8
test eax, eax
jne 0x10067ea1
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x28]
mov al, byte [edi]
cmp al, 0x80
jae 0x10067deb
movzx ebx, al
jmp 0x10067df8
lea edx, [ebp - 8]
mov ecx, edi
call fcn.10048730
mov ebx, dword [ebp - 8]
cmp ebx, 3
jb 0x10067e67
cmp ebx, esi
jg 0x10067e67
lea ecx, [edi - 1]
add ecx, ebx
mov al, byte [ecx]
cmp al, 0x80
jae 0x10067e11
movzx edx, al
jmp 0x10067e1c
lea edx, [ebp - 8]
call fcn.10048730
mov edx, dword [ebp - 8]
lea eax, [edx - 1]
cmp eax, 8
ja 0x10067e67
cmp edx, 7
je 0x10067e67
movzx ecx, byte [edx + 0x10129990]
lea eax, [ecx + ebx]
cmp esi, eax
jb 0x10067e67
sub esi, ecx
lea eax, [ebp - 0x5c]
push eax
lea ecx, [edi + esi]
call fcn.10066b90
mov ecx, dword [ebp + 8]
add esp, 4
mov eax, dword [ebp - 0x5c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x58]
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x34]
call fcn.100623b0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test dword [ebp - 0x2c], 0x2460
jne 0x10067e76
cmp dword [ebp - 0x1c], 0
je 0x10067e7e
lea ecx, [ebp - 0x34]
call fcn.10062310
push 0x1013e274
push 0x12800
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10046b30
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10081df0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ecx + 0x14]
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], eax
jmp 0x10081e10
xor edi, edi
test eax, eax
jle 0x10081e9d
lea ebx, [ebx]
mov ecx, edi
cmp edi, 2
jge 0x10081e2f
xor ecx, 1
mov dword [ebp - 0xc], ecx
jmp 0x10081e32
mov dword [ebp - 0xc], edi
mov esi, dword [ebp + 8]
test esi, esi
je 0x10081ee6
mov bl, byte [esi]
mov edx, ecx
mov ecx, dword [ebp - 8]
add edx, edx
mov eax, esi
mov ecx, dword [ecx + 0x10]
mov edx, dword [ecx + edx*8]
movzx ecx, bl
movzx esi, byte [ecx + 0x10128a70]
movzx ecx, byte [edx]
movzx ecx, byte [ecx + 0x10128a70]
sub esi, ecx
jne 0x10081e94
sub edx, eax
mov dword [ebp - 0x14], edx
jmp 0x10081e70
test bl, bl
je 0x10081edf
movzx ecx, byte [edx + eax + 1]
inc eax
movzx edx, byte [ecx + 0x10128a70]
mov bl, byte [eax]
movzx ecx, bl
movzx esi, byte [ecx + 0x10128a70]
sub esi, edx
mov edx, dword [ebp - 0x14]
je 0x10081e70
mov ebx, dword [ebp - 4]
inc edi
cmp edi, dword [ebp - 0x10]
jl 0x10081e20
mov dl, byte [ebx]
movzx eax, dl
movzx eax, byte [eax + 0x10128a70]
sub eax, 0x73
jne 0x10081ed6
mov esi, str.sqlite_master
sub esi, ebx
test dl, dl
je 0x10081f13
movzx eax, byte [esi + ebx + 1]
inc ebx
movzx ecx, byte [eax + 0x10128a70]
mov dl, byte [ebx]
movzx eax, dl
movzx eax, byte [eax + 0x10128a70]
sub eax, ecx
je 0x10081eb5
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x10081e94
mov ebx, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 8]
add ecx, ecx
mov edx, ebx
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + ecx*8 + 0xc]
add ecx, 8
call fcn.10049050
add esp, 4
test eax, eax
je 0x10081e97
mov eax, dword [eax + 8]
test eax, eax
jne 0x10081ed8
jmp 0x10081e97
mov eax, dword [ebp - 8]
mov edi, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov edx, dword [eax + 0x10]
test edi, edi
jne 0x10081f29
neg edx
sbb edx, edx
jmp 0x10081f73
test edx, edx
je 0x10081ed6
movzx eax, byte [edx]
mov esi, edi
mov bl, byte [edi]
movzx ecx, byte [eax + 0x10128a70]
movzx eax, bl
movzx eax, byte [eax + 0x10128a70]
sub eax, ecx
jne 0x10081f71
sub edx, edi
jmp 0x10081f50
test bl, bl
je 0x10081f71
movzx eax, byte [edx + esi + 1]
inc esi
movzx ecx, byte [eax + 0x10128a70]
mov bl, byte [esi]
movzx eax, bl
movzx eax, byte [eax + 0x10128a70]
sub eax, ecx
je 0x10081f50
mov edx, eax
test edx, edx
jne 0x10081ed6
mov eax, dword [ebp - 0x10]
mov ebx, str.sqlite_temp_master
mov dword [ebp - 4], ebx
jmp 0x10081e10
Function at 0x10082140
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push edi
mov dword [ebp - 0xc], edx
xor eax, eax
mov edx, dword [ecx + 0x14]
xor edi, edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], edx
test edx, edx
jle 0x100821fb
mov edx, dword [ecx + 0x10]
push ebx
mov dword [ebp - 0x14], edx
push esi
mov eax, edi
cmp edi, 2
jge 0x10082171
xor eax, 1
shl eax, 4
mov ecx, dword [eax + edx + 0xc]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x100821d6
mov ebx, dword [eax + edx]
mov esi, ecx
mov al, byte [ecx]
movzx ecx, byte [ebx]
movzx edx, byte [ecx + 0x10128a70]
movzx ecx, al
movzx ecx, byte [ecx + 0x10128a70]
sub ecx, edx
jne 0x100821c4
sub ebx, esi
test al, al
je 0x100821d2
movzx ecx, byte [ebx + esi + 1]
inc esi
movzx edx, byte [ecx + 0x10128a70]
mov al, byte [esi]
movzx ecx, al
movzx ecx, byte [ecx + 0x10128a70]
sub ecx, edx
je 0x100821a3
mov eax, dword [ebp - 4]
inc edi
cmp edi, dword [ebp - 0x10]
jge 0x100821f9
mov edx, dword [ebp - 0x14]
jmp 0x10082167
test ecx, ecx
jne 0x100821c4
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0xc]
add ecx, 0x18
push eax
call fcn.10049050
add esp, 4
test eax, eax
je 0x10082200
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
test eax, eax
je 0x100821c7
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x100821c7
Function at 0x100bd260
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
mov edi, ecx
mov dword [ebp - 8], edx
test edi, edi
jne 0x100bd277
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push 2
push 0
push edi
call dword [sym.imp.MSVCR120.dll_fseek]
push edi
call dword [sym.imp.MSVCR120.dll_ftell]
push edi
mov ebx, eax
call dword [sym.imp.MSVCR120.dll_rewind]
add esp, 0x14
test ebx, ebx
jne 0x100bd2ac
push edi
call dword [sym.imp.MSVCR120.dll_fclose]
add esp, 4
xor eax, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push esi
lea esi, [ebx + 1]
push esi
call dword [sym.imp.MSVCR120.dll_malloc]
push esi
push 0
push eax
mov dword [ebp - 4], eax
call sub.MSVCR120.dll_memset
mov esi, dword [ebp - 4]
push edi
push ebx
push 1
push esi
call dword [sym.imp.MSVCR120.dll_fread]
push edi
call dword [sym.imp.MSVCR120.dll_fclose]
mov eax, dword [ebp - 8]
add esp, 0x24
test eax, eax
je 0x100bd2e4
mov dword [eax], ebx
mov eax, esi
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x100c0820
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101112c6
mov eax, dword fs:[0]
push eax
sub esp, 0x444
mov eax, dword [0x10152034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x444], 0
push str.C:Program_Files__x86_Windows_Assistant_AppPSConfiguration.ini
lea ecx, [ebp - 0x428]
call fcn.10007fa0
mov dword [ebp - 4], 0
mov byte [ebp - 0x410], 0
push 0x3ff
push 0
lea eax, [ebp - 0x40f]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x428]
call fcn.10006d10
push eax
push 0x400
lea ecx, [ebp - 0x410]
push ecx
push 0
push str.UniquePC
push str.Setting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [ebp - 0x410]
push edx
lea ecx, [ebp - 0x440]
call fcn.10007fa0
mov byte [ebp - 4], 1
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x44c], esp
lea eax, [ebp - 0x440]
push eax
call fcn.10007d30
mov dword [ebp - 0x450], eax
mov ecx, dword [ebp + 8]
call fcn.10040910
add esp, 0x18
mov dword [ebp - 0x448], eax
mov ecx, dword [ebp - 0x444]
or ecx, 1
mov dword [ebp - 0x444], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x440]
call fcn.10008000
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x428]
call fcn.10008000
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1010a06b
mov esp, ebp
pop ebp
ret
Function at 0x100c1d10
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101113e8
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x10152034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x258], eax
cmp dword [ebp - 0x258], 0xffffffff
jne 0x100c1d59
jmp 0x100c1e85
mov dword [ebp - 0x254], 0
push 0x228
push 0
lea eax, [ebp - 0x250]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x254], 0x22c
lea ecx, [ebp - 0x254]
push ecx
mov edx, dword [ebp - 0x258]
push edx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x25c], 0xffffffff
cmp dword [ebp - 0x260], 0
je 0x100c1e22
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x28]
call fcn.10002200
mov dword [ebp - 4], 0
push 0
push 0x1012c698
lea ecx, [ebp - 0x28]
call fcn.10006da0
cmp eax, 0xffffffff
je 0x100c1df7
mov ecx, dword [ebp - 0x24c]
mov dword [ebp - 0x25c], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10002300
jmp 0x100c1e22
lea edx, [ebp - 0x254]
push edx
mov eax, dword [ebp - 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_Process32NextW]
mov dword [ebp - 0x260], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10002300
jmp 0x100c1da7
mov ecx, dword [ebp - 0x258]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x25c], 0xffffffff
jne 0x100c1e58
push str.find_service_process_fail_
push 1
push 0x221
push 0x1012c6d0
push 0x1012c6f0
call fcn.100ff930
add esp, 0x14
jmp 0x100c1e85
push str.kill_service_process_
push 1
push 0x224
push 0x1012c71c
push str.KillServiceProcess
call fcn.100ff930
add esp, 0x14
mov edx, dword [ebp - 0x25c]
push edx
call fcn.100ed360
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1010a06b
mov esp, ebp
pop ebp
ret
Function at 0x100c2480
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10111508
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x10152034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x64], 0
push 0x40
push 0
lea eax, [ebp - 0x60]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x64], 0x44
mov dword [ebp - 0x38], 0x101
xor ecx, ecx
mov word [ebp - 0x34], cx
mov dword [ebp - 0x20], 0
xor edx, edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x64]
push ecx
push 0
push 0
push 0
push 1
push 0
push 0
push 0
lea ecx, [ebp + 8]
call fcn.100bfda0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x100c2551
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1012c7fc
push 1
push 0x28d
push 0x1012c840
push 0x1012c82c
call fcn.100ffcc0
add esp, 0x18
mov byte [ebp - 0xd], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10002300
mov al, byte [ebp - 0xd]
jmp 0x100c259d
movzx edx, byte [ebp + 0x20]
test edx, edx
je 0x100c2567
mov eax, dword [ebp + 0x24]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp - 0x20], 0
je 0x100c2577
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1c], 0
je 0x100c2587
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0xe], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10002300
mov al, byte [ebp - 0xe]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret