joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419fe0
Capabilities:
Create thread
Terminate thread

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp dword [esi + 0x1c], 0
jne 0x41a043
mov eax, dword [esp + 4]
push 0
push 0
push 1
push 0
mov dword [esi + 0x20], eax
mov dword [esi + 0x1c], 1
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [esi + 0x14]
mov dword [esi + 8], eax
mov eax, dword [esi + 0x18]
test eax, eax
mov dword [esi + 0xc], esi
mov dword [esi + 0x10], ecx
je 0x41a026
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0
push 0
lea edx, [esi + 4]
push edx
push 0x414b40
push 0
push 0
call dword [sym.imp.MSVCR80.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x18]
ret 4

Function at 0x41a230
Capabilities:
Create thread
Hide graphical window

Disassembly:
sub esp, 0x1c
push str.Run___begin
lea eax, [edi + 0x234]
call fcn.00415b80
add esp, 4
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
test edi, edi
je 0x41a255
lea eax, [edi + 8]
jmp 0x41a257
xor eax, eax
cmp dword [edi + 0x284], 0
push ebx
push ebp
push esi
lea esi, [edi + 0x27c]
jne 0x41a2a4
cmp dword [esi + 4], 0
jne 0x41a2a4
push esi
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xefffffff
push str.CallBackWindow
push 0x44e730
push 0
mov dword [esi + 8], eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 0
push eax
mov dword [esi + 4], eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esp + 0x2c], 0
je 0x41a2e8
call fcn.00419e80
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp dword [0x44aefc], 0xffffffff
mov dword [0x44aef8], eax
jne 0x41a2e8
push 0
push 0
push edi
push 0x4148d0
push 0
push 0
call dword [sym.imp.MSVCR80.dll__beginthreadex]
add esp, 0x18
mov dword [0x44aefc], eax
mov eax, dword [edi + 0x88]
mov edx, dword [eax]
lea ecx, [edi + 0x88]
call edx
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebp, dword [sym.imp.USER32.dll_TranslateMessage]
mov dword [edi + 0x10], 1
mov eax, dword [edi + 0x80]
push 0
push eax
call esi
cmp eax, 0x102
jne 0x41a35f
push 1
push 0
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
call ebx
test eax, eax
je 0x41a351
cmp dword [esp + 0x10], 0x12
je 0x41a351
lea edx, [esp + 0xc]
push edx
call ebp
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x41a359
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [edi + 0x10], 0
jne 0x41a311
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4
Function at 0x426680
Capabilities:
Resolve dns

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x1c]
mov dword [esi], 0
push ecx
mov byte [eax], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
mov dword [esp + 0x1c], ecx
je 0x426725
cmp word [ecx + 8], 2
push ebx
push ebp
push edi
jne 0x4266f5
cmp word [ecx + 0xa], 4
jne 0x4266f5
mov edi, dword [ecx + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x4266f5
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
lea esp, [esp]
mov edx, dword [eax]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebx
push ebp
call fcn.00426610
test eax, eax
mov dword [esi], eax
je 0x426719
add edi, 4
lea esi, [eax + 0x1c]
mov eax, dword [edi]
test eax, eax
jne 0x4266d0
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx]
mov edx, dword [esp + 0x24]
push 0x400
push ecx
push 0x401
push edx
call dword [sym.imp.MSVCR80.dll_strncpy_s]
add esp, 0x10
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
ret 0x18
pop edi
pop ebp
pop ebx
mov eax, 8
pop esi
ret 0x18
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x426735.11001
jmp dword [eax*4 + 0x426758]
mov eax, 0x2af9
pop esi
ret 0x18
mov eax, 0x2afa
pop esi
ret 0x18
mov eax, 0x2afb
pop esi
ret 0x18

Function at 0x427480
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x447724]
xor eax, esp
mov dword [esp + 0x190], eax
xor ecx, ecx
mov ch, byte [esp + 0x19c]
lea eax, [esp]
push eax
mov cl, byte [esp + 0x19c]
push ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.004351a6
add esp, 0x194
ret

Function at 0x427530
Capabilities:
Set socket configuration

Disassembly:
mov ecx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0xffff
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
ret

Function at 0x4275f0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x210
mov ecx, dword [esp + 0x218]
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp], eax
imul eax, eax, 0x3e8
mov edx, ecx
sub edx, eax
imul edx, edx, 0x3e8
cmp ecx, 0xffffffff
push esi
mov esi, dword [esp + 0x218]
mov dword [esp + 0x114], esi
mov dword [esp + 0x110], 1
mov dword [esp + 8], edx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 1
jne 0x427667
push 0
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x118]
push ecx
push 0
lea edx, [esi + 1]
push edx
jmp 0x42767f
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x118]
push edx
push 0
lea eax, [esi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jge 0x427694
or eax, 0xffffffff
pop esi
add esp, 0x210
ret
jne 0x4276a3
mov eax, 1
pop esi
add esp, 0x210
ret
lea ecx, [esp + 0xc]
push ecx
push esi
call sub.WS2_32.dll___WSAFDIsSet
neg eax
sbb eax, eax
pop esi
add esp, 0x210
ret
Function at 0x4276c0
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
push eax
push ecx
push esi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x427709
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2748
je 0x427709
cmp eax, 0x2733
je 0x4276f5
cmp eax, 0x2735
jne 0x42770d
mov edx, dword [esp + 0x14]
push edx
push esi
call fcn.004275f0
add esp, 8
neg eax
sbb eax, eax
pop esi
ret
xor eax, eax
pop esi
ret
or eax, 0xffffffff
pop esi
ret

Function at 0x428900
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x134
mov eax, dword [0x447724]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
mov ebx, dword [esp + 0x140]
push ebp
push esi
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push esi
mov edi, eax
push 2
mov dword [esp + 0x1c], edi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x10], ebp
jne 0x428953
call dword [sym.imp.MSVCR80.dll__errno]
mov dword [eax], 1
or eax, 0xffffffff
jmp 0x428a0b
lea eax, [esp + 0x18]
push eax
push ebp
mov dword [esp + 0x20], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x428985
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.MSVCR80.dll__errno]
mov dword [eax], 0xc
or eax, 0xffffffff
jmp 0x428a0b
mov ecx, dword [esp + 0x148]
test ecx, ecx
jle 0x428a02
mov eax, dword [esp + 0x20]
cmp edi, eax
mov edi, dword [esp + 0x150]
je 0x4289b4
test edi, edi
je 0x4289ad
cmp edi, eax
jne 0x4289b4
cmp edi, dword [esp + 0x30]
jne 0x4289b4
mov dword [ebx], eax
mov esi, 1
cmp esi, ecx
jge 0x428a02
mov ebp, dword [esp + 0x154]
nop
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push edx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x4289fe
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x14], eax
je 0x4289f5
test edi, edi
je 0x4289e5
cmp edi, eax
jne 0x4289f5
test ebp, ebp
je 0x4289ef
cmp ebp, dword [esp + 0x30]
jne 0x4289f5
mov dword [ebx + esi*4], eax
add esi, 1
cmp esi, dword [esp + 0x148]
jl 0x4289c0
mov ebp, dword [esp + 0x10]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [esp + 0x140]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004351a6
add esp, 0x134
ret

Function at 0x42ab40
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
lea ecx, [eax - 1]
cmp ecx, 0x1c
ja case.0x42ab53.1
movzx ecx, byte [ecx + 0x42ab6c]
jmp dword [ecx*4 + 0x42ab64]
and eax, 0x7f
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x42aea0
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
xor edi, edi
test esi, esi
jne 0x42aee4
mov eax, dword [esp + 0xc]
push eax
push esi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, 0xffffffff
je 0x42aed2
test eax, eax
je 0x42aed2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
ret
call dword [sym.imp.MSVCR80.dll__errno]
pop edi
mov dword [eax], 3
or eax, 0xffffffff
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jne 0x42aefe
push esi
call fcn.0042ae40
add esp, 4
pop edi
pop esi
ret
cmp esi, 9
jne 0x42af53
push ecx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, 0xffffffff
je 0x42af41
test esi, esi
je 0x42af41
push 9
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x42af35
call dword [sym.imp.MSVCR80.dll__errno]
mov dword [eax], 1
or edi, 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret
call dword [sym.imp.MSVCR80.dll__errno]
pop edi
mov dword [eax], 1
or eax, 0xffffffff
pop esi
ret
lea eax, [esi - 2]
cmp eax, 0xd
ja case.0x42af62.4
movzx edx, byte [eax + 0x42af80]
jmp dword [edx*4 + 0x42af78]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GenerateConsoleCtrlEvent]
pop edi
xor eax, eax
pop esi
ret
Function at 0x432490
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0x10]
push ebx
push eax
push ecx
call fcn.00431f90
add esp, 0xc
test eax, eax
jl 0x4326da
mov edx, dword [ebx + 0xf0]
add edx, edx
push esi
add edx, edx
xor esi, esi
test edx, edx
push edi
jle 0x43250d
lea ecx, [ebx + edx*4 + 8]
lea eax, [ebx + 8]
push ebp
lea ebx, [ebx]
mov ebp, dword [ecx - 8]
mov edi, dword [eax - 8]
mov dword [eax - 8], ebp
mov ebp, dword [ecx - 4]
mov dword [ecx - 8], edi
mov edi, dword [eax - 4]
mov dword [eax - 4], ebp
mov ebp, dword [ecx]
mov dword [ecx - 4], edi
mov edi, dword [eax]
mov dword [eax], ebp
mov ebp, dword [ecx + 4]
mov dword [ecx], edi
mov edi, dword [eax + 4]
mov dword [eax + 4], ebp
mov dword [ecx + 4], edi
add esi, 4
sub edx, 4
add eax, 0x10
sub ecx, 0x10
cmp esi, edx
jl 0x4324d0
pop ebp
mov edx, 1
cmp dword [ebx + 0xf0], edx
jle 0x4326d6
lea eax, [ebx + 2]
mov ecx, dword [eax + 0xe]
movzx edi, byte [eax + 0xf]
mov edi, dword [edi*4 + 0x43c1b8]
add eax, 0x10
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x43c1b8]
and esi, 0xff
mov esi, dword [esi*4 + 0x43cdb8]
and edi, 0xff
xor esi, dword [edi*4 + 0x43d5b8]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x43c1b8]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x43d9b8]
movzx ecx, byte [eax]
mov ecx, dword [ecx*4 + 0x43c1b8]
movzx edi, byte [eax + 3]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x43d1b8]
mov ecx, dword [eax + 2]
mov dword [eax - 2], esi
mov edi, dword [edi*4 + 0x43c1b8]
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x43c1b8]
and esi, 0xff
mov esi, dword [esi*4 + 0x43cdb8]
and edi, 0xff
xor esi, dword [edi*4 + 0x43d5b8]
movzx edi, byte [eax + 4]
mov edi, dword [edi*4 + 0x43c1b8]
and edi, 0xff
xor esi, dword [edi*4 + 0x43d1b8]
movzx edi, byte [eax + 7]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x43c1b8]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x43d9b8]
mov ecx, dword [eax + 6]
mov dword [eax + 2], esi
mov edi, dword [edi*4 + 0x43c1b8]
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x43c1b8]
and esi, 0xff
mov esi, dword [esi*4 + 0x43cdb8]
and edi, 0xff
xor esi, dword [edi*4 + 0x43d5b8]
movzx edi, byte [eax + 8]
mov edi, dword [edi*4 + 0x43c1b8]
and edi, 0xff
xor esi, dword [edi*4 + 0x43d1b8]
movzx edi, byte [eax + 0xb]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x43c1b8]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x43d9b8]
mov ecx, dword [eax + 0xa]
mov dword [eax + 6], esi
mov edi, dword [edi*4 + 0x43c1b8]
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x43c1b8]
and esi, 0xff
mov esi, dword [esi*4 + 0x43cdb8]
and edi, 0xff
xor esi, dword [edi*4 + 0x43d5b8]
movzx edi, byte [eax + 0xc]
mov edi, dword [edi*4 + 0x43c1b8]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x43c1b8]
and edi, 0xff
xor esi, dword [edi*4 + 0x43d1b8]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x43d9b8]
add edx, 1
mov dword [eax + 0xa], esi
cmp edx, dword [ebx + 0xf0]
jl 0x432521
pop edi
xor eax, eax
pop esi
pop ebx
ret
Function at 0x4345f0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x30
mov eax, dword [0x447724]
xor eax, esp
mov dword [esp + 0x2c], eax
cmp dword [esp + 0x48], 1
mov eax, dword [esp + 0x40]
push ebx
push ebp
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x44]
push esi
mov esi, dword [esp + 0x44]
mov ebp, eax
push edi
mov edi, dword [esp + 0x54]
mov dword [esp + 0x18], ebp
jne 0x434743
cmp eax, 0x10
mov ebx, dword [esp + 0x44]
jb 0x4346d5
shr eax, 4
mov dword [esp + 0x10], eax
jmp 0x434640
mov edx, edi
sub edx, ebx
mov dword [esp + 0x20], edx
mov edx, esi
sub edx, ebx
lea ebp, [edi + 3]
sub edi, esi
lea ecx, [esi + 1]
mov eax, ebx
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], 4
mov edx, dword [esp + 0x20]
movzx edx, byte [edx + eax]
xor dl, byte [eax]
mov edi, dword [esp + 0x28]
mov byte [edi + eax], dl
mov edx, dword [esp + 0x24]
movzx edx, byte [edx + ecx]
xor dl, byte [eax + 1]
add eax, 4
mov byte [ecx], dl
movzx edx, byte [eax - 2]
xor dl, byte [ebp - 1]
add ecx, 4
mov byte [ecx - 3], dl
movzx edx, byte [eax - 1]
xor dl, byte [ebp]
add ebp, 4
sub dword [esp + 0x1c], 1
mov byte [ecx - 2], dl
jne 0x434666
mov eax, dword [esp + 0x14]
push eax
push esi
push esi
call fcn.004326e0
mov ebp, dword [esp + 0x24]
mov edi, esi
sub ebp, 0x10
add esp, 0xc
add ebx, 0x10
add esi, 0x10
sub dword [esp + 0x10], 1
mov dword [esp + 0x18], ebp
jne 0x434640
test ebp, ebp
je 0x4347f3
jbe 0x434703
mov eax, edi
mov ecx, esi
sub eax, ebx
sub ecx, ebx
mov dword [esp + 0x10], ebp
jmp 0x4346f0
mov dl, byte [ebx + eax]
xor dl, byte [ebx]
add ebx, 1
sub dword [esp + 0x10], 1
mov byte [ebx + ecx - 1], dl
jne 0x4346f0
cmp ebp, 0x10
jae 0x434721
mov ecx, 0x10
sub edi, esi
lea eax, [esi + ebp]
sub ecx, ebp
mov dl, byte [eax + edi]
mov byte [eax], dl
add eax, 1
sub ecx, 1
jne 0x434714
mov eax, dword [esp + 0x14]
push eax
push esi
push esi
call fcn.004326e0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.004351a6
add esp, 0x30
ret
cmp eax, 0x10
jb 0x4347b1
shr eax, 4
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x14]
push ecx
push esi
push eax
call fcn.00433770
add esp, 0xc
lea ecx, [edi + 2]
mov eax, esi
sub edi, esi
mov edx, 4
mov edi, edi
movzx ebx, byte [eax + edi]
xor byte [eax], bl
movzx ebx, byte [ecx - 1]
xor byte [eax + 1], bl
movzx ebx, byte [ecx]
xor byte [eax + 2], bl
movzx ebx, byte [ecx + 1]
xor byte [eax + 3], bl
add eax, 4
add ecx, 4
sub edx, 1
jne 0x434770
mov eax, dword [esp + 0x44]
mov edi, eax
add eax, 0x10
sub ebp, 0x10
add esi, 0x10
sub dword [esp + 0x10], 1
mov dword [esp + 0x44], eax
jne 0x434753
jmp 0x4347b5
mov eax, dword [esp + 0x44]
test ebp, ebp
je 0x4347f3
mov edx, dword [esp + 0x14]
push edx
lea ecx, [esp + 0x30]
push ecx
push eax
call fcn.00433770
add esp, 0xc
xor ecx, ecx
test ebp, ebp
jbe 0x4347f3
lea edx, [esp + 0x2c]
mov eax, edx
sub edi, edx
sub esi, eax
lea esp, [esp]
lea eax, [esp + ecx + 0x2c]
mov dl, byte [eax + edi]
xor dl, byte [eax]
add ecx, 1
cmp ecx, ebp
mov byte [eax + esi], dl
jb 0x4347e0
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004351a6
add esp, 0x30
ret
Function at 0x434810
Capabilities:
Encode data using xor
Encrypt data using aes

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
test ebx, ebx
push esi
je 0x4349ac
mov esi, dword [esp + 0xc]
test esi, esi
je 0x4349ac
mov dword [esi + 0xf0], 0xa
mov eax, dword [ebx]
mov ecx, eax
ror ecx, 8
and ecx, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or ecx, eax
mov dword [esi], ecx
mov eax, dword [ebx + 4]
mov edx, eax
ror edx, 8
and edx, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or edx, eax
mov dword [esi + 4], edx
mov eax, dword [ebx + 8]
mov edx, eax
lea ecx, [esi + 4]
ror edx, 8
and edx, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or edx, eax
mov dword [esi + 8], edx
mov eax, dword [ebx + 0xc]
mov edx, eax
ror edx, 8
and edx, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or edx, eax
mov dword [esi + 0xc], edx
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x43c5b8]
push ebp
push edi
xor eax, 0x1000000
and eax, 0xff000000
movzx edi, dh
mov edi, dword [edi*4 + 0x43c9b8]
and edi, 0xff0000
xor eax, edi
mov edi, edx
shr edi, 0x18
movzx edi, byte [edi*4 + 0x43c1b8]
xor eax, edi
mov edi, edx
and edi, 0xff
mov edi, dword [edi*4 + 0x43bdb8]
and edi, 0xff00
xor eax, edi
xor eax, dword [esi]
mov edi, dword [ecx]
xor edi, eax
mov dword [esi + 0x10], eax
mov eax, dword [esi + 8]
xor eax, edi
mov dword [esi + 0x18], eax
xor eax, edx
mov dword [esi + 0x14], edi
mov dword [esi + 0x1c], eax
mov edi, 0x43debc
mov edx, dword [ecx + 0x18]
add ecx, 0x10
mov ebp, edx
movzx eax, dh
mov eax, dword [eax*4 + 0x43c9b8]
shr ebp, 0x10
and ebp, 0xff
mov ebp, dword [ebp*4 + 0x43c5b8]
and eax, 0xff0000
and ebp, 0xff000000
xor eax, ebp
mov ebp, edx
and edx, 0xff
mov edx, dword [edx*4 + 0x43bdb8]
shr ebp, 0x18
movzx ebp, byte [ebp*4 + 0x43c1b8]
xor eax, ebp
and edx, 0xff00
xor eax, edx
xor eax, dword [ecx - 4]
add edi, 4
xor eax, dword [edi - 4]
mov dword [ecx + 0xc], eax
mov edx, dword [ecx]
xor edx, eax
mov dword [ecx + 0x10], edx
mov eax, dword [ecx + 4]
xor eax, edx
mov dword [ecx + 0x14], eax
mov edx, dword [ecx + 8]
xor edx, eax
cmp edi, 0x43dee0
mov dword [ecx + 0x18], edx
jne 0x434914
pop edi
pop ebp
add esi, 0xf4
push esi
push 0x80
push ebx
call fcn.00432490
add esp, 0xc
pop esi
pop ebx
ret
pop esi
or eax, 0xffffffff
pop ebx
ret

Function at 0x4351a6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x447724]
jne 0x4351b0
repz ret
jmp fcn.0043599c
Function at 0x435fb0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x84
mov eax, dword [0x447724]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push ebp
mov ebp, dword [esp + 0x94]
push esi
mov esi, dword [esp + 0x94]
test esi, esi
push edi
je 0x435fde
test ebp, ebp
jne 0x435ff3
push 0x62
push str...........lib_srcpal_tnet.c
push str.a_pszAddr__a_pstIn
call dword [sym.imp.MSVCR80.dll__wassert]
add esp, 0xc
push 0x3a
push esi
mov word [ebp], 2
call dword [sym.imp.MSVCR80.dll_strchr]
mov edi, eax
add esp, 8
test edi, edi
je 0x436045
mov ebx, edi
sub ebx, esi
cmp ebx, 0x80
jge 0x4360c7
push ebx
lea eax, [esp + 0x14]
push esi
push eax
call sub.MSVCR80.dll_memcpy
add edi, 1
add esp, 0xc
test edi, edi
mov byte [esp + ebx + 0x10], 0
je 0x43607c
push edi
call dword [sym.imp.MSVCR80.dll_atoi]
add esp, 4
movzx eax, ax
jmp 0x43607e
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x436050
sub eax, edx
cmp eax, 0x80
jae 0x4360c7
lea edx, [esp + 0x10]
mov eax, esi
sub edx, esi
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x436070
xor eax, eax
push eax
call dword [sym.imp.WS2_32.dll_htons]
lea ecx, [esp + 0x10]
push str.1234567890.
push ecx
mov word [ebp + 2], ax
call dword [sym.imp.MSVCR80.dll_strspn]
lea ecx, [esp + 0x18]
add esp, 8
lea esi, [ecx + 1]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x4360a3
sub ecx, esi
cmp eax, ecx
jne 0x4360cc
add ebp, 4
lea edx, [esp + 0x10]
push ebp
push edx
call fcn.004271a0
add esp, 8
test eax, eax
jne 0x4360e5
or eax, 0xffffffff
jmp 0x4360e7
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x4360c7
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [ebp + 4], eax
xor eax, eax
mov ecx, dword [esp + 0x90]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004351a6
add esp, 0x84
ret

Function at 0x4365c0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
ret
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
ret
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x4365d2
test esi, esi
jne 0x4365ea
push 0x18c
push str...........lib_srcpal_tnet.c
push str.a_pstOpt__a_pstProto
call dword [sym.imp.MSVCR80.dll__wassert]
add esp, 0xc
mov eax, dword [esi + 4]
add eax, 0xffffffff
cmp eax, 6
ja case.0x4365f5.3
jmp dword [eax*4 + 0x43663c]
pop edi
pop esi
jmp 0x427510
pop edi
pop esi
jmp 0x427500
push str.type
push edi
call fcn.00436270
add esp, 8
test eax, eax
je 0x436628
add eax, 0x20
push eax
call fcn.00436200
add esp, 4
push 1
call fcn.00427520
add esp, 4
pop edi
pop esi
ret
pop edi
or eax, 0xffffffff
pop esi
ret
Function at 0x436970
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
sub esp, 0x10c
push esi
mov esi, dword [esp + 0x120]
test esi, esi
push edi
mov edi, dword [esp + 0x118]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 1
je 0x427846
cmp esi, 0xffffffff
lea ecx, [esp + 8]
jne 0x427803
xor ecx, ecx
jmp 0x42782c
mov eax, 0x10624dd3
imul esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 8], eax
imul eax, eax, 0x3e8
mov edx, esi
sub edx, eax
imul edx, edx, 0x3e8
mov dword [esp + 0xc], edx
push ecx
push 0
lea eax, [esp + 0x18]
push eax
push 0
lea ecx, [edi + 1]
push ecx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jl 0x427899
je 0x42788c
mov edx, dword [esp + 0x120]
mov eax, dword [esp + 0x11c]
push 0
push edx
push eax
push edi
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jge 0x427897
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
cmp eax, 0x2733
je 0x42787b
call edi
cmp eax, 0x2733
jne 0x427899
test esi, esi
je 0x42788c
push 0x30d40
call fcn.00427e90
add esp, 4
pop edi
xor eax, eax
pop esi
add esp, 0x10c
ret
jne 0x42789c
or eax, 0xffffffff
pop edi
pop esi
add esp, 0x10c
ret
jmp 0x4277d0

Function at 0x436980
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x10c
push esi
mov esi, dword [esp + 0x120]
test esi, esi
push edi
mov edi, dword [esp + 0x118]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 1
je 0x427a3e
cmp esi, 0xffffffff
lea ecx, [esp + 8]
jne 0x4279e3
xor ecx, ecx
jmp 0x427a0c
mov eax, 0x10624dd3
imul esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 8], eax
imul eax, eax, 0x3e8
mov edx, esi
sub edx, eax
imul edx, edx, 0x3e8
mov dword [esp + 0xc], edx
push ecx
push 0
push 0
lea eax, [esp + 0x1c]
push eax
lea ecx, [edi + 1]
push ecx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jge 0x427a3c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2714
neg eax
pop edi
sbb eax, eax
pop esi
add esp, 0x10c
ret
je 0x427a84
mov edx, dword [esp + 0x120]
mov eax, dword [esp + 0x11c]
push 0
push edx
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jge 0x427a8f
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
cmp eax, 0x2733
je 0x427a73
call edi
cmp eax, 0x2733
jne 0x427a91
test esi, esi
je 0x427a84
push 0x186a0
call fcn.00427e90
add esp, 4
pop edi
xor eax, eax
pop esi
add esp, 0x10c
ret
jne 0x427a94
or eax, 0xffffffff
pop edi
pop esi
add esp, 0x10c
ret
jmp 0x4279b0

Function at 0x436bc0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 0xc]
test eax, eax
jle 0x436be9
mov edx, dword [esp + 8]
push 0
lea ecx, [esp + 0x10]
push ecx
push eax
mov eax, dword [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x436be9
mov eax, dword [esp + 0xc]
ret
or eax, 0xffffffff
ret