joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1f01dd30
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, dword fs:[0]
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push 0x1f0561fb
push eax
mov dword fs:[0], esp
mov eax, dword [esp + 0x20]
push esi
mov esi, ecx
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x2c], eax
mov eax, dword [esp + 0x3c]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esi + 8], edx
mov edx, dword [esp + 0x20]
mov dword [esi + 0x30], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 0xc], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esi + 0x14], edx
mov edx, dword [esp + 0x30]
push edi
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x38]
mov dword [esi + 0x10], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0x18], edx
mov edx, dword [esp + 0x44]
or edi, 0xffffffff
push 0xaf0
mov dword [esi + 0x28], edi
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ecx
mov dword [esi], edx
call fcn.1f03e9a2
add esp, 4
mov dword [esp + 0x28], eax
mov dword [esp + 0x10], 0
test eax, eax
je 0x1f01ddd3
mov ecx, dword [esi]
mov edx, dword [esi + 0x10]
push ecx
mov ecx, dword [esi + 0x18]
push edx
push ecx
mov ecx, eax
call fcn.1f01ec90
jmp 0x1f01ddd5
xor eax, eax
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x48]
push 0x98
push 0
push edi
mov dword [esi + 0x38], eax
call fcn.1f03f700
mov ecx, dword [esp + 0x14]
add esp, 0xc
mov dword [esi + 0x34], edi
pop edi
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 0x34

Function at 0x1f01e350
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
sub esp, 0x20
xor eax, eax
push esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 8], 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, dword [esp + 0x28]
mov dword [esp + 4], eax
cmp esi, 0xffffffff
jne 0x1f01e390
xor eax, eax
pop esi
add esp, 0x20
ret
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x1f01e405
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SuspendThread]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenThread]
mov ecx, dword [esp + 0x20]
cmp ecx, dword [0x1f0836f0]
jne 0x1f01e3f3
mov edx, dword [esp + 0x1c]
cmp edx, dword [esp + 0x10]
je 0x1f01e3f3
cmp dword [0x1f08373c], 0
je 0x1f01e3e0
push edx
call fcn.1f01e330
add esp, 4
test eax, eax
jne 0x1f01e3f3
push edx
push 0
push 2
call edi
mov esi, eax
push esi
call ebx
push esi
call ebp
mov esi, dword [esp + 0x34]
lea edx, [esp + 0x14]
push edx
push esi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x1f01e3b4
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
add esp, 0x20
ret
Function at 0x1f01e410
Capabilities:
Enumerate threads
Resume thread

Disassembly:
sub esp, 0x20
xor eax, eax
push esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 8], 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, dword [esp + 0x28]
mov dword [esp + 4], eax
cmp esi, 0xffffffff
jne 0x1f01e450
xor eax, eax
pop esi
add esp, 0x20
ret
push edi
lea eax, [esp + 0xc]
push eax
push esi
call sub.KERNEL32.dll_Thread32First
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1f01e4c4
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenThread]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [esp + 0x20]
cmp ecx, dword [0x1f0836f0]
jne 0x1f01e4b3
mov edx, dword [esp + 0x1c]
cmp edx, dword [esp + 0x10]
je 0x1f01e4b3
cmp dword [0x1f08373c], 0
je 0x1f01e4a0
push edx
call fcn.1f01e330
add esp, 4
test eax, eax
jne 0x1f01e4b3
push edx
push 0
push 2
call ebx
mov esi, eax
push esi
call ebp
push esi
call edi
mov esi, dword [esp + 0x34]
lea edx, [esp + 0x14]
push edx
push esi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x1f01e474
pop ebp
pop ebx
push esi
call edi
pop edi
mov eax, 1
pop esi
add esp, 0x20
ret

Function at 0x1f01f4f0
Capabilities:
Resume thread
Suspend thread

Disassembly:
sub esp, 0x2cc
push ebx
push ebp
push esi
push edi
mov ebp, ecx
xor ebx, ebx
mov dword [esp + 0x10], 0x1003f
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, dword [esp + 0x2e0]
cmp edi, eax
jne 0x1f01f526
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_RtlCaptureContext]
jmp 0x1f01f54e
push edi
push 0
push 0xa
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
test esi, esi
je 0x1f01f5b0
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x1f01f59e
mov eax, dword [0x1f0837cc]
mov edx, dword [eax]
mov ecx, dword [edx + 4]
xor ebx, ebx
push ebx
push ebx
add ecx, eax
call fcn.1f02db10
mov eax, dword [0x1f0837cc]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
lea ecx, [edx + eax]
mov eax, dword [ecx + 0x24]
test eax, eax
je 0x1f01f589
mov edx, dword [eax]
cmp dword [edx + 0x18], edi
je 0x1f01f587
mov eax, dword [eax + 4]
test eax, eax
jne 0x1f01f577
jmp 0x1f01f589
mov ebx, edx
call fcn.1f02db80
push ebx
lea eax, [esp + 0x14]
push eax
push edi
mov ecx, ebp
call fcn.1f01edd0
mov ebx, eax
test esi, esi
je 0x1f01f5b0
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x2cc
ret 4
Function at 0x1f0203c0
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0x428
push esi
push 0x424
lea eax, [esp + 0xc]
push 0
push eax
mov dword [esp + 0x10], 0
call fcn.1f03f700
mov ecx, dword [0x1f0836f0]
add esp, 0xc
push ecx
push 0x18
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x1f02040f
mov edx, dword [esp + 0x434]
mov dword [edx], str.Error_taking_snapshot_of_the_process
xor eax, eax
pop esi
add esp, 0x428
ret
lea eax, [esp + 4]
push eax
push esi
mov dword [esp + 0xc], 0x428
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
jne 0x1f020444
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x434]
mov dword [ecx], str.Error_parsing_modules_of_the_process
xor eax, eax
pop esi
add esp, 0x428
ret
push ebx
push edi
mov edi, dword [esp + 0x438]
lea ecx, [ecx]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov ebx, dword [edi]
push 0
push edx
cdq
push edx
mov edx, dword [ebx]
push eax
lea eax, [esp + 0x23c]
push eax
mov ecx, edi
call edx
lea eax, [esp + 0xc]
push eax
push esi
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x1f020450
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x43c]
pop edi
pop ebx
mov dword [ecx], str.Module_list_retrieval_success
mov eax, 1
pop esi
add esp, 0x428
ret
Function at 0x1f0238d0
Capabilities:
Create thread

Disassembly:
cmp dword [esp + 8], 0
je 0x1f0238db
jmp dword [esp + 4]
mov eax, dword [esp + 4]
push 0
push 0
push eax
push 0x1f023870
push 0x100000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x1f023901
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
ret

Function at 0x1f023bb0
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0
push 0x1f023b70
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret

Function at 0x1f023cb0
Capabilities:
Create thread

Disassembly:
mov eax, dword fs:[0]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
push 0x1f0563c6
push eax
mov dword fs:[0], esp
sub esp, 0x46c
cmp ecx, 4
jb 0x1f0244af
push ebx
push ebp
push esi
mov esi, dword [esp + 0x488]
mov ebx, 1
cmp ecx, 0x234
jae 0x1f023d1d
mov eax, dword [esi]
cmp eax, 6
je 0x1f023d1d
cmp eax, 7
je 0x1f023d37
cmp eax, 0x24
je 0x1f023d1d
cmp eax, 0x2b
je 0x1f023d1d
cmp eax, 0x2f
je 0x1f023d1d
cmp eax, 0x30
je 0x1f023d1d
cmp eax, 0x31
je 0x1f023d1d
cmp eax, 0x34
jne 0x1f0244ac
mov eax, dword [esi]
cmp eax, 7
je 0x1f023d37
mov ebp, ebx
cmp eax, 0x3a
ja 0x1f0244ac
push edi
jmp dword [eax*4 + 0x1f0244c4]
mov dword [esi], 6
mov eax, dword [esi]
mov ebp, 2
jmp 0x1f023d2f
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x46c]
mov dword fs:[0], ecx
add esp, 0x478
ret
Function at 0x1f024c90
Capabilities:
Create mailslot
Read file on windows
Read from mailslot

Disassembly:
sub esp, 0x50
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0x200
mov dword [0x1f08379c], 1
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], 0x200
call fcn.1f03f6ec
add esp, 4
push ebx
push ebx
mov edi, eax
xor eax, eax
push ebx
push ebx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebp, eax
mov eax, dword [0x1f083764]
mov dword [esp + 0x24], eax
xor eax, eax
mov dword [esp + 0x39], eax
mov dword [esp + 0x45], eax
mov word [esp + 0x49], ax
mov byte [esp + 0x4b], al
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x3d], eax
mov dword [esp + 0x41], eax
lea eax, [esp + 0x2c]
push eax
mov ecx, 4
push 0xffffffffffffffff
mov word [esp + 0x42], cx
mov ecx, dword [esp + 0x6c]
push ebx
lea edx, [esp + 0x44]
push ecx
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x38], ebp
mov byte [esp + 0x48], 1
mov dword [esp + 0x58], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x3c], 0xc
mov dword [esp + 0x40], edx
call dword [sym.imp.KERNEL32.dll_CreateMailslotW]
mov edx, dword [0x1f08376c]
mov esi, dword [sym.imp.KERNEL32.dll_SetEvent]
push edx
mov dword [esp + 0x20], eax
call esi
mov eax, dword [0x1f083790]
push eax
call esi
lea ecx, [ecx]
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x1c]
push edx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1f024de1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1f024dda
push ebx
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x18]
push edx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetMailslotInfo]
test eax, eax
je 0x1f024e03
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x10]
jae 0x1f024d70
push edi
call fcn.1f03f6e1
mov ecx, dword [esp + 0x14]
push ecx
call fcn.1f03f6ec
mov edx, dword [esp + 0x18]
add esp, 8
mov edi, eax
mov dword [esp + 0x14], edx
jmp 0x1f024d70
cmp eax, 0x3e5
jne 0x1f024e03
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x2c]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, ebx
je 0x1f024e03
cmp eax, 1
je 0x1f024e2d
cmp eax, 0xffffffff
jne 0x1f024d70
mov edx, dword [0x1f083790]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebp
call esi
push edi
call fcn.1f03f6e1
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
cmp dword [esp + 0x10], ebx
je 0x1f024d70
mov ecx, dword [esp + 0x18]
push 1
push ecx
push edi
call fcn.1f023cb0
add esp, 0xc
mov dword [esp + 0x10], ebx
jmp 0x1f024d70
Function at 0x1f0269f0
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0x430
push ebx
push edi
mov ebx, ecx
xor edi, edi
cmp dword [ebx + 0x10b00c], edi
je 0x1f026a0f
pop edi
xor eax, eax
pop ebx
add esp, 0x430
ret
push esi
push 0x424
lea eax, [esp + 0x1c]
push edi
push eax
mov dword [ebx + 0x10b00c], 1
mov dword [esp + 0x20], edi
call fcn.1f03f700
mov ecx, dword [0x1f0836f0]
add esp, 0xc
push ecx
push 0x18
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [esp + 0x10], esi
cmp esi, 0xffffffff
jne 0x1f026a5c
pop esi
mov dword [ebx + 0x10b00c], edi
pop edi
xor eax, eax
pop ebx
add esp, 0x430
ret
lea edx, [esp + 0x14]
push edx
push esi
mov dword [esp + 0x1c], 0x428
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
jne 0x1f026a8c
push esi
mov dword [ebx + 0x10b00c], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
xor eax, eax
pop ebx
add esp, 0x430
ret
mov eax, dword [ebx]
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
push ebp
push edi
push edi
add ecx, eax
call fcn.1f02db10
mov dword [esp + 0x10], edi
lea ebp, [ebx + 0x42c]
jmp 0x1f026ab0
lea edi, [ebp - 0x428]
mov ecx, 0x10a
lea esi, [esp + 0x18]
lea edx, [esp + 0x238]
rep movsd dword es:[edi], dword [esi]
push edx
mov ecx, ebx
call fcn.1f0266b0
mov ecx, dword [esp + 0x14]
inc dword [esp + 0x10]
mov dword [ebp], eax
lea eax, [esp + 0x18]
push eax
push ecx
add ebp, 0x42c
call sub.KERNEL32.dll_Module32NextW
test eax, eax
je 0x1f026afa
cmp dword [esp + 0x10], 0x400
jb 0x1f026ab0
mov edx, dword [esp + 0x10]
mov eax, dword [ebx]
mov dword [ebx + 0x10b004], edx
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
add ecx, eax
call fcn.1f02db80
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop esi
pop edi
mov dword [ebx + 0x10b00c], 0
mov eax, 1
pop ebx
add esp, 0x430
ret
Function at 0x1f028520
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x1f0837c0]
push esi
push edi
xor edi, edi
push eax
cmp eax, 0x40
jae 0x1f028536
call section..text
jmp 0x1f02853c
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x1f02854d
call fcn.1f0141f0
mov esi, eax
test esi, esi
je 0x1f02855a
cmp dword [esi + 0x1c], edi
jne 0x1f02855a
mov edi, 1
mov dword [esi + 0x1c], edi
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push eax
push ecx
call fcn.1f028080
add esp, 0x20
test edi, edi
je 0x1f028595
mov dword [esi + 0x1c], 0
pop edi
pop esi
ret
Function at 0x1f029250
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 4], eax
mov eax, dword [0x1f0837c0]
xor esi, esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
push eax
cmp eax, 0x40
jae 0x1f02927c
call section..text
jmp 0x1f029282
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, esi
je 0x1f0292d8
mov eax, dword [eax + 4]
cmp eax, esi
je 0x1f0292d8
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov ecx, dword [edx + eax + 0x10]
cmp ecx, esi
je 0x1f0292d8
lea ebx, [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 0x38]
cmp dword [edx + 0x1b0c], esi
je 0x1f0292bd
cmp dword [eax + 0x1a5c], esi
jne 0x1f0292c6
cmp dword [eax + 0x1a58], esi
jne 0x1f0292c6
mov ecx, dword [ecx + 8]
cmp ecx, esi
jne 0x1f0292a0
jmp 0x1f0292d8
mov ecx, dword [eax + 0x1a58]
mov edx, dword [eax + 0x1a5c]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 0x14]
sub ecx, dword [0x1f082a00]
mov edx, dword [ebp - 0x10]
sbb edx, dword [0x1f082a04]
push esi
push 0x989680
push edx
push ecx
call fcn.1f040a80
mov ecx, dword [0x1f0829fc]
push ecx
mov ecx, dword [0x1f0829f8]
push ecx
push edx
push eax
call fcn.1f0409d0
add eax, dword [0x1f0834b0]
adc edx, dword [0x1f0834b4]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x18], edx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x1f029334
sub eax, edx
sar eax, 1
lea edi, [eax + eax + 2]
lea ebx, [edi + 0x20]
mov eax, ebx
call fcn.1f03e950
mov esi, esp
test esi, esi
jne 0x1f029365
xor eax, eax
lea esp, [ebp - 0x28]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov dword [esi], 0x1f
mov dword [esi + 4], edx
mov edx, dword [ebp - 0xc]
mov dword [esi + 8], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0xc], ecx
mov ecx, dword [ebp - 4]
mov dword [esi + 0x10], edx
mov edx, dword [ebp + 0xc]
mov dword [esi + 0x14], eax
push edi
push edx
lea eax, [esi + 0x20]
mov dword [esi + 0x18], ecx
push eax
mov dword [esi + 0x1c], edi
call fcn.1f03f910
mov ecx, dword [0x1f083708]
add esp, 0xc
push ebx
push esi
call fcn.1f02f220
lea esp, [ebp - 0x28]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x1f02a320
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
push edi
xor eax, eax
push esi
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor ecx, ecx
mov word [esi + edi*2 - 2], cx
pop edi
pop esi
ret
Function at 0x1f02a440
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1000
call fcn.1f03eb30
push 0x800
lea ecx, [esp + 4]
xor eax, eax
push ecx
mov word [esp + 8], ax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov eax, dword [esp + 0x1010]
mov ecx, dword [esp + 0x100c]
push eax
mov eax, dword [esp + 0x100c]
xor edx, edx
push ecx
mov ecx, dword [esp + 0x100c]
mov word [esp + 0x1006], dx
lea edx, [esp + 8]
push edx
push eax
push ecx
call fcn.1f02a180
add esp, 0x1014
ret

Function at 0x1f02a500
Capabilities:
Query environment variable

Disassembly:
push ecx
xor ecx, ecx
mov eax, 0x1000
mov edx, 2
mul edx
seto cl
push ebx
push ebp
push esi
push edi
neg ecx
or ecx, eax
push ecx
call fcn.1f03f6ec
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
add esp, 4
mov ebx, eax
push 0x1000
push ebx
push str.Path
mov dword [esp + 0x1c], ebx
call edi
mov esi, eax
test esi, esi
je 0x1f02a67f
cmp esi, 0x1000
jbe 0x1f02a580
push ebx
call fcn.1f03f6e1
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1f03f6ec
add esp, 8
push esi
push eax
push str.Path
mov dword [esp + 0x1c], eax
call edi
mov ebx, dword [esp + 0x10]
mov edi, ebx
test ebx, ebx
je 0x1f02a67f
mov ebx, dword [esp + 0x24]
mov edi, edi
push 0x3b
push edi
call fcn.1f03e35e
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x1f02a5aa
xor eax, eax
mov word [ebp], ax
add ebp, 2
cmp word [edi], 0
je 0x1f02a67b
push edi
call fcn.1f0344d0
add esp, 4
test eax, eax
je 0x1f02a652
mov eax, edi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1f02a5d0
sub eax, edx
sar eax, 1
xor ecx, ecx
add eax, 5
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1f03f6ec
mov esi, eax
mov eax, 0x1f05eed8
mov edx, esi
add esp, 4
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x1f02a606
mov ecx, esi
sub ecx, edi
mov eax, edi
lea edx, [ecx + 8]
mov edi, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x1f02a620
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push ebx
push edx
push esi
push eax
push ecx
call fcn.1f02a180
push esi
mov edi, eax
call fcn.1f03f6e1
add esp, 0x18
jmp 0x1f02a66d
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push ebx
push edx
push edi
push eax
push ecx
call fcn.1f02a180
add esp, 0x14
mov edi, eax
test edi, edi
jne 0x1f02a690
mov edi, ebp
test ebp, ebp
jne 0x1f02a590
mov ebx, dword [esp + 0x10]
push ebx
call fcn.1f03f6e1
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov edx, dword [esp + 0x10]
push edx
call fcn.1f03f6e1
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x1f02a6b0
Capabilities:
Get common file path
Set current directory

Disassembly:
mov eax, 0x2024
call fcn.1f03eb30
mov ecx, dword [esp + 0x2038]
push ebx
push esi
xor eax, eax
push edi
lea edx, [esp + 0x1030]
push edx
xor ebx, ebx
push 0x800
mov word [ecx], ax
mov dword [esp + 0x14], ebx
or esi, 0xffffffff
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x18], 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, dword [esp + 0x203c]
mov edi, dword [esp + 0x2038]
cmp eax, ebx
je 0x1f02a71e
push eax
jmp 0x1f02a736
push 0x800
lea eax, [esp + 0x34]
push eax
push edi
call fcn.1f034130
add esp, 0xc
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp edi, ebx
je 0x1f02a7b6
lea eax, [esp + 0x10]
mov dword [esp + 0x18], edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateActCtxW]
xor edx, edx
push eax
mov dword [esp + 0x18], 1
mov word [esp + 0x20], dx
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x1f02a798
or dword [esp + 0x14], 8
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x28], 2
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x1f02a798
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x28], 1
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x1f02a7b6
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ActivateActCtx]
test eax, eax
je 0x1f02a7af
mov ebx, 1
jmp 0x1f02a7b6
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseActCtx]
mov ecx, dword [esp + 0x2044]
mov edx, dword [esp + 0x2048]
mov eax, dword [esp + 0x2040]
push 0
push ecx
push edx
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathW]
mov edi, eax
neg edi
sbb edi, edi
neg edi
test ebx, ebx
je 0x1f02a7fa
mov ecx, dword [esp + 0xc]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_DeactivateActCtx]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseActCtx]
lea edx, [esp + 0x1030]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x2024
ret
Function at 0x1f02bd70
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x1f02bd8b
pop edi
xor eax, eax
pop ebx
ret
mov cl, byte [edi]
test cl, cl
je 0x1f02bd9b
cmp cl, 0x90
je 0x1f02bd9b
cmp cl, 0xcc
jne 0x1f02bdb6
mov eax, 1
cmp ebx, eax
jbe 0x1f02bdae
cmp byte [eax + edi], cl
jne 0x1f02bdb6
inc eax
cmp eax, ebx
jb 0x1f02bda4
pop edi
mov eax, 1
pop ebx
ret
push esi
xor esi, esi
test ebx, ebx
jbe 0x1f02bdd5
lea ecx, [ecx]
push edi
call fcn.1f02bba0
add esp, 4
test eax, eax
je 0x1f02bdd5
add esi, eax
add edi, eax
cmp esi, ebx
jb 0x1f02bdc0
cmp esi, ebx
pop esi
sbb eax, eax
pop edi
inc eax
pop ebx
ret