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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push edi
xor edi, edi
cmp dword [0x1008bdc0], 0x20
jae 0x1002a563
push esi
mov esi, dword [ebp + 8]
add esi, eax
cmp esi, 0x80000000
jae 0x1002a479
lea esi, [edi + 1]
jmp 0x1002a47f
sub esi, 0x7fff0000
push ebx
mov ebx, dword [ebp + 0x10]
add ebx, eax
cmp ebx, 0x80000000
jae 0x1002a498
add ebx, 0x7ff80000
mov dword [ebp + 0xc], ebx
jmp 0x1002a4a2
mov dword [ebp + 0xc], 0xfff80000
mov ebx, dword [ebp + 0xc]
xor eax, 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
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x40], edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp esi, ebx
jae 0x1002a561
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0x1c
lea ecx, [ebp - 0x1c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1002a52a
cmp dword [ebp - 0xc], 0x10000
jne 0x1002a51d
mov eax, dword [ebp - 0x10]
cmp eax, 0x6c
jb 0x1002a520
mov ecx, dword [ebp - 0x24]
cmp eax, ecx
jb 0x1002a520
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 0x1002a52e
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp - 0x1c]
add esi, eax
cmp esi, dword [ebp + 0xc]
jb 0x1002a4d7
test edi, edi
je 0x1002a561
xor ecx, ecx
mov eax, 0x20
cmp dword [eax + 0x1008bd20], 0
je 0x1002a554
add eax, 4
inc ecx
cmp eax, 0xa0
jb 0x1002a535
pop ebx
pop esi
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 0x10
mov dword [ecx*4 + 0x1008bd40], edi
inc dword [0x1008bdc0]
pop ebx
pop esi
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1002a5b0
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d0
mov eax, dword [0x10062648]
xor eax, ebp
mov dword [ebp - 4], eax
test esi, esi
je 0x1002a68b
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x1002a672
push edi
lea eax, [ebp - 0x2d0]
push eax
push esi
mov dword [ebp - 0x2d0], 0x10001
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x1002a69d
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [ebp - 0x218]
mov ecx, dword [ebp + 8]
cmp eax, ecx
jb 0x1002a643
add ecx, dword [ebp + 0xc]
cmp eax, ecx
jae 0x1002a643
push esi
call ebx
cmp edi, 3
jge 0x1002a657
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
lea eax, [ebp - 0x2d0]
push eax
push esi
inc edi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x1002a605
pop ebx
mov eax, esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003999f
mov esp, ebp
pop ebp
ret 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003999f
mov esp, ebp
pop ebp
ret 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003999f
mov esp, ebp
pop ebp
ret 8
mov eax, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003999f
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
pop edi
call fcn.1003999f
mov esp, ebp
pop ebp
ret 8

Function at 0x1002a6b0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
push 0xf
mov dword [ebp - 4], eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor esi, esi
cmp dword [0x1008bdc8], esi
jbe 0x1002a709
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [0x1008bdc4]
mov ecx, dword [eax + esi*4]
push ecx
call ebx
mov edx, dword [0x1008bdc4]
mov eax, dword [edx + esi*4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [0x1008bdc8]
jb 0x1002a6e4
pop ebx
mov ecx, dword [0x1008bdc4]
push ecx
call fcn.1003affa
mov edx, dword [ebp - 4]
add esp, 4
xor eax, eax
push edx
mov dword [0x1008bdc4], eax
mov dword [0x1008bdc8], eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1002dac0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4028
call fcn.1004c7a0
mov eax, dword [0x10062648]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 0x401c], ecx
test ebx, ebx
jg 0x1002db06
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003999f
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0x401c]
test edi, edi
je 0x1002dae8
mov eax, dword [0x1008b9a4]
add ecx, esi
push 0
test eax, eax
je 0x1002db22
mov edx, ebx
sub edx, esi
push edx
push ecx
push edi
call eax
jmp 0x1002db2f
mov eax, ebx
sub eax, esi
push eax
push ecx
push edi
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x1002db3b
add esi, eax
jmp 0x1002dbd3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1002dbef
mov eax, dword [0x1008b980]
test eax, eax
je 0x1002dae8
mov ecx, 1
mov dword [ebp - 0x4018], ecx
mov dword [ebp - 0x2010], ecx
mov ecx, dword [ebp + 0xc]
imul ecx, ecx, 0xf4240
lea edx, [ebp - 0x4024]
push edx
mov dword [ebp - 0x4020], ecx
lea ecx, [ebp - 0x2010]
push ecx
lea edx, [ebp - 0x4018]
push edx
push 0
push 0
mov dword [ebp - 0x4014], edi
mov dword [ebp - 0x200c], edi
mov dword [ebp - 0x4024], 0
call eax
test eax, eax
je 0x1002dbef
cmp eax, 0xffffffff
je 0x1002dbef
lea eax, [ebp - 0x2010]
push eax
push edi
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
jne 0x1002dbef
lea ecx, [ebp - 0x4018]
push ecx
push edi
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x1002dbef
cmp esi, ebx
jl 0x1002db00
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003999f
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
or eax, 0xffffffff
pop ebx
call fcn.1003999f
mov esp, ebp
pop ebp
ret 8
Function at 0x1002df20
Capabilities:
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x10062648]
xor eax, esp
mov dword [esp + 0x220], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
test ebx, ebx
je 0x1002e0b3
push eax
mov ecx, ebx
call fcn.10005410
test eax, eax
jne 0x1002e08a
cmp dword [0x1008b970], eax
je 0x1002e0b3
cmp dword [0x1008b998], eax
je 0x1002e0b3
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x1002e0b3
mov eax, 2
push 0x1005cd00
mov word [esp + 0x1c], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
movzx ecx, word [0x10089ca6]
push ecx
mov dword [esp + 0x20], eax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [esp + 0x1c]
push edx
push esi
mov word [esp + 0x26], ax
call dword [0x1008b970]
cmp eax, 0xffffffff
je 0x1002e0ac
push 0x200
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.100469a0
mov eax, ebx
add esp, 0xc
mov byte [esp + 0x28], 1
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002dff3
sub eax, edx
mov edi, eax
push edi
lea ecx, [esp + 0x31]
push ebx
push ecx
mov dword [esp + 0x35], edi
call fcn.1003e7c0
add esp, 0xc
lea ebx, [edi + 5]
push 3
push ebx
lea ecx, [esp + 0x30]
mov edi, esi
call fcn.1002dac0
cmp eax, ebx
jne 0x1002e0ac
push 0x200
lea edx, [esp + 0x2c]
push 0
push edx
call fcn.100469a0
add esp, 0xc
push 3
push 9
lea edi, [esp + 0x30]
call fcn.1002d980
cmp eax, 9
jne 0x1002e0a6
cmp byte [esp + 0x28], 1
jne 0x1002e0a6
mov eax, dword [esp + 0x2d]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push eax
sub esp, 0x1c
mov dword [ecx], eax
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
mov edi, eax
call fcn.10001a10
call fcn.100052c0
push edi
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push esi
call dword [0x1008b998]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.1003999f
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push esi
call dword [0x1008b998]
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.1003999f
mov esp, ebp
pop ebp
ret 8
Function at 0x1002e0d0
Capabilities:
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x10062648]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
push ebx
mov dword [ebp - 0x220], edi
call fcn.100054f0
test eax, eax
jne 0x1002e243
cmp dword [0x1008b970], eax
je 0x1002e268
cmp dword [0x1008b998], eax
je 0x1002e268
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x1002e268
mov eax, 2
push 0x1005cd00
mov word [ebp - 0x21c], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
movzx ecx, word [0x10089ca6]
push ecx
mov dword [ebp - 0x218], eax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [ebp - 0x21c]
push edx
push esi
mov word [ebp - 0x21a], ax
call dword [0x1008b970]
cmp eax, 0xffffffff
je 0x1002e261
push 0x200
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.100469a0
add esp, 0xc
push 3
push 9
lea ecx, [ebp - 0x20c]
mov edi, esi
mov byte [ebp - 0x20c], 2
mov dword [ebp - 0x20b], 4
mov dword [ebp - 0x207], ebx
call fcn.1002dac0
cmp eax, 9
jne 0x1002e261
push 3
push 5
lea edi, [ebp - 0x20c]
call fcn.1002d980
cmp eax, 5
jne 0x1002e25b
cmp byte [ebp - 0x20c], 2
jne 0x1002e25b
mov ebx, dword [ebp - 0x20b]
test ebx, ebx
jle 0x1002e261
push 0x200
mov ecx, edi
push 0
push ecx
call fcn.100469a0
add esp, 0xc
push 3
push ebx
call fcn.1002d980
cmp eax, 0xffffffff
je 0x1002e25b
cmp eax, ebx
jne 0x1002e25b
cmp ebx, 0x1ff
jl 0x1002e21b
mov ebx, 0x1ff
mov eax, dword [ebp - 0x220]
push ebx
lea edx, [ebp - 0x20c]
push edx
push eax
call fcn.1003e7c0
mov ecx, dword [ebp + 8]
add esp, 0xc
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push esi
call dword [0x1008b998]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1003999f
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push esi
call dword [0x1008b998]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.1003999f
mov esp, ebp
pop ebp
ret 4
Function at 0x1002e500
Capabilities:
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xbec
mov eax, dword [0x10062648]
xor eax, esp
mov dword [esp + 0xbe8], eax
push ebx
mov bx, word [ebp + 0x10]
push esi
push edi
push 0x3ff
lea eax, [esp + 0x25]
push 0
push eax
mov esi, ecx
mov edi, edx
mov byte [esp + 0x2c], 0
call fcn.100469a0
mov eax, dword [ebp + 8]
add esp, 0xc
cmp eax, 1
jne 0x1002e590
cmp dword [ebp + 0xc], 0
push edi
push esi
jne 0x1002e56f
push str.__s__Resovling_domain_name:__s_Local.
push 0x3ff
lea ecx, [esp + 0x30]
push 0x400
push ecx
call fcn.1003b8af
add esp, 0x18
jmp 0x1002e612
push str.__s__Resovling_domain_name:__s_Remote.
push 0x3ff
lea edx, [esp + 0x30]
push 0x400
push edx
call fcn.1003b8af
add esp, 0x18
jmp 0x1002e612
cmp eax, 2
jne 0x1002e5eb
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x1002e5a9
movzx eax, bx
push eax
push edi
push esi
push str.__s__Connecting_to__s:_d
jmp 0x1002e5fb
cmp eax, 1
jne 0x1002e5ca
movzx edx, bx
push edx
push edi
push esi
push str.__s__Connect_to__s:_d_failed
push 0x3ff
push 0x400
lea eax, [esp + 0x38]
push eax
jmp 0x1002e60a
cmp eax, 2
jne 0x1002e612
movzx ecx, bx
push ecx
push edi
push esi
push str.__s__Connected_to__s:_d
push 0x3ff
push 0x400
lea edx, [esp + 0x38]
push edx
jmp 0x1002e60a
cmp eax, 3
jne 0x1002e612
movzx eax, bx
push eax
push edi
push esi
push str.__s__Connect_to:__s:_d_failed.___Proxy_Error__
push 0x3ff
push 0x400
lea ecx, [esp + 0x38]
push ecx
call fcn.1003b8af
add esp, 0x1c
cmp byte [esp + 0x20], 0
je 0x1002e6ff
cmp dword [0x1008b970], 0
je 0x1002e6ff
cmp dword [0x1008b998], 0
je 0x1002e6ff
push 0x7cf
lea edx, [esp + 0x425]
push 0
push edx
call fcn.100469a0
lea eax, [esp + 0x2c]
add esp, 0xc
mov byte [esp + 0x420], 0x11
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002e660
sub eax, edx
movzx esi, ax
mov al, byte [ebp + 8]
inc esi
push esi
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x42e]
push edx
mov dword [esp + 0x42d], esi
mov byte [esp + 0x431], al
call fcn.1003e7c0
add esp, 0xc
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x1002e6ff
mov eax, 2
push 0x1005cd00
mov word [esp + 0x14], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
movzx ecx, word [0x10089ca6]
push ecx
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [esp + 0x14]
push edx
push edi
mov word [esp + 0x1e], ax
call dword [0x1008b970]
cmp eax, 0xffffffff
je 0x1002e6f8
push 3
add esi, 6
push esi
lea ecx, [esp + 0x428]
call fcn.1002dac0
push edi
call dword [0x1008b998]
mov ecx, dword [esp + 0xbf4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1003999f
mov esp, ebp
pop ebp
ret
Function at 0x10030a20
Capabilities:
Create tcp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 4], eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
jne 0x10030a52
push edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 4]
push ecx
push 0x8004667e
push eax
mov dword [ebp - 4], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x10030bc0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
push 0x1008ba84
call esi
mov ecx, dword [0x1008bde0]
mov eax, dword [0x1008bddc]
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub ecx, eax
sar ecx, 2
push 0x1008ba84
test ecx, ecx
jne 0x10030bfc
call edi
or ecx, 0xffffffff
jmp 0x10030c04
mov edx, dword [eax]
mov ebx, dword [edx]
call edi
mov ecx, ebx
call fcn.1000aa50
cmp dword [0x1008c080], 1
mov dword [ebp - 4], eax
je 0x10030caa
push 0x1008c124
call esi
cmp dword [0x1008b434], 0
push 0x1008c124
setne bl
call edi
test bl, bl
jne 0x10030c5f
push 0x1008c124
call esi
push 0
push 0
push 0
push 0x1002bf70
push 0
push 0
call fcn.1003bbba
add esp, 0x18
push 0x1008c124
mov dword [0x1008b434], eax
call edi
mov esi, dword [ebp + 8]
cmp dword [esi + 4], 0xffffffff
lea ebx, [esi + 4]
jne 0x10030cda
call fcn.10030a20
test eax, eax
je 0x10030caa
mov edi, esi
call fcn.10030a80
test eax, eax
je 0x10030caa
mov esi, dword [ebp - 4]
xor eax, eax
cmp byte [esi + 0x10c], al
lea edi, [esi + 0x10c]
je 0x10030c97
mov eax, 1
push eax
push ebx
call fcn.1002f380
test eax, eax
jne 0x10030cb4
mov esi, dword [ebp + 8]
call fcn.1002bbf0
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
add esi, 0x14c
push esi
push edi
push ebx
call fcn.1002f440
mov esi, dword [ebp + 8]
test eax, eax
je 0x10030ca5
push esi
call fcn.10030750
add esp, 4
test eax, eax
je 0x10030ca5
mov byte [esi + 8], 1
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10032d30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x10062648]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push str.ddd.cfg
push 0x1008b438
push str._s_s
lea ecx, [ebp - 0x214]
push 0x104
push ecx
mov dword [ebp - 0x248], eax
call fcn.100399ae
push 0x40
lea edx, [ebp - 0x214]
push 0x10059d88
push edx
call fcn.1003b956
mov ebx, eax
add esp, 0x20
test ebx, ebx
jne 0x10032d9e
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1003999f
mov esp, ebp
pop ebp
ret
push ebx
call fcn.1003c288
lea ecx, [ebp - 0x244]
push ecx
push eax
call fcn.1003bc5a
mov eax, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x220]
add esp, 0xc
cmp eax, dword [0x1008b9c0]
jne 0x10032dd0
cmp ecx, dword [0x1008b9c4]
je 0x10032d8b
mov edx, dword [ebx + 0x10]
push edx
mov dword [0x1008b9c0], eax
mov dword [0x1008b9c4], ecx
call fcn.1003dcb1
mov edi, eax
add esp, 4
test edi, edi
je 0x10032e32
lea eax, [edi + 1]
push eax
call fcn.1003b034
mov esi, eax
lea eax, [edi + 1]
push eax
push 0
push esi
call fcn.100469a0
push ebx
push 1
push edi
push esi
call fcn.1003dff1
mov eax, dword [ebp - 0x248]
push pe_nt_image_headers32
push esi
push 0x101
push eax
mov byte [esi + edi], 0
call fcn.1003a4dc
push esi
call fcn.1003affa
add esp, 0x34
push ebx
call fcn.1003ba81
mov ecx, dword [ebp - 8]
add esp, 4
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.1003999f
mov esp, ebp
pop ebp
ret
Function at 0x10032f70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x10062648]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x1008c17c
call edi
xor esi, esi
cmp dword [0x1008b9bc], esi
jne 0x10032fb7
push esi
push esi
push esi
push 0x10033470
push esi
push esi
call fcn.1003bbba
add esp, 0x18
mov dword [0x1008b9bc], eax
push 0x1008c17c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp + 0x1c], esi
jge 0x10032fca
mov dword [ebp + 0x1c], esi
cmp dword [ebp + 0x20], esi
jge 0x10032fd2
mov dword [ebp + 0x20], esi
cmp dword [0x1008b9bc], esi
je 0x1003311c
push 0x1008c164
call edi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x128]
call fcn.10033720
mov esi, dword [ebp - 0x128]
cmp esi, dword [0x1008c158]
je 0x10033076
mov eax, dword [ebp + 0x1c]
test eax, eax
jle 0x1003300f
add dword [esi + 0x120], eax
mov eax, dword [ebp + 0x20]
test eax, eax
jle 0x1003301c
add dword [esi + 0x124], eax
test ebx, ebx
je 0x1003303c
cmp byte [ebx], 0
je 0x1003303c
push 0x103
push ebx
lea ecx, [esi + 0x15]
push 0x104
push ecx
call fcn.1003a4dc
add esp, 0x10
mov ax, word [ebp + 0x14]
test ax, ax
je 0x1003304c
mov word [esi + 0x11a], ax
cmp byte [esi + 0x11c], 2
je 0x10033111
mov dl, byte [ebp + 0x18]
mov al, byte [ebp + 0xc]
mov byte [esi + 0x11c], dl
cmp al, byte [esi + 0x14]
je 0x10033111
mov byte [esi + 0x14], al
jmp 0x10033111
push 0x1008c164
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x118
lea eax, [ebp - 0x124]
push 0
push eax
call fcn.100469a0
mov esi, dword [ebp + 8]
push 0x103
push ebx
lea ecx, [ebp - 0x11f]
push 0x104
push ecx
mov dword [ebp - 0x124], esi
call fcn.1003a4dc
mov al, byte [ebp + 0x18]
mov dx, word [ebp + 0x14]
mov ecx, dword [ebp + 0x1c]
add esp, 0x1c
mov word [ebp - 0x1a], dx
mov edx, dword [ebp + 0x20]
mov byte [ebp - 0x18], al
mov al, byte [ebp + 0xc]
push 0x1008c164
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov byte [ebp - 0x120], al
call edi
mov dword [ebp - 0x24c], esi
mov ecx, 0x46
lea esi, [ebp - 0x124]
lea edi, [ebp - 0x248]
lea eax, [ebp - 0x24c]
rep movsd dword es:[edi], dword [esi]
call fcn.100340e0
push eax
lea edi, [ebp - 0x12c]
call fcn.10033d30
push 0x1008c164
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003999f
mov esp, ebp
pop ebp
ret
Function at 0x10033390
Capabilities:
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10062648]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 6
push 1
push 2
mov edi, ecx
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x10033459
mov eax, 2
push 0x1005cd00
mov word [ebp - 0x24], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
movzx ecx, word [0x10089ca6]
push ecx
mov dword [ebp - 0x20], eax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [ebp - 0x24]
push edx
push esi
mov word [ebp - 0x22], ax
call dword [0x1008b970]
cmp eax, 0xffffffff
je 0x10033452
push 0xa
mov ecx, edi
push ebx
mov edi, esi
call fcn.1002dac0
cmp eax, ebx
jne 0x10033452
xor eax, eax
push 0xa
push 5
lea edi, [ebp - 0x14]
mov byte [ebp - 0x14], al
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov byte [ebp - 0xb], al
call fcn.1002d980
cmp eax, 5
jne 0x1003344c
cmp byte [ebp - 0x14], 7
jne 0x1003344c
push esi
call dword [0x1008b998]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1003999f
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push esi
call dword [0x1008b998]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.1003999f
mov esp, ebp
pop ebp
ret

Function at 0x10033620
Capabilities:
Terminate thread

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x1008c17c
call edi
mov eax, dword [0x1008b9bc]
test eax, eax
je 0x10033657
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [0x1008b9bc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x1008b9bc], 0
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x1008c17c
call esi
push 0x1008c164
call edi
call fcn.100336c0
push 0x1008c164
call esi
pop edi
pop esi
ret
Function at 0x1003999f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10062648]
jne 0x100399a9
repz ret
jmp fcn.100401b1

Function at 0x1003c1f1
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x1003c218
call fcn.1003e32c
mov dword [eax], esi
call fcn.1003e319
push 0x16
pop esi
mov dword [eax], esi
call fcn.10041203
mov eax, esi
jmp 0x1003c26d
test dword [ebp + 0xc], 0xfffffff9
jne 0x1003c1fe
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1003c245
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1003e33f
pop ecx
call fcn.1003e319
mov eax, dword [eax]
jmp 0x1003c26d
test al, 0x10
jne 0x1003c26b
test al, 1
je 0x1003c26b
test byte [ebp + 0xc], 2
je 0x1003c26b
call fcn.1003e32c
mov dword [eax], 5
call fcn.1003e319
mov dword [eax], 0xd
jmp 0x1003c23c
xor eax, eax
pop esi
pop ebp
ret