joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002dba0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x2c]
sub esp, 0x24
mov ecx, dword [0x102fb2c0]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x102f9da4]
cmp eax, dword [ecx + 4]
jg 0x1002dbcb
mov eax, dword [0x102f9da0]
mov esp, ebp
pop ebp
ret
push 0x102f9da4
call fcn.101bddc3
add esp, 4
cmp dword [0x102f9da4], 0xffffffff
jne 0x1002dbc2
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov eax, dword [ebp - 0x10]
lea eax, [eax*2 + 2]
cmp eax, 0x200
jae 0x1002dc12
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov eax, dword [ebp - 0x10]
lea eax, [eax*2 + 2]
jmp 0x1002dc19
mov eax, 0x200
jmp 0x1002dc19
push 0x102f9da4
mov dword [0x102f9da0], eax
call fcn.101bdd79
add esp, 4
jmp 0x1002dbc2

Function at 0x1002e2c0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x102f8384]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.1002de50
add esp, 4
mov word [esi], ax
test ax, ax
je 0x1002e309
push esi
push dword [ebp + 0xc]
push edi
call fcn.1002e250
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101bdc82
mov esp, ebp
pop ebp
ret
xorps xmm0, xmm0
mov dword [ebp - 0x8c], 0
movups xmmword [esi + 2], xmm0
lea ecx, [ebp - 0x88]
mov dword [ebp - 0xac], 0xc00
movq qword [esi + 0x12], xmm0
mov word [esi + 0x1a], 0
movzx eax, word [esi]
mov dword [ebp - 0xa8], eax
lea eax, [ebp - 0x84]
push 3
push edi
movlpd qword [ebp - 0xa4], xmm0
movlpd qword [ebp - 0x9c], xmm0
movlpd qword [ebp - 0x94], xmm0
mov dword [ebp - 0x88], eax
call fcn.1002e780
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0xac]
push eax
push 0
push dword [ebp - 0x88]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov edi, eax
lea ecx, [ebp - 0x84]
mov eax, dword [ebp - 0x88]
cmp eax, ecx
je 0x1002e3a1
push eax
call fcn.101cbb1d
add esp, 4
test edi, edi
je 0x1002e3a8
push edi
jmp 0x1002e3d4
mov edi, dword [ebp - 0x8c]
mov eax, edi
test eax, eax
je 0x1002e3c8
mov ecx, dword [eax + 4]
cmp ecx, 2
je 0x1002e3ec
cmp ecx, 0x17
je 0x1002e3ec
mov eax, dword [eax + 0x1c]
test eax, eax
jne 0x1002e3b4
push edi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
push 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101bdc82
mov esp, ebp
pop ebp
ret
push dword [eax + 0x10]
push dword [eax + 0x18]
push esi
call fcn.101c0150
add esp, 0xc
push edi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebp - 4]
mov word [esi + 2], ax
xor ecx, ebp
pop edi
mov eax, 1
pop esi
call fcn.101bdc82
mov esp, ebp
pop ebp
ret
Function at 0x1002e570
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
xor eax, eax
mov dword [ebp - 8], 0x1c
mov word [ebp - 0x24], ax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1002e59e
xor eax, eax
mov esp, ebp
pop ebp
ret
push dword [ebp + 0x14]
lea eax, [ebp - 4]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.1002f350
add esp, 0x14
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
lea ecx, [ebp - 8]
push esi
push 0
push 0
push ecx
lea ecx, [ebp - 4]
mov dword [ebp - 8], 0
push ecx
push 1
lea esi, [eax + 0x1c]
mov dword [ebp - 4], 0
push esi
push dword [eax + 0x34]
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x1002ea13
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x1002ea23
mov dword [esi], ecx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x2775
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov eax, dword [edi + 0x8c]
mov dword [ecx + 0x34], eax
mov dword [ecx + 0x18], 4
lock inc dword [edi]
push esi
push ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 1
lea eax, [ecx + 0x1c]
push eax
push dword [ecx + 0x34]
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x1002ebfa
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x3e5
je 0x1002ebfa
lock dec dword [edi]
xor eax, eax
cmp esi, 0x3e5
pop edi
cmovne eax, esi
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [edi + 0x8c]
mov dword [ecx + 0x34], eax
mov dword [ecx + 0x18], 3
mov dword [ecx + 0x28], 2
lock inc dword [edi]
push esi
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 1
lea eax, [ecx + 0x1c]
push eax
push dword [ecx + 0x34]
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x1002ec69
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x3e5
je 0x1002ec69
lock dec dword [edi]
xor eax, eax
cmp esi, 0x3e5
pop edi
cmovne eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1002ec80
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x8c]
mov dword [ecx + 0x34], eax
mov dword [ecx + 0x18], 3
mov dword [ecx + 0x28], 2
lock inc dword [esi]
push 0
push ecx
push 0
lea eax, [ebp - 4]
push eax
push 1
lea eax, [ecx + 0x1c]
push eax
push dword [ecx + 0x34]
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x1002ecde
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x1002ece0
lock dec dword [esi]
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1002ecf0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101e85f0
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x102f8384]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x1002ed76
cmp dword [esi], 0
je 0x1002ed6b
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1002ed96
push str.CreateFileTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1002ed71
push 0
push 0
push dword [esi]
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push dword [ebp + 8]
call eax
jmp 0x1002ed91
cmp dword [esi + 4], 0
jne 0x1002ed76
or eax, 0xffffffff
jmp 0x1002ed91
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x1002edb0
call fcn.1002bf00
test eax, eax
jns 0x1002edb2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [edi], eax
lea eax, [ebp - 0x10]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
jne 0x1002edd6
call fcn.1002bf00
test eax, eax
js 0x1002eeb7
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
jne 0x1002ede7
test eax, eax
je 0x1002eea9
test ecx, ecx
ja 0x1002eea9
jb 0x1002edf8
cmp eax, dword [ebp + 0x14]
ja 0x1002eea9
mov esi, dword [edi]
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, dword [ebp + 0x10]
mov ecx, eax
mov dword [edi + 8], ecx
test ecx, ecx
jne 0x1002ee3b
call fcn.1002bf00
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
push 0
push eax
push 0
push 0
push 4
push ecx
mov dword [edi + 4], eax
mov dword [edi + 0x18], 4
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov dword [edi], eax
test eax, eax
jne 0x1002ee96
call fcn.1002bf00
push dword [edi + 8]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 8], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
or eax, ecx
mov eax, 0x800703ee
je 0x1002eeb7
mov eax, 0x800700df
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1002f0b0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], 1
mov dword [ebp - 4], 0
push ebx
push esi
push edi
test eax, eax
jne 0x1002f102
mov ebx, dword [ebp + 8]
lea eax, [ebp - 8]
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
push eax
push 0xfffffffffffffffb
push 0xffff
push ebx
call esi
push 4
mov edi, eax
lea eax, [ebp - 4]
push eax
push 4
push 0xffff
push ebx
call esi
or eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x1002f13b
mov ebx, dword [ebp + 8]
lea eax, [ebp - 4]
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
push eax
push 0xfffffffffffffffb
push 0xffff
push ebx
call esi
push 4
mov edi, eax
lea eax, [ebp - 4]
push eax
push 4
push 0xffff
push ebx
call esi
or eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x1002f174
mov ebx, dword [ebp + 8]
lea eax, [ebp - 4]
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
push eax
push 0xfffffffffffffffb
push 0xffff
push ebx
call esi
push 4
mov edi, eax
lea eax, [ebp - 8]
push eax
push 4
push 0xffff
push ebx
call esi
or eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1002f1b0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 4
lea eax, [ebp + 0xc]
push eax
push 0x7010
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
pop ebp
ret
Function at 0x10030ef0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101e883d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x102f8384]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea esi, [edi + 0x104]
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov edx, dword [ebp + 8]
lea ebx, [edi + 0x108]
movzx eax, dl
xor eax, 0x811c9dc5
mov dword [ebp - 4], 0
imul ecx, eax, 0x1000193
movzx eax, dh
xor ecx, eax
movzx eax, byte [ebp + 0xa]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [ebp + 0xb]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, ebx
push eax
mov dword [ebp - 0x10], eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.1002d6c0
cmp dword [ebp - 0x18], 0
jne 0x10031072
cmp dword [ebx + 8], 0x15555555
je 0x1003108d
lea eax, [ebx + 4]
mov dword [ebp - 0x24], eax
push 0xc
mov byte [ebp - 4], 1
mov dword [ebp - 0x20], 0
call fcn.101be1d6
mov edi, eax
add esp, 4
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], edi
mov dword [edi + 8], eax
mov ecx, dword [ebx + 8]
inc ecx
mov byte [ebp - 4], 2
mov eax, ecx
shr eax, 0x1f
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [eax*8 + 0x101eaa50]
mov eax, dword [ebx + 0x1c]
cvtpd2ps xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x101eaa50]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, dword [ebx]
jbe 0x10031027
push ecx
mov ecx, ebx
call fcn.10033020
push eax
mov ecx, ebx
call fcn.1002d860
push dword [ebp - 0x10]
lea eax, [edi + 8]
mov ecx, ebx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.1002d6c0
mov edx, dword [eax]
jmp 0x1003102a
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebx + 8]
mov ecx, dword [edx + 4]
inc eax
mov esi, dword [ebp - 0x24]
mov dword [ebx + 8], eax
mov dword [edi], edx
mov dword [edi + 4], ecx
mov dword [ecx], edi
mov dword [edx + 4], edi
mov eax, dword [ebx + 0x18]
and eax, dword [ebp - 0x10]
mov dword [ebp + 8], ecx
mov ecx, dword [ebx + 0xc]
mov ebx, dword [ecx + eax*8]
cmp ebx, dword [esi]
mov esi, dword [ebp - 0x14]
jne 0x1003105c
mov dword [ecx + eax*8], edi
jmp 0x1003106e
cmp ebx, edx
jne 0x10031065
mov dword [ecx + eax*8], edi
jmp 0x10031072
mov edx, dword [ebp + 8]
cmp dword [ecx + eax*8 + 4], edx
jne 0x10031072
mov dword [ecx + eax*8 + 4], edi
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x101eaa0c
call fcn.101bdc62
int3
Function at 0x100326d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi]
call dword [eax + 0x16c]
test eax, eax
je 0x1003285e
lea eax, [esi + 0x154]
push eax
lea ecx, [ebp - 4]
call fcn.1002f6f0
cmp dword [esi + 0x68], 3
jne 0x10032843
mov eax, dword [ebp - 4]
mov ecx, esi
mov dword [esi + 0x68], 0
push ebx
push edi
mov dword [eax], 0
mov eax, dword [esi]
call dword [eax + 0x170]
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call fcn.10030410
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x10032827
push 0
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [esi + 0x64], eax
test eax, eax
jne 0x10032766
call ebx
push eax
mov dword [esi + 0x6c], 7
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [esi + 0x64], 0
je 0x10032827
xor edi, edi
cmp dword [esi + 0x14], edi
jbe 0x100327b0
nop dword [eax]
push 0
push 0
push esi
push 0x10032d80
push 0
push 0
call fcn.101cbd22
add esp, 0x18
mov dword [ebp + 0xc], eax
test eax, eax
je 0x1003280b
mov ecx, dword [esi + 0x74]
cmp ecx, dword [esi + 0x78]
je 0x1003279d
mov dword [ecx], eax
add dword [esi + 0x74], 4
jmp 0x100327aa
lea eax, [ebp + 0xc]
push eax
push ecx
lea ecx, [esi + 0x70]
call fcn.1002dcd0
inc edi
cmp edi, dword [esi + 0x14]
jb 0x10032770
mov eax, dword [esi + 0x60]
push 0
push eax
push dword [esi + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
je 0x10032816
mov eax, dword [esi + 0x1c]
xor edi, edi
mov dword [esi + 0x358], eax
cmp dword [esi + 0x1c], edi
jbe 0x100327ed
push dword [esi + 0x64]
call fcn.1002eae0
add esp, 4
test eax, eax
je 0x10032867
inc edi
cmp edi, dword [esi + 0x1c]
jb 0x100327d4
push dword [esi + 0x48]
mov dword [esi + 0x68], 1
call dword [sym.imp.KERNEL32.dll_ResetEvent]
pop edi
pop ebx
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 8
call ebx
mov dword [esi + 0x6c], 8
jmp 0x1003281f
call ebx
mov dword [esi + 0x6c], 0xa
push eax
mov eax, dword [sym.imp.KERNEL32.dll_SetLastError]
call eax
call ebx
mov edx, dword [esi]
mov ecx, esi
mov edi, eax
call dword [edx]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
push 0x139f
mov dword [esi + 0x6c], 1
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 4]
mov dword [eax], 0
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.1002bf40
int3
Function at 0x10036ae0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101e8b60
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x102f8384]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x40], 0
je 0x10036b98
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
test eax, eax
jne 0x10036b25
mov eax, dword [esi + 0x30]
push eax
push 0
mov ecx, esi
call fcn.1002c7d0
mov edi, dword [esi + 0xc]
sub edi, 1
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
js 0x10036b76
nop dword [eax]
cmp edi, dword [esi + 0xc]
jge 0x10036bac
mov eax, dword [esi + 8]
mov ebx, dword [eax + edi*4]
lea eax, [ebp + 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp + 8], 0x103
jne 0x10036b68
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
sub edi, 1
jns 0x10036b40
push dword [esi + 0x40]
call ebx
lea edi, [esi + 0x14]
mov dword [esi + 0x40], 0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push dword [esi + 0x3c]
call ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 1
push 0xc000008c
call fcn.1002d270
int3

Function at 0x10039e10
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.10039e20

Function at 0x1003a0a0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.1003a0b0

Function at 0x1003d480
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov eax, 4
call fcn.101bea50
push edi
mov edi, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 4], eax
test edi, edi
je 0x1003d500
mov cl, byte [edi]
test cl, cl
je 0x1003d500
push ebx
push esi
mov ebx, 0x100
nop word [eax + eax]
movd xmm1, dword [esp + 0xc]
lea edi, [edi + 1]
movsx esi, cl
mov edx, 0x20
or esi, ebx
add ebx, 0x100
mov ecx, esi
shr ecx, 2
xor ecx, esi
imul esi, esi
and ecx, 0xf
sub edx, ecx
shl eax, cl
mov cl, byte [edi]
movd xmm0, edx
psrlq xmm1, xmm0
movd edx, xmm1
or eax, edx
xor eax, esi
mov dword [esp + 0xc], eax
test cl, cl
jne 0x1003d4b0
pop esi
mov ecx, eax
pop ebx
shr ecx, 0x10
xor eax, ecx
pop edi
pop ecx
ret
xor eax, eax
pop edi
pop ecx
ret
Function at 0x1003d580
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.101bea50
push ebx
mov ebx, dword [esp + 0xc]
push esi
xor esi, esi
mov dword [esp + 8], esi
test ebx, ebx
je 0x1003d603
mov al, byte [ebx]
test al, al
je 0x1003d603
push ebp
push edi
mov ebp, 0x100
movsx eax, al
push eax
call fcn.1004ec10
movd xmm1, dword [esp + 0x14]
lea ebx, [ebx + 1]
mov edi, eax
mov edx, 0x20
or edi, ebp
add esp, 4
mov ecx, edi
add ebp, 0x100
shr ecx, 2
xor ecx, edi
imul edi, edi
and ecx, 0xf
sub edx, ecx
shl esi, cl
movd xmm0, edx
psrlq xmm1, xmm0
movd eax, xmm1
or esi, eax
mov al, byte [ebx]
xor esi, edi
mov dword [esp + 0x10], esi
test al, al
jne 0x1003d5a7
pop edi
mov eax, esi
pop ebp
shr eax, 0x10
xor eax, esi
pop esi
pop ebx
pop ecx
ret
pop esi
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x1004d130
Capabilities:
Initialize winsock library

Disassembly:
cmp dword [0x102fa0c0], 0
jne 0x1004d1c9
push 0x190
push 0
push 0x102fa0c8
mov dword [0x102fa0c0], 1
call fcn.101c06d0
add esp, 0xc
push 0x102fa0c8
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1004d1c9
call fcn.1004b6c0
push str.BIO_sock_init
push 0x94
push str.crypto_bio_bio_sock.c
call fcn.1004b7c0
add esp, 0xc
push str.calling_wsastartup__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.1004b870
call fcn.1004b6c0
push str.BIO_sock_init
push 0x96
push str.crypto_bio_bio_sock.c
call fcn.1004b7c0
push 0
push 0x7a
push 0x20
call fcn.1004b870
add esp, 0x24
or eax, 0xffffffff
ret
mov eax, 1
ret

Function at 0x1004d1d0
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [esp + 8]
push esi
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 0x8004667e
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov esi, eax
test esi, esi
jns 0x1004d225
call fcn.1004b6c0
push str.BIO_socket_ioctl
push 0xd1
push str.crypto_bio_bio_sock.c
call fcn.1004b7c0
add esp, 0xc
push str.calling_ioctlsocket__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.1004b870
add esp, 0xc
xor eax, eax
test esi, esi
pop esi
sete al
ret

Function at 0x1004d230
Capabilities:
Get socket status

Disassembly:
mov eax, 0x110
call fcn.101bea50
mov eax, dword [0x102f8384]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebp
mov ebp, dword [esp + 0x11c]
push edi
mov edi, dword [esp + 0x11c]
cmp edi, 0x3f
ja 0x1004d31d
push esi
mov esi, dword [esp + 0x128]
mov eax, esi
or eax, dword [esp + 0x12c]
jne 0x1004d291
pop esi
pop edi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.101bdc82
add esp, 0x110
ret
push 0
call fcn.101c363a
add esp, 4
cmp dword [esp + 0x12c], edx
jg 0x1004d2c4
jl 0x1004d2aa
cmp esi, eax
jae 0x1004d2c4
pop esi
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.101bdc82
add esp, 0x110
ret
sub esi, eax
mov dword [esp + 0x18], edi
xor ecx, ecx
mov dword [esp + 0x14], 1
lea eax, [esp + 0xc]
mov dword [esp + 0x10], 0
push eax
test ebp, ebp
mov dword [esp + 0x10], esi
push 0
lea eax, [esp + 0x1c]
cmovne eax, ecx
test ebp, ebp
push eax
lea eax, [esp + 0x20]
cmove eax, ecx
push eax
lea eax, [edi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
pop esi
pop edi
pop ebp
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.101bdc82
add esp, 0x110
ret
mov ecx, dword [esp + 0x114]
or eax, 0xffffffff
pop edi
pop ebp
xor ecx, esp
call fcn.101bdc82
add esp, 0x110
ret
Function at 0x1004de90
Capabilities:
Get common file path

Disassembly:
mov eax, 0x230
call fcn.101bea50
mov eax, dword [0x102f8384]
xor eax, esp
mov dword [esp + 0x22c], eax
cmp dword [0x102fa260], 0
mov dword [esp], 0x1025cf4c
mov dword [esp + 4], 0x1004d890
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x1004dc40
mov dword [esp + 0x10], 0x1025cf64
mov dword [esp + 0x14], 0x1004d840
jne 0x1004dff6
push 0x104
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1004dfec
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.101d1275
push str.ws2_32
lea eax, [esp + 0x38]
push 0x10c
push eax
call fcn.101d12cf
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea eax, [esp + 0x40]
add esp, 0x18
push eax
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test edi, edi
je 0x1004df5f
push 0x1025cf4c
push edi
call ebx
test eax, eax
jne 0x1004dfa6
push edi
call ebp
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.101d1275
push str.wship6
lea eax, [esp + 0x38]
push 0x10c
push eax
call fcn.101d12cf
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call esi
mov edi, eax
test edi, edi
je 0x1004dfe8
push 0x1025cf4c
push edi
call ebx
test eax, eax
je 0x1004dfe5
xor esi, esi
lea eax, [esp + 0x10]
nop dword [eax]
push dword [eax + esi*8]
push edi
call ebx
mov dword [esp + esi*8 + 0x14], eax
test eax, eax
je 0x1004dfe5
inc esi
lea eax, [esp + 0x10]
cmp esi, 3
jl 0x1004dfb0
mov eax, dword [esp + 0x14]
mov dword [0x102f45a8], eax
mov eax, dword [esp + 0x1c]
mov dword [0x102f45b0], eax
mov eax, dword [esp + 0x24]
mov dword [0x102f45b8], eax
jmp 0x1004dfe8
push edi
call ebp
pop edi
pop esi
pop ebp
pop ebx
mov dword [0x102fa260], 1
movzx eax, word [esp + 0x234]
mov ecx, dword [esp + 0x22c]
xor ecx, esp
mov eax, dword [eax*8 + 0x102f45a8]
call fcn.101bdc82
add esp, 0x230
ret 4