joyce8/EMBER2024-capa huggingface dataset:
Function at 0x601c6700
Capabilities:
Query environment variable

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
test ebp, ebp
push edi
jne 0x601c671b
mov eax, dword [esp + 0x1c]
pop edi
pop esi
mov dword [eax], ebp
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov dword [esp + 0x10], eax
mov ebx, eax
mov al, byte [eax]
mov dl, 0x3d
test al, al
je 0x601c675d
cmp al, dl
jne 0x601c6745
mov al, byte [ebx + 1]
test al, al
je 0x601c6745
cmp byte [ebx + 2], 0x3a
jne 0x601c6745
cmp byte [ebx + 3], dl
je 0x601c675d
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [ebx + ecx + 1]
lea ebx, [ebx + ecx + 1]
test al, al
jne 0x601c672f
mov al, byte [ebx]
mov esi, ebx
test al, al
je 0x601c67ab
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [ecx + ebx + 1]
lea esi, [ecx + ebx + 1]
test al, al
je 0x601c67ab
cmp al, dl
jne 0x601c67ab
mov al, byte [esi + 1]
test al, al
je 0x601c67ab
cmp byte [esi + 2], 0x3a
jne 0x601c67ab
cmp byte [esi + 3], dl
jne 0x601c67ab
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [esi + ecx + 1]
lea esi, [esi + ecx + 1]
test al, al
jne 0x601c677d
mov ecx, dword [esp + 0x18]
mov edx, esi
sub edx, ebx
mov edi, dword [ecx]
test edi, edi
je 0x601c67d1
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edi, dword [ebp + 4]
add ebp, 4
not ecx
dec ecx
test edi, edi
lea edx, [edx + ecx + 1]
jne 0x601c67b9
inc edx
push edx
call sym.nspr4.dll_PR_Malloc
mov edx, dword [esp + 0x20]
mov edi, eax
add esp, 4
test edi, edi
mov dword [edx], eax
jne 0x601c67fb
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
cmp ebx, esi
jae 0x601c6809
mov cl, byte [ebx]
mov byte [edi], cl
inc edi
inc ebx
cmp ebx, esi
jb 0x601c67ff
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov edx, dword [esp + 0x18]
cmp dword [edx], 0
je 0x601c683c
mov ecx, dword [edx]
mov al, byte [ecx]
test al, al
je 0x601c6830
mov byte [edi], al
mov al, byte [ecx + 1]
inc edi
inc ecx
test al, al
jne 0x601c6825
add edx, 4
mov byte [edi], 0
inc edi
cmp dword [edx], 0
jne 0x601c681d
mov byte [edi], 0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret

Function at 0x601c6950
Capabilities:
Get hostname

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push ecx
call sub.WSOCK32.dll_gethostname
test eax, eax
jne 0x601c6964
ret
call sub.WSOCK32.dll_WSAGetLastError
push eax
call fcn.601c9ac0
add esp, 4
or eax, 0xffffffff
ret
Function at 0x601c7230
Capabilities:
Create thread
Resume thread

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
push edi
mov ecx, dword [esi + 0x10]
lea edi, [esi + 0xd8]
push edi
mov dword [esi + 0x13c], eax
mov edx, dword [ecx + 0x1c]
push 4
push esi
push 0x601c72b0
push edx
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0x104], eax
test eax, eax
jne 0x601c7271
pop edi
or eax, 0xffffffff
pop esi
ret
mov eax, dword [edi]
mov dword [esi + 0x108], eax
mov eax, dword [esp + 0x14]
cmp eax, 1
je 0x601c7292
lea ecx, [esi + 0xfc]
push eax
push ecx
call fcn.601c72e0
add esp, 8
mov edx, dword [esi + 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
inc eax
pop edi
neg eax
sbb eax, eax
pop esi
neg eax
dec eax
ret

Function at 0x601c73a0
Capabilities:
Set thread local storage value

Disassembly:
mov eax, dword [esp + 4]
push eax
call fcn.601c7360
mov ecx, dword [0x601d32c4]
add esp, 4
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
ret

Function at 0x601c73d0
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
ret

Function at 0x601c73f0
Capabilities:
Resume thread

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
ret

Function at 0x601c7410
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x601d32c4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x601c742d
push eax
push eax
push 1
push eax
call fcn.601c5b50
add esp, 0x10
ret

Function at 0x601c7680
Capabilities:
Read file on windows

Disassembly:
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
push 0
push eax
mov eax, dword [esp + 0xc]
push ecx
push edx
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x601c76c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x601c76b4
xor eax, eax
ret
push eax
call fcn.601c9ac0
add esp, 4
or eax, 0xffffffff
ret
mov eax, dword [esp + 0xc]
ret

Function at 0x601c76d0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
mov ecx, dword [eax + 4]
mov esi, dword [ecx + 0x18]
call fcn.601c7410
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
lea edx, [esp + 8]
push 0
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
pop esi
jne 0x601c7710
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.601c9ac0
add esp, 4
or eax, 0xffffffff
ret
mov eax, dword [esp + 4]
ret

Function at 0x601c7ab0
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x601c7ac2
xor eax, eax
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.601c9ac0
add esp, 4
or eax, 0xffffffff
ret
Function at 0x601c7e40
Capabilities:
Get disk information

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
mov al, byte [ebx]
push edi
xor ebp, ebp
xor edi, edi
cmp al, 0x2f
je 0x601c7e56
cmp al, 0x5c
jne 0x601c7e67
mov cl, byte [ebx + 1]
test cl, cl
jne 0x601c7e67
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
mov ecx, dword [sym.imp.MSVCRT.dll___mb_cur_max]
cmp dword [ecx], 1
jle 0x601c7e86
movsx edx, al
push 0x103
push edx
call dword [sym.imp.MSVCRT.dll__isctype]
add esp, 8
jmp 0x601c7e9a
mov ecx, dword [sym.imp.MSVCRT.dll__pctype]
movsx eax, al
mov edx, dword [ecx]
mov ax, word [edx + eax*2]
and eax, 0x103
test eax, eax
je 0x601c7ecd
cmp byte [ebx + 1], 0x3a
jne 0x601c7ecd
mov al, byte [ebx + 2]
cmp al, 0x2f
je 0x601c7eaf
cmp al, 0x5c
jne 0x601c7ecd
mov al, byte [ebx + 3]
test al, al
jne 0x601c7ecd
push ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov ecx, 1
pop edi
cmp ecx, eax
pop esi
sbb eax, eax
pop ebp
neg eax
pop ebx
ret
mov al, byte [ebx]
cmp al, 0x2f
je 0x601c7edb
cmp al, 0x5c
jne 0x601c7f9e
mov al, byte [ebx + 1]
cmp al, 0x2f
je 0x601c7eea
cmp al, 0x5c
jne 0x601c7f9e
mov al, byte [ebx + 2]
lea esi, [ebx + 2]
test al, al
je 0x601c7fa5
cmp al, 0x2f
je 0x601c7fa5
cmp al, 0x5c
je 0x601c7fa5
mov edi, dword [sym.imp.MSVCRT.dll__mbsinc]
push esi
call edi
mov esi, eax
add esp, 4
mov al, byte [esi]
test al, al
je 0x601c7fa5
cmp al, 0x2f
je 0x601c7f28
cmp al, 0x5c
jne 0x601c7f0e
cmp byte [esi], 0
je 0x601c7fa5
mov al, byte [esi + 1]
inc esi
test al, al
je 0x601c7fa5
cmp al, 0x2f
je 0x601c7fa5
cmp al, 0x5c
je 0x601c7fa5
push esi
call edi
mov esi, eax
add esp, 4
mov al, byte [esi]
test al, al
je 0x601c7f53
cmp al, 0x2f
je 0x601c7f5d
cmp al, 0x5c
jne 0x601c7f3d
mov al, byte [esi]
cmp al, 0x2f
je 0x601c7f5d
cmp al, 0x5c
jne 0x601c7f64
mov al, byte [esi + 1]
test al, al
jne 0x601c7fa5
cmp byte [esi], 0
jne 0x601c7f84
mov edx, dword [esp + 0x18]
lea eax, [esi + 1]
lea ecx, [ebx + edx]
cmp eax, ecx
jae 0x601c7fa5
mov byte [esi], 0x5c
mov esi, eax
mov ebp, 1
mov byte [esi], 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov edx, 1
cmp edx, eax
sbb edi, edi
neg edi
test ebp, ebp
je 0x601c7f9e
mov byte [esi - 1], 0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret

Function at 0x601c81a0
Capabilities:
Move file

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x601c81b7
xor eax, eax
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.601c9ac0
add esp, 4
or eax, 0xffffffff
ret

Function at 0x601c8240
Capabilities:
Create directory

Disassembly:
mov eax, dword [esp + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x601c8254
xor eax, eax
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.601c9ac0
add esp, 4
or eax, 0xffffffff
ret
Function at 0x601c8270
Capabilities:
Create directory

Disassembly:
sub esp, 0x14
mov edx, dword [esp + 0x1c]
push esi
lea eax, [esp + 8]
push edi
lea ecx, [esp + 8]
push eax
push ecx
xor esi, esi
push 0x601d2678
push edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
call fcn.601c6e50
add esp, 0x10
test eax, eax
jne 0x601c82b7
mov eax, dword [esp + 8]
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], 0xc
mov dword [esp + 0x14], eax
lea esi, [esp + 0x10]
mov ecx, dword [esp + 0x20]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test esi, esi
mov edi, eax
je 0x601c82db
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push edx
push eax
call fcn.601c7070
add esp, 8
test edi, edi
pop edi
pop esi
je 0x601c82e7
xor eax, eax
add esp, 0x14
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.601c9ac0
add esp, 4
or eax, 0xffffffff
add esp, 0x14
ret

Function at 0x601c8300
Capabilities:
Delete directory

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
je 0x601c8312
xor eax, eax
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.601c9ac0
add esp, 4
or eax, 0xffffffff
ret

Function at 0x601c8330
Capabilities:
Check if file exists

Disassembly:
mov eax, dword [esp + 4]
push 0xffffffffffffffff
push 0
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LockFile]
test eax, eax
jne 0x601c8367
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x601d330c]
cmp dword [ecx + 4], 2
jl 0x601c8367
push eax
push str._PR_MD_LOCKFILE___failed._Error:__d
call sym.nspr4.dll_PR_LogPrint
add esp, 8
xor eax, eax
ret

Function at 0x601c8ae0
Capabilities:
Connect socket

Disassembly:
mov ecx, dword [esp + 0xc]
push ebx
mov edx, dword [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0x10]
push ecx
push edx
mov eax, dword [edi + 4]
mov esi, dword [eax + 0x18]
push esi
call sub.WSOCK32.dll_connect
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x601c8b41
call sub.WSOCK32.dll_WSAGetLastError
mov ecx, dword [edi + 4]
mov edx, dword [ecx + 4]
test edx, edx
jne 0x601c8b38
cmp eax, 0x2733
jne 0x601c8b38
mov edx, dword [esp + 0x1c]
push edx
push 3
push esi
call fcn.601c9060
add esp, 0xc
xor ecx, ecx
test eax, eax
setge cl
dec ecx
pop edi
pop esi
mov eax, ecx
pop ebx
ret
push eax
call fcn.601c9a10
add esp, 4
pop edi
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x601c8bc0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
mov ecx, dword [eax + 4]
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov ebx, dword [ecx + 0x18]
push edi
neg esi
sbb esi, esi
and esi, 2
push esi
push ebp
push edx
push ebx
call sub.WSOCK32.dll_recv
mov edi, eax
cmp edi, 0xffffffff
jne 0x601c8c49
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x601c8c40
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 4]
mov ecx, dword [edx + 4]
test ecx, ecx
jne 0x601c8c40
mov eax, dword [esp + 0x24]
push eax
push 1
push ebx
call fcn.601c9060
add esp, 0xc
test eax, eax
jl 0x601c8c38
mov ecx, dword [esp + 0x18]
push esi
push ebp
push ecx
push ebx
call sub.WSOCK32.dll_recv
mov edi, eax
cmp edi, 0xffffffff
je 0x601c8bf1
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
push eax
call fcn.601c9ac0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret

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

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
mov ecx, dword [eax + 4]
push edi
mov edi, dword [esp + 0x20]
mov dword [esp + 0x10], 0
mov esi, dword [ecx + 0x18]
test edi, edi
jle 0x601c8d0c
mov ebp, dword [esp + 0x28]
mov ebx, dword [esp + 0x1c]
push 0
push edi
push ebx
push esi
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
jne 0x601c8cc3
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x601c8cfa
mov edx, dword [esp + 0x18]
mov ecx, dword [edx + 4]
mov edx, dword [ecx + 4]
test edx, edx
jne 0x601c8cfa
push ebp
push 2
push esi
call fcn.601c9060
add esp, 0xc
test eax, eax
jl 0x601c8d03
push 0
push edi
push ebx
push esi
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
je 0x601c8c8a
mov edx, dword [esp + 0x10]
add edx, eax
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 4]
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x601c8d0c
cmp dword [esp + 0x10], edi
jge 0x601c8d0c
push ebp
push 2
push esi
call fcn.601c9060
add esp, 0xc
test eax, eax
jge 0x601c8c7b
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
push eax
call fcn.601c99a0
add esp, 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x601c8d20
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
mov ecx, dword [eax + 4]
push edi
mov edi, dword [esp + 0x20]
mov dword [esp + 0x10], 0
mov esi, dword [ecx + 0x18]
test edi, edi
jle 0x601c8df4
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
push ebx
push ebp
push 0
push edi
push edx
push esi
call sub.WSOCK32.dll_sendto
cmp eax, 0xffffffff
jne 0x601c8da3
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x601c8de2
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 4]
mov ecx, dword [edx + 4]
test ecx, ecx
jne 0x601c8de2
mov eax, dword [esp + 0x30]
push eax
push 2
push esi
call fcn.601c9060
add esp, 0xc
test eax, eax
jl 0x601c8deb
mov ecx, dword [esp + 0x1c]
push ebx
push ebp
push 0
push edi
push ecx
push esi
call sub.WSOCK32.dll_sendto
cmp eax, 0xffffffff
je 0x601c8d60
mov edx, dword [esp + 0x10]
add edx, eax
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 4]
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x601c8df4
cmp dword [esp + 0x10], edi
jge 0x601c8df4
mov ecx, dword [esp + 0x30]
push ecx
push 2
push esi
call fcn.601c9060
add esp, 0xc
test eax, eax
jge 0x601c8d4b
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
push eax
call fcn.601c99a0
add esp, 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

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

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x1c]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push edi
mov edi, dword [ecx + 0x18]
push ebx
push ebp
push 0
push edx
push eax
push edi
call sub.WSOCK32.dll_recvfrom
mov esi, eax
cmp esi, 0xffffffff
jne 0x601c8e90
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x601c8e87
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 4]
mov ecx, dword [edx + 4]
test ecx, ecx
jne 0x601c8e87
mov eax, dword [esp + 0x2c]
push eax
push 1
push edi
call fcn.601c9060
add esp, 0xc
test eax, eax
jl 0x601c8e7f
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ebx
push ebp
push 0
push ecx
push edx
push edi
call sub.WSOCK32.dll_recvfrom
mov esi, eax
cmp esi, 0xffffffff
je 0x601c8e31
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
push eax
call fcn.601c9ac0
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret

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

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 4]
mov ecx, dword [esp + 8]
push eax
mov eax, dword [edx + 4]
push ecx
mov ecx, dword [eax + 0x18]
push ecx
call sub.WSOCK32.dll_getsockname
test eax, eax
jne 0x601c8f7f
ret
call sub.WSOCK32.dll_WSAGetLastError
push eax
call fcn.601c9a90
add esp, 4
or eax, 0xffffffff
ret
Function at 0x601c9020
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push eax
mov edx, dword [ecx + 4]
mov eax, dword [edx + 0x18]
push eax
call sub.WSOCK32.dll_setsockopt
test eax, eax
jne 0x601c9049
ret
call sub.WSOCK32.dll_WSAGetLastError
push eax
call fcn.601c9ac0
add esp, 4
or eax, 0xffffffff
ret
Function at 0x100010eb
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x10006a25
mov eax, dword [esp + 4]
push ebx
push esi
push edi
test eax, eax
je 0x10006a64
movzx edi, word [eax + 6]
test edi, edi
je 0x10006a64
movzx ecx, word [eax + 0x14]
xor esi, esi
test edi, edi
lea ecx, [ecx + eax + 0x18]
jbe 0x10006a64
lea eax, [ecx + 0x10]
mov edx, dword [eax - 4]
cmp dword [esp + 0x18], edx
jb 0x10006a5c
mov ebx, dword [eax]
add ebx, edx
cmp dword [esp + 0x18], ebx
jb 0x10006a6c
inc esi
add eax, 0x28
cmp esi, edi
jb 0x10006a49
xor eax, eax
pop edi
pop esi
pop ebx
ret 0xc
lea eax, [esi + esi*4]
lea eax, [ecx + eax*8]
jmp 0x10006a66

Function at 0x10006ab7
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
test ecx, ecx
je 0x10006afe
movzx edi, word [ecx + 6]
test edi, edi
je 0x10006afe
movzx edx, word [ecx + 0x14]
mov eax, dword [ebp + 0x10]
xor esi, esi
sub eax, dword [ebp + 0xc]
lea edx, [edx + ecx + 0x18]
test edi, edi
jbe 0x10006afe
lea ecx, [edx + 0x10]
mov ebx, dword [ecx + 4]
cmp eax, ebx
mov dword [ebp + 8], ebx
jb 0x10006af6
mov ebx, dword [ecx]
add ebx, dword [ebp + 8]
cmp eax, ebx
jb 0x10006b07
inc esi
add ecx, 0x28
cmp esi, edi
jb 0x10006ae3
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
lea eax, [esi + esi*4]
lea eax, [edx + eax*8]
jmp 0x10006b00
Function at 0x1032fe4
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x12d3ad4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
xor edi, edi
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1033041
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01032e15
mov edi, eax
jmp 0x103305c
cmp dword [ebp - 0x108], 2
jne 0x1033058
cmp dword [ebp - 0x114], 6
jb 0x1033058
xor eax, eax
inc eax
jmp 0x103305a
xor eax, eax
mov dword [esi], eax
test edi, edi
jge 0x1033085
mov eax, dword [0x12d2c30]
cmp eax, 0x12d2c30
je 0x1033085
test byte [eax + 0x3c], 2
je 0x1033085
push edi
push 0x1001eb4
push 0x27
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.01032571
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0128e47a
leave
ret 4

Function at 0x10333fc
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x12d3ad4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
push 0x11c
xor ebx, ebx
lea eax, [ebp - 0x120]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1033458
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01032e15
mov ebx, eax
jmp 0x1033483
cmp dword [ebp - 0x11c], 6
jae 0x103347e
cmp dword [ebp - 0x11c], 5
jne 0x103347a
cmp dword [ebp - 0x118], 2
jne 0x103347a
cmp word [ebp - 0xc], 2
jae 0x103347e
xor eax, eax
jmp 0x1033481
xor eax, eax
inc eax
mov dword [edi], eax
test ebx, ebx
jge 0x10334ac
mov eax, dword [0x12d2c30]
cmp eax, 0x12d2c30
je 0x10334ac
test byte [eax + 0x3c], 2
je 0x10334ac
push ebx
push 0x1001e54
push 0xe
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.01032571
mov ecx, dword [ebp - 4]
pop edi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0128e47a
leave
ret 4

Function at 0x103413b
Capabilities:
Listen for remote procedure calls

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x12d39d8]
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc], eax
mov eax, dword [0x12d39dc]
mov esi, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
cmp dword [esi + 0x18], edi
je 0x103416d
push esi
lea ecx, [ebp - 0xc]
call fcn.01032a12
cmp dword [esi + 0x20], edi
je 0x10341c2
cmp dword [esi + 0x1c], edi
jne 0x10341c2
lea ecx, [ebp - 0xc]
call fcn.01032a49
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push 0x64
push 1
call dword [sym.imp.RPCRT4.dll_RpcServerListen]
push eax
call fcn.0103330d
cmp dword [ebp - 4], edi
jge 0x10341c2
mov eax, dword [0x12d2c30]
cmp eax, 0x12d2c30
je 0x10341c2
test byte [eax + 0x3c], 2
je 0x10341c2
push dword [ebp - 4]
push 0x1001e54
push 0xc
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.01032571
lea ecx, [ebp - 0xc]
call fcn.01032a49
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 4
Function at 0x1034cfe
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], 0x80000001
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
jne 0x1034d1f
mov dword [ebp - 0xc], edi
lea eax, [ebp - 8]
push eax
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0103482d
mov esi, eax
cmp esi, edi
mov dword [ebp + 0xc], esi
jl 0x1034dde
mov dword [ebp + 8], edi
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
call fcn.010330ee
test eax, eax
je 0x1034dd7
cmp dword [ebp - 4], edi
jne 0x1034d95
cmp dword [ebp + 8], edi
jbe 0x1034dd0
push dword [ebp + 8]
call fcn.010324a4
lea ecx, [ebp - 4]
mov esi, eax
call fcn.01033cc2
cmp esi, edi
je 0x1034d8b
mov dword [ebp - 4], esi
jmp 0x1034d40
mov dword [ebp - 4], edi
mov esi, 0x8007000e
jmp 0x1034dda
cmp dword [ebp - 0x10], 4
je 0x1034da2
mov esi, 0x8007000d
jmp 0x1034dde
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x14]
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.01032dc3
mov esi, eax
cmp esi, edi
jl 0x1034dde
cmp dword [ebp + 0xc], edi
je 0x1034dc2
mov dword [ebp - 4], edi
mov eax, dword [ebp + 0x18]
cmp eax, edi
je 0x1034dda
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
jmp 0x1034dda
mov esi, 0x8000ffff
jmp 0x1034dde
mov esi, dword [ebp + 0xc]
cmp esi, edi
jge 0x1034e03
mov eax, dword [0x12d2c30]
cmp eax, 0x12d2c30
je 0x1034e03
test byte [eax + 0x3c], 2
je 0x1034e03
push esi
push 0x1001ed4
push 0x22
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.01032571
lea ecx, [ebp - 4]
call fcn.01033cc2
lea ecx, [ebp - 0xc]
call fcn.010339a8
lea ecx, [ebp - 8]
call fcn.010339a8
pop edi
mov eax, esi
pop esi
leave
ret 0x14

Function at 0x10392ba
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push eax
call fcn.010330ee
cmp dword [ebp - 4], 0
jge 0x1039307
mov eax, dword [0x12d2c30]
cmp eax, 0x12d2c30
je 0x1039307
test byte [eax + 0x3c], 2
je 0x1039307
push dword [ebp - 4]
push 0x10027a0
push 0x2c
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.01032571
mov eax, dword [ebp - 4]
leave
ret 8