joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000f050
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x1001f018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea esi, [ebp - 0x408]
call section..text
mov edi, dword [0x10048a50]
mov edx, dword [edi]
cmp edx, edi
je 0x1000f0fc
lea ecx, [ecx]
mov ecx, dword [edx + 0x14]
mov esi, dword [edx + 0x10]
or eax, 0xffffffff
test ecx, ecx
je 0x1000f0b1
lea ecx, [ecx]
movzx ebx, byte [esi]
mov edi, eax
and edi, 0xff
xor edi, ebx
shr eax, 8
xor eax, dword [ebp + edi*4 - 0x408]
inc esi
dec ecx
jne 0x1000f090
mov edi, dword [0x10048a50]
not eax
cmp dword [edx + 0x18], eax
jne 0x1000f10f
cmp byte [edx + 0x1d], 0
jne 0x1000f0f8
mov eax, dword [edx + 8]
cmp byte [eax + 0x1d], 0
jne 0x1000f0dd
mov edx, eax
mov eax, dword [edx]
cmp byte [eax + 0x1d], 0
jne 0x1000f0f8
mov edx, eax
mov eax, dword [edx]
cmp byte [eax + 0x1d], 0
je 0x1000f0d1
jmp 0x1000f0f8
mov eax, dword [edx + 4]
cmp byte [eax + 0x1d], 0
jne 0x1000f0f6
cmp edx, dword [eax + 8]
jne 0x1000f0f6
mov edx, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x1d], 0
je 0x1000f0e6
mov edx, eax
cmp edx, edi
jne 0x1000f080
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10014184
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.10014184
mov esp, ebp
pop ebp
ret

Function at 0x10010be0
Capabilities:
Check for time delay via gettickcount

Disassembly:
cmp byte [0x10048a64], 0
push esi
je 0x10010c4e
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x10048a68]
cmp eax, 0x1388
jbe 0x10010c4e
push 0x10048a98
call dword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
je 0x10010c4e
call esi
mov dword [0x10048a68], eax
test eax, eax
je 0x10010c43
call fcn.10010b30
test al, al
jne 0x10010c43
push 0x1388
xor ecx, ecx
call fcn.10007d10
push eax
push 2
mov eax, 0x10047868
call fcn.10011080
add esp, 0xc
call fcn.10010c50
push 0x10048a98
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
ret

Function at 0x10010cb0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, ebx
jae 0x10010ce2
jmp 0x10010cd0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
call esi
sub eax, edi
cmp eax, ebx
jb 0x10010cd0
pop edi
xor al, al
pop esi
pop ebp
ret
Function at 0x10010cf0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10015146
mov eax, dword fs:[0]
push eax
sub esp, 0x654
mov eax, dword [0x1001f018]
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 eax, dword [ebp + 8]
mov dx, word [0x1001b54c]
mov dword [ebp - 0x65c], eax
lea eax, [ebp - 0x620]
mov esi, ecx
mov ecx, dword [0x1001b548]
push eax
push 0x3ff
mov dword [ebp - 0x660], esi
mov dword [ebp - 0x18], ecx
mov word [ebp - 0x14], dx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x10010f18
lea ebx, [ebp - 0x620]
xor edi, edi
jmp 0x10010d70
mov cx, word [ebx]
push 0x104
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x18]
push eax
mov word [ebp - 0x18], cx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x10010e26
xor ecx, ecx
mov eax, esi
mov dword [ebp - 0x628], 7
mov dword [ebp - 0x62c], edi
mov word [ebp - 0x63c], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x10010db3
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea ecx, [ebp - 0x63c]
call fcn.10011e40
lea eax, [ebp - 0x220]
mov dword [ebp - 4], edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x10010de0
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x63c]
push eax
call fcn.100116d0
mov esi, eax
cmp esi, 0xffffffff
jne 0x10010e45
mov dword [ebp - 4], eax
cmp dword [ebp - 0x628], 8
jb 0x10010e26
mov ecx, dword [ebp - 0x63c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dx, word [ebx]
add ebx, 2
test dx, dx
jne 0x10010e26
cmp word [ebx], di
je 0x10010f18
mov esi, dword [ebp - 0x660]
jmp 0x10010d70
xor eax, eax
mov word [ebp - 0x658], ax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x644], 7
mov dword [ebp - 0x648], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x10010e67
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x220]
lea ecx, [ebp - 0x658]
call fcn.10011e40
mov eax, ebx
mov byte [ebp - 4], 1
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x10010e91
sub eax, edx
sar eax, 1
push eax
mov eax, dword [ebp - 0x648]
push ebx
inc eax
push esi
lea ecx, [ebp - 0x63c]
call fcn.10011540
mov esi, 8
cmp dword [ebp - 0x644], esi
jb 0x10010ed2
mov ecx, dword [ebp - 0x658]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [ebp - 0x63c]
cmp dword [ebp - 0x628], esi
jae 0x10010ee6
lea eax, [ebp - 0x63c]
mov edx, dword [ebp - 0x65c]
push eax
push 0x104
push edx
call dword [sym.imp.MSVCR100.dll_wcscpy_s]
add esp, 0xc
cmp dword [ebp - 0x628], esi
jb 0x10010f14
mov eax, dword [ebp - 0x63c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, 1
jmp 0x10010f1a
xor al, al
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.10014184
mov esp, ebp
pop ebp
ret
Function at 0x10011080
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
push 1
push ecx
push 0x1001f140
call fcn.10011240
add esp, 4
push eax
push 0
mov ecx, 0x1003d6d8
call fcn.100075a0
mov eax, dword [0x1004761c]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, dword [sym.imp.USER32.dll_UnregisterClassA]
add esp, 0x14
test eax, eax
je 0x100110e6
push 0
push 0
push 0x10
push eax
call edi
mov edx, dword [0x100485dc]
mov eax, dword [str.SPLASH]
push edx
push eax
mov dword [0x1004761c], 0
call ebx
mov eax, dword [0x10047744]
test eax, eax
je 0x10011112
push 0
push 0
push 0x10
push eax
call edi
mov ecx, dword [0x100485dc]
mov edx, dword [str.SPLASH]
push ecx
push edx
mov dword [0x10047744], 0
call ebx
mov eax, dword [0x1004786c]
test eax, eax
je 0x1001113d
push 0
push 0
push 0x10
push eax
call edi
mov eax, dword [0x100485dc]
mov ecx, dword [str.SPLASH]
push eax
push ecx
mov dword [0x1004786c], 0
call ebx
mov eax, dword [ebp + 8]
sub eax, 0
je 0x10011163
dec eax
je 0x10011157
dec eax
jne 0x1001116f
mov eax, 0x6a
mov ecx, 0x2b39c0
jmp 0x10011175
mov eax, 0x69
mov ecx, 0x227ee6
jmp 0x10011175
mov eax, 0x67
mov ecx, 0xf1f0ec
jmp 0x10011175
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
push ecx
push eax
mov eax, dword [ebp + 0xc]
call fcn.100107c0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push esi
push 0x10010fe0
push 0
push 0
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [esi + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x10]
test eax, eax
jle 0x100111f7
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp + 8], 0
je 0x100111f7
mov eax, dword [esi + 4]
test eax, eax
je 0x100111f2
push 0
push 0
push 0x10
push eax
call edi
mov ecx, dword [0x100485dc]
mov edx, dword [esi + 0x1c]
push ecx
push edx
mov dword [esi + 4], 0
call ebx
call fcn.10010c50
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10011200
Capabilities:
Encode data using xor

Disassembly:
push esi
push 0x100
push 0
push 0x10048ec8
mov esi, eax
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
shl esi, 8
lea ecx, [esi + 0x10017978]
pop esi
mov dl, byte [ecx + eax]
sub dl, 0x1b
xor dl, 0xc
mov byte [eax + 0x10048ec8], dl
inc eax
cmp eax, 0x100
jb 0x10011223
mov eax, 0x10048ec8
ret

Function at 0x10011240
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0x100
push 0
push 0x10048dc8
call sub.MSVCR100.dll_memset
mov ecx, dword [ebp + 8]
add esp, 0xc
xor eax, eax
sub ecx, 0x10048dc8
mov dl, byte [ecx + eax + 0x10048dc8]
sub dl, 0x1b
xor dl, 0xc
mov byte [eax + 0x10048dc8], dl
inc eax
cmp eax, 0x100
jl 0x10011262
mov eax, 0x10048dc8
pop ebp
ret
Function at 0x10011340
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x1001f018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
call fcn.10011290
mov esi, eax
lea eax, [ebp - 0x50]
push eax
push 0xf003f
push 0
push 0x100427c6
mov ecx, 9
lea edi, [ebp - 0x28]
rep movsd dword es:[edi], dword [esi]
push closesocket
mov dword [ebp - 0x54], 0x24
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100113cb
lea ecx, [ebp - 0x54]
push ecx
lea edx, [ebp - 0x4c]
push edx
push eax
push eax
mov eax, dword [ebp - 0x50]
push str.WindowID
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [ebp - 0x28]
test eax, eax
je 0x100113de
mov ecx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x50]
push ecx
push edx
push 1
push 0
push str.WindowID
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x50]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x28]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10014184
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x4c]
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x10011401
test al, al
je 0x100113fd
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x10011401
add ecx, 2
add edx, 2
test al, al
jne 0x100113e1
xor eax, eax
jmp 0x10011406
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x100113c1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
lea eax, [ebp - 0x4c]
pop esi
call fcn.10014184
mov esp, ebp
pop ebp
ret

Function at 0x10011420
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x1001f018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
call fcn.10011290
mov esi, eax
lea eax, [ebp - 0x2c]
push eax
push 0xf003f
push 0
push 0x100427c6
mov ecx, 9
lea edi, [ebp - 0x28]
push closesocket
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10011484
mov edx, dword [ebp - 0x2c]
push 0x24
lea ecx, [ebp - 0x28]
push ecx
push 1
push eax
push str.WindowID
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10014184
mov esp, ebp
pop ebp
ret
Function at 0x100114a0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1001f018]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x100114d7
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10014184
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x20]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x100114c7
mov edx, dword [ebp - 0x20]
push 0
push 0
xor eax, eax
push 0x10
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], eax
push ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x18]
push 0
push edx
mov dword [ebp - 0x14], 1
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
call fcn.10014184
mov esp, ebp
pop ebp
ret

Function at 0x10011f80
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [0x1003d69c]
push edi
cmp esi, dword [0x1003d6a0]
je 0x1001204e
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
nop
cmp byte [esi], 2
jne 0x10011fbe
lea eax, [ebp - 4]
push eax
lea ecx, [esi + 1]
push ecx
xor ebx, ebx
push closesocket
mov dword [ebp - 4], ebx
call edi
cmp dword [ebp - 4], ebx
jne 0x10011fd3
add esi, 0x105
cmp esi, dword [0x1003d6a0]
jne 0x10011fa0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x1003d6a0]
mov esi, dword [0x1003d69c]
sub ecx, esi
mov eax, 0x7d8c42b3
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x10012036
xor edi, edi
cmp byte [edi + esi], 2
jne 0x10012012
lea ecx, [edi + esi + 1]
push ecx
push closesocket
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov esi, dword [0x1003d69c]
mov ecx, dword [0x1003d6a0]
sub ecx, esi
mov eax, 0x7d8c42b3
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
inc ebx
add eax, edx
add edi, 0x105
cmp ebx, eax
jb 0x10011ff6
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0
push 6
call fcn.10004970
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100121b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.10012350
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x10012274
cmp dword [ebp - 4], 0x50000000
jb 0x100121f1
cmp dword [ebp - 4], 0x80000000
ja 0x100121f1
mov dword [ebp - 4], 0x4fff0000
jmp 0x100121ca
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10012217
jmp 0x10012274
cmp dword [ebp - 0x14], 0x10000
jne 0x1001225a
cmp dword [ebp - 0x18], 0x10000
jb 0x1001225a
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1001224d
mov eax, dword [ebp - 8]
jmp 0x10012276
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1001226f
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.10012350
add esp, 4
mov dword [ebp - 4], eax
jmp 0x100121ca
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10012280
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.10012380
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1001233c
cmp dword [ebp - 4], 0x50000000
jb 0x100122bc
cmp dword [ebp - 4], 0x80000000
ja 0x100122bc
mov dword [ebp - 4], 0x80010000
jmp 0x10012295
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x100122e2
jmp 0x1001233c
cmp dword [ebp - 0x14], 0x10000
jne 0x10012325
cmp dword [ebp - 0x18], 0x10000
jb 0x10012325
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10012318
mov eax, dword [ebp - 8]
jmp 0x1001233e
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10012337
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.10012380
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10012295
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10012ab0
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
cmp dword [eax], 0x52727464
je 0x10012ac5
xor eax, eax
jmp 0x10012b3a
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
add edx, 0x10000
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
add eax, 0x48
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
jmp 0x10012af2
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x38d
jae 0x10012b35
mov edx, dword [ebp - 4]
imul edx, edx, 0x48
mov eax, dword [ebp - 8]
cmp dword [eax + edx + 0x40], 0
je 0x10012b33
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 0xc]
jb 0x10012b2f
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 0x10]
jb 0x10012b33
xor eax, eax
jmp 0x10012b3a
jmp 0x10012ae9
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x10012d00
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10047e00]
mov dword [ebp - 4], eax
jmp 0x10012d19
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x10012d36
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x10012d10
mov esp, ebp
pop ebp
ret
Function at 0x10013180
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x10047e10], eax
je 0x1001319e
mov eax, 0x10dd
jmp 0x1001327f
mov eax, dword [0x10047e20]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1001321c
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x100131fa
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x100131fa
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.10012820
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x100131a6
mov dword [0x10047e20], 0
call fcn.10012b40
mov ecx, dword [0x10047e1c]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x10013269
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x10013234
mov dword [0x10047e1c], 0
mov dword [0x10047e10], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10013770
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x10047e14], 0
je 0x10013789
mov eax, dword [0x10047e14]
jmp 0x10013829
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp dword [ebp + 8], eax
jne 0x1001379b
xor eax, eax
jmp 0x10013829
push 8
call fcn.100142a4
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100137f1
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x100137da
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x10047e14], eax
mov dword [0x10047e18], 0
mov eax, dword [ebp - 8]
jmp 0x10013829
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x1001380b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x100137bb
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x10047e1c]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x10047e1c], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x10014184
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1001f018]
jne 0x1001418e
repz ret
jmp fcn.100146c7
Function at 0x10001190
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, dword [esp + 8]
mov eax, dword [ebp]
test eax, eax
jne 0x100011b5
add ebp, 0xc4
push str.Cannot_transmit_a_queue_to_an_offline_capture
push ebp
call fcn.10016846
add esp, 8
or eax, 0xffffffff
pop ebp
ret
mov ecx, dword [esp + 0x10]
push ebx
push esi
mov esi, dword [esp + 0x14]
push ecx
mov edx, dword [esi + 4]
mov ecx, dword [esi + 8]
push edx
push ecx
push eax
call sub.packet.dll_PacketSendPackets
mov ebx, eax
mov eax, dword [esi + 4]
add esp, 0x10
cmp ebx, eax
je 0x10001233
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [ebp + 0xc4]
push 0
push 0x100
push esi
push 0
push eax
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
cmp ecx, 2
jl 0x1000121f
mov byte [ecx + ebp + 0xc3], al
mov byte [ecx + ebp + 0xc2], al
push esi
push str.Error_opening_adapter:__s
push 0x100
push esi
call fcn.10008980
add esp, 0x10
mov eax, ebx
pop esi
pop ebx
pop ebp
ret
Function at 0x10003b90
Capabilities:
Get common file path

Disassembly:
sub esp, 0x22c
mov eax, dword [0x10032c28]
mov dword [esp], str.getaddrinfo
test eax, eax
mov dword [esp + 4], 0x100026b0
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x100033f0
mov dword [esp + 0x10], str.freeaddrinfo
mov dword [esp + 0x14], 0x10002660
je 0x10003beb
mov eax, dword [esp + 0x230]
and eax, 0xffff
mov eax, dword [eax*8 + 0x1002d24c]
add esp, 0x22c
ret 4
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x134]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x10003d45
lea edi, [esp + 0x134]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x28]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.ws2_32
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
and ecx, 3
lea eax, [esp + 0x28]
rep movsb byte es:[edi], byte [esi]
push eax
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x10003c8c
push str.getaddrinfo
push esi
call ebp
test eax, eax
jne 0x10003d04
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edi, [esp + 0x134]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x28]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.wship6
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x28]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
mov esi, eax
test esi, esi
je 0x10003d45
push str.getaddrinfo
push esi
call ebp
test eax, eax
jne 0x10003d04
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x10003d45
mov ecx, dword [0x100201f0]
xor ebx, ebx
test ecx, ecx
jle 0x10003d2f
lea edi, [esp + 0x14]
mov ecx, dword [edi - 4]
push ecx
push esi
call ebp
test eax, eax
mov dword [edi], eax
je 0x10003cfb
mov ecx, dword [0x100201f0]
inc ebx
add edi, 8
cmp ebx, ecx
jl 0x10003d14
xor eax, eax
test ecx, ecx
jle 0x10003d45
mov edx, dword [esp + eax*8 + 0x14]
mov dword [eax*8 + 0x1002d24c], edx
inc eax
cmp eax, ecx
jl 0x10003d35
mov eax, dword [esp + 0x240]
pop edi
and eax, 0xffff
pop esi
pop ebp
mov dword [0x10032c28], 1
mov eax, dword [eax*8 + 0x1002d24c]
pop ebx
add esp, 0x22c
ret 4