joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a1540
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0xea8708]
xor edx, edx
cmp eax, edx
jne 0x4a1566
xor eax, eax
mov byte [eax + 0xea8608], al
inc eax
cmp eax, 0x100
jl 0x4a154e
mov dword [0xea8708], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0xea8608
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4a15f7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4a15ca
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4a1598
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4a1600
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4a1653
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4a163a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a7fe0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d723e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004a8900
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0xe4e00c
call fcn.004c76b7
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4a8073
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004c76b7
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4a806c
push 0
mov ecx, eax
call fcn.0049f180
mov dword [esi + 0xc], eax
jmp 0x4a8075
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4a8075
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x13121500
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x13232aa0]
test eax, eax
jne 0x1312154e
mov dword [0x13232aa0], 1
call fcn.13178100
test eax, eax
push 0x104
push 0x13232aa4
je 0x13121548
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jbe 0x1312154e
push str.SysWow64
push 0x13232aa4
call fcn.1314ca3a
add esp, 8
mov eax, 0x13232aa4
ret
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov eax, 0x13232aa4
ret
Function at 0x13125c20
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x131f60a0
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov ecx, 8
xor eax, eax
push esi
mov esi, dword [esp + 0x3c]
push edi
mov edi, esi
rep stosd dword es:[edi], eax
call fcn.13128820
test eax, eax
jne 0x13125c56
mov eax, dword [esp + 0x3c]
push esi
push 0x13125bc0
mov dword [esi + 4], eax
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [esi + 0xc], 0x1000000
jne 0x13125cca
lea ecx, [esp + 8]
call fcn.131418d0
push ecx
mov dword [esp + 0x38], 0
mov ecx, esp
mov dword [esp + 0x44], esp
push str.im_line_enable
call fcn.13184eb0
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 0
call fcn.13141ae0
lea ecx, [esp + 8]
call fcn.13141e20
cmp eax, 1
je 0x13125cb9
mov dword [esi + 0xc], 0
mov dword [esi], 0
lea ecx, [esp + 8]
mov dword [esp + 0x34], 0xffffffff
call fcn.13141a40
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
mov ecx, dword [esp + 0x2c]
pop edi
setne al
mov dword fs:[0], ecx
pop esi
add esp, 0x30
ret

Function at 0x13128c90
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x13233800]
cmp eax, 0x20000
je 0x13128d28
cmp dword [0x13233178], 1
je 0x13128d28
test eax, eax
jne 0x13128d25
cmp dword [0x132337fc], 0x20000
jne 0x13128d25
mov eax, dword [0x1323316c]
push esi
and eax, 2
cmp al, 2
je 0x13128d15
or dword [0x1323316c], 2
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
push str.db.js
push esi
call fcn.13173730
add esp, 8
test eax, eax
jne 0x13128d15
push str.__type
push esi
call fcn.13173730
add esp, 8
test eax, eax
jne 0x13128d15
push str.__reporter_url
push esi
call fcn.13173730
add esp, 8
test eax, eax
jne 0x13128d15
mov dword [0x13233178], 1
mov ecx, dword [0x13233178]
xor eax, eax
cmp ecx, 1
pop esi
sete al
ret
xor eax, eax
ret
mov eax, 1
ret

Function at 0x13128d30
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x13233800]
test eax, eax
jne 0x13128d80
cmp dword [0x132337fc], 8
jne 0x13128d80
push str.zalocap.exe
push 0x132335f0
call fcn.1314d0bf
add esp, 8
test eax, eax
jne 0x13128d5e
mov eax, 1
ret
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
test eax, eax
je 0x13128d80
push str.pluginscapture_
push eax
call fcn.1314cf10
add esp, 8
test eax, eax
je 0x13128d80
mov eax, 1
ret
xor eax, eax
ret

Function at 0x13128d90
Capabilities:
Accept command line arguments

Disassembly:
cmp dword [0x132337fc], 0x20000
jne 0x13128dd4
push str.cloudhub.exe
push 0x132335f0
call fcn.1314d0bf
add esp, 8
test eax, eax
jne 0x13128dd4
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
test eax, eax
je 0x13128dd4
push str.___renderer_client_id
push eax
call fcn.1314cf10
add esp, 8
test eax, eax
je 0x13128dd4
mov eax, 1
ret
xor eax, eax
ret
Function at 0x13129b80
Capabilities:
Access peb ldr_data
Get ntdll base address
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
push esi
xor esi, esi
cmp eax, esi
jne 0x13129b97
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + 0x1c]
mov eax, dword [edx]
xor edx, edx
mov edi, dword [eax + 8]
mov ecx, dword [edi + 0x3c]
mov eax, dword [ecx + edi + 0x78]
mov ecx, dword [eax + edi + 0x1c]
add eax, edi
add ecx, edi
mov dword [ebp - 0x14], ecx
mov ebx, dword [eax + 0x18]
mov ecx, dword [eax + 0x20]
mov eax, dword [eax + 0x24]
add ecx, edi
add eax, edi
cmp ebx, esi
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], eax
jbe 0x13129c46
mov dword [ebp - 4], ecx
mov eax, dword [ecx]
mov esi, dword [ebp + 8]
add eax, edi
mov bl, byte [eax]
mov cl, bl
cmp bl, byte [esi]
jne 0x13129c0f
test cl, cl
je 0x13129c0b
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [esi + 1]
jne 0x13129c0f
add eax, 2
add esi, 2
test cl, cl
jne 0x13129beb
xor eax, eax
jmp 0x13129c14
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x13129c35
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
inc edx
add ecx, 4
cmp edx, eax
mov dword [ebp - 4], ecx
jb 0x13129be4
mov esi, dword [ebp - 0xc]
pop edi
mov eax, esi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x10]
xor eax, eax
mov ax, word [ecx + edx*2]
mov edx, dword [ebp - 0x14]
mov esi, dword [edx + eax*4]
add esi, edi
pop edi
mov eax, esi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1312d310
Capabilities:
Get graphical window text

Disassembly:
call fcn.131781e0
test eax, eax
je 0x1312d32f
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
ret
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
xor ebp, ebp
test edi, edi
je 0x1312d3b0
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x1312d3b0
lea ecx, [esi + esi]
xor eax, eax
mov edx, ecx
push esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call fcn.131e7f70
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1312d3b0
mov ecx, esi
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push esi
and ecx, 3
push ebx
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ebp, eax
test ebp, ebp
je 0x1312d3b0
push esi
mov esi, dword [esp + 0x1c]
push esi
push 0xffffffffffffffff
push ebx
xor ebp, ebp
call fcn.1312a460
add esp, 0x10
test eax, eax
je 0x1312d3b0
push esi
call fcn.1314cebe
add esp, 4
mov ebp, eax
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret
Function at 0x1312d860
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get kernel32 base address

Disassembly:
mov ecx, 0x132333a0
jmp 0x1312d870
push 0xffffffffffffffff
push 0x131f61c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, ecx
mov ecx, dword [0x13200db4]
mov dword [esp], eax
mov dword [eax + 0x14], ecx
mov edx, dword [0x13200db4]
xor ecx, ecx
mov dword [esp + 0xc], ecx
mov dword [eax + 0x18], edx
mov edx, dword [0x13200db4]
mov byte [esp + 0xc], 1
mov dword [eax + 0x1c], edx
mov edx, dword [0x13200db4]
mov byte [esp + 0xc], 2
mov dword [eax + 0x20], edx
mov edx, dword [0x13200db4]
mov byte [esp + 0xc], 3
mov dword [eax + 0x24], edx
mov edx, dword [0x13200db4]
mov byte [esp + 0xc], 4
mov dword [eax + 0x28], edx
mov edx, dword [0x13200db4]
mov byte [esp + 0xc], 5
mov dword [eax + 0x2c], edx
mov edx, dword [0x13200db4]
mov byte [esp + 0xc], 6
mov dword [eax + 0x30], edx
mov byte [esp + 0xc], 7
mov word [eax], cx
mov word [eax + 2], cx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 4]
mov dword [esp + 0xc], 0xffffffff
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x1312e330
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x131f6292
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
push ebx
push esi
mov esi, dword [esp + 0x130]
mov dword [esp + 0x118], 0
test esi, esi
je 0x1312e506
mov ebx, dword [esp + 0x134]
test ebx, ebx
je 0x1312e506
mov eax, dword [esp + 0x138]
test eax, eax
je 0x1312e506
push ebp
push edi
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
push eax
push esi
rep stosd dword es:[edi], eax
call fcn.13196a80
add esp, 8
test eax, eax
je 0x1312e4cd
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1312e4cd
lea edi, [ebx + 1]
push edi
call fcn.131e7f70
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x1312e4cd
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
mov dword [esp + 0x14], 0
push 0
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x18]
push eax
push ebx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x1312e4c4
mov esi, dword [esp + 0x140]
push esi
push ebp
call fcn.1314d560
add esp, 8
test eax, eax
je 0x1312e477
push 0x3d
push eax
call fcn.1314d350
mov esi, eax
add esp, 8
test esi, esi
je 0x1312e4c4
inc esi
push 0x1321b7b4
push esi
call fcn.1314d560
add esp, 8
test eax, eax
je 0x1312e4c4
sub eax, esi
cmp eax, 0x104
jl 0x1312e466
mov eax, 0x104
push eax
lea ecx, [esp + 0x1c]
push esi
push ecx
call fcn.1314d410
add esp, 0xc
jmp 0x1312e4c4
push esi
lea ecx, [esp + 0x14]
call fcn.13165290
mov eax, dword [0x13234310]
mov dword [esp + 0x12c], 1
test eax, eax
je 0x1312e4b3
mov edx, dword [esp + 0x10]
push edx
push str.GetConfigContent_Cannot_Found___s_
push str.LINE
push 0xffffffffffffffff
push 0x132342a4
call fcn.131403d0
add esp, 0x14
lea ecx, [esp + 0x10]
mov byte [esp + 0x12c], 0
call fcn.13165c10
push ebp
call fcn.131e7f99
add esp, 4
mov esi, dword [esp + 0x134]
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.13165290
pop edi
mov eax, esi
pop ebp
pop esi
mov dword [esp + 0x114], 1
pop ebx
mov ecx, dword [esp + 0x114]
mov dword fs:[0], ecx
add esp, 0x120
ret
mov esi, dword [esp + 0x12c]
push 0x13233438
mov ecx, esi
call fcn.131653a0
mov dword [esp + 0x118], 1
mov ecx, dword [esp + 0x11c]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x120
ret
Function at 0x1312ed40
Capabilities:
Log keystrokes via application hook

Disassembly:
push ecx
mov eax, dword [0x1323342c]
push esi
test eax, eax
jne 0x1312edb2
call fcn.1312ec00
test eax, eax
je 0x1312edb2
push edi
mov edi, dword [esp + 0x10]
lea eax, [esp + 8]
mov dword [esp + 8], 0
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, eax
mov eax, dword [0x13234310]
test eax, eax
je 0x1312ed98
mov ecx, dword [esp + 8]
push esi
push ecx
push edi
push str.HookLineBoard___x____x____x_
push str.LINE
push 0xffffffffffffffff
push 0x132342a4
call fcn.131403d0
add esp, 0x1c
test esi, esi
pop edi
je 0x1312edb2
push esi
push 0
push 0x1312ece0
push 2
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x1323342c], eax
pop esi
pop ecx
ret
Function at 0x1312fba0
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x1312fbd3
mov eax, dword [0x13234310]
test eax, eax
je 0x1312fbcc
push str.deal_module_is_Loaded
push 0x132185f8
push 0xffffffffffffffff
push 0x132342a4
call fcn.131403d0
add esp, 0x10
mov eax, 1
pop esi
ret
push str.winimhcd.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [esi + 0x28], eax
jne 0x1312fc16
mov eax, dword [0x13234310]
test eax, eax
je 0x1312fd31
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.deal_module_load_failed__err__0x_08x_
push 0x132185f8
push 0xffffffffffffffff
push 0x132342a4
call fcn.131403d0
add esp, 0x14
xor eax, eax
pop esi
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.StartDeal
push eax
call edi
mov dword [esi + 4], eax
mov eax, dword [esi + 0x28]
push str.StopDeal
push eax
call edi
mov ecx, dword [esi + 0x28]
push str.GetDealDlgWnd
push ecx
mov dword [esi + 8], eax
call edi
mov edx, dword [esi + 0x28]
push str.SetAgentInfo
push edx
mov dword [esi + 0xc], eax
call edi
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x28]
push str.SetNotRecordContentFlag
push eax
call edi
mov ecx, dword [esi + 0x28]
push str.SetUseCtrlAFlag
push ecx
mov dword [esi + 0x14], eax
call edi
mov edx, dword [esi + 0x28]
push str.GetIMCtrlDataFromCD
push edx
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x28]
push str.SetNotRecordFlag
push eax
call edi
mov ecx, dword [esi + 0x28]
push str.SetPhotoWarningInfo
push ecx
mov dword [esi + 0x20], eax
call edi
mov ecx, dword [esi + 4]
mov dword [esi + 0x24], eax
test ecx, ecx
pop edi
je 0x1312fd01
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1312fd01
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x1312fd01
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x1312fd01
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x1312fd01
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x1312fd01
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x1312fd01
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x1312fd01
test eax, eax
je 0x1312fd01
mov eax, dword [0x13234310]
test eax, eax
je 0x1312fcf7
push str.deal_module_load_successful
push 0x132185f8
push 0xffffffffffffffff
push 0x132342a4
call fcn.131403d0
add esp, 0x10
mov eax, 1
mov dword [esi + 0x2c], eax
pop esi
ret
mov eax, dword [0x13234310]
test eax, eax
je 0x1312fd2a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.get_deal_function_failed__err__0x_08x_
push 0x132185f8
push 0xffffffffffffffff
push 0x132342a4
call fcn.131403d0
add esp, 0x14
mov ecx, esi
call fcn.1312fd40
xor eax, eax
pop esi
ret
Function at 0x13137870
Capabilities:
Set global application hook

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x13137956
mov eax, dword [0x13234310]
test eax, eax
je 0x131378a0
push esi
push str.setthook___08x_
push 0x132185f8
push 0xffffffffffffffff
push 0x132342a4
call fcn.131403d0
add esp, 0x14
push edi
call fcn.13137960
mov edi, dword [sym.imp.USER32.dll_SetWindowsHookExW]
push esi
push 0
push 0x13136c10
push 4
call edi
push esi
push 0
push 0x13136c40
push 0xc
mov dword [0x13233c60], eax
call edi
push esi
push 0
push 0x13136f90
push 3
mov dword [0x13233c64], eax
call edi
mov ecx, dword [0x13233c60]
mov dword [0x13233c68], eax
test ecx, ecx
pop edi
je 0x1313792e
mov ecx, dword [0x13233c64]
test ecx, ecx
je 0x1313792e
test eax, eax
je 0x1313792e
mov ecx, dword [0x13234310]
mov dword [0x13233c70], 1
test ecx, ecx
je 0x13137927
push eax
push esi
push str.setthook_successful___08x____08x_
push 0x132185f8
push 0xffffffffffffffff
push 0x132342a4
call fcn.131403d0
add esp, 0x18
mov eax, 1
pop esi
ret
mov eax, dword [0x13234310]
test eax, eax
je 0x13137951
push esi
push str.setthook_failed___08x_
push 0x132185f8
push 0xffffffffffffffff
push 0x132342a4
call fcn.131403d0
add esp, 0x14
call fcn.13137960
xor eax, eax
pop esi
ret

Function at 0x13138630
Capabilities:
Terminate thread

Disassembly:
jmp 0x131a04b0
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
jne 0x131a04c4
xor eax, eax
pop esi
add esp, 8
ret
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 8]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 8]
push 0
push ecx
push 2
mov dword [esp + 0x18], edx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x131a0510
mov ecx, dword [esi + 8]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi + 0x10]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push edx
call edi
mov eax, dword [esi + 0x14]
push eax
call edi
mov dword [esi + 0xc], 0
pop edi
mov eax, 1
pop esi
add esp, 8
ret
Function at 0x1313b5a0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x131f6710
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
push edi
mov edi, ecx
push 0x13233438
lea ecx, [esp + 0xc]
call fcn.131e791b
mov dword [esp + 0x20], 0
call fcn.1312ad20
push eax
push str.FILEMAP_IMSHAREDMEM
lea eax, [esp + 0x10]
push str._s__d
push eax
call fcn.131e5081
add esp, 0x10
lea ecx, [esp + 8]
lea esi, [edi + 0xc]
push ecx
mov ecx, esi
call fcn.131e79ee
push 0x13233438
lea ecx, [esp + 0x10]
call fcn.131e791b
mov edx, dword [esp + 8]
push str.MapLock
push edx
lea eax, [esp + 0x14]
push str._s__s
push eax
mov byte [esp + 0x30], 1
call fcn.131e5081
add esp, 0x10
lea ecx, [esp + 0xc]
add edi, 0x18
push ecx
mov ecx, edi
call fcn.131e79ee
mov eax, dword [0x13234310]
test eax, eax
je 0x1313b6a4
mov edi, dword [edi]
lea ecx, [esp + 0x14]
push edi
call fcn.131653a0
mov edi, eax
mov esi, dword [esi]
lea ecx, [esp + 0x10]
push esi
mov byte [esp + 0x24], 2
call fcn.131653a0
mov edx, dword [edi]
mov eax, dword [eax]
push edx
push eax
push str.CIMSharedMem::InitFileMapInfo__FileMap:__s___Lock:__s_
push 0x132185f8
push 0xffffffffffffffff
push 0x132342a4
mov byte [esp + 0x38], 3
call fcn.131403d0
add esp, 0x18
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 2
call fcn.13165c10
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 1
call fcn.13165c10
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 0
call fcn.131e78a7
lea ecx, [esp + 8]
mov dword [esp + 0x20], 0xffffffff
call fcn.131e78a7
mov ecx, dword [esp + 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x1313e340
Capabilities:
Set registry value

Disassembly:
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp]
push eax
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1313e39e
push esi
mov esi, dword [esp + 0x14]
test esi, esi
je 0x1313e37a
push esi
call fcn.1314cebe
add esp, 4
lea eax, [eax + eax + 2]
jmp 0x1313e37c
xor eax, eax
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 8]
push esi
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ecx
ret 0xc

Function at 0x1313e3b0
Capabilities:
Set registry value

Disassembly:
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp]
push eax
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1313e3f7
mov ecx, dword [esp]
lea edx, [esp + 0x10]
push 4
push edx
push 4
push eax
mov eax, dword [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ecx
ret 0xc

Function at 0x1313e400
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0xc]
lea eax, [esp]
push esi
push eax
xor esi, esi
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1313e49a
mov ecx, dword [esp + 4]
push ebx
lea edx, [esp + 0x14]
push edi
mov edi, dword [esp + 0x1c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
push eax
lea eax, [esp + 0x18]
push eax
push esi
push edi
push ecx
call ebx
mov eax, dword [esp + 0x18]
cmp eax, 2
jb 0x1313e484
add eax, 2
mov dword [esp + 0x18], eax
shr eax, 1
lea edx, [eax + eax]
push edx
call fcn.131e7f70
mov esi, eax
add esp, 4
test esi, esi
je 0x1313e484
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push esi
push ecx
push 0
push edi
push edx
call ebx
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop ebx
pop esi
add esp, 8
ret 8
mov eax, esi
pop esi
add esp, 8
ret 8

Function at 0x1313e4b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x10]
lea eax, [esp]
push eax
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1313e514
mov dword [esp + 8], eax
lea edx, [esp + 0x10]
lea eax, [esp + 4]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 8]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 4]
add esp, 0xc
ret 8