joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4037b0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
push esi
lea eax, [ebp - 0x9c]
push eax
mov esi, 0x80004005
mov dword [ebp - 4], 0
mov dword [ebp - 0x9c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40383d
cmp dword [ebp - 0x8c], 2
jne 0x40383d
cmp dword [ebp - 0x98], 6
jb 0x40383d
lea ecx, [ebp - 4]
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40383d
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push 4
push eax
push 0x12
push ecx
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x403833
cmp dword [ebp - 8], 4
jne 0x403833
xor esi, esi
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x403d10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
lea eax, [ebp - 4]
push eax
push 0x101
push 0
push str.HARDWAREDESCRIPTIONSystem
push 0x80000002
mov dword [ebp - 8], 0x400
mov dword [ebp - 0xc], 7
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403d75
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x40c]
push edx
lea eax, [ebp - 0xc]
push eax
push 0
push str.SystemBiosVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x403d7b
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x40c], 0x51
jne 0x403d75
cmp byte [ebp - 0x40b], 0x45
jne 0x403d75
cmp byte [ebp - 0x40a], 0x4d
jne 0x403d75
cmp byte [ebp - 0x409], 0x55
jne 0x403d75
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x403dc0
Capabilities:
Check for sandbox username or hostname
Get disk information
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
mov dword [ebp - 8], 0x104
mov dword [ebp - 4], 0
mov ebx, 1
call edi
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
lea ecx, [ebp - 0x10c]
push str.test_item.exe
push ecx
call esi
add esp, 8
test eax, eax
jne 0x403f66
call fcn.00403d10
test eax, eax
jne 0x403f66
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.USER32.dll_CharUpperA]
lea edx, [ebp - 0x210]
push str.SANDBOX
push edx
call esi
add esp, 8
test eax, eax
jne 0x403f66
lea eax, [ebp - 0x210]
push str.MALNETVM
push eax
call esi
add esp, 8
test eax, eax
jne 0x403f66
lea ecx, [ebp - 0x210]
push str.VIRUSCLONE
push ecx
call esi
add esp, 8
test eax, eax
jne 0x403f66
lea edx, [ebp - 0x210]
push str.test_user
push edx
call esi
add esp, 8
test eax, eax
jne 0x403f66
lea eax, [ebp - 0x210]
push str.Dave
push eax
call esi
add esp, 8
test eax, eax
jne 0x403f66
push 0x104
lea ecx, [ebp - 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
push 0
push 0
push 0
push 0
lea edx, [ebp - 4]
push edx
push 0
push 0
lea eax, [ebp - 0x10c]
push eax
mov byte [ebp - 0x109], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov eax, dword [ebp - 4]
cmp eax, 0xcd1a40
je 0x403f66
cmp eax, 0x6cbbc508
je 0x403f66
cmp eax, 0x774e1682
je 0x403f66
cmp eax, 0x837f873e
je 0x403f66
cmp eax, 0x8b6f64bc
je 0x403f66
push 0x104
lea ecx, [ebp - 0x10c]
push ecx
push 0
call edi
mov esi, dword [sym.imp.SHLWAPI.dll_StrStrIA]
push str._sand_box_
lea edx, [ebp - 0x10c]
push edx
call esi
test eax, eax
jne 0x403f66
push str.cwsandbox_
lea eax, [ebp - 0x10c]
push eax
call esi
test eax, eax
jne 0x403f66
push str._sandbox_
lea ecx, [ebp - 0x10c]
push ecx
call esi
test eax, eax
jne 0x403f66
xor ebx, ebx
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403f70
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
xor eax, 0xffffffff
test ecx, ecx
mov esi, dword [ebp + 8]
je 0x403f99
xor al, byte [esi]
movzx edx, al
shr eax, 8
mov edx, dword [edx*4 + section..data]
inc esi
xor eax, edx
dec ecx
jne 0x403f84
xor eax, 0xffffffff
pop esi
leave
ret 0xc
Function at 0x4010c0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
push esi
push edi
lea edi, [ebp - 0xa0]
mov ecx, 0x28
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x410028]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x90
push 0
lea eax, [ebp - 0x98]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov esi, esp
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, esp
call fcn.00408b45
mov esi, esp
push 0x48
lea ecx, [ebp - 0x98]
push ecx
push str.logYSLoader
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp esi, esp
call fcn.00408b45
test eax, eax
jbe 0x40117f
mov esi, esp
lea edx, [ebp - 0x98]
push edx
push 0x40b248
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
cmp esi, esp
call fcn.00408b45
test eax, eax
je 0x401173
mov esi, esp
lea eax, [ebp - 0x98]
push eax
push 0x40b250
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
cmp esi, esp
call fcn.00408b45
test eax, eax
jne 0x40117f
mov dword [ebp - 0xa0], 1
jmp 0x401189
mov dword [ebp - 0xa0], 0
mov al, byte [ebp - 0xa0]
push edx
mov ecx, ebp
push eax
lea edx, [0x4011c0]
call fcn.00408af1
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408b74
add esp, 0xa0
cmp ebp, esp
call fcn.00408b45
mov esp, ebp
pop ebp
ret

Function at 0x401500
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push edi
lea edi, [ebp - 0x30]
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
cmp dword [ebp + 0x14], 2
je 0x401527
mov eax, 0x57
jmp 0x4015eb
cmp dword [ebp + 0x20], 0
jne 0x401537
mov eax, 0x57
jmp 0x4015eb
push 1
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0xc]
call fcn.00405f20
cmp dword [ebp + 0x18], 0
jne 0x401555
lea edx, [ebp - 0x18]
mov dword [ebp + 0x18], edx
mov esi, esp
mov eax, dword [ebp + 0x20]
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp esi, esp
call fcn.00408b45
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x401596
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x24], edx
lea ecx, [ebp - 0xc]
call fcn.004064f0
mov eax, dword [ebp - 0x24]
jmp 0x4015eb
mov eax, dword [ebp + 0x18]
cmp dword [eax], 1
je 0x4015b2
mov dword [ebp - 0x28], 0x65e
lea ecx, [ebp - 0xc]
call fcn.004064f0
mov eax, dword [ebp - 0x28]
jmp 0x4015eb
mov ecx, dword [ebp + 0x20]
mov edx, dword [ecx]
shr edx, 1
mov eax, dword [ebp + 0x1c]
movzx ecx, word [eax + edx*2 - 2]
test ecx, ecx
je 0x4015d9
mov dword [ebp - 0x2c], 0xea
lea ecx, [ebp - 0xc]
call fcn.004064f0
mov eax, dword [ebp - 0x2c]
jmp 0x4015eb
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0xc]
call fcn.004064f0
mov eax, dword [ebp - 0x30]
push edx
mov ecx, ebp
push eax
lea edx, [0x40160c]
call fcn.00408af1
pop eax
pop edx
pop edi
pop esi
add esp, 0x30
cmp ebp, esp
call fcn.00408b45
mov esp, ebp
pop ebp
ret
Function at 0x402ce0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40a650
mov eax, dword fs:[0]
push eax
sub esp, 0x15c
push esi
push edi
lea edi, [ebp - 0x168]
mov ecx, 0x57
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x410028]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x13c], 0x128
push 0x124
push 0
lea eax, [ebp - 0x138]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x13c]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.KERNEL32.dll_Process32First
mov dword [ebp - 0x144], eax
cmp dword [ebp - 0x144], 0
je 0x402d8c
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x134]
jne 0x402d74
mov eax, dword [ebp - 0x124]
jmp 0x402e03
lea ecx, [ebp - 0x13c]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.KERNEL32.dll_Process32Next
mov dword [ebp - 0x144], eax
jmp 0x402d55
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.00408b45
push eax
push str.Win32_error__u_attempting_to_find_parent_process
lea eax, [ebp - 0x160]
push eax
call fcn.00405710
add esp, 0xc
mov dword [ebp - 0x164], eax
mov ecx, dword [ebp - 0x164]
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x168]
call fcn.00406790
push eax
lea ecx, [ebp - 0x158]
call fcn.00405dc0
push 0x40e448
lea edx, [ebp - 0x158]
push edx
call sub.VCRUNTIME140.dll__CxxThrowException
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x160]
call fcn.00406200
push edx
mov ecx, ebp
push eax
lea edx, [0x402e3c]
call fcn.00408af1
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00408b74
add esp, 0x168
cmp ebp, esp
call fcn.00408b45
mov esp, ebp
pop ebp
ret
Function at 0x403a60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add esp, 0x4a
push esi
mov dword [esi + 8], 0xd3001000
call 0x32403860
add esp, 0x38
pop edi
pop esi
dec edx
movsd dword es:[edi], dword [esi]
sub al, 0x5e
xchg edi, eax
inc ebp
cmp byte [ebp + ebx + 0x70], bl
pop ebp
jge 0x403a0c
xchg esp, eax
Function at 0x4cceac
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4cceeb
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4cceeb
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4cceeb
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4cceeb
cmp dword [ecx + 0x74], 0xe
jbe 0x4cceeb
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4cf7e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4cf80d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4cf80d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4cfba2
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4da758
push 0x4da750
push str.FlsAlloc
push 0x1f
call fcn.004cfe85
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4cfbd6
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x4cfbdc
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4cfc20
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4da768
push 0x4da760
push str.FlsGetValue
push 0x21
call fcn.004cfe85
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4cfc57
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4cfc5f
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4da770
push 0x4da768
push str.FlsSetValue
push 0x22
call fcn.004cfe85
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4cfc99
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4d372a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4d37c7
push ebx
push esi
call fcn.004d37ca
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004d362e
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4d3774
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4d37c6
push edi
push eax
call fcn.004d20bb
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4d3794
call fcn.004d116b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4d37c5
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004d362e
add esp, 0x20
test eax, eax
jne 0x4d37b3
push edi
call fcn.004d116b
jmp 0x4d37bb
push ebx
call fcn.004d116b
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x10070d0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, dword [0x409214]
mov dword [eax], ecx
mov ebx, edx
test ebx, ebx
jle 0x10070f1
mov eax, 0xff
call fcn.01002680
xor byte [esi], al
inc esi
dec ebx
jne 0x10070e1
pop esi
pop ebx
ret

Function at 0x1014349
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
cmp esi, edi
jne 0x1014366
push 0x57
pop eax
jmp 0x10143e7
lea eax, [ebp - 0xc]
push eax
push edi
mov dword [esi], edi
call fcn.01033f85
test eax, eax
je 0x101437d
mov eax, 0x65b
jmp 0x10143e7
xor eax, eax
inc eax
cmp dword [ebp - 0xc], eax
jne 0x1014389
mov dword [esi], eax
jmp 0x10143e5
cmp dword [ebp - 0xc], 2
jne 0x10143e5
mov dword [esi], eax
lea eax, [ebp - 4]
push eax
push 0x20019
push edi
push 0x1001cd8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10143e5
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push edi
push edi
push 0x1001ca8
push dword [ebp - 4]
mov dword [ebp - 0x10], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x10143d5
mov dword [ebp - 8], edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], edi
je 0x10143e5
mov dword [esi], edi
xor eax, eax
pop edi
leave
ret

Function at 0x10144da
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1014533
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1014525
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x1014521
cmp esi, eax
jae 0x1014525
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x1014513
cmp esi, eax
jb 0x1014529
xor eax, eax
jmp 0x1014532
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret 0xc
Function at 0x101b864
Capabilities:
Identify system language via api

Disassembly:
push 0x28
mov eax, 0x1055235
call fcn.01021eb9
xor edi, edi
cmp dword [0x106484c], edi
jne 0x101b881
xor eax, eax
jmp 0x101b9a5
lea eax, [ebp - 0x14]
mov ebx, 0x1064850
push eax
mov ecx, ebx
mov dword [ebp - 0x14], edi
call fcn.0101aa95
mov ax, word [ebp + 8]
cmp ax, di
jne 0x101b8a3
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov esi, 0x1064ba8
push esi
lea ecx, [ebp - 0x18]
mov word [0x1064840], ax
call fcn.01015076
push 0xa
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], edi
call fcn.0101c247
lea eax, [ebp - 0x34]
push eax
push edi
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push 0x106484c
mov byte [ebp - 4], 1
call fcn.0101ab33
call fcn.0101b6d9
push esi
lea ecx, [ebp - 0x10]
call fcn.01015076
mov eax, dword [ebp - 0x34]
xor esi, esi
mov byte [ebp - 4], 2
mov dword [ebp - 0x14], eax
cmp eax, edi
je 0x101b985
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x34]
call fcn.0105038c
push eax
lea ecx, [ebp + 8]
call fcn.0101ab33
lea eax, [ebp - 0x10]
push eax
push edi
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
mov byte [ebp - 4], 3
call fcn.0101ab33
call fcn.0101b2a8
cmp eax, edi
je 0x101b970
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], edi
je 0x101b970
push 0x10022f0
push fcn.010045d0
lea ecx, [ebp - 0x10]
call fcn.0101ae36
push dword [ebp - 0x10]
call fcn.01035167
movzx ecx, word [0x1064840]
cmp eax, ecx
jne 0x101b970
lea eax, [ebp + 8]
push eax
mov ecx, ebx
call fcn.0101aa95
xor esi, esi
inc esi
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.0101ab14
cmp dword [ebp - 0x14], edi
jne 0x101b8ff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.010147cd
lea ecx, [ebp - 0x34]
call fcn.0101aa40
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.010147cd
mov eax, esi
call fcn.01021fa5
ret 4
Function at 0x1001fa70
Capabilities:
Read file on windows
Read pipe
Write file on windows

Disassembly:
mov eax, 0x10018
call fcn.100761f0
mov eax, dword [0x100af208]
push esi
push edi
xor esi, esi
push esi
mov dword [esp + 0x10020], eax
lea eax, [esp + 0x1c]
push eax
push esi
mov edi, ecx
mov ecx, dword [edi + 0xc]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1001fb91
lea edx, [esp + 0x14]
push edx
mov edx, dword [edi + 8]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x10]
push ecx
push esi
push esi
push edx
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x1001fb91
cmp dword [esp + 0x10], 4
jb 0x1001fb91
mov ecx, dword [edi + 0x18]
cmp ecx, esi
je 0x1001fae1
call dword [sym.imp.tier0_s.dll_public:_bool___thiscall_CThreadEvent::Reset_void_]
mov edx, dword [edi + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
lea eax, [esp + 0x10]
push eax
push 4
lea ecx, [esp + 0x1c]
push ecx
push edx
mov dword [esp + 0x24], esi
call ebx
test eax, eax
je 0x1001fb77
cmp dword [esp + 0xc], 4
jne 0x1001fb77
mov eax, dword [esp + 0x10]
cmp eax, esi
push ebp
jbe 0x1001fb58
mov ebp, dword [esp + 0x1002c]
lea ebx, [ebx]
push 0
lea ecx, [esp + 0x14]
push ecx
sub eax, esi
push eax
mov eax, dword [edi + 8]
lea edx, [esp + 0x30]
push edx
push eax
call ebx
test eax, eax
je 0x1001fb73
mov ecx, dword [esp + 0x10]
push ecx
lea edx, [esp + 0x28]
push edx
mov ecx, ebp
call fcn.1004be00
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
add esi, edx
cmp esi, eax
jb 0x1001fb20
mov al, 1
pop ebp
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x10014]
call fcn.10076182
add esp, 0x10018
ret 4
xor al, al
jmp 0x1001fb5a
pop ebx
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x10014]
call fcn.10076182
add esp, 0x10018
ret 4
mov ecx, dword [esp + 0x1001c]
pop edi
xor al, al
pop esi
call fcn.10076182
add esp, 0x10018
ret 4
Function at 0x10020510
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
mov eax, dword [edi + 0x10]
test eax, eax
mov dword [esp + 0x10], ecx
jg 0x100205d8
call dword [sym.imp.tier0_s.dll_IsInAssert]
test al, al
jne 0x100205d8
mov ebp, dword [sym.imp.tier0_s.dll_SetInAssert]
push 1
call ebp
push 0x1a8
push str..processpipe.cpp
push 2
call dword [sym.imp.tier0_s.dll__SpewInfo]
push str.Assertion_Failed:_buffer.TellPut_____0
push 0x1008d3bc
call dword [sym.imp.tier0_s.dll__SpewMessage]
add esp, 0x18
mov esi, eax
call dword [sym.imp.tier0_s.dll_CallFlushLogFunc]
call dword [sym.imp.tier0_s.dll_CallAssertFailedNotifyFunc]
test esi, esi
jne 0x1002059f
call dword [sym.imp.tier0_s.dll_ShouldUseNewAssertDialog]
test al, al
je 0x1002059f
push str.Assertion_Failed:_buffer.TellPut_____0
push 0x1a8
push str..processpipe.cpp
call dword [sym.imp.tier0_s.dll_DoNewAssertDialog]
add esp, 0xc
test al, al
je 0x1002059f
int3
mov al, byte [0x100b09e9]
test al, al
jne 0x100205d1
call dword [sym.imp.tier0_s.dll_Plat_IsInDebugSession]
test al, al
jne 0x100205d1
push 0x1a8
push str..processpipe.cpp
push str.Assertion_Failed:_buffer.TellPut_____0
call dword [sym.imp.tier0_s.dll_WriteMiniDump]
add esp, 0xc
mov byte [0x100b09e9], 1
push 0
call ebp
add esp, 4
mov eax, dword [edi + 0x10]
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
push esi
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0xc]
push 4
lea edx, [esp + 0x18]
push edx
push ecx
mov dword [esp + 0x2c], esi
call ebp
test eax, eax
je 0x100206a2
cmp dword [esp + 0x18], 4
jne 0x100206a2
mov ecx, dword [edi + 0x20]
mov edx, dword [edi + 0xc]
sub edx, ecx
push edx
mov ecx, edi
call fcn.1000dfb0
mov edi, eax
mov eax, dword [esp + 0xc]
test eax, eax
jbe 0x10020682
nop
sub eax, esi
cmp eax, 0x100000
mov dword [esp + 0x18], 0
jbe 0x10020646
mov eax, 0x100000
mov edx, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x1c]
push ecx
push eax
mov eax, dword [edx + 0xc]
push edi
push eax
call ebp
test eax, eax
jne 0x10020672
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x5aa
jne 0x100206a2
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x18]
add edi, eax
add esi, eax
mov eax, dword [esp + 0xc]
cmp esi, eax
jb 0x10020630
mov al, byte [esp + 0x1c]
test al, al
je 0x10020697
mov ecx, dword [esp + 0x10]
add ecx, 0x10
call dword [sym.imp.tier0_s.dll_public:_bool___thiscall_CThreadEvent::Set_void_]
pop edi
pop esi
mov al, 1
pop ebp
add esp, 8
ret 8
pop edi
pop esi
xor al, al
pop ebp
add esp, 8
ret 8
Function at 0x10043ae0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push ebp
lea eax, [esp + 4]
push eax
push ecx
push edx
mov dword [esp + 0x10], 0
call fcn.10043a10
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov ebp, eax
test ebp, ebp
jne 0x10043bfe
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
push ebp
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebp, eax
test ebp, ebp
jne 0x10043bf3
cmp dword [esp + 8], 1
je 0x10043bf3
call dword [sym.imp.tier0_s.dll_IsInAssert]
test al, al
jne 0x10043bf3
push esi
push edi
mov edi, dword [sym.imp.tier0_s.dll_SetInAssert]
push 1
call edi
push 0x34
push str.._registry.cpp
push 2
call dword [sym.imp.tier0_s.dll__SpewInfo]
push str.Assertion_Failed:_REG_SZ__dwType
push 0x1008d3bc
call dword [sym.imp.tier0_s.dll__SpewMessage]
add esp, 0x18
mov esi, eax
call dword [sym.imp.tier0_s.dll_CallFlushLogFunc]
call dword [sym.imp.tier0_s.dll_CallAssertFailedNotifyFunc]
test esi, esi
jne 0x10043bbb
call dword [sym.imp.tier0_s.dll_ShouldUseNewAssertDialog]
test al, al
je 0x10043bbb
push str.Assertion_Failed:_REG_SZ__dwType
push 0x34
push str.._registry.cpp
call dword [sym.imp.tier0_s.dll_DoNewAssertDialog]
add esp, 0xc
test al, al
je 0x10043bbb
int3
mov al, byte [0x100b1851]
test al, al
jne 0x10043bea
call dword [sym.imp.tier0_s.dll_Plat_IsInDebugSession]
test al, al
jne 0x10043bea
push 0x34
push str.._registry.cpp
push str.Assertion_Failed:_REG_SZ__dwType
call dword [sym.imp.tier0_s.dll_WriteMiniDump]
add esp, 0xc
mov byte [0x100b1851], 1
push 0
call edi
add esp, 4
pop edi
pop esi
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test ebp, ebp
sete al
pop ebp
add esp, 8
ret