joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10008bf0
Capabilities:
Get common file path
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x10051ed8
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100677a0]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov edi, dword [esp + 0x78]
xor ebx, ebx
push ebx
push 0x100555c4
mov ecx, edi
call fcn.10002adf
push 0x104
call fcn.10037406
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x10008dbb
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov eax, esi
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x10008c62
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x38]
call fcn.10002adf
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x38]
push eax
mov ecx, edi
mov dword [esp + 0x7c], ebx
call fcn.1000267e
mov ebp, 0x10
cmp dword [esp + 0x48], ebp
mov dword [esp + 0x70], 0xffffffff
jb 0x10008cab
mov ecx, dword [esp + 0x34]
push ecx
call fcn.10038f4b
add esp, 4
push esi
call fcn.10038f50
add esp, 4
cmp dword [0x10068ca8], ebx
jg 0x10008db7
push 0x33
mov esi, 0xf
push str._sysFileStructure::getWindowsDirectory__returned_
lea ecx, [esp + 0x1c]
mov dword [esp + 0x80], ebx
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.10002adf
push edi
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x54]
push eax
mov dword [esp + 0x7c], 1
call fcn.10003429
add esp, 0xc
cmp dword [eax + 0x18], ebp
mov byte [esp + 0x70], 2
jb 0x10008d12
mov eax, dword [eax + 4]
jmp 0x10008d15
add eax, 4
push ebx
push ebx
push eax
push 0x85
push str.._src_sysfilestructure.cpp
push ebx
push 2
lea ecx, [esp + 0x94]
push 1
push ecx
call fcn.1000655c
add esp, 0x24
cmp dword [esp + 0x64], ebp
jb 0x10008d4a
mov edx, dword [esp + 0x50]
push edx
call fcn.10038f4b
add esp, 4
cmp dword [esp + 0x2c], ebp
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
mov dword [esp + 0x70], 0xffffffff
jb 0x10008d71
mov eax, dword [esp + 0x18]
push eax
call fcn.10038f4b
add esp, 4
cmp byte [0x10068cb4], bl
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x78]
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
je 0x10008d90
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [0x10068cac]
cmp ecx, ebx
je 0x10008daa
mov eax, dword [0x10068cb0]
cmp eax, ebx
je 0x10008daa
push eax
push esi
call ecx
add esp, 8
cmp esi, ebx
je 0x10008db7
push esi
call fcn.10038f50
add esp, 4
mov al, 1
jmp 0x10008dbd
xor al, al
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret 4
Function at 0x10009fb0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x1005215b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x100677a0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
lea ecx, [esi + 0x14]
mov dword [esi], vtable.BStringVector.0
xor eax, eax
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], eax
mov byte [ecx + 4], al
mov edx, 0xa
push eax
push 0x100555c4
mov dword [esp + 0x1c], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], edx
call fcn.10002adf
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x1000a0a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x100521bb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100677a0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 4]
mov eax, ecx
xor edx, edx
div dword [esi + 0x10]
mov edx, 0x1c
mov ebp, dword [esi + 0x30]
add eax, dword [esi + 0xc]
lea edi, [eax + ecx]
xor ecx, ecx
mov eax, edi
mul edx
seto cl
mov dword [esi + 8], edi
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.10037406
add esp, 4
mov dword [esp + 0x14], eax
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x20], ebx
je 0x1000a12a
push fcn.10001e79
push 0x10002128
push edi
lea ebx, [eax + 4]
push 0x1c
push ebx
mov dword [eax], edi
call fcn.1003bc67
mov dword [esi + 0x30], ebx
xor ebx, ebx
cmp dword [esi + 4], ebx
mov dword [esp + 0x20], 0xffffffff
jbe 0x1000a15b
xor edi, edi
push 0xffffffffffffffff
push 0
lea ecx, [edi + ebp]
push ecx
mov ecx, dword [esi + 0x30]
add ecx, edi
call fcn.1000267e
add ebx, 1
add edi, 0x1c
cmp ebx, dword [esi + 4]
jb 0x1000a13e
test ebp, ebp
je 0x1000a17c
mov edx, dword [ebp - 4]
push fcn.10001e79
lea esi, [ebp - 4]
push edx
push 0x1c
push ebp
call fcn.10039e38
push esi
call fcn.10038f50
add esp, 4
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x1000a943
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x1000a97e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x1000a965
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x1000a976
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x1000a980
inc edi
add eax, 0x28
cmp edi, esi
jb 0x1000a95b
xor eax, eax
pop edi
pop esi
ret

Function at 0x1000b030
Capabilities:
Inspect section memory permissions

Disassembly:
add byte [eax + 0x3b184d8b], al
sal dword [esp + eax - 0x80], cl
or al, 8
add dword [ecx], edi
pop ebp
or byte [esp + eax - 0x80], dh
je 0x1000b046
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x1000b050
add ecx, eax
or byte [ecx], 4
Function at 0x10012eb0
Capabilities:
Initialize winsock library
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x100535db
mov eax, dword fs:[0]
push eax
sub esp, 0x200
mov eax, dword [0x100677a0]
xor eax, esp
mov dword [esp + 0x1fc], eax
push ebx
push esi
push edi
mov eax, dword [0x100677a0]
xor eax, esp
push eax
lea eax, [esp + 0x210]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x220]
xor ebx, ebx
lea ecx, [esp + 0x18]
push ecx
push 0x101
mov dword [esp + 0x220], ebx
mov dword [esi], vtable.RapidDiscovery.0
mov dword [esi + 8], ebx
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
call dword [sym.imp.WSOCK32.dll_WSAStartup]
push 0x64
lea edx, [esp + 0x1ac]
push ebx
push edx
call fcn.10038d20
mov ax, word [esp + 0x24]
movzx ecx, ah
movzx edx, al
push ecx
push edx
lea eax, [esp + 0x1bc]
push str.RapidDiscovery::RapidDiscovery___Winsock_version__i._i
push eax
call fcn.1003ada5
add esp, 0x1c
cmp dword [0x10068ca8], ebx
jg 0x10012fc0
push ebx
push ebx
lea ecx, [esp + 0x1b0]
push ecx
push 0x2e
push str.._src_rapiddiscovery.cpp
push ebx
push 2
lea edx, [esp + 0x2c]
push 1
push edx
mov dword [esp + 0x34], ebx
call fcn.1000655c
mov edi, dword [esp + 0x34]
add esp, 0x24
cmp byte [0x10068cb4], bl
je 0x10012f99
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [0x10068cac]
cmp ecx, ebx
je 0x10012fb3
mov eax, dword [0x10068cb0]
cmp eax, ebx
je 0x10012fb3
push eax
push edi
call ecx
add esp, 8
cmp edi, ebx
je 0x10012fc0
push edi
call fcn.10038f50
add esp, 4
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 4], eax
mov eax, esi
mov ecx, dword [esp + 0x210]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1fc]
xor ecx, esp
call fcn.1003942d
add esp, 0x20c
ret 4
Function at 0x1001468c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
lea ebx, [ecx + 0x6a]
push 0x9c
mov byte [ebx], 0
call fcn.10038ffc
mov esi, eax
pop ecx
push esi
mov dword [esi], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x100146d6
cmp dword [esi + 0x10], 2
jne 0x100146d2
cmp dword [esi + 4], 5
jne 0x100146d2
cmp dword [esi + 8], 1
jne 0x100146d2
cmp word [esi + 0x94], 2
jb 0x100146dc
mov byte [ebp - 1], 0
cmp byte [ebp - 1], 0
je 0x100146e3
push ebx
call fcn.1002f2c0
pop ecx
push esi
call fcn.10038f4b
pop ecx
pop esi
pop ebx
leave
ret

Function at 0x1001631c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 8]
cmp eax, 2
push edi
je 0x10016402
cmp eax, 3
je 0x10016402
mov eax, dword [esi + 0x24]
test eax, eax
je 0x1001634b
push eax
call fcn.10038f50
and dword [esi + 0x24], 0
pop ecx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x100163ae
cmp dword [ebp + 0xc], 0
je 0x10016402
push dword [ebp + 0xc]
call fcn.10038bb0
cmp ebx, 2
pop ecx
mov edi, eax
jne 0x1001637a
cmp edi, 0xc
je 0x1001637a
cmp edi, 0x10
jne 0x10016402
inc edi
push edi
call fcn.10037406
push edi
push 0
push eax
mov dword [esi + 0x24], eax
call fcn.10038d20
push dword [ebp + 0xc]
push dword [esi + 0x24]
call fcn.10039ea0
add esp, 0x18
cmp ebx, 2
je 0x100163a5
cmp ebx, 4
jne 0x100163ae
push dword [esi + 0x24]
call fcn.1003c943
pop ecx
cmp ebx, 1
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x28], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x20], ebx
mov dword [esi + 0x2c], eax
je 0x100163cf
cmp dword [0x1006705c], 1
jg 0x100163cf
xor al, al
jmp 0x100163d1
mov al, 1
mov ecx, dword [esi + 4]
push esi
mov byte [ecx + 4], al
and dword [esi + 0x10], 0
push 0
push 0x100162f8
mov byte [esi + 0x18], 0
call fcn.1003cc29
add esp, 0xc
test eax, eax
mov dword [esi + 0x1c], eax
je 0x10016402
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov al, 1
jmp 0x10016404
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x10016440
Capabilities:
Set socket configuration

Disassembly:
push ecx
cmp byte [ecx + 0x29], 0
jne 0x1001644e
mov eax, 0x18
pop ecx
ret
cmp byte [ecx + 0x28], 0
je 0x1001645b
mov eax, 0x17
pop ecx
ret
mov ecx, dword [ecx + 4]
push 4
lea eax, [esp + 4]
push eax
push 4
push 0xffff
push ecx
mov dword [esp + 0x14], 1
call dword [sym.imp.WSOCK32.dll_setsockopt]
sub eax, 0xffffffff
neg eax
sbb eax, eax
and eax, 0xfffffff0
add eax, 0x10
pop ecx
ret
Function at 0x100164d0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x18
mov eax, dword [0x100677a0]
xor eax, esp
mov dword [esp + 0x14], eax
mov eax, ecx
cmp byte [eax + 0x29], 0
push esi
mov esi, dword [esp + 0x20]
jne 0x10016502
mov eax, 0x18
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.1003942d
add esp, 0x18
ret 4
mov eax, dword [eax + 4]
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0xc]
push edx
push eax
mov dword [esp + 0x10], 0x10
call dword [sym.imp.WSOCK32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x1001653a
mov eax, 1
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.1003942d
add esp, 0x18
ret 4
mov ecx, dword [esp + 0xa]
push ecx
call dword [sym.imp.WSOCK32.dll_ntohs]
mov ecx, dword [esp + 0x18]
mov word [esi], ax
pop esi
xor ecx, esp
xor eax, eax
call fcn.1003942d
add esp, 0x18
ret 4

Function at 0x10016560
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
push esi
mov esi, dword [esp + 0x114]
mov eax, 0x10624dd3
imul esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 4], eax
imul eax, eax, 0x3e8
sub esi, eax
mov eax, dword [ecx + 4]
imul esi, esi, 0x3e8
lea ecx, [esp + 4]
push ecx
push 0
push 0
lea edx, [esp + 0x18]
push edx
push 1
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], 1
call dword [sym.imp.WSOCK32.dll_select]
test eax, eax
pop esi
jge 0x100165d3
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov eax, 0x16
add esp, 0x10c
ret 8
mov ecx, dword [esp + 0x114]
setg al
mov byte [ecx], al
xor eax, eax
add esp, 0x10c
ret 8

Function at 0x100165f0
Capabilities:
Set socket configuration

Disassembly:
cmp byte [ecx + 0x29], 0
jne 0x100165fe
mov eax, 0x18
ret 4
mov ecx, dword [ecx + 4]
push 4
lea eax, [esp + 8]
push eax
push 0xa
push 0
push ecx
call dword [sym.imp.WSOCK32.dll_setsockopt]
sub eax, 0xffffffff
neg eax
sbb eax, eax
and eax, 0xffffffee
add eax, 0x12
ret 4

Function at 0x10016630
Capabilities:
Set socket configuration

Disassembly:
cmp byte [ecx + 0x29], 0
jne 0x1001663c
mov eax, 0x18
ret
push 4
lea eax, [ecx + 0x1c]
mov ecx, dword [ecx + 4]
push eax
push 9
push 0
push ecx
call dword [sym.imp.WSOCK32.dll_setsockopt]
sub eax, 0xffffffff
neg eax
sbb eax, eax
and eax, 0xfffffff1
add eax, 0xf
ret

Function at 0x10016660
Capabilities:
Set socket configuration

Disassembly:
cmp byte [ecx + 0x29], 0
jne 0x1001666e
mov eax, 0x18
ret 4
cmp dword [esp + 4], 0x2000
jge 0x10016680
mov eax, 4
ret 4
mov ecx, dword [ecx + 4]
push 4
lea eax, [esp + 8]
push eax
push 0x1002
push 0xffff
push ecx
call dword [sym.imp.WSOCK32.dll_setsockopt]
sub eax, 0xffffffff
neg eax
sbb eax, eax
and eax, 0xffffffed
add eax, 0x13
ret 4

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

Disassembly:
movzx edx, word [esp + 8]
push 0x10
lea eax, [ecx + 8]
mov ecx, dword [ecx + 4]
push eax
mov eax, dword [esp + 0xc]
push 0
push edx
push eax
push ecx
call dword [sym.imp.WSOCK32.dll_sendto]
ret 8
Function at 0x10016b10
Capabilities:
Check os version

Disassembly:
push ecx
push esi
push edi
lea edi, [ecx + 0x34]
push 0x9c
mov byte [edi], 0
call fcn.10038ffc
mov esi, eax
add esp, 4
push esi
mov dword [esi], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x10016b65
mov eax, 2
cmp dword [esi + 0x10], eax
jne 0x10016b75
cmp dword [esi + 4], 5
jne 0x10016b75
cmp dword [esi + 8], 1
jne 0x10016b75
cmp word [esi + 0x94], ax
jb 0x10016b6c
push esi
call fcn.10038f4b
add esp, 4
pop edi
pop esi
pop ecx
ret
cmp byte [esp + 0xb], 0
je 0x10016b75
push edi
call fcn.1002f2c0
add esp, 4
push esi
call fcn.10038f4b
add esp, 4
pop edi
pop esi
pop ecx
ret

Function at 0x10016ca0
Capabilities:
Set socket configuration

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov eax, dword [esp + 8]
push eax
mov word [esi + 8], 2
call dword [sym.imp.WSOCK32.dll_htons]
mov ecx, dword [esp + 0xc]
push ecx
mov word [esi + 0xa], ax
call dword [sym.imp.WSOCK32.dll_inet_addr]
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov dword [esi + 0xc], eax
pop esi
sub edx, 1
and edx, 0xe
mov eax, edx
ret 8

Function at 0x10016cf0
Capabilities:
Set socket configuration

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov eax, dword [esp + 8]
push eax
mov word [esi + 0x18], 2
call dword [sym.imp.WSOCK32.dll_htons]
mov ecx, dword [esp + 0xc]
push ecx
mov word [esi + 0x1a], ax
call dword [sym.imp.WSOCK32.dll_inet_addr]
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov dword [esi + 0x1c], eax
pop esi
sub edx, 1
and edx, 0xe
mov eax, edx
ret 8
Function at 0x10017c90
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
cmp eax, 2
je 0x10017dab
cmp eax, 3
je 0x10017dab
mov eax, dword [esi + 0x24]
test eax, eax
je 0x10017cbf
push eax
call fcn.10038f4b
add esp, 4
mov dword [esi + 0x24], 0
push ebx
mov ebx, dword [esp + 0xc]
test ebx, ebx
push ebp
push edi
je 0x10017d44
mov ebp, dword [esp + 0x18]
test ebp, ebp
je 0x10017d91
mov eax, ebp
lea edx, [eax + 1]
jmp 0x10017ce0
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10017ce0
sub eax, edx
cmp ebx, 2
mov edi, eax
jne 0x10017d00
cmp edi, 0xc
je 0x10017d00
cmp edi, 0x10
jne 0x10017d91
add edi, 1
push edi
call fcn.10038ffc
push edi
push 0
push eax
mov dword [esi + 0x24], eax
call fcn.10038d20
mov edx, dword [esi + 0x24]
add esp, 0x10
mov ecx, ebp
lea ecx, [ecx]
mov al, byte [ecx]
mov byte [edx], al
add ecx, 1
add edx, 1
test al, al
jne 0x10017d20
cmp ebx, 2
je 0x10017d38
cmp ebx, 4
jne 0x10017d44
mov eax, dword [esi + 0x24]
push eax
call fcn.1003c943
add esp, 4
cmp ebx, 1
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [esi + 0x20], ebx
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], edx
je 0x10017d67
cmp dword [0x10067264], 1
jg 0x10017d67
xor al, al
jmp 0x10017d69
mov al, 1
mov ecx, dword [esi + 4]
push esi
mov byte [ecx + 4], al
push 0
push 0x10017c60
mov byte [esi + 0x18], 0
mov dword [esi + 0x10], 0
call fcn.1003cc29
add esp, 0xc
test eax, eax
mov dword [esi + 0x1c], eax
jne 0x10017d9a
pop edi
pop ebp
pop ebx
xor al, al
pop esi
ret 0x10
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop ebp
pop ebx
mov al, 1
pop esi
ret 0x10
xor al, al
pop esi
ret 0x10

Function at 0x10022963
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x100677a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
xor esi, esi
inc esi
cmp dword [0x10068d40], 0
mov dword [eax + 0x14418], esi
jne 0x100229ad
lea eax, [ebp - 0x194]
push eax
push 0x101
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
je 0x100229a7
or eax, 0xffffffff
jmp 0x100229af
mov dword [0x10068d40], esi
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1003942d
leave
ret
Function at 0x10024430
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
push ebx
mov ebx, dword [ebp + 0x14]
push esi
jne 0x10024471
push 3
lea eax, [ebx + 2]
cdq
pop ecx
idiv ecx
mov esi, dword [ebp + 8]
lea eax, [eax*4 + 1]
push eax
push esi
call fcn.10022f71
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x10024471
mov dword [esi + 0x14414], 0xf
jmp 0x1002453b
mov esi, dword [ebp + 0xc]
test esi, esi
mov dword [ebp - 4], ecx
mov byte [ecx], 0
jne 0x10024485
mov eax, ecx
jmp 0x1002453b
cmp ebx, 2
push edi
jle 0x100244d6
xor edx, edx
push 3
lea eax, [ebx - 3]
pop edi
div edi
mov edi, eax
inc edi
mov eax, edi
imul eax, eax, 0xfffffffd
add ebx, eax
movzx edx, byte [esi + 2]
xor eax, eax
mov ah, byte [esi]
push 4
mov al, byte [esi + 1]
shl eax, 8
or eax, edx
mov dword [ebp + 0x10], eax
pop edx
mov eax, dword [ebp + 0x10]
shr dword [ebp + 0x10], 6
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
dec edx
test edx, edx
mov byte [edx + ecx], al
jg 0x100244b5
add ecx, 4
add esi, 3
dec edi
jne 0x1002449f
test ebx, ebx
mov byte [ecx], 0
jle 0x10024537
xor edi, edi
xor eax, eax
test ebx, ebx
jle 0x100244fd
mov dword [ebp + 0x10], ebx
mov eax, ebx
movzx edx, byte [esi]
shl edi, 8
or edi, edx
inc esi
dec dword [ebp + 0x10]
jne 0x100244ea
cmp ebx, 3
jge 0x1002450a
push 3
pop edx
sub edx, eax
add eax, edx
shl edi, 8
dec edx
jne 0x10024504
inc eax
jmp 0x1002451f
mov edx, edi
and edx, 0x3f
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
dec eax
mov byte [eax + ecx], dl
shr edi, 6
test eax, eax
jg 0x1002450d
push 3
pop eax
cmp ebx, eax
jge 0x10024533
mov byte [eax + ecx], 0x3d
dec eax
cmp eax, ebx
jg 0x1002452a
mov byte [ecx + 4], 0
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1002eabe
Capabilities:
Check os version

Disassembly:
mov eax, dword [0x1006916c]
test eax, eax
je 0x1002eae0
mov cx, word [0x10069168]
mov edx, dword [esp + 4]
mov word [edx], cx
mov cx, word [0x10069164]
mov word [ebx], cx
ret
push esi
push edi
mov edi, 0x9c
push edi
call fcn.10038ffc
mov esi, eax
test esi, esi
pop ecx
je 0x1002ec34
push edi
push 0
push esi
call fcn.10038d20
add esp, 0xc
mov dword [esi], edi
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push esi
call edi
test eax, eax
jne 0x1002eb26
push esi
mov dword [esi], 0x94
call edi
test eax, eax
je 0x1002ec2d
jmp 0x1002eb4a
mov ax, word [esi + 0x94]
mov ecx, dword [esp + 0xc]
mov word [ecx], ax
mov word [0x10069168], ax
mov ax, word [esi + 0x96]
mov word [0x10069164], ax
mov word [ebx], ax
mov eax, dword [esi + 0x10]
xor edx, edx
sub eax, edx
je 0x1002ec23
dec eax
je 0x1002ebea
dec eax
je 0x1002eb6c
mov dword [0x1006916c], edx
jmp 0x1002ec2d
mov eax, dword [esi + 4]
mov ecx, eax
sub ecx, 4
je 0x1002ebde
dec ecx
je 0x1002eba1
dec ecx
je 0x1002eb92
push 5
pop ecx
cmp ecx, eax
sbb eax, eax
and eax, 4
add eax, ecx
mov dword [0x1006916c], eax
jmp 0x1002ec2d
mov dword [0x1006916c], 0xa
jmp 0x1002ec2d
mov eax, dword [esi + 8]
sub eax, edx
je 0x1002ebd2
dec eax
je 0x1002ebc6
dec eax
je 0x1002ebba
mov dword [0x1006916c], 9
jmp 0x1002ec2d
mov dword [0x1006916c], 8
jmp 0x1002ec2d
mov dword [0x1006916c], 7
jmp 0x1002ec2d
mov dword [0x1006916c], 6
jmp 0x1002ec2d
mov dword [0x1006916c], 5
jmp 0x1002ec2d
mov eax, dword [esi + 8]
cmp eax, edx
je 0x1002ec17
cmp eax, 0xa
je 0x1002ec0b
cmp eax, 0x5a
jne 0x1002eb61
mov dword [0x1006916c], 4
jmp 0x1002ec2d
mov dword [0x1006916c], 3
jmp 0x1002ec2d
mov dword [0x1006916c], 2
jmp 0x1002ec2d
mov dword [0x1006916c], 1
push esi
call fcn.10038f4b
pop ecx
mov eax, dword [0x1006916c]
pop edi
pop esi
ret
Function at 0x1002f54a
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
and dword [ebp - 8], 0
push esi
push edi
mov esi, ecx
xor edi, edi
cmp byte [esi + 0x10], 0
jne 0x1002f5ea
mov eax, dword [esi + 0xc]
cmp eax, 6
je 0x1002f57b
cmp eax, 0x11
je 0x1002f57b
mov eax, 0x80004005
jmp 0x1002f5ec
lea eax, [ebp - 4]
push eax
push 0x1005ae54
push 1
push 0
push 0x1005ae44
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x1002f5dd
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push eax
call dword [ecx + 0x1c]
mov edi, eax
test edi, edi
jl 0x1002f5d0
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
lea edx, [esi + 0x14]
push edx
push eax
call dword [ecx + 0x1c]
mov edi, eax
test edi, edi
jge 0x1002f5cc
push str.Error__Firewall::Initialize_:_get_CurrentProfile_failed_n
call fcn.1003e73b
pop ecx
jmp 0x1002f5d0
mov byte [esi + 0x10], 1
mov eax, dword [ebp - 4]
test eax, eax
je 0x1002f5dd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 8]
test eax, eax
je 0x1002f5ea
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x1003942d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100677a0]
jne 0x10039437
repz ret
jmp fcn.10043eec