joyce8/EMBER2024-capa huggingface dataset:
Function at 0x452510
Capabilities:
Create process on windows
Persist via windows service
Self delete

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdcc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x234], ecx
mov dword [ebp - 0x230], ecx
mov dword [ebp - 0x22c], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.0040494c
xor eax, eax
push ebp
push 0x4526f4
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4526bf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00452440
mov al, byte [0x452704]
push eax
lea eax, [ebp - 0x22c]
push eax
mov ecx, 0x452710
mov edx, 0x45271c
mov eax, dword [ebp - 4]
call fcn.0040c8a0
mov edx, dword [ebp - 0x22c]
lea eax, [ebp - 4]
call fcn.00404524
lea edx, [ebp - 0x230]
mov eax, ebx
call fcn.00452298
mov edx, dword [ebp - 0x230]
lea eax, [ebp - 8]
mov ecx, 0x452728
call fcn.004047a8
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x1d4]
call fcn.00402dc8
lea eax, [ebp - 0x1d4]
call fcn.00402b64
call fcn.00402860
mov edx, 0x452738
lea eax, [ebp - 0x1d4]
call fcn.00404b78
call fcn.0040317c
call fcn.00402860
push 0x45274c
push dword [ebp - 4]
push 0x4527a0
lea eax, [ebp - 0x234]
mov edx, 3
call fcn.0040481c
mov edx, dword [ebp - 0x234]
lea eax, [ebp - 0x1d4]
call fcn.00404b78
call fcn.0040317c
call fcn.00402860
mov edx, 0x4527b4
lea eax, [ebp - 0x1d4]
call fcn.00404b78
call fcn.0040317c
call fcn.00402860
lea eax, [ebp - 0x1d4]
call fcn.00402e90
call fcn.00402860
lea eax, [ebp - 0x228]
xor ecx, ecx
mov edx, 0x44
call fcn.00402f58
mov dword [ebp - 0x1fc], 1
mov word [ebp - 0x1f8], 0
lea eax, [ebp - 0x1e4]
push eax
lea eax, [ebp - 0x228]
push eax
push 0
push 0
push 0x40
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.0040495c
push eax
push 0
call sub.KERNEL32.DLL_CreateProcessA
test eax, eax
je 0x4526b5
mov eax, dword [ebp - 0x1e0]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [ebp - 0x1e4]
push eax
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4526c9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4526fb
lea eax, [ebp - 0x234]
mov edx, 3
call fcn.004044b0
lea eax, [ebp - 8]
mov edx, 2
call fcn.004044b0
ret
Function at 0x4527bc
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.0040494c
xor eax, eax
push ebp
push 0x4528a9
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x452881
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00452440
mov al, byte [0x4528b8]
push eax
lea eax, [ebp - 0x5c]
push eax
mov ecx, 0x4528c4
mov edx, 0x4528d0
mov eax, dword [ebp - 4]
call fcn.0040c8a0
mov edx, dword [ebp - 0x5c]
lea eax, [ebp - 4]
call fcn.00404524
lea eax, [ebp - 0x58]
xor ecx, ecx
mov edx, 0x44
call fcn.00402f58
mov dword [ebp - 0x2c], 1
mov word [ebp - 0x28], 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push 0x40
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0040495c
push eax
push 0
call sub.KERNEL32.DLL_CreateProcessA
test eax, eax
je 0x452877
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45288b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4528b0
lea eax, [ebp - 0x5c]
call fcn.0040448c
lea eax, [ebp - 4]
call fcn.0040448c
ret
Function at 0x4032d0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
push ebp
mov ebp, dword [esp + 0x210]
test ebp, ebp
je 0x403449
cmp byte [ebp], 0
je 0x403449
mov ecx, dword [esp + 0x218]
mov eax, str.open
test ecx, ecx
je 0x403305
mov eax, 0x406694
mov ecx, dword [esp + 0x214]
push ebx
push esi
push edi
push ecx
push 0
push 0
push ebp
push eax
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ebx, eax
cmp ebx, 0x20
ja 0x40343c
lea edx, [esp + 0x10]
push edx
push str..htm
push closesocket
call fcn.004031e0
add esp, 0xc
test eax, eax
jne 0x40343c
mov edi, str._shellopencommand
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
push closesocket
call fcn.004031e0
add esp, 0xc
test eax, eax
jne 0x40343c
mov esi, dword [sym.imp.MSVCRT.dll__mbsstr]
lea edx, [esp + 0x10]
push str.__1_
push edx
call esi
mov edx, eax
add esp, 8
test edx, edx
jne 0x4033d5
lea eax, [esp + 0x10]
push 0x40666c
push eax
call esi
mov edx, eax
add esp, 8
test edx, edx
jne 0x4033d5
lea edi, [esp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + ecx + 0xf]
jmp 0x4033d8
mov byte [edx], 0
mov edi, 0x406668
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x220]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov ebx, eax
pop edi
mov eax, ebx
pop esi
pop ebx
pop ebp
add esp, 0x208
ret
mov eax, 0x24
pop ebp
add esp, 0x208
ret
Function at 0x10001bb0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x10028300]
xor eax, ebp
mov dword [ebp - 4], eax
inc dword [0x10050318]
cmp dword [edi + 8], 0
push esi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0x25a207b9
mov dword [ebp - 0x10], 0x4660ddf3
mov dword [ebp - 0xc], 0xe576e98e
mov dword [ebp - 8], 0x3e06748c
mov dword [ebp - 0x1c], 0
jne 0x10001c4e
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x10001c37
push 0
push 0
lea edx, [ebp - 0x1c]
push edx
push 4
lea eax, [ebp - 0x18]
push eax
push 0x10
lea ecx, [ebp - 0x14]
push ecx
push 0xc8000006
push esi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
inc dword [0x10050318]
mov edx, dword [ebp - 0x18]
mov dword [edi + 8], edx
mov eax, edx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10014776
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [edi + 8]
xor ecx, ebp
pop esi
call fcn.10014776
mov esp, ebp
pop ebp
ret
Function at 0x100027b0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x10028300]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x114], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x118], eax
mov byte [ebp - 0x109], 0
test eax, eax
jne 0x100027f0
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10014776
mov esp, ebp
pop ebp
ret
push ebx
push 0x103
lea ecx, [ebp - 0x107]
push 0
push ecx
mov byte [ebp - 0x108], 0
call fcn.1001acc0
push str.5B7C84755D8041139A7AEBA6F4E5912F.dat
push str.C:WindowsTemp_s
lea edx, [ebp - 0x108]
push 0x104
push edx
call fcn.100148c0
add esp, 0x1c
push 0
push 0x80
push 3
push 0
push 1
push connect
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov ebx, eax
test ebx, ebx
je 0x100028e0
cmp ebx, 0xffffffff
je 0x100028e0
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, eax
mov dword [ebp - 0x110], edi
test edi, edi
je 0x100028d8
push esi
push edi
call fcn.10014c7b
mov esi, eax
add esp, 4
test esi, esi
je 0x100028d7
push edi
push 0
push esi
call fcn.1001acc0
mov edx, dword [ebp - 0x110]
add esp, 0xc
push 0
lea ecx, [ebp - 0x110]
push ecx
push edx
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x100028ba
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push esi
call fcn.10014c41
add esp, 4
jmp 0x100028d7
mov eax, dword [ebp - 0x114]
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x118]
mov dword [eax], esi
mov dword [edx], ecx
mov byte [ebp - 0x109], 1
pop esi
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x109]
xor ecx, ebp
pop ebx
call fcn.10014776
mov esp, ebp
pop ebp
ret
Function at 0x10002900
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
mov dword [ebp - 0xc], esi
mov byte [ebp - 1], 0
cmp dword [ebp + 0xc], esi
jne 0x1000291c
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xc]
push eax
push 0x20019
push esi
push str.SoftwareLicenses
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100029eb
mov eax, dword [ebp - 0xc]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 8]
push ecx
push esi
lea edx, [ebp - 0x10]
push edx
push esi
push str.Z3CD_FA87_B5E6_0SYI
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], esi
call ebx
cmp dword [ebp - 0x10], 3
jne 0x100029d8
push edi
mov edi, dword [ebp - 8]
cmp edi, esi
jbe 0x100029d7
push edi
call fcn.10014c7b
mov esi, eax
add esp, 4
test esi, esi
je 0x100029d7
push edi
push 0
push esi
call fcn.1001acc0
mov eax, dword [ebp - 0xc]
add esp, 0xc
lea ecx, [ebp - 8]
push ecx
push esi
lea edx, [ebp - 0x10]
push edx
push 0
push str.Z3CD_FA87_B5E6_0SYI
push eax
call ebx
test eax, eax
jne 0x100029c8
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
mov dword [ecx], esi
mov ecx, dword [ebp - 0xc]
pop edi
push ecx
mov dword [eax], edx
mov byte [ebp - 1], 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 1]
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
push esi
call fcn.10014c41
add esp, 4
call dword [sym.imp.KERNEL32.DLL_GetLastError]
pop edi
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 1]
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov al, byte [ebp - 1]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10002a00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 8]
xor esi, esi
xor bl, bl
push ecx
mov byte [ebp - 3], bl
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
call fcn.10002900
add esp, 8
test al, al
jne 0x10002a41
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 8]
push eax
call fcn.100027b0
add esp, 8
test al, al
je 0x10002b20
push edi
mov edi, dword [ebp - 8]
mov eax, dword [edi]
lea ecx, [eax - 0x2711]
cmp ecx, 0xd8ec
ja 0x10002a5a
mov dword [0x10050310], eax
mov edx, dword [edi + 4]
mov eax, dword [ebp + 0xc]
mov ecx, dword [edi + 8]
mov bl, byte [edi + 0xc]
mov dword [eax], edx
mov eax, dword [0x10050320]
mov dl, byte [edi + 0xd]
mov dword [0x1004f490], ecx
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
cmp eax, esi
je 0x10002a89
push eax
call fcn.10014c41
add esp, 4
movzx ebx, bl
lea eax, [ebx + 1]
push eax
call fcn.10014c7b
mov esi, eax
add esp, 4
mov dword [0x10050320], esi
test esi, esi
je 0x10002b13
lea eax, [ebx + 1]
push eax
push 0
push esi
call fcn.1001acc0
add esp, 0xc
cmp byte [ebp - 1], 0
jbe 0x10002acc
lea eax, [edi + 0xe]
mov ecx, ebx
mov edi, edi
mov dl, byte [eax]
xor dl, byte [ebp - 2]
inc eax
mov byte [esi], dl
inc esi
dec ecx
jne 0x10002ac0
mov eax, dword [ebp + 0xc]
mov esi, dword [eax]
test esi, esi
je 0x10002b13
lea ecx, [esi + ebx + 0xe]
cmp ecx, dword [ebp - 0xc]
jne 0x10002b13
push esi
call fcn.10014c7b
mov edx, dword [ebp + 8]
add esp, 4
mov dword [edx], eax
test eax, eax
je 0x10002b13
push esi
lea ecx, [ebx + edi + 0xe]
push ecx
push eax
call fcn.1001add0
add esp, 0xc
push edi
mov bl, 1
call fcn.10014c41
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
mov bl, byte [ebp - 3]
push edi
call fcn.10014c41
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10002b30
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x18c4
call fcn.100208f0
mov eax, dword [0x10028300]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x825
mov esi, edx
xor ebx, ebx
lea edx, [ebp - 0x1878]
push ebx
mov edi, 0x824
push edx
mov dword [ebp - 0x1884], eax
mov dword [ebp - 0x1888], ecx
mov dword [ebp - 0x187c], edi
call fcn.1001acc0
push 0x825
lea eax, [ebp - 0x82c]
push ebx
push eax
call fcn.1001acc0
push 0x3c
lea ecx, [ebp - 0x18c4]
push ebx
push ecx
call fcn.1001acc0
add esp, 0x24
cmp dword [esi + 0x14], 0x10
lea edx, [ebp - 0x1878]
lea eax, [ebp - 0x82c]
mov dword [ebp - 0x18c4], 0x3c
mov dword [ebp - 0x18b0], edi
mov dword [ebp - 0x18b4], edx
mov dword [ebp - 0x1894], edi
mov dword [ebp - 0x1898], eax
jb 0x10002bd6
mov eax, dword [esi]
jmp 0x10002bd8
mov eax, esi
push 0x2000000
lea ecx, [ebp - 0x187c]
push ecx
lea edx, [ebp - 0x1050]
push edx
push eax
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
test eax, eax
jne 0x10002c57
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x7a
jne 0x10002c44
mov eax, dword [ebp - 0x187c]
push eax
call fcn.1001476b
add esp, 4
cmp dword [esi + 0x14], 0x10
mov edi, eax
mov ebx, 1
jb 0x10002c21
mov eax, dword [esi]
jmp 0x10002c23
mov eax, esi
push 0x2000000
lea ecx, [ebp - 0x187c]
push ecx
push edi
push eax
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
test eax, eax
jne 0x10002c5d
push edi
call fcn.10014e6a
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10014776
mov esp, ebp
pop ebp
ret
lea edi, [ebp - 0x1050]
lea edx, [ebp - 0x18c4]
push edx
push 0
push 0
push edi
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
mov dword [ebp - 0x1880], eax
test ebx, ebx
je 0x10002c82
push edi
call fcn.10014e6a
add esp, 4
cmp dword [ebp - 0x1880], 0
jne 0x10002cb4
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov eax, dword [ebp - 0x1884]
pop edi
pop esi
mov dword [eax], 4
mov eax, dword [ebp - 0x1880]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10014776
mov esp, ebp
pop ebp
ret
mov cx, word [ebp - 0x18ac]
mov edx, dword [ebp - 0x1888]
mov eax, dword [ebp - 0x18b8]
mov word [edx], cx
mov ecx, dword [ebp - 0x1884]
mov edx, dword [ebp - 0x18b4]
mov dword [ecx], eax
mov eax, edx
lea edi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10002ce0
sub eax, edi
push edx
mov edi, eax
call fcn.100048f0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1880]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10014776
mov esp, ebp
pop ebp
ret
Function at 0x10003680
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get socket status
Initialize winsock library
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d0
mov eax, dword [0x10028300]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
xor eax, eax
xor ecx, ecx
push 0x18e
push ecx
lea edx, [ebp - 0x2b2]
or edi, 0xffffffff
push edx
mov word [ebp - 0x18], ax
mov dword [ebp - 0x16], eax
mov dword [ebp - 0x12], eax
mov dword [ebp - 0xe], eax
mov word [ebp - 0xa], ax
mov dword [ebp - 0x2bc], edi
mov dword [ebp - 0x2c8], 0xc8
mov word [ebp - 0x2b4], cx
call fcn.1001acc0
add esp, 0xc
lea eax, [ebp - 0x2b4]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0
mov ebx, 1
push ebx
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, edi
jne 0x10003715
add dword [0x10050318], ebx
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, edi
jmp 0x10003866
push 4
lea ecx, [ebp - 0x2c8]
push ecx
push 0x1005
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [0x10050310]
inc eax
mov edx, 2
push eax
mov word [ebp - 0x18], dx
call dword [sym.imp.WS2_32.dll_htons]
push str.127.0.0.1
mov word [ebp - 0x16], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
lea ecx, [ebp - 0x2b8]
push ecx
push 0x8004667e
mov dword [ebp - 0x2b8], ebx
mov ebx, dword [sym.imp.WS2_32.dll_ioctlsocket]
push esi
mov dword [ebp - 0x14], eax
call ebx
push 0x10
lea edx, [ebp - 0x18]
push edx
push esi
mov dword [ebp - 0x2d0], 5
mov dword [ebp - 0x2cc], 0
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, edi
je 0x1000379e
mov edi, 1
jmp 0x10003809
lea eax, [ebp - 0x2d0]
push eax
push 0
lea ecx, [ebp - 0x124]
push ecx
push 0
push edi
mov dword [ebp - 0x120], esi
mov dword [ebp - 0x124], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x10003809
lea edx, [ebp - 0x2c4]
push edx
lea eax, [ebp - 0x2c0]
push eax
push 0x1007
push 0xffff
push esi
mov dword [ebp - 0x2c0], edi
mov dword [ebp - 0x2c4], 4
call dword [sym.imp.WS2_32.dll_getsockopt]
xor ecx, ecx
cmp dword [ebp - 0x2c0], ecx
sete cl
lea edi, [ecx + ecx - 1]
lea edx, [ebp - 0x2b8]
push edx
push 0x8004667e
push esi
mov dword [ebp - 0x2b8], 0
call ebx
mov ebx, 1
cmp edi, ebx
jne 0x10003853
cmp dword [ebp + 0x1c], 0x10
mov eax, dword [ebp + 8]
jae 0x10003837
lea eax, [ebp + 8]
mov ecx, dword [ebp + 0x18]
push 0
push ecx
push eax
push esi
call dword [sym.imp.WS2_32.dll_send]
add dword [0x10050318], ebx
mov dword [ebp - 0x2bc], ebx
jmp 0x10003859
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov esi, dword [ebp - 0x2bc]
add dword [0x10050318], ebx
cmp dword [ebp + 0x1c], 0x10
jb 0x1000387e
mov edx, dword [ebp + 8]
push edx
call fcn.10014ed4
add esp, 4
mov ecx, dword [ebp - 8]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.10014776
mov esp, ebp
pop ebp
ret
Function at 0x100078b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x10028300]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x7c], eax
push eax
lea eax, [ebp - 0x74]
call fcn.100070d0
add esp, 4
lea ecx, [ebp - 0x74]
call fcn.10007390
mov ebx, dword [ebp + 0xc]
inc dword [0x10050328]
mov dword [ebp - 0x78], 0xf
add ebx, 0x2d1
jmp 0x10007900
mov ecx, 8
lea esi, [ebp - 0x54]
lea edi, [ebp - 0x34]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x34]
call fcn.100074b0
xor eax, eax
jmp 0x10007920
movzx ecx, byte [ebx + eax - 1]
movzx edx, byte [ebx + eax]
xor byte [ebp + eax - 0x34], cl
xor byte [ebp + eax - 0x33], dl
movzx ecx, byte [ebx + eax + 1]
movzx edx, byte [ebx + eax + 2]
xor byte [ebp + eax - 0x32], cl
xor byte [ebp + eax - 0x31], dl
movzx ecx, byte [ebx + eax + 3]
movzx edx, byte [ebx + eax + 4]
xor byte [ebp + eax - 0x30], cl
xor byte [ebp + eax - 0x2f], dl
add eax, 6
cmp eax, 0x30
jl 0x10007920
lea eax, [ebp - 0x34]
mov esi, 1
add dword [0x10050328], esi
push eax
call fcn.100075f0
add esp, 4
lea ecx, [ebp - 0x34]
call fcn.10007560
xor eax, eax
mov edi, edi
movzx ecx, byte [ebp + eax - 0x34]
movzx edx, byte [ebp + eax - 0x33]
xor byte [ebp + eax - 0x74], cl
xor byte [ebp + eax - 0x73], dl
movzx ecx, byte [ebp + eax - 0x32]
movzx edx, byte [ebp + eax - 0x31]
xor byte [ebp + eax - 0x72], cl
xor byte [ebp + eax - 0x71], dl
add eax, 4
cmp eax, 0x20
jl 0x10007980
mov eax, dword [ebp - 0x78]
add dword [0x10050328], esi
test eax, eax
je 0x100079ec
inc dword [0x10050328]
mov ecx, 8
lea esi, [ebp - 0x74]
lea edi, [ebp - 0x9c]
rep movsd dword es:[edi], dword [esi]
mov ecx, 8
lea esi, [ebp - 0x54]
lea edi, [ebp - 0x74]
rep movsd dword es:[edi], dword [esi]
mov ecx, 8
lea esi, [ebp - 0x9c]
lea edi, [ebp - 0x54]
rep movsd dword es:[edi], dword [esi]
dec eax
sub ebx, 0x30
mov dword [ebp - 0x78], eax
test eax, eax
jns 0x10007900
lea ecx, [ebp - 0x74]
call fcn.10007420
inc dword [0x10050328]
lea eax, [ebp - 0x74]
push eax
mov eax, dword [ebp - 0x7c]
call fcn.10007110
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10014776
mov esp, ebp
pop ebp
ret

Function at 0x10007b50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, 1
cmp eax, 3
ja case.default.0x10007b61
jmp dword [eax*4 + 0x10007ba4]
mov eax, dword [ebp + 8]
add dword [0x10050318], esi
push 0
push 0
push eax
push 0x10007ad0
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
test eax, eax
je case.0x10007b61.0
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
add dword [0x10050318], esi
add dword [0x10050318], esi
mov eax, esi
pop esi
pop ebp
ret 0xc
Function at 0x10007bc0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x10028300]
xor eax, esp
mov dword [esp + 0x194], eax
push ebx
xor ebx, ebx
push esi
cmp dword [edi], ebx
jne 0x10007c24
inc dword [0x10050318]
push 0xc
call fcn.10015d1a
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x10007c1c
lea eax, [esp + 8]
push eax
push 0x202
mov dword [esi], ebx
mov word [esi + 4], bx
mov byte [esi + 6], bl
mov dword [esi + 8], ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
inc dword [0x10050318]
jmp 0x10007c1e
xor esi, esi
mov dword [edi], esi
cmp esi, ebx
je 0x10007c39
cmp byte [edi + 4], bl
jne 0x10007c39
mov ecx, dword [edi]
inc dword [0x10050318]
call fcn.10001db0
mov byte [edi + 4], al
mov ecx, dword [esp + 0x19c]
mov al, byte [edi + 4]
pop esi
pop ebx
xor ecx, esp
call fcn.10014776
mov esp, ebp
pop ebp
ret

Function at 0x10007d30
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
inc dword [0x10050318]
sub esp, 0x44
push edi
xor edi, edi
cmp dword [0x10050334], 0x40
jae 0x10007e59
push esi
mov esi, dword [ebp + 8]
add esi, eax
cmp esi, 0x80000000
jae 0x10007d5f
lea esi, [edi + 1]
jmp 0x10007d65
sub esi, 0x7fff0000
push ebx
mov ebx, dword [ebp + 0x10]
add ebx, eax
cmp ebx, 0x80000000
jae 0x10007d7e
add ebx, 0x7ff80000
mov dword [ebp - 4], ebx
jmp 0x10007d88
mov dword [ebp - 4], 0xfff80000
mov ebx, dword [ebp - 4]
xor eax, eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x44], edi
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
inc dword [0x10050318]
cmp esi, ebx
jae 0x10007e57
mov ebx, dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
push 0x1c
lea ecx, [ebp - 0x20]
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x10007e1e
cmp dword [ebp - 0x10], 0x10000
jne 0x10007e09
mov eax, dword [ebp - 0x14]
cmp eax, 0x6c
jb 0x10007e0c
mov ecx, dword [ebp - 0x28]
cmp eax, ecx
jb 0x10007e0c
lea eax, [ecx + esi - 1]
xor edx, edx
div ecx
push 0x20
push 0x3000
push 0x6c
imul eax, ecx
push eax
call ebx
mov edi, eax
test edi, edi
jne 0x10007e18
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x20]
add esi, eax
cmp esi, dword [ebp - 4]
jb 0x10007dc3
jmp 0x10007e1e
inc dword [0x10050318]
test edi, edi
je 0x10007e57
mov ecx, dword [0x10050318]
inc ecx
mov dword [0x10050318], ecx
xor eax, eax
cmp dword [eax*4 + 0x100501f0], 0
je 0x10007e44
inc eax
inc ecx
cmp eax, 0x40
jb 0x10007e31
jmp 0x10007e51
inc dword [0x10050334]
mov dword [eax*4 + 0x100501f0], edi
mov dword [0x10050318], ecx
pop ebx
pop esi
inc dword [0x10050318]
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret