joyce8/EMBER2024-capa huggingface dataset:
Function at 0xc752ea
Capabilities:
Create process on windows

Disassembly:
push 8
mov eax, 0xbc8d70
call fcn.00bc132b
xor esi, esi
sub ecx, esi
je 0xc753c0
sub ecx, 1
je 0xc753a0
sub ecx, 1
je 0xc75395
sub ecx, 1
je 0xc7538a
sub ecx, 1
jne 0xc753e6
mov dword [ebp - 0x14], esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], esi
call fcn.00b8ba6f
lea eax, [ebp - 0x14]
push eax
push 0xb443f0
push 0x17
push esi
push 0xb4a158
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoCreateInstance]
test eax, eax
jns 0xc75353
push eax
push 0xb443bc
push 0x25
jmp 0xc75377
mov eax, dword [ebp - 0x14]
push 0xb4438c
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0xd0cffc]
call esi
test eax, eax
jns 0xc75380
push eax
push 0xb443bc
push 0x27
mov ecx, dword [ebp + 4]
pop edx
call fcn.00b913f8
lea ecx, [ebp - 0x14]
call fcn.00b8ba6f
jmp 0xc753e6
push 1
push esi
push esi
push 0xb44318
jmp 0xc753de
push 1
push esi
push esi
push 0xb4435c
jmp 0xc753de
test dl, dl
je 0xc753b5
mov ecx, dword [ebp + 8]
mov edx, 0xb472c8
call fcn.00c72071
test eax, eax
jne 0xc753e6
push 1
push esi
push esi
push 0xb3f1f8
jmp 0xc753de
test dl, dl
je 0xc753d5
mov ecx, dword [ebp + 8]
mov edx, 0xb472c8
call fcn.00c72071
test eax, eax
jne 0xc753e6
push 1
push esi
push esi
push 0xb442ec
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
call fcn.00bc12da
ret 4

Function at 0xc7ab75
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0xd08954]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.00c7a441
push 0xb44788
push 0xb2f5a0
push 0xb44838
push 0xb44820
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00b55e8f
add esp, 0x18
test eax, eax
js 0xc7ac0f
and dword [ebp - 0x210], 0
lea eax, [ebp - 0x210]
push eax
push 0xf003f
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenCurrentUser]
test eax, eax
jle 0xc7abe2
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0xc7abf7
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call dword [sym.imp.api_ms_win_shcore_registry_l1_1_0.dll_SHDeleteKeyW]
mov eax, dword [ebp - 0x210]
and dword [ebp - 0x210], 0
test eax, eax
je 0xc7ac0f
push eax
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00bc0ea0
mov esp, ebp
pop ebp
ret

Function at 0xc7ade7
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0xc
push 0x40
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
mov edi, dword [ebp + 8]
mov esi, eax
xor ebx, ebx
test esi, esi
je 0xc7ae36
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_GetThreadDesktop]
push ebx
push 0x2000
push esi
push 0xc7ae50
mov dword [esi], eax
mov dword [esi + 4], edi
mov dword [esi + 8], ebx
call dword [sym.imp.api_ms_win_shcore_thread_l1_1_0.dll_SHCreateThread]
test eax, eax
jne 0xc7ae3f
push esi
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
push ebx
push ebx
push edi
call dword [sym.imp.USER32.dll_EndTask]
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0xc7b600
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0xf0001
xor esi, esi
push esi
push esi
call dword [sym.imp.USER32.dll_OpenInputDesktop]
test eax, eax
je 0xc7b662
push edi
push eax
call dword [sym.imp.USER32.dll_CloseDesktop]
push dword [ebp + 0xc]
push 0x40
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0xc7b661
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call fcn.00bc13d0
add esp, 0xc
push esi
push 0x2008
push edi
push 0xc779d0
call dword [sym.imp.api_ms_win_shcore_thread_l1_1_0.dll_SHCreateThread]
test eax, eax
je 0xc7b65a
inc esi
jmp 0xc7b661
push edi
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
pop edi
mov eax, esi
pop esi
pop ebp
ret 8

Function at 0xc7ba96
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0xd08954]
xor eax, esp
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
mov dword [esp + 8], 0x40
dec eax
mov dword [esp + 0xc], 0x4100000
push esi
push edi
mov dword [esp + 0x1c], eax
lea edi, [esp + 0x44]
mov dword [esp + 0x38], eax
xor eax, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], 0xa
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
stosd dword es:[edi], eax
mov dword [esp + 0xc], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0xc]
push eax
push ebx
call dword [sym.imp.api_ms_win_core_sidebyside_l1_1_0.dll_ActivateActCtx]
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0xc7bb23
or dword [esp + 0x14], 0x10000000
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0xc7bb38
or dword [esp + 0x14], 0x40000000
mov eax, dword [ebp + 8]
lea edx, [esp + 0x10]
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x10]
mov ecx, esi
call dword [0xd0cffc]
call esi
mov esi, eax
cmp dword [esp + 0xc], ebx
je 0xc7bb63
push dword [esp + 0xc]
push ebx
call dword [sym.imp.api_ms_win_core_sidebyside_l1_1_0.dll_DeactivateActCtx]
mov ecx, dword [esp + 0x54]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00bc0ea0
mov esp, ebp
pop ebp
ret 8
Function at 0xc886fe
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [0xd08954]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ecx]
test esi, esi
jne 0xc8874e
mov edx, 0x12b9b0a5
cmp dword [ebp + 0xc], esi
jbe 0xc8873f
push edi
mov edi, dword [ebp + 8]
movzx ecx, byte [esi + edi]
imul eax, edx, 0x820
add ecx, eax
mov eax, edx
shr eax, 2
add ecx, eax
xor edx, ecx
inc esi
cmp esi, dword [ebp + 0xc]
jb 0xc88723
pop edi
and edx, 0x7fffffff
mov eax, edx
xor edx, edx
div dword [ebp + 0x10]
jmp 0xc88763
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0xd0cffc]
call esi
mov edx, eax
mov ecx, dword [ebp - 4]
mov eax, edx
xor ecx, ebp
pop esi
call fcn.00bc0ea0
mov esp, ebp
pop ebp
ret 0xc
Function at 0xc919c1
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x284
mov eax, dword [0xd08954]
xor eax, esp
mov dword [esp + 0x280], eax
push ebx
push esi
push edi
mov ebx, ecx
push 0x31
pop edx
mov edi, dword [ebx + 0x17c]
mov ecx, dword [ebx + 0xf8]
mov dword [esp + 0xc], edi
call fcn.00b99296
add eax, dword [ebx + 0x1a4]
mov esi, dword [ebx + 0x104]
mov dword [esp + 0x1c], eax
test esi, esi
je 0xc91a12
mov esi, dword [esi]
jmp 0xc91a14
xor esi, esi
push dword [ebx + 0x24]
mov dword [esp + 0x18], esi
call dword [sym.imp.USER32.dll_GetDC]
xor ecx, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ecx
test esi, esi
jle 0xc91b29
mov eax, dword [ebx + 0x104]
lea edi, [esp + 0x70]
push 0x104
mov eax, dword [eax + 4]
mov ecx, dword [eax + ecx*4]
xor eax, eax
stosd dword es:[edi], eax
mov dword [esp + 0x24], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x84]
mov esi, dword [ecx]
push eax
push ecx
mov ecx, dword [esi + 0x2c]
call dword [0xd0cffc]
call dword [esi + 0x2c]
test eax, eax
jle 0xc91ac5
push 0x3c
lea eax, [esp + 0x38]
mov dword [esp + 0x34], 0x40
push 0
push eax
call fcn.00bc259b
mov eax, dword [ebx + 0xf8]
add esp, 0xc
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x30]
mov dword [esp + 0x34], 0x2200
push eax
lea eax, [esp + 0x74]
push eax
push 0xc24
push 0xffffffffffffffff
lea eax, [esp + 0x90]
push eax
push 0
push 3
push dword [esp + 0x34]
push dword [ebx + 0xf0]
call dword [sym.imp.UxTheme.dll_DrawThemeTextEx]
mov eax, dword [esp + 0x78]
sub eax, dword [esp + 0x70]
add eax, dword [esp + 0x1c]
mov edi, dword [esp + 0xc]
cmp eax, edi
jle 0xc91adf
mov edi, eax
mov dword [esp + 0xc], edi
mov esi, dword [esp + 0x20]
mov ecx, ebx
push esi
call fcn.00c9525b
test eax, eax
je 0xc91b12
mov eax, dword [esi]
lea ecx, [esp + 0x24]
push ecx
push esi
mov esi, dword [eax + 0x3c]
mov ecx, esi
call dword [0xd0cffc]
call esi
cmp dword [esp + 0x24], edi
jle 0xc91b12
mov edi, dword [esp + 0x24]
mov dword [esp + 0xc], edi
mov ecx, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x10], ecx
cmp ecx, dword [esp + 0x14]
jl 0xc91a33
mov eax, dword [esp + 0x18]
push eax
push dword [ebx + 0x24]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [ebx + 0x24c]
cmp edi, eax
jg 0xc91b3f
mov edi, eax
mov eax, dword [ebx + 0x248]
mov dword [ebx + 0x244], edi
cmp edi, eax
jl 0xc91b51
mov edi, eax
mov ecx, dword [esp + 0x28c]
mov eax, edi
mov dword [ebx + 0x244], edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00bc0ea0
mov esp, ebp
pop ebp
ret
Function at 0xc93b88
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
push 0xffffffffffffffec
inc ebx
push dword [edi + 0x24]
call dword [sym.imp.ext_ms_win_rtcore_ntuser_window_ext_l1_1_0.dll_GetWindowLongW]
mov esi, dword [edi + 0x238]
mov edx, eax
mov ecx, dword [ebp + 8]
neg esi
sbb esi, esi
xor eax, eax
and esi, 2
and edx, 0x400000
mov edx, dword [edi + 0x218]
setne al
or esi, eax
push esi
call fcn.00c7e342
cmp eax, 0x24
jg 0xc93c6b
je 0xc93c67
cmp eax, 9
je 0xc93c47
cmp eax, 0xd
je 0xc93c14
cmp eax, 0xf
jle 0xc93cba
cmp eax, 0x12
jle 0xc93cb6
cmp eax, 0x1b
je 0xc93c8e
cmp eax, 0x20
je 0xc93c14
cmp eax, 0x23
jne 0xc93cba
push 3
jmp 0xc93c9d
mov eax, dword [edi + 0x1d0]
lea esi, [edi + 8]
push 3
pop ecx
cdq
idiv ecx
push esi
cmp edx, ebx
jne 0xc93c39
call fcn.00c8f420
push eax
push esi
call fcn.00c8f8b0
jmp 0xc93cc1
call fcn.00c8f420
push eax
push esi
call fcn.00c90390
jmp 0xc93cc1
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
mov ecx, edi
je 0xc93c5e
push ebx
jmp 0xc93c60
push 0
call fcn.00c9502e
jmp 0xc93cc1
push 2
jmp 0xc93c9d
cmp eax, 0x5d
jg 0xc93ca1
je 0xc93cb6
cmp eax, 0x26
jle 0xc93c9c
cmp eax, 0x27
je 0xc93c98
cmp eax, 0x28
jne 0xc93cba
push 4
mov ecx, edi
call fcn.00c9502e
test eax, eax
jns 0xc93cc1
push ebx
mov ecx, edi
call fcn.00b4ebb3
jmp 0xc93cc1
push 0
jmp 0xc93c9d
push ebx
mov ecx, edi
jmp 0xc93c60
cmp eax, 0xa0
jl 0xc93cba
cmp eax, 0xa5
jle 0xc93cb6
cmp eax, 0xff
jne 0xc93cba
xor ebx, ebx
jmp 0xc93cc1
mov ecx, edi
call fcn.00c92c14
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 4

Function at 0xc9590c
Capabilities:
Log keystrokes via application hook
Log keystrokes via polling

Disassembly:
cmp dword [0xd0a154], 0
jne 0xc95965
push 0
push dword [0xd0a648]
push 0xc96a60
push 0xd
call dword [sym.imp.ext_ms_win_rtcore_ntuser_window_ext_l1_1_0.dll_SetWindowsHookExW]
push 0x5b
mov dword [0xd0a154], eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0xc95965
push 0x5c
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0xc95965
call fcn.00c96d0f
mov eax, dword [0xd0a154]
test eax, eax
je 0xc95965
push eax
call dword [sym.imp.ext_ms_win_rtcore_ntuser_window_ext_l1_1_0.dll_UnhookWindowsHookEx]
and dword [0xd0a154], 0
ret

Function at 0xc95966
Capabilities:
Log keystrokes via application hook

Disassembly:
cmp dword [0xd0a158], 0
jne 0xc95989
push 0
push dword [0xd0a648]
push 0xc96aa0
push 0xd
call dword [sym.imp.ext_ms_win_rtcore_ntuser_window_ext_l1_1_0.dll_SetWindowsHookExW]
mov dword [0xd0a158], eax
ret
Function at 0xca10f2
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0xd08954]
xor eax, ebp
mov dword [ebp - 8], eax
test byte [0xd0a5c0], 1
push ebx
push esi
push edi
mov edi, ecx
je 0xca1121
mov edx, 0xb3d7c0
mov ecx, 0xd08200
call fcn.00b8e628
or dword [ebp - 0x20], 0xffffffff
cmp dword [edi + 0x16c], 1
jne 0xca1135
mov ecx, edi
call fcn.00c9efb4
and dword [ebp - 0x28], 0
and dword [ebp - 0x24], 0
cmp dword [ebp + 0x10], 0
je 0xca11ca
mov ebx, dword [edi + 0xa0]
mov eax, dword [edi + 0xa8]
mov dword [ebp - 0x1c], eax
test ebx, ebx
jne 0xca118a
mov eax, dword [edi + 0x88]
test eax, eax
je 0xca1168
mov eax, dword [eax]
jmp 0xca116a
xor eax, eax
test eax, eax
jle 0xca12cb
mov eax, dword [edi + 0x88]
mov eax, dword [eax + 4]
mov ebx, dword [eax]
xor eax, eax
mov dword [ebp - 0x1c], eax
test ebx, ebx
je 0xca12cb
cmp eax, 0xfffffffe
jl 0xca11fc
mov esi, dword [ebx]
lea ecx, [ebp - 0x18]
push ecx
push eax
push ebx
mov ecx, dword [esi + 0x3c]
call dword [0xd0cffc]
call dword [esi + 0x3c]
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
jmp 0xca11fc
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x28]
push eax
push dword [edi + 4]
call dword [sym.imp.ext_ms_win_rtcore_ntuser_window_ext_l1_1_0.dll_ScreenToClient]
push 0
lea eax, [ebp - 0x20]
mov ecx, edi
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00ca2566
mov ebx, eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
test ebx, ebx
je 0xca12cb
cmp eax, 0xffffffff
je 0xca12cb
mov eax, dword [ebx]
and dword [ebp - 0x20], 0
push ebx
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0xd0cffc]
call esi
mov esi, dword [ebp - 0x1c]
cmp eax, 1
jne 0xca1247
test esi, esi
js 0xca1247
mov eax, dword [ebx]
push esi
push ebx
mov esi, dword [eax + 0xbc]
mov ecx, esi
call dword [0xd0cffc]
call esi
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0xca128b
lea eax, [ebp - 0x28]
push eax
push dword [edi + 4]
call dword [sym.imp.ext_ms_win_rtcore_ntuser_window_ext_l1_1_0.dll_ClientToScreen]
mov eax, dword [ebx]
push dword [ebp - 0x20]
push ebx
mov esi, dword [eax + 0x18]
mov ecx, esi
call dword [0xd0cffc]
call esi
push eax
push 0
push dword [edi + 4]
lea eax, [edi + 0x18]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push eax
call fcn.00c9ccf0
jmp 0xca12cb
cmp ebx, dword [edi + 0x1d4]
jne 0xca12a3
cmp ebx, dword [edi + 0xac]
jne 0xca12cb
cmp dword [edi + 0xb0], esi
je 0xca12cb
cmp dword [ebp + 0x10], 0
setne al
movzx eax, al
push eax
mov eax, dword [ebx]
push dword [ebp - 0x20]
push ebx
mov esi, dword [eax + 0x18]
mov ecx, esi
call dword [0xd0cffc]
call esi
push eax
lea eax, [edi + 0x14]
push eax
call fcn.00c9dac0
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00bc0ea0
mov esp, ebp
pop ebp
ret 0xc
Function at 0xca13de
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [0xd08954]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
call fcn.00c9efb4
push 0xffffffffffffffec
push dword [ebx + 4]
call dword [sym.imp.ext_ms_win_rtcore_ntuser_window_ext_l1_1_0.dll_GetWindowLongW]
shr eax, 0x16
xor edi, edi
inc edi
and eax, edi
push eax
lea eax, [ebx + 0x18]
push eax
call fcn.00c1d280
mov ecx, dword [ebp + 8]
mov edx, eax
call fcn.00c7e342
cmp eax, 0x24
jg 0xca1568
je 0xca152b
cmp eax, 0xd
je 0xca14d3
cmp eax, 0x1b
je 0xca149b
cmp eax, 0x20
je 0xca14d3
cmp eax, 0x23
jne 0xca15f3
push edi
lea eax, [ebx + 0x14]
push eax
call fcn.00c9a240
mov eax, dword [ebx + 0x88]
xor esi, esi
test eax, eax
je 0xca1468
mov ecx, dword [eax]
jmp 0xca146a
mov ecx, esi
test ecx, ecx
jle 0xca15f3
test eax, eax
je 0xca1478
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov edi, dword [eax + esi*4 - 4]
push edi
mov eax, dword [edi]
mov esi, dword [eax + 0x9c]
mov ecx, esi
call dword [0xd0cffc]
call esi
push 1
push eax
push edi
jmp 0xca155c
xor esi, esi
cmp dword [ebx + 0x16c], esi
jne 0xca14ad
cmp dword [ebx + 0x94], esi
jne 0xca14b9
push esi
push esi
push 0xffffffffffffffff
push esi
mov ecx, ebx
call fcn.00ca2ed5
push edi
lea eax, [ebx + 0x14]
push eax
call fcn.00c9a240
lea ecx, [ebx + 0xb4]
call fcn.00bbfcd3
jmp 0xca15f3
xor esi, esi
cmp dword [ebx + 0xa0], esi
je 0xca15f3
mov ecx, esi
cmp eax, 0xd
jne 0xca1510
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0xca150e
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
xor ecx, ecx
test ax, ax
sets cl
lea ecx, [ecx*2 + 3]
jmp 0xca1510
mov ecx, esi
push esi
push edi
push ecx
push dword [ebx + 0xa8]
mov ecx, ebx
push dword [ebx + 0xa0]
call fcn.00ca0c9e
jmp 0xca15f3
push edi
lea eax, [ebx + 0x14]
push eax
call fcn.00c9a240
mov eax, dword [ebx + 0x88]
xor esi, esi
test eax, eax
je 0xca1545
mov eax, dword [eax]
jmp 0xca1547
mov eax, esi
test eax, eax
jle 0xca15f3
mov eax, dword [ebx + 0x88]
push edi
push esi
mov eax, dword [eax + 4]
push dword [eax]
mov ecx, ebx
call fcn.00ca260c
jmp 0xca15f3
mov ecx, eax
sub ecx, 0x25
je 0xca15d9
sub ecx, 1
je 0xca157e
sub ecx, 1
je 0xca15d9
sub ecx, 1
jne 0xca15f3
mov ecx, dword [ebx + 0xa0]
test ecx, ecx
je 0xca15d9
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0xd0cffc]
call esi
cmp eax, 3
jne 0xca15a7
xor esi, esi
push esi
push edi
push esi
jmp 0xca1513
mov eax, dword [ebx + 0xa0]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x10]
mov ecx, esi
call dword [0xd0cffc]
call esi
cmp eax, edi
jne 0xca15f3
push edi
push 2
push dword [ebx + 0xa8]
mov ecx, ebx
push dword [ebx + 0xa0]
call fcn.00c9f623
jmp 0xca15f3
xor esi, esi
cmp eax, 0x25
je 0xca15e5
cmp eax, 0x26
jne 0xca15e7
mov edi, esi
push esi
push edi
push esi
lea eax, [ebx + 0x14]
push eax
call fcn.00c9c990
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00bc0ea0
mov esp, ebp
pop ebp
ret 8
Function at 0xcab8d6
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0xd08954]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0xd0b964], 0
jne 0xcab97b
push esi
push edi
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov esi, eax
mov edi, 0x104
lea eax, [ebp - 0x418]
mov dword [ebp - 0x418], edi
push eax
lea eax, [ebp - 0x414]
push eax
push 0
push esi
call dword [sym.imp.api_ms_win_core_psapi_l1_1_0.dll_QueryFullProcessImageNameW]
test eax, eax
jne 0xcab930
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
jmp 0xcab972
push edi
lea eax, [ebp - 0x20c]
push eax
push 0xb46fe0
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0xcab972
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x20c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.api_ms_win_core_string_l1_1_0.dll_CompareStringOrdinal]
cmp eax, 2
jne 0xcab972
push esi
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetProcessId]
mov dword [0xd08e28], eax
pop edi
mov byte [0xd0b964], 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00bc0ea0
mov esp, ebp
pop ebp
ret

Function at 0xcabb40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
xor esi, esi
mov edi, ecx
push esi
push 0x36
push 6
push edi
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FindResourceExW]
test eax, eax
je 0xcabbb8
push eax
push edi
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadResource]
test eax, eax
je 0xcabbb8
push eax
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LockResource]
test eax, eax
je 0xcabbb1
push 9
pop edx
movzx ecx, word [eax]
lea eax, [eax + ecx*2]
add eax, 2
sub edx, 1
jne 0xcabb75
mov edi, dword [ebp + 0xc]
test edi, edi
je 0xcabba2
movzx edx, word [eax]
add eax, 2
mov ecx, edx
neg ecx
sbb ecx, ecx
and ecx, eax
mov eax, dword [ebp + 0x10]
mov dword [edi], ecx
mov word [eax], dx
jmp 0xcabbbf
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0xcabbbf
mov ax, word [eax]
mov word [ecx], ax
jmp 0xcabbbf
mov esi, 0x80004005
jmp 0xcabbbf
call fcn.00c70d3d
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebp
ret 0xc
Function at 0xcad110
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push 8
pop esi
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
lea eax, [ebp - 0xc]
xor ebx, ebx
push eax
push ebx
push esi
push 0xb47408
push 0xb47420
push reloc.SHCORE.dll_Ordinal_1
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
test eax, eax
jne 0xcad17d
cmp dword [ebp - 4], esi
jne 0xcad17d
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemTimeAsFileTime]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
cmp ecx, dword [ebp - 8]
jb 0xcad17d
ja 0xcad166
cmp eax, dword [ebp - 0xc]
jbe 0xcad17d
sub eax, dword [ebp - 0xc]
sbb ecx, dword [ebp - 8]
cmp ecx, 0xc9
jb 0xcad17f
ja 0xcad17d
cmp eax, 0x2a69c000
jb 0xcad17f
mov bl, 1
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xcad187
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0xd08954]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x64
mov esi, ecx
xor ebx, ebx
pop ecx
mov edi, ebx
cmp cx, ax
jne 0xcad2f3
shr eax, 0x10
xor ecx, ecx
cmp cx, ax
jne 0xcad2f3
push dword [esi + 0xc0]
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
cmp dword [0xd082a0], 5
jbe 0xcad236
push 0x2000
push ebx
mov ecx, 0xd082a0
call fcn.00b54cc0
test al, al
je 0xcad236
mov eax, dword [esi + 0x40]
and dword [ebp - 0x20], edi
push 4
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x28], ebx
pop ebx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], ebx
call dword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount64]
sub eax, dword [esi + 0xd0]
and dword [ebp - 0x18], edi
and dword [ebp - 0x10], edi
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x4c]
mov edx, 0xb39f23
push eax
push ebx
xor ebx, ebx
mov ecx, 0xd082a0
push ebx
push ebx
call fcn.00b809fe
cmp byte [esi + 0xac], 0
je 0xcad2f3
push 0x90
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [esi + 0x18]
call dword [sym.imp.ext_ms_win_rtcore_ntuser_window_ext_l1_1_0.dll_SetWindowPos]
test eax, eax
je 0xcad2f3
mov ecx, esi
mov byte [esi + 0xad], bl
call fcn.00cacf52
lea eax, [ebp - 0x50]
mov byte [esi + 0xac], bl
push eax
push 0xb28d98
push 0xb2c8c8
push ebx
push 0xb28bb0
mov dword [ebp - 0x50], ebx
call dword [sym.imp.SHELL32.dll_SHCreateItemInKnownFolder]
mov edi, eax
test edi, edi
js 0xcad2eb
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x50]
call dword [sym.imp.api_ms_win_shell_namespace_l1_1_0.dll_SHGetIDListFromObject]
mov edi, eax
test edi, edi
js 0xcad2eb
push 0x38
lea eax, [ebp - 0x44]
push ebx
push eax
call fcn.00bc259b
mov eax, dword [ebp - 0x54]
add esp, 0xc
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 0x3c
mov dword [ebp - 0x44], 0xc
push eax
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x34], 0xb47488
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push dword [ebp - 0x54]
call dword [sym.imp.api_ms_win_shell_namespace_l1_1_0.dll_ILFree]
lea ecx, [ebp - 0x50]
call fcn.00b8ba6f
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00bc0ea0
mov esp, ebp
pop ebp
ret 4