joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100486c0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100bb0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x104
lea eax, [ebp - 0x108]
mov bl, 1
push 0
push eax
call fcn.10064410
add esp, 0xc
lea eax, [ebp - 0x108]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x10048765
push edi
lea eax, [ebp - 0x108]
push 0x5c
push eax
call fcn.10066720
mov edi, eax
add esp, 8
test edi, edi
je 0x10048753
inc edi
push str.iexplore.exe
push edi
call fcn.1007551d
add esp, 8
test eax, eax
je 0x10048753
push str.process_is__s__not_start_bho
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004ebbb
mov esp, ebp
pop ebp
ret
pop edi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004ebbb
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.1004ebbb
mov esp, ebp
pop ebp
ret

Function at 0x10048780
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100bb0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push 0xffffffffffffffff
push 0
mov eax, dword [esi + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 4]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x100c6e4c
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0
push dword [esi + 4]
test eax, eax
je 0x100487e3
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004ebbb
mov esp, ebp
pop ebp
ret
push fcn.10025c00
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1004ebbb
mov esp, ebp
pop ebp
ret
Function at 0x10049810
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x100bb0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
cmp esi, 0xffffffff
jne 0x10049850
call fcn.10063bd0
mov dword [edi + 4], eax
or eax, esi
mov dword [edi], 0x2719
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004ebbb
mov esp, ebp
pop ebp
ret
push ebx
push 0
mov dword [ebp - 0x208], esi
mov dword [ebp - 0x20c], 1
mov dword [ebp - 0x104], esi
mov dword [ebp - 0x108], 1
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
lea eax, [esi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov ebx, eax
call fcn.10063bd0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], eax
mov dword [edi + 4], esi
test ebx, ebx
js 0x100498bb
call fcn.10063bd0
mov dword [edi], 0
mov dword [edi + 4], eax
mov ecx, dword [ebp - 4]
mov eax, ebx
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.1004ebbb
mov esp, ebp
pop ebp
ret

Function at 0x100498d0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x100bb0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov bl, byte [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
cmp esi, 0xffffffff
jne 0x10049915
call fcn.10063bd0
mov dword [edi + 4], eax
or eax, esi
mov dword [edi], 0x2719
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004ebbb
mov esp, ebp
pop ebp
ret
push 0
mov dword [ebp - 0x10c], esi
mov dword [ebp - 0x110], 1
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, 0
lea eax, [ebp - 0xc]
and bl, 1
cmove eax, ecx
push eax
push ecx
push ecx
lea eax, [ebp - 0x110]
push eax
lea eax, [esi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 0x114], eax
call fcn.10063bd0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi + 4], esi
mov esi, dword [ebp - 0x114]
mov dword [edi], eax
test esi, esi
jne 0x100499c2
test bl, bl
je 0x1004999e
call fcn.10063bd0
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0x2733
mov dword [ebp - 8], eax
mov eax, dword [ecx]
mov dword [edi], eax
mov eax, dword [ecx + 4]
jmp 0x100499cf
mov dword [ebp - 0x118], 0
call fcn.10063bd0
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x114], eax
mov eax, dword [ecx]
mov dword [edi], eax
mov eax, dword [ecx + 4]
jmp 0x100499cf
jle 0x100499d2
call fcn.10063bd0
mov dword [edi], 0
mov dword [edi + 4], eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004ebbb
mov esp, ebp
pop ebp
ret
Function at 0x100499f0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x100bb0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov bl, byte [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
cmp esi, 0xffffffff
jne 0x10049a35
call fcn.10063bd0
mov dword [edi + 4], eax
or eax, esi
mov dword [edi], 0x2719
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004ebbb
mov esp, ebp
pop ebp
ret
push 0
mov dword [ebp - 0x10c], esi
mov dword [ebp - 0x110], 1
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, 0
lea eax, [ebp - 0xc]
and bl, 1
cmove eax, ecx
push eax
push ecx
lea eax, [ebp - 0x110]
push eax
push ecx
lea eax, [esi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 0x114], eax
call fcn.10063bd0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi + 4], esi
mov esi, dword [ebp - 0x114]
mov dword [edi], eax
test esi, esi
jne 0x10049ae2
test bl, bl
je 0x10049abe
call fcn.10063bd0
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0x2733
mov dword [ebp - 8], eax
mov eax, dword [ecx]
mov dword [edi], eax
mov eax, dword [ecx + 4]
jmp 0x10049aef
mov dword [ebp - 0x118], 0
call fcn.10063bd0
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x114], eax
mov eax, dword [ecx]
mov dword [edi], eax
mov eax, dword [ecx + 4]
jmp 0x10049aef
jle 0x10049af2
call fcn.10063bd0
mov dword [edi], 0
mov dword [edi + 4], eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004ebbb
mov esp, ebp
pop ebp
ret
Function at 0x1004b570
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100bb0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 0x14]
push 0
push 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push dword [ebp + 0x10]
push esi
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_WSARecv]
mov ebx, eax
call fcn.10063bd0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], eax
mov dword [edi + 4], esi
cmp eax, 0x40
jne 0x1004b5dd
call fcn.10063bd0
mov dword [edi], 0x2746
jmp 0x1004b5ef
cmp eax, 0x4d2
jne 0x1004b5f2
call fcn.10063bd0
mov dword [edi], 0x274d
mov dword [edi + 4], eax
test ebx, ebx
je 0x1004b60a
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004ebbb
mov esp, ebp
pop ebp
ret
call fcn.10063bd0
mov ecx, dword [ebp - 4]
mov dword [edi + 4], eax
xor ecx, ebp
mov eax, dword [ebp - 8]
mov dword [edi], 0
pop edi
pop esi
pop ebx
call fcn.1004ebbb
mov esp, ebp
pop ebp
ret
Function at 0x1004bfc0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10092940
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x100bb0a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
lea eax, [edi + 0x18]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
test eax, eax
jne 0x1004c01c
mov ecx, edi
call fcn.1004d5d0
call fcn.10063bd0
mov dword [ebx + 4], eax
xor eax, eax
mov dword [ebx], 0
jmp 0x1004c0af
mov dword [ebp - 0x14], 0
push dword [0x100c6e40]
xorps xmm0, xmm0
mov dword [ebp - 4], 0
movq qword [ebp - 0x20], xmm0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x100c6e40]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ebx
push 1
mov ecx, edi
mov byte [ebp - 4], 1
xor esi, esi
call fcn.100450b0
test eax, eax
je 0x1004c08e
cmp esi, 0xffffffff
lea eax, [esi + 1]
push ebx
cmove eax, esi
mov ecx, edi
push 1
mov esi, eax
call fcn.100450b0
test eax, eax
jne 0x1004c075
push dword [ebp - 0x18]
push dword [0x100c6e40]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x1004c0ad
push ecx
call fcn.1004ebb6
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004ebbb
mov esp, ebp
pop ebp
ret 4
Function at 0x1004c0d0
Capabilities:
Print debug messages
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [str..pipe6c459691_c3d3_4686_b2fd_6b3ba6528b42]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push edi
mov edi, dword [0x100c6e20]
mov byte [0x100c6d57], 0
mov dword [ebp - 8], eax
test edi, edi
je 0x1004c189
push 0
push eax
mov byte [ebp - 1], 0
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
test eax, eax
je 0x1004c176
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x1004c176
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x100c6e27], 0
mov eax, 1
movzx ebx, byte [ebp - 1]
push dword [ebp - 8]
cmove ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x1004c170
push str.exit_pipe_thread_success
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1004c186
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push str.exit_pipe_thread_failed__use_TerminateThread
call esi
push edi
call ebx
mov eax, dword [0x100c6e1c]
mov dword [0x100c6e20], 0
test eax, eax
je 0x1004c1ce
cmp dword [0x100bb084], 0
jne 0x1004c1ac
push str.exit_heartbeat_success
jmp 0x1004c1ba
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push str.exit_heartbeat_failed__use_TerminateThread
call esi
push dword [0x100c6e1c]
call ebx
mov dword [0x100c6e1c], 0
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1004cca0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100bb0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push 0
push dword [ebp + 0x14]
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push dword [ebp + 0x10]
push esi
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_WSASend]
mov ebx, eax
call fcn.10063bd0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], eax
mov dword [edi + 4], esi
cmp eax, 0x40
jne 0x1004cd06
call fcn.10063bd0
mov dword [edi], 0x2746
jmp 0x1004cd18
cmp eax, 0x4d2
jne 0x1004cd1b
call fcn.10063bd0
mov dword [edi], 0x274d
mov dword [edi + 4], eax
test ebx, ebx
je 0x1004cd33
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004ebbb
mov esp, ebp
pop ebp
ret
call fcn.10063bd0
mov ecx, dword [ebp - 4]
mov dword [edi + 4], eax
xor ecx, ebp
mov eax, dword [ebp - 8]
mov dword [edi], 0
pop edi
pop esi
pop ebx
call fcn.1004ebbb
mov esp, ebp
pop ebp
ret

Function at 0x1004cda0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x100bb0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x400
lea eax, [ebp - 0x404]
push 0
push eax
call fcn.10064410
add esp, 0xc
lea eax, [ebp - 0x404]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x1004cdf5
push str.skyguard_bho
lea eax, [ebp - 0x404]
mov ecx, 0x100c6d58
push eax
call fcn.10001b50
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004ebbb
mov esp, ebp
pop ebp
ret

Function at 0x1004d3c0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100bb0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 1
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov edi, eax
call fcn.10063bd0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebx], eax
mov dword [ebx + 4], esi
cmp edi, 0xffffffff
jne 0x1004d41f
or eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004ebbb
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 8], 0x17
jne 0x1004d43d
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x1b
push 0x29
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
call fcn.10063bd0
mov ecx, dword [ebp - 4]
mov dword [ebx + 4], eax
xor ecx, ebp
mov eax, edi
mov dword [ebx], 0
pop edi
pop esi
pop ebx
call fcn.1004ebbb
mov esp, ebp
pop ebp
ret
Function at 0x1004d460
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100bb0a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
push 0
push 1
mov esi, ecx
mov dword [ebp - 0x18], eax
push 0
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
mov dword [ebx + 4], edi
test edi, edi
jne 0x1004d4c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov esi, eax
call dword [edx]
xorps xmm0, xmm0
movq qword [ebp - 0x10], xmm0
mov dword [ebp - 0x10], esi
call fcn.10063bd0
mov dword [ebp - 0xc], eax
test esi, esi
jne 0x1004d59d
mov esi, dword [ebp - 0x14]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 8], eax
mov dword [ebx + 8], eax
cmp dword [esi + 8], 0
jne 0x1004d50e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov esi, eax
call dword [edx]
xorps xmm0, xmm0
movq qword [ebp - 0x10], xmm0
mov dword [ebp - 0x10], esi
call fcn.10063bd0
mov dword [ebp - 0xc], eax
test esi, esi
jne 0x1004d5ab
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0
push ebx
push 0x1004e6f0
push dword [ebp - 0x18]
push 0
call fcn.10076ad1
add esp, 0x18
mov dword [esi + 4], eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1004d57a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov dword [ebp - 0x18], eax
call dword [edx]
test edi, edi
je 0x1004d553
push edi
call esi
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
test eax, eax
je 0x1004d560
push eax
call esi
mov ebx, dword [ebp - 0x18]
xorps xmm0, xmm0
movq qword [ebp - 0x10], xmm0
mov dword [ebp - 0x10], ebx
call fcn.10063bd0
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x1004d5b9
test edi, edi
je 0x1004d58a
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004ebbb
mov esp, ebp
pop ebp
ret 8
push str.thread.entry_event
lea eax, [ebp - 0x10]
push eax
call fcn.100456b0
push str.thread.exit_event
lea eax, [ebp - 0x10]
push eax
call fcn.100456b0
push str.thread
lea eax, [ebp - 0x10]
push eax
call fcn.100456b0
int3
Function at 0x10062c50
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10093dfe
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x100bb0a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x100bb12c]
cmp eax, 0xffffffff
jne 0x10062c86
xor ebx, ebx
jmp 0x10062c8f
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x10062cd1
nop dword [eax]
cmp dword [ebx + 0x18], 0
mov esi, dword [ebx + 0xc]
jne 0x10062d10
test esi, esi
jne 0x10062d14
push 0x100626c0
push 0x100c76a0
call fcn.100621f0
mov eax, dword [0x100bb12c]
add esp, 8
cmp eax, 0xffffffff
je 0x10062cd1
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [ebp - 4], 1
test ebx, ebx
je 0x10062cfe
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x10062cfe
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x10062d56
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x10062d3f
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x10062d14
cmp dword [ebx + 0x18], 0
je 0x10062ca0
mov esi, dword [ebx + 0x14]
mov esi, dword [esi]
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x10062d79
mov edx, dword [esi + 0x1c]
test edx, edx
je 0x10062d79
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x14]
call fcn.100626f0
cmp dword [ebx + 0x18], 0
jne 0x10062d60
jmp 0x10062ca0
Function at 0x10063f80
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10093f70
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push esi
mov eax, dword [0x100bb0a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], 0
push 0x1009e7b0
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], 0
mov dword [esi], vtable.std::codecvt_wchar_t__char__struct__Mbstatet_.0
call fcn.10015880
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 1
push eax
call fcn.10050058
add esp, 4
lea ecx, [ebp - 0x70]
movups xmm0, xmmword [eax]
movups xmmword [esi + 8], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [esi + 0x18], xmm0
movq xmm0, qword [eax + 0x20]
movq qword [esi + 0x28], xmm0
mov eax, dword [eax + 0x28]
mov dword [esi + 0x30], eax
call fcn.10017fd0
mov dword [esi], vtable.windows_file_codecvt.0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1007fa3f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1007f702

Function at 0x1007fa4a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1007f883

Function at 0x10083291
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10082f51
Function at 0x410de0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x494c5b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00487121
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x410e62
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00484ad3
mov eax, dword [eax]
push 0x51fd14
push eax
call fcn.00476864
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004873ac
test bl, bl
je 0x410e62
push 0x51fd14
lea ecx, [esp + 0xc]
call fcn.00487788
push 0x51fd20
lea ecx, [esp + 0xc]
call fcn.00487788
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x410e9e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004873ac
jmp 0x410f69
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x410f22
lea edx, [esp + 0x7c]
push 0x51fd1c
push edx
call fcn.00476864
add esp, 8
test eax, eax
je 0x410f22
lea eax, [esp + 0x7c]
push 0x51fd18
push eax
call fcn.00476864
add esp, 8
test eax, eax
je 0x410f22
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x410eb2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004873ac
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x411770
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4117d2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc