joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003ae70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x1006de68]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x264], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x25c], eax
cmp dword [ebp + 0xc], 0
jle 0x1003aeb6
mov ecx, dword [ebp + 8]
push ecx
call sub.MSVCR120.dll_strlen
add esp, 4
test eax, eax
jne 0x1003aec0
mov eax, 1
jmp 0x1003b097
lea edx, [ebp - 0x268]
push edx
lea eax, [ebp - 0x25c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sym.CIMIO_NO_WRITE.dll_CheckPortNumber
add esp, 0xc
mov dword [ebp - 0x260], eax
cmp dword [ebp - 0x268], 0
je 0x1003af07
mov edx, dword [ebp - 0x260]
cmp edx, dword [ebp + 0xc]
jne 0x1003af00
mov eax, 1
jmp 0x1003b097
xor eax, eax
jmp 0x1003b097
mov eax, dword [ebp - 0x260]
cmp eax, dword [ebp - 0x25c]
je 0x1003af1c
xor eax, eax
jmp 0x1003b097
push 0x200
lea ecx, [ebp - 0x254]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x1006aa48
lea edx, [ebp - 0x254]
push edx
call sub.MSVCR120.dll_strcat
add esp, 8
push 0x1006aa54
lea eax, [ebp - 0x254]
push eax
call sub.MSVCR120.dll_strcat
add esp, 8
push 0x1006aa5c
lea ecx, [ebp - 0x254]
push ecx
call sub.MSVCR120.dll_strcat
add esp, 8
push 0x1006aa68
lea edx, [ebp - 0x254]
push edx
call dword [sym.imp.MSVCR120.dll_fopen]
add esp, 8
mov dword [ebp - 0x258], eax
cmp dword [ebp - 0x258], 0
je 0x1003aff2
mov eax, dword [ebp - 0x258]
push eax
push 0x50
lea ecx, [ebp - 0x54]
push ecx
call dword [sym.imp.MSVCR120.dll_fgets]
add esp, 0xc
test eax, eax
je 0x1003afac
jmp 0x1003af8e
lea edx, [ebp - 0x54]
push edx
call sub.MSVCR120.dll_strlen
add esp, 4
movsx eax, byte [ebp + eax - 0x55]
cmp eax, 0xa
je 0x1003afe2
lea ecx, [ebp - 0x54]
push ecx
call sub.MSVCR120.dll_strlen
add esp, 4
movsx edx, byte [ebp + eax - 0x55]
cmp edx, 0xa
je 0x1003afe2
mov dword [ebp - 0x264], 1
mov eax, dword [ebp - 0x258]
push eax
call dword [sym.imp.MSVCR120.dll_fclose]
add esp, 4
push 0x50
push 0
lea ecx, [ebp - 0x54]
push ecx
call sub.MSVCR120.dll_memset
add esp, 0xc
cmp dword [ebp - 0x264], 1
jne 0x1003b027
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push str._n_s___d_tcp
lea ecx, [ebp - 0x54]
push ecx
call dword [sym.imp.MSVCR120.dll_sprintf]
add esp, 0x10
jmp 0x1003b041
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push str._s___d_tcp
lea ecx, [ebp - 0x54]
push ecx
call dword [sym.imp.MSVCR120.dll_sprintf]
add esp, 0x10
push 0x1006ab00
lea edx, [ebp - 0x254]
push edx
call dword [sym.imp.MSVCR120.dll_fopen]
add esp, 8
mov dword [ebp - 0x258], eax
cmp dword [ebp - 0x258], 0
je 0x1003b095
lea eax, [ebp - 0x54]
push eax
push 0x1006ab04
mov ecx, dword [ebp - 0x258]
push ecx
call dword [sym.imp.MSVCR120.dll_fprintf]
add esp, 0xc
mov edx, dword [ebp - 0x258]
push edx
call dword [sym.imp.MSVCR120.dll_fclose]
add esp, 4
mov eax, 1
jmp 0x1003b097
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10059cde
mov esp, ebp
pop ebp
ret
Function at 0x1003b0b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2a70
call fcn.10059d80
mov eax, dword [0x1006de68]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x2a68], 0
mov dword [ebp - 0x2a64], 0
mov dword [ebp - 0x2a70], 0xffffffff
cmp dword [ebp + 8], 0
jne 0x1003b0f0
jmp 0x1003b2c7
lea eax, [ebp - 0x654]
push eax
call fcn.1002e7d0
add esp, 4
push 0x200
lea ecx, [ebp - 0x304]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.drivers
lea edx, [ebp - 0x304]
push edx
call sub.MSVCR120.dll_strcat
add esp, 8
push str.etc
lea eax, [ebp - 0x304]
push eax
call sub.MSVCR120.dll_strcat
add esp, 8
push str._services
lea ecx, [ebp - 0x304]
push ecx
call sub.MSVCR120.dll_strcat
add esp, 8
lea edx, [ebp - 0x2a60]
push edx
call sym.CIMIO_NO_WRITE.dll_CIMIO_CLIENT_ENVIRONMENT
add esp, 4
lea eax, [ebp - 0x225e]
push eax
lea ecx, [ebp - 0x604]
push ecx
call sub.MSVCR120.dll_strcpy
add esp, 8
push str._services.bak
lea edx, [ebp - 0x604]
push edx
call sub.MSVCR120.dll_strcat
add esp, 8
lea eax, [ebp - 0x654]
push eax
lea ecx, [ebp - 0x604]
push ecx
lea edx, [ebp - 0x304]
push edx
call fcn.10055470
add esp, 0xc
push 0x1006ab70
lea eax, [ebp - 0x604]
push eax
call dword [sym.imp.MSVCR120.dll_fopen]
add esp, 8
mov dword [ebp - 0x2a68], eax
cmp dword [ebp - 0x2a68], 0
je 0x1003b2c7
push 0x1006ab74
lea ecx, [ebp - 0x304]
push ecx
call dword [sym.imp.MSVCR120.dll_fopen]
add esp, 8
mov dword [ebp - 0x2a64], eax
cmp dword [ebp - 0x2a64], 0
je 0x1003b2c7
mov edx, dword [ebp - 0x2a68]
push edx
push 0x100
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.MSVCR120.dll_fgets]
add esp, 0xc
test eax, eax
je 0x1003b2c7
lea ecx, [ebp - 0x104]
push ecx
lea edx, [ebp - 0x404]
push edx
call sub.MSVCR120.dll_strcpy
add esp, 8
push 0x1006ab8c
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.MSVCR120.dll_strtok]
add esp, 8
mov dword [ebp - 0x2a6c], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x2a6c]
push edx
call sub.MSVCR120.dll_strcmp
add esp, 8
test eax, eax
jne 0x1003b2ab
push 0x1006ab90
push 0
call dword [sym.imp.MSVCR120.dll_strtok]
add esp, 8
mov dword [ebp - 0x2a6c], eax
push 0x1006ab94
mov eax, dword [ebp - 0x2a6c]
push eax
call dword [sym.imp.MSVCR120.dll_strtok]
add esp, 8
mov dword [ebp - 0x2a6c], eax
mov ecx, dword [ebp - 0x2a6c]
push ecx
call dword [sym.imp.MSVCR120.dll_atoi]
add esp, 4
mov dword [ebp - 0x2a70], eax
jmp 0x1003b1f3
mov edx, dword [ebp - 0x2a64]
push edx
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.MSVCR120.dll_fputs]
add esp, 8
jmp 0x1003b1f3
cmp dword [ebp - 0x2a68], 0
je 0x1003b2e0
mov ecx, dword [ebp - 0x2a68]
push ecx
call dword [sym.imp.MSVCR120.dll_fclose]
add esp, 4
cmp dword [ebp - 0x2a64], 0
je 0x1003b2f9
mov edx, dword [ebp - 0x2a64]
push edx
call dword [sym.imp.MSVCR120.dll_fclose]
add esp, 4
mov eax, dword [ebp - 0x2a70]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10059cde
mov esp, ebp
pop ebp
ret
Function at 0x1003d7b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], reloc.WSOCK32.dll_bind
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 0x14]
or ecx, 1
push ecx
push 0
push 0x1006af88
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1003d7eb
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x1003d828
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1003d81c
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x1003d828
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1003d830
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], reloc.WSOCK32.dll_bind
call sym.CIMIO_NO_WRITE.dll_GetCimioRegSamViewFlag
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], 4
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
or ecx, 1
push ecx
push 0
push 0x1006b160
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1003d87a
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x1003d8b7
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1003d8ab
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x1003d8b7
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10040fe0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x10], reloc.WSOCK32.dll_bind
mov dword [ebp - 8], 0
call sym.CIMIO_NO_WRITE.dll_GetCimioRegSamViewFlag
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
or ecx, 1
push ecx
push 0
push 0x1006bc2c
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1004102a
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x10041059
mov dword [ebp - 0x14], 4
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 8]
push edx
push 0
push 0
push str.CIMIOChecksum
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x10041060
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x10], reloc.WSOCK32.dll_bind
mov dword [ebp - 8], 0
call sym.CIMIO_NO_WRITE.dll_GetCimioRegSamViewFlag
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
or ecx, 1
push ecx
push 0
push str.SOFTWAREAspenTechCIM_IOExcludedChecksumNodes
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x100410aa
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x100410d8
mov dword [ebp - 0x14], 4
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 8]
push edx
push 0
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x100429a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1006de68]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x28], reloc.WSOCK32.dll_bind
call sym.CIMIO_NO_WRITE.dll_GetCimioRegSamViewFlag
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x20]
or ecx, 1
push ecx
push 0
push 0x1005e5d4
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x100429f0
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x10042abc
mov dword [ebp - 0x24], 0x10
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x14]
push edx
push 0
push 0
push str.CIMIOSECURITY
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10042a91
push 0x1005e600
lea ecx, [ebp - 0x14]
push ecx
call sub.MSVCR120.dll_strcmp
add esp, 8
test eax, eax
je 0x10042a7f
push 0x1005e604
lea edx, [ebp - 0x14]
push edx
call sub.MSVCR120.dll_strcmp
add esp, 8
test eax, eax
je 0x10042a7f
push 0x1005e608
lea eax, [ebp - 0x14]
push eax
call sub.MSVCR120.dll_strcmp
add esp, 8
test eax, eax
je 0x10042a7f
push 0x1005e60c
lea ecx, [ebp - 0x14]
push ecx
call sub.MSVCR120.dll_strcmp
add esp, 8
test eax, eax
je 0x10042a7f
push 0x1005e610
lea edx, [ebp - 0x14]
push edx
call sub.MSVCR120.dll_strcmp
add esp, 8
test eax, eax
jne 0x10042a88
mov dword [ebp - 0x18], 1
jmp 0x10042a8f
mov dword [ebp - 0x18], 0
jmp 0x10042a98
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], 0
je 0x10042ab9
call fcn.10042580
cmp eax, 2
jne 0x10042ab9
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10059cde
mov esp, ebp
pop ebp
ret
Function at 0x10045cc0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1006de68]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xffffffff
push 0x10
push 0
lea eax, [ebp - 0x14]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
call fcn.100469d0
test eax, eax
je 0x10045d03
mov dword [ebp - 0x1c], 1
jmp 0x10045dab
push 0
push 1
push 2
call sub.WSOCK32.dll_socket
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jae 0x10045d2b
call sub.WSOCK32.dll_WSAGetLastError
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 1
jmp 0x10045dab
mov ecx, 2
mov word [ebp - 0x14], cx
mov dword [ebp - 0x10], 0
push 8
push 0
lea edx, [ebp - 0xc]
push edx
call sub.MSVCR120.dll_memset
add esp, 0xc
movzx eax, word [ebp + 8]
push eax
call sub.WSOCK32.dll_htons
mov word [ebp - 0x12], ax
push 0x10
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call sub.WSOCK32.dll_bind
test eax, eax
jge 0x10045d94
call sub.WSOCK32.dll_WSAGetLastError
mov dword [ebp - 0x20], eax
push 2
mov eax, dword [ebp - 0x18]
push eax
call sub.WSOCK32.dll_shutdown
mov ecx, dword [ebp - 0x18]
push ecx
call sub.WSOCK32.dll_closesocket
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 1
jmp 0x10045dab
push 2
mov edx, dword [ebp - 0x18]
push edx
call sub.WSOCK32.dll_shutdown
mov eax, dword [ebp - 0x18]
push eax
call sub.WSOCK32.dll_closesocket
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10059cde
mov esp, ebp
pop ebp
ret
Function at 0x10046690
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x1006de68]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov eax, dword [ebp + 0x1c]
push eax
call fcn.1002e7d0
add esp, 4
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x110], 0
cmp dword [ebp + 8], 2
je 0x1004677d
mov dword [ebp - 0x10c], 0
jmp 0x100466e9
mov ecx, dword [ebp - 0x10c]
add ecx, 1
mov dword [ebp - 0x10c], ecx
mov edx, dword [ebp - 0x10c]
cmp edx, dword [ebp + 0xc]
jge 0x1004677d
mov eax, dword [ebp - 0x10c]
mov ecx, dword [ebp + 0x18]
mov dword [ecx + eax*4], 0xffffffff
mov edx, dword [ebp - 0x10c]
mov eax, dword [ebp + 0x10]
cmp dword [eax + edx*4], 0xffffffff
je 0x10046778
mov ecx, dword [ebp - 0x10c]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + ecx*4]
add eax, 1
cmp eax, dword [ebp - 0x110]
jbe 0x10046743
mov ecx, dword [ebp - 0x10c]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + ecx*4]
add eax, 1
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x108], 0x40
jae 0x10046774
mov ecx, dword [ebp - 0x108]
mov edx, dword [ebp - 0x10c]
mov eax, dword [ebp + 0x10]
mov edx, dword [eax + edx*4]
mov dword [ebp + ecx*4 - 0x104], edx
mov eax, dword [ebp - 0x108]
add eax, 1
mov dword [ebp - 0x108], eax
xor ecx, ecx
jne 0x10046743
jmp 0x100466da
mov eax, dword [ebp + 0x14]
xor edx, edx
mov ecx, 0xf4240
div ecx
mov dword [ebp - 0x124], eax
mov eax, dword [ebp + 0x14]
xor edx, edx
mov ecx, 0xf4240
div ecx
mov dword [ebp - 0x120], edx
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0
cmp dword [ebp + 8], 0
jne 0x100467c9
lea edx, [ebp - 0x108]
mov dword [ebp - 0x11c], edx
jmp 0x100467db
cmp dword [ebp + 8], 1
jne 0x100467db
lea eax, [ebp - 0x108]
mov dword [ebp - 0x118], eax
lea ecx, [ebp - 0x124]
push ecx
push 0
mov edx, dword [ebp - 0x118]
push edx
mov eax, dword [ebp - 0x11c]
push eax
mov ecx, dword [ebp - 0x110]
push ecx
call sub.WSOCK32.dll_select
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
jae 0x10046837
push 0x105a3eb0
call dword [sym.imp.MSVCR120.dll__errno]
push eax
call fcn.10046a60
add esp, 8
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [0x105a3eb0]
push eax
push 1
call fcn.1002ed90
add esp, 0xc
jmp 0x100468b2
cmp dword [ebp - 0x114], 0
jbe 0x100468b2
cmp dword [ebp + 8], 2
je 0x100468b2
mov dword [ebp - 0x10c], 0
jmp 0x10046861
mov ecx, dword [ebp - 0x10c]
add ecx, 1
mov dword [ebp - 0x10c], ecx
mov edx, dword [ebp - 0x10c]
cmp edx, dword [ebp + 0xc]
jge 0x100468b2
mov eax, dword [ebp - 0x10c]
mov ecx, dword [ebp + 0x10]
cmp dword [ecx + eax*4], 0xffffffff
je 0x100468b0
lea edx, [ebp - 0x108]
push edx
mov eax, dword [ebp - 0x10c]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + eax*4]
push edx
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x100468b0
mov eax, dword [ebp - 0x10c]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 0x10c]
mov esi, dword [ebp + 0x10]
mov edx, dword [esi + edx*4]
mov dword [ecx + eax*4], edx
jmp 0x10046852
mov eax, dword [ebp - 0x114]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10059cde
mov esp, ebp
pop ebp
ret
Function at 0x100469d0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x1006de68]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x105a3d90], 0
jne 0x10046a46
lea eax, [ebp - 0x194]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x10046a06
or eax, 0xffffffff
jmp 0x10046a48
movzx ecx, word [ebp - 0x194]
and ecx, 0xff
movzx edx, cl
cmp edx, 1
jne 0x10046a32
movzx eax, word [ebp - 0x194]
shr eax, 8
and eax, 0xff
movzx ecx, al
cmp ecx, 1
je 0x10046a3c
call sub.WSOCK32.dll_WSACleanup
or eax, 0xffffffff
jmp 0x10046a48
mov dword [0x105a3d90], 1
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10059cde
mov esp, ebp
pop ebp
ret

Function at 0x10046d80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x1006de68]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x64], 0
call sym.CIMIO_NO_WRITE.dll_GetCimioRegSamViewFlag
mov dword [ebp - 0x70], eax
mov dword [0x105a3d98], 0
lea eax, [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0x70]
or ecx, 1
push ecx
push 0
push 0x1006c894
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10046e86
mov dword [ebp - 0x58], 4
lea edx, [ebp - 0x58]
push edx
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x5c]
push ecx
push 0
push str.CIMIOSocketSecurityAllows
mov edx, dword [ebp - 0x60]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10046e86
cmp dword [ebp - 0x5c], 4
je 0x10046e0d
cmp dword [ebp - 0x5c], 3
jne 0x10046e86
mov dword [ebp - 0x58], 0
lea eax, [ebp - 0x58]
push eax
push 0
lea ecx, [ebp - 0x5c]
push ecx
push 0
push 0x1006c8cc
mov edx, dword [ebp - 0x60]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10046e86
cmp dword [ebp - 0x58], 0
jbe 0x10046e86
cmp dword [ebp - 0x5c], 7
jne 0x10046e86
mov eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.MSVCR120.dll_malloc]
add esp, 4
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
je 0x10046e86
lea ecx, [ebp - 0x58]
push ecx
mov edx, dword [ebp - 0x64]
push edx
lea eax, [ebp - 0x5c]
push eax
push 0
push str.CIMIOSocketSecurityList
mov ecx, dword [ebp - 0x60]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10046e86
mov edx, dword [ebp - 0x58]
push edx
mov eax, dword [ebp - 0x64]
push eax
call fcn.10046ef0
add esp, 8
mov ecx, dword [ebp - 0x60]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x6c], 0
jne 0x10046e9f
mov dword [ebp - 0x68], 0
jmp 0x10046ea6
mov dword [ebp - 0x68], 1
mov edx, dword [ebp - 0x68]
mov dword [0x105a3d94], edx
cmp dword [0x105a3d98], 0
jne 0x10046edf
lea eax, [ebp - 0x54]
push eax
call sym.CIMIO_NO_WRITE.dll_CIMIO_SERVER_INITBLK
add esp, 4
lea ecx, [ebp - 0x54]
push ecx
push str.Warning:_could_not_read_in_socket_security_list.
push 0x3fa
push 0x1006c930
call sym.CIMIO_NO_WRITE.dll_CIMIO_DIAG_LOG
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10059cde
mov esp, ebp
pop ebp
ret
Function at 0x10047260
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
jne 0x100472a4
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 0
push 0
call dword [sym.imp.MSVCR120.dll__beginthreadex]
add esp, 0x18
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp + 8]
cmp dword [edx], 0
jne 0x100472a2
mov dword [ebp - 4], 0xffffffff
jmp 0x100472d8
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
push 0
call dword [sym.imp.MSVCR120.dll__beginthreadex]
add esp, 0x18
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x100472d8
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 4], 0
je 0x100472f1
mov ecx, dword [ebp + 0x18]
push ecx
push 0x36b2
push 0xe
call fcn.1002ed90
add esp, 0xc
mov esp, ebp
pop ebp
ret
Function at 0x10057890
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1006de68]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 0
mov byte [ebp - 0xc], 0
mov byte [ebp - 0xb], 0
mov byte [ebp - 0xa], 0
mov byte [ebp - 9], 0
mov byte [ebp - 8], 0
mov byte [ebp - 7], 5
lea eax, [ebp - 0x18]
push eax
push 0
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x1005792f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
jne 0x10057928
lea ecx, [ebp - 0x18]
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x10057926
xor eax, eax
jmp 0x10057a26
jmp 0x1005792f
xor eax, eax
jmp 0x10057a26
lea edx, [ebp - 0x1c]
push edx
push 0
push 0
push 2
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x1005794e
xor eax, eax
jmp 0x10057a26
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x10057960
xor eax, eax
jmp 0x10057a26
mov eax, dword [ebp - 0x1c]
call fcn.1005a300
mov dword [ebp - 0x28], esp
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
jne 0x1005797e
xor eax, eax
jmp 0x10057a26
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push 2
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x100579a1
xor eax, eax
jmp 0x10057a26
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea ecx, [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x100579cc
xor eax, eax
jmp 0x10057a26
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x14], 0
jmp 0x100579e5
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [eax]
jae 0x10057a13
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + eax*8 + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x10057a11
mov dword [ebp - 0x24], 1
jmp 0x10057a13
jmp 0x100579dc
cmp dword [ebp - 0x20], 0
je 0x10057a23
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x24]
lea esp, [ebp - 0x28]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10059cde
mov esp, ebp
pop ebp
ret
Function at 0x100588e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
call dword [sym.imp.MSVCR120.dll__errno]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 2
jne 0x1005890e
mov dword [ebp - 8], 1
cmp dword [ebp + 8], 0
je 0x1005891c
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
mov dword [ecx], edx
cmp dword [ebp + 0xc], 0
je 0x1005892a
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
cmp dword [ebp + 0x10], 0
je 0x10058938
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 8]
mov dword [edx], eax
mov esp, ebp
pop ebp
ret

Function at 0x1005a810
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x1005a824
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
jmp loc.105b89d8