joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1f02bef0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x220
cmp dword [esp + 0x230], 0
push ebp
push esi
push edi
je 0x1f02c06b
mov edi, dword [esp + 0x230]
mov ebp, dword [esp + 0x238]
mov eax, dword [edi]
mov dword [esp + 0xc], eax
cmp ebp, 1
jne 0x1f02bf29
mov ecx, dword [edi + 4]
mov dword [esp + 0x10], ecx
jmp 0x1f02bf31
mov dword [esp + 0x10], 0
push eax
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
test eax, eax
jne 0x1f02c0ce
mov eax, dword [esp + 0x240]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x1f02bf69
lea edx, [esp + 0x14]
push edx
push edi
push 4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1f02c0ce
push 0x104
lea ecx, [esp + 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x24]
push edx
call fcn.1f02bde0
mov esi, eax
mov eax, dword [esp + 0x18]
cdq
mov ecx, eax
mov eax, edx
mov dword [esp + 0x1c], eax
add esp, 4
mov eax, edi
cdq
sub eax, ecx
mov ecx, dword [esp + 0x18]
sbb edx, ecx
lea ecx, [esp + 0x1c]
push ecx
push edx
push eax
mov ecx, esi
call fcn.1f0303c0
test eax, eax
je 0x1f02c0ce
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea edx, [esp + 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1f02c0ce
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push 0
push 0
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
xor eax, eax
cmp ebp, 1
sete al
push 0
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
lea eax, [eax*4 + 4]
push eax
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xc]
sub eax, dword [esi + 0x1104]
mov ecx, dword [esp + 0x10]
sbb ecx, dword [esi + 0x1108]
push ecx
push eax
mov ecx, esi
call fcn.1f030ed0
test eax, eax
je 0x1f02c0ce
mov ecx, dword [esp + 0x234]
pop edi
pop esi
mov dword [ecx], 0xe
mov eax, 1
pop ebp
add esp, 0x220
ret
mov edx, dword [esp + 0x240]
push edx
call fcn.1f02bde0
mov ecx, dword [esp + 0x234]
mov edx, dword [ecx]
add esp, 4
cmp dword [esp + 0x238], 1
jne 0x1f02c093
mov esi, dword [ecx + 4]
jmp 0x1f02c095
xor esi, esi
mov ecx, dword [eax + 0x1104]
sub edx, ecx
mov ecx, dword [eax + 0x1108]
sbb esi, ecx
push esi
push edx
mov ecx, eax
call fcn.1f030ed0
test eax, eax
je 0x1f02c0ce
mov edx, dword [esp + 0x234]
pop edi
pop esi
mov dword [edx], 0xe
mov eax, 1
pop ebp
add esp, 0x220
ret
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x220
ret
Function at 0x1f02f6f0
Capabilities:
Create mailslot
Create thread

Disassembly:
sub esp, 0x20
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
je 0x1f02f703
push 0xffffffffffffffff
call fcn.1f02f5d0
mov eax, dword [esi + 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
test eax, eax
jne 0x1f02f79c
cmp dword [esp + 0x28], eax
je 0x1f02f775
mov dword [esp + 0x1d], eax
mov word [esp + 0x21], ax
mov byte [esp + 0x23], al
mov dword [esp + 0xc], eax
mov dword [esp + 0x11], eax
mov dword [esp + 8], eax
mov dword [esp + 0x15], eax
mov dword [esp + 0x19], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0xc], eax
lea eax, [esp + 4]
push eax
mov ecx, 4
push 0xffffffffffffffff
mov word [esp + 0x1a], cx
lea edx, [esp + 0x18]
push 0
lea ecx, [esi + 0x20]
mov byte [esp + 0x1c], 1
mov dword [esp + 0x10], 0xc
mov dword [esp + 0x14], edx
push ecx
jmp 0x1f02f77f
push 0
push 0xffffffffffffffff
push 0
lea edx, [esi + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CreateMailslotW]
mov dword [esi + 0x1c], eax
cmp eax, 0xffffffff
jne 0x1f02f7a5
push 0
push str.Mailslot_server_creation_error_:
call fcn.1f0295f0
add esp, 8
xor eax, eax
pop esi
add esp, 0x20
ret 8
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov edx, dword [esp + 0x2c]
lea ecx, [esi + 0x438]
push ecx
push 0
push esi
push 0x1f02f380
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
test eax, eax
je 0x1f02f79c
mov dword [esi + 0x14], 1
mov eax, 1
pop esi
add esp, 0x20
ret 8
Function at 0x1f030910
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x1f05673b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esi], 0x1f05f8d8
push edi
xor edi, edi
push 0x1000
mov dword [esp + 0xc], esi
mov dword [esi + 0x10], 0x1f0575b0
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
call fcn.1f03f6ec
add esp, 4
mov dword [esi + 0x28], eax
mov dword [esi + 0x30], 0x1000
mov dword [esi + 0x34], edi
mov dword [esi + 0x20], 0x1000
mov dword [esi + 0x24], edi
mov dword [esp + 0x14], edi
mov ecx, esi
call fcn.1f0308b0
mov dword [esp + 0x14], 0xffffffff
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x1f033c30
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.Ntdll.dll
mov dword [esi + 8], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
call edi
push str.Kernel32.dll
mov dword [esi], eax
call edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 4], eax
mov eax, dword [esi]
cmp eax, ebx
je 0x1f033c93
push str.NtQueryInformationThread
push eax
call edi
mov dword [esi + 8], eax
mov eax, dword [esi]
push str.NtQueryInformationProcess
push eax
call edi
mov ecx, dword [esi]
push str.RtlNtStatusToDosError
push ecx
mov dword [esi + 0x10], eax
call edi
mov dword [esi + 0xc], eax
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x1f033cc1
push str.GetProcessIdOfThread
push eax
call edi
mov edx, dword [esi + 4]
push str.GetThreadId
push edx
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0x18], eax
mov eax, dword [esi + 4]
push str.GetProcessId
push eax
call edi
mov dword [esi + 0x1c], eax
pop edi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x1f033e50
Capabilities:
Enumerate threads

Disassembly:
sub esp, 0x1c
xor eax, eax
push ebx
mov dword [esp + 8], eax
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 eax, dword [esp + 0x24]
push esi
xor ebx, ebx
push eax
mov dword [esp + 0xc], ebx
call fcn.1f033cd0
mov esi, eax
cmp esi, ebx
jne 0x1f033dbf
pop esi
xor eax, eax
pop ebx
add esp, 0x1c
ret 4
push edi
push ebx
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x1f033dda
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1c
ret 4
lea ecx, [esp + 0xc]
push ecx
push edi
mov dword [esp + 0x14], 0x1c
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x1f033e2e
cmp esi, dword [esp + 0x14]
je 0x1f033e18
lea edx, [esp + 0xc]
push edx
push edi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x1f033df1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x1c
ret 4
mov ebx, dword [esp + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x1c
ret 4
push ebx
call fcn.1f0295f0
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x1c
ret 4
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x1f033e59
jmp eax
jmp 0x1f033d80
Function at 0x1f033e60
Capabilities:
Enumerate threads

Disassembly:
sub esp, 0x1c
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
xor eax, eax
push eax
push 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x10], 0x1c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x1f033ea6
pop esi
xor eax, eax
pop ebx
add esp, 0x1c
ret
push edi
lea eax, [esp + 0xc]
push eax
push esi
xor edi, edi
call sub.KERNEL32.dll_Thread32First
test eax, eax
jne 0x1f033ec8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1c
ret
cmp dword [esp + 0x18], ebx
jne 0x1f033ed4
inc edi
cmp edi, 1
ja 0x1f033ebf
lea ecx, [esp + 0xc]
push ecx
push esi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x1f033ec8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 2
pop edi
sbb eax, eax
pop esi
neg eax
pop ebx
add esp, 0x1c
ret

Function at 0x1f033f00
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
sub esp, 0x24
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 4], eax
xor eax, eax
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 eax, dword [esp + 0x28]
mov dword [esp + 8], 0x1c
cmp eax, 0xffffffff
jne 0x1f033f47
xor eax, eax
add esp, 0x24
ret
lea ecx, [esp + 8]
push ecx
push eax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x1f033f41
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SuspendThread]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenThread]
lea esp, [esp]
mov edx, dword [esp + 0x10]
cmp dword [esp + 0x24], edx
jne 0x1f033f97
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x14]
je 0x1f033f97
push eax
push 0
push 2
call edi
mov esi, eax
test esi, esi
je 0x1f033f97
push esi
call ebx
push esi
call ebp
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x18]
push eax
push ecx
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x1f033f70
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x24
ret
Function at 0x1f033fc0
Capabilities:
Enumerate threads
Resume thread

Disassembly:
sub esp, 0x24
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 4], eax
xor eax, eax
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 eax, dword [esp + 0x28]
mov dword [esp + 8], 0x1c
cmp eax, 0xffffffff
jne 0x1f034007
xor eax, eax
add esp, 0x24
ret
lea ecx, [esp + 8]
push ecx
push eax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x1f034001
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenThread]
lea esp, [esp]
mov edx, dword [esp + 0x10]
cmp dword [esp + 0x24], edx
jne 0x1f034057
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x14]
je 0x1f034057
push eax
push 0
push 2
call edi
mov esi, eax
test esi, esi
je 0x1f034057
push esi
call ebx
push esi
call ebp
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x18]
push eax
push ecx
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x1f034030
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x24
ret

Function at 0x1f0345e0
Capabilities:
Get common file path
Set current directory

Disassembly:
mov eax, 0x4004
call fcn.1f03eb30
push ebx
mov ebx, dword [esp + 0x4014]
xor eax, eax
test ebx, ebx
je 0x1f034724
push esi
mov esi, dword [esp + 0x4014]
mov word [ebx], ax
mov dword [esp + 8], eax
test esi, esi
je 0x1f034613
cmp esi, ebx
jne 0x1f03461e
pop esi
xor eax, eax
pop ebx
add esp, 0x4004
ret
push esi
call fcn.1f0342a0
add esp, 4
cmp word [esi], 0
je 0x1f0346d8
mov ecx, 0x1f05f994
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1f03465e
test dx, dx
je 0x1f03465a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1f03465e
add eax, 4
add ecx, 4
test dx, dx
jne 0x1f034638
xor eax, eax
jmp 0x1f034663
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1f0346d8
push edi
lea ecx, [esp + 0x2010]
push ecx
push 0x1000
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, dword [esp + 0x4014]
test eax, eax
jne 0x1f03469c
lea edx, [esp + 0x10]
push 0x1000
push edx
call fcn.1f034230
add esp, 8
lea eax, [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push eax
call edi
mov edx, dword [esp + 0x4020]
lea ecx, [esp + 0xc]
push ecx
push ebx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov esi, eax
neg esi
lea eax, [esp + 0x2010]
sbb esi, esi
push eax
neg esi
call edi
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x4004
ret
mov eax, dword [esp + 0x4010]
test eax, eax
je 0x1f03470d
mov edx, ebx
sub edx, eax
jmp 0x1f0346f0
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x1f0346f0
pop esi
mov eax, 1
pop ebx
add esp, 0x4004
ret
mov ecx, dword [esp + 0x401c]
push ecx
push ebx
call fcn.1f034230
add esp, 8
mov eax, 1
pop esi
pop ebx
add esp, 0x4004
ret
Function at 0x1f036560
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push 0xffffffffffffffff
push 0x1f056888
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebp
mov ebp, dword [esp + 0x40]
push esi
mov esi, dword [esp + 0x40]
push edi
mov edi, dword [esp + 0x40]
push ebp
push esi
push edi
mov dword [esp + 0x18], ecx
call fcn.1f0364b0
test eax, eax
je 0x1f036698
lea ecx, [esp + 0x10]
call fcn.1f033c30
mov dword [esp + 0x38], 0
push edi
lea ecx, [esp + 0x14]
call fcn.1f033e50
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor ecx, ecx
cmp edi, eax
sete cl
mov eax, ecx
mov dword [esp + 0x44], eax
test eax, eax
je 0x1f036672
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, eax
mov eax, dword [esi]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
lea edx, [esp + 0x4c]
push edx
push 0x40
push 5
push eax
push edi
call ebx
test eax, eax
jne 0x1f036627
mov ecx, dword [ebp]
mov edx, dword [esi]
mov eax, dword [esp + 0x44]
push ebp
push esi
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push eax
call fcn.1f0363a0
test eax, eax
je 0x1f0366ae
mov edx, dword [esi]
lea ecx, [esp + 0x4c]
push ecx
push 0x40
push 5
push edx
push edi
call ebx
test eax, eax
je 0x1f0365f5
mov ecx, dword [esp + 0x4c]
mov edx, dword [esi]
lea eax, [esp + 0x4c]
push eax
push ecx
push 5
push edx
push edi
call ebx
cmp dword [esp + 0x48], 0
jne 0x1f036647
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x3c], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.1f007420
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret 0xc
push edi
push 0
push 8
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x1f0365db
mov dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.1f007420
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret 0xc
cmp dword [esp + 0x48], 0
je 0x1f0366bc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x3c], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.1f007420
mov ecx, dword [esp + 0x34]
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
mov dword fs:[0], ecx
add esp, 0x30
ret 0xc
Function at 0x1f03ddf0
Capabilities:
Enumerate threads
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x1f056bb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
mov ecx, dword [0x1f06e874]
mov eax, dword [esp + 0x78]
push esi
push edi
mov dword [eax], ecx
xor eax, eax
push 1
push 8
lea ecx, [esp + 0x34]
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 + 0x18], 0x1c
call fcn.1f02d060
mov dword [esp + 0x70], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0
push 4
mov edi, eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x1f03decf
lea edx, [esp + 0x10]
push edx
push esi
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x1f03dec8
cmp edi, dword [esp + 0x1c]
jne 0x1f03deb9
mov eax, dword [esp + 0x18]
push 0
push eax
mov eax, dword [0x1f0837d0]
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
add ecx, eax
call fcn.1f02dd90
test eax, eax
jne 0x1f03deb9
mov eax, dword [esp + 0x18]
push eax
mov dword [esp + 0xc], eax
call fcn.1f03dd70
add esp, 4
lea edx, [esp + 8]
push edx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x10], eax
call fcn.1f02ec50
lea eax, [esp + 0x10]
push eax
push esi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x1f03de74
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x7c]
push ecx
lea ecx, [esp + 0x30]
call fcn.1f02d880
mov edx, dword [esp + 0x78]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], eax
mov esi, ecx
mov dword [esp + 0x70], 0xffffffff
lea ecx, [esp + 0x38]
call fcn.1f02d9f0
lea ecx, [esp + 0x38]
call fcn.1f02dac0
mov ecx, dword [esp + 0x68]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x6c
ret
Function at 0x1f03df80
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [esp + 0xc]
mov dword [0x1f06e874], eax
mov eax, dword [0x1f0837c4]
push eax
cmp eax, 0x40
jae 0x1f03df9b
call section..text
jmp 0x1f03dfa1
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [0x1f0837c4]
push esi
mov esi, eax
mov dword [esp + 0x10], eax
lea eax, [esi + 1]
push eax
push ecx
cmp ecx, 0x40
jae 0x1f03dfbf
call fcn.1f001021
jmp 0x1f03dfc5
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push edi
push 0
push 0
mov ecx, 0x1f083e68
call fcn.1f00b160
push 1
mov ecx, 0x1f083e68
call fcn.1f03df20
mov eax, dword [0x1f0837cc]
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
push 1
push 0
add ecx, eax
call fcn.1f02db10
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
test eax, eax
jbe 0x1f03e06c
push ebx
push ebp
mov ebp, eax
push 8
call fcn.1f03e9a2
mov edx, dword [edi]
mov esi, eax
add esp, 4
mov dword [esi], edx
mov eax, dword [edi + 4]
push 1
push esi
mov ecx, 0x1f083e68
mov dword [esi + 4], eax
call fcn.1f03d640
mov edx, dword [0x1f0837cc]
mov ecx, dword [edx]
mov eax, dword [ecx + 4]
mov eax, dword [eax + edx + 0x24]
test eax, eax
je 0x1f03e05c
mov ebx, dword [esi]
lea ecx, [ecx]
mov ecx, dword [eax]
cmp dword [ecx + 0x18], ebx
je 0x1f03e050
mov eax, dword [eax + 4]
test eax, eax
jne 0x1f03e040
jmp 0x1f03e05c
mov edx, dword [esi + 4]
mov dword [ecx + 0x1c], edx
mov edx, dword [0x1f0837cc]
add edi, 8
sub ebp, 1
jne 0x1f03e005
mov esi, dword [esp + 0x1c]
pop ebp
pop ebx
jmp 0x1f03e072
mov edx, dword [0x1f0837cc]
mov eax, dword [edx]
mov ecx, dword [eax + 4]
add ecx, edx
call fcn.1f02db80
mov ecx, 0x1f083e68
call fcn.1f03dd00
mov eax, dword [0x1f0837c4]
pop edi
push esi
push eax
cmp eax, 0x40
jae 0x1f03e0a1
call fcn.1f001021
mov eax, 1
pop esi
ret
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, 1
pop esi
ret
Function at 0x1f03e1a0
Capabilities:
Enumerate threads

Disassembly:
push 0xffffffffffffffff
push 0x1f056bdb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
xor eax, eax
push ebx
push esi
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 + 0x24], eax
mov dword [esp + 0xc], 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0
push 4
mov ebx, eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x1f03e207
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
push edi
push 0x1c
call fcn.1f03e9a2
add esp, 4
mov dword [esp + 0xc], eax
mov dword [esp + 0x34], 0
test eax, eax
je 0x1f03e22f
push 1
mov ecx, eax
call fcn.1f02e620
mov edi, eax
jmp 0x1f03e231
xor edi, edi
mov dword [esp + 0x34], 0xffffffff
lea eax, [esp + 0x10]
push eax
push esi
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x1f03e28d
cmp dword [esp + 0x1c], ebx
jne 0x1f03e27e
mov eax, dword [0x1f0837d0]
mov ecx, dword [esp + 0x18]
mov edx, dword [eax]
push 0
push ecx
mov ecx, dword [edx + 4]
add ecx, eax
call fcn.1f02dd90
test eax, eax
jne 0x1f03e27e
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + edi]
mov eax, dword [esp + 0x18]
mov edx, dword [edx + 8]
add ecx, edi
push eax
call edx
lea eax, [esp + 0x10]
push eax
push esi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x1f03e248
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x2c]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret

Function at 0x1f044029
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1f06eb84]
jne 0x1f044033
repz ret
jmp fcn.1f04bdc1
Function at 0x1f04d4e1
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.1f0440aa
and dword [ebp - 4], 0
cmp dword [0x1f0848e0], 0
mov ebx, eax
jne 0x1f04d592
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1f04d643
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1f04d643
push eax
call fcn.1f044038
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1f0848e0], eax
call esi
push eax
call fcn.1f044038
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1f0848e4], eax
call esi
push eax
call fcn.1f044038
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1f0848e8], eax
call esi
push eax
call fcn.1f044038
pop ecx
mov dword [0x1f0848f0], eax
test eax, eax
je 0x1f04d592
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1f044038
pop ecx
mov dword [0x1f0848ec], eax
mov eax, dword [0x1f0848ec]
cmp eax, ebx
je 0x1f04d5ea
cmp dword [0x1f0848f0], ebx
je 0x1f04d5ea
push eax
call fcn.1f0440b3
push dword [0x1f0848f0]
mov esi, eax
call fcn.1f0440b3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1f04d5ea
test edi, edi
je 0x1f04d5ea
call esi
test eax, eax
je 0x1f04d5e1
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1f04d5e1
test byte [ebp - 0xc], 1
jne 0x1f04d5ea
or dword [ebp + 0x10], 0x200000
jmp 0x1f04d623
mov eax, dword [0x1f0848e4]
cmp eax, ebx
je 0x1f04d623
push eax
call fcn.1f0440b3
pop ecx
test eax, eax
je 0x1f04d623
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1f04d623
mov eax, dword [0x1f0848e8]
cmp eax, ebx
je 0x1f04d623
push eax
call fcn.1f0440b3
pop ecx
test eax, eax
je 0x1f04d623
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1f0848e0]
call fcn.1f0440b3
pop ecx
test eax, eax
je 0x1f04d643
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1f04d645
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret