joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4669a0
Capabilities:
Get common file path
Get disk information

Disassembly:
sub esp, 0x128
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x28], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
xor eax, eax
mov cl, 0x5c
cmp byte [esp + eax + 0x28], cl
je 0x4669e0
inc eax
cmp eax, 0x104
jl 0x4669d0
jmp 0x4669e5
mov byte [esp + eax + 0x29], 0
cmp eax, 0x104
jne 0x466a14
mov edi, 0x4be730
or ecx, 0xffffffff
xor eax, eax
push esi
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x2c]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
lea ecx, [esp + 0x10]
push 0xa
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x10]
push edx
lea ecx, [esp + 0x10]
push eax
push ecx
lea edx, [esp + 0x30]
push 0xc
lea eax, [esp + 0x40]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov eax, dword [esp + 4]
pop edi
add esp, 0x128
ret
Function at 0x480fd0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.004701d0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x48109b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x48109b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x48104e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x481059
or bh, 8
and edi, 0x8000000
je 0x481074
mov eax, dword [0x4c743c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x48109b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x481470
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x48149b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x4814bf
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x4814da
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x484b84
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x484ba6
cmp dword [edi + 0x3c], 0
jne 0x484ba6
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.0048e565
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.00484bd3
pop edi
pop esi
pop ebx
ret 8

Function at 0x4861f8
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x486230
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004848da
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004848b2
jmp 0x48623c
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4877cb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x48780d
call fcn.0048e565
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x48780d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x487804
xor eax, eax
jmp 0x487815
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0048781b
pop edi
pop esi
pop ebx
ret 4

Function at 0x48cf83
Capabilities:
Create http request

Disassembly:
mov eax, 0x49c2f4
call fcn.00470a28
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x48cfbb
call fcn.0048e565
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 8], eax
jne 0x48cfe0
push eax
push dword [esi + 4]
call fcn.0048dcfd
jmp 0x48cfec
push esi
push eax
mov ecx, 0x4c5248
call fcn.0048cffd
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x18
Function at 0x48d179
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x49c32f
call fcn.00470a28
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.0048a261
mov eax, dword [0x4be818]
lea ebx, [esi + 0x24]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebx], eax
mov eax, dword [ebp + 0x10]
mov dword [esi], vtable.CInternetFile.0
mov ecx, 0x4c5248
mov byte [ebp - 4], 1
push dword [eax + 0xc]
push dword [ebp + 8]
call fcn.0048cffd
push dword [ebp + 0xc]
lea ecx, [esi + 0xc]
call fcn.004845bc
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 8]
mov dword [esi + 0x1c], eax
lea eax, [ebp + 0x10]
push eax
call fcn.00468469
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.0048456c
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 1
call fcn.00484433
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x18], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10

Function at 0x48f350
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x48f37e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48f39c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0048f2b6
jmp 0x48f39c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x48f39c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0048f2b6
test edi, edi
mov eax, edi
jne 0x48f386
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4be630
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x7c000]
push edi
jmp 0x4be64a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4be651
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4be640
mov eax, 1
add ebx, ebx
jne 0x4be663
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4be674
jne 0x4be693
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4be693
dec eax
add ebx, ebx
jne 0x4be680
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4be658
add ebx, ebx
jne 0x4be68f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4be6e5
xor ecx, ecx
sub eax, 3
jb 0x4be6ab
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4be71a
sar eax, 1
mov ebp, eax
jmp 0x4be6b6
add ebx, ebx
jne 0x4be6b6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4be684
inc ecx
add ebx, ebx
jne 0x4be6c4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4be684
add ebx, ebx
jne 0x4be6d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4be6c6
jne 0x4be6e2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4be6c6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4be704
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4be6f6
jmp 0x4be646
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4be704
add edi, ecx
jmp 0x4be646
pop esi
mov edi, esi
mov ecx, 0x379b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4be722
cmp byte [edi], 0x13
jne 0x4be722
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4be727
lea edi, [esi + 0xba000]
mov eax, dword [edi]
or eax, eax
je 0x4be79f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xcda58]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xcdbac]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4be754
mov ecx, edi
jns 0x4be783
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xcdbb0]
or eax, eax
je 0x4be799
mov dword [ebx], eax
add ebx, 4
jmp 0x4be771
call dword [esi + 0xcdbc0]
mov ebp, dword [esi + 0xcdbb4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4be7d3
sub esp, 0xffffff80
jmp 0x4165c1
Function at 0x4012a0
Capabilities:
Create udp socket
Initialize winsock library
Set socket configuration

Disassembly:
sub esp, 0x194
push ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], 1
call fcn.00401410
lea eax, [esp + 0x10]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4012fb
push str.WSAStartup___failed_n
call fcn.004083a9
push str.WSAStartup___failed
push 0x41a0fc
push str.InitLocalPipe
call fcn.004025c0
add esp, 0x10
xor al, al
pop edi
pop esi
pop ebx
add esp, 0x194
ret 4
push 0x15
push 0
push 0
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
lea ecx, [esp + 0xc]
push 4
push ecx
mov edi, eax
push 0xa
push 0
push edi
call ebx
test eax, eax
je 0x40132e
push str.closesocket_failed
jmp 0x401398
lea edx, [esp + 0xc]
push 4
push edx
push 4
push 0xffff
push edi
call ebx
test eax, eax
je 0x40134a
push str.setsockopt_failed
jmp 0x401398
push ebp
lea ebp, [esi + 0x18]
mov ecx, ebp
xor eax, eax
mov ebx, dword [esp + 0x1a8]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov word [ebp], 2
mov dx, word [ebx + 0x14]
push edx
call dword [sym.imp.WS2_32.dll_htons]
push ebx
mov word [esi + 0x1a], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0x10
push ebp
push edi
mov dword [esi + 0x1c], eax
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
pop ebp
jne 0x4013c5
push str.bind_failed
push 0x41a0fc
push str.InitLocalPipe
call fcn.004025c0
add esp, 0xc
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x194
ret 4
lea eax, [esi + 8]
xor ecx, ecx
mov edx, eax
mov dword [esi + 4], edi
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov word [eax], 2
lea eax, [ebx + 0x18]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esi + 0xc], eax
mov cx, word [ebx + 0x2c]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esi + 0xa], ax
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0x194
ret 4

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

Disassembly:
mov eax, dword [ecx + 4]
push esi
cmp eax, 0xffffffff
je 0x401483
mov esi, dword [esp + 0xc]
add ecx, 8
push 0x10
push ecx
mov ecx, dword [esp + 0x10]
push 0
push esi
push ecx
push eax
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
je 0x40146b
cmp eax, esi
je 0x401483
push eax
push str.sendto_failed
push str._s___d_
push str.SendData2RemotePipe
call fcn.004025c0
add esp, 0x10
mov al, 1
pop esi
ret 8
Function at 0x401510
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41648b
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
push esi
mov esi, ecx
push 0x7c
mov dword [esi + 0x114], eax
or eax, 0xffffffff
mov dword [esi], 0x417194
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x120], 0
mov dword [esi + 0x124], 0
call fcn.004085c9
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov dword [esp + 0xc], 0
je 0x40157b
mov ecx, eax
call fcn.00402820
jmp 0x40157d
xor eax, eax
push 0x300000
mov dword [esi + 0x118], eax
call fcn.0040817b
add esp, 4
mov dword [esi + 0x11c], eax
test eax, eax
jne 0x4015a0
push eax
call fcn.004084d6
mov ecx, dword [esp + 4]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 4

Function at 0x401620
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library
Set socket configuration

Disassembly:
sub esp, 0x1a4
lea eax, [esp + 0x14]
push esi
push edi
push eax
mov edi, ecx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
test esi, esi
jg 0x40166f
push str.SetupCmdChannel_Create_failed_n
call fcn.004083a9
add esp, 4
call dword [sym.imp.WS2_32.dll_WSACleanup]
pop edi
mov eax, 2
pop esi
add esp, 0x1a4
ret 4
mov edx, dword [esp + 0x1b0]
xor ecx, ecx
mov dword [esp + 8], ecx
push edx
mov dword [esp + 0x10], ecx
mov word [esp + 0xc], 2
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0xa], ax
lea eax, [esp + 0x18]
push 4
push eax
push 4
push 0xffff
push esi
mov dword [esp + 0x2c], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
lea ecx, [esp + 8]
push 0x10
push ecx
push esi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x4016f9
push eax
push str.Binding_cmdsock_failed__d_n
call fcn.004083a9
add esp, 8
call dword [sym.imp.WS2_32.dll_WSACleanup]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
mov eax, 3
pop esi
add esp, 0x1a4
ret 4
push 1
push esi
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x401731
push eax
push str.Listen_cmdsock_failed__d_n
call fcn.004083a9
add esp, 8
call dword [sym.imp.WS2_32.dll_WSACleanup]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
mov eax, 4
pop esi
add esp, 0x1a4
ret 4
push str.CMD_socket_Entering_Listen_status_n
mov dword [edi + 4], esi
call fcn.004083a9
add esp, 4
xor eax, eax
pop edi
pop esi
add esp, 0x1a4
ret 4
Function at 0x401a80
Capabilities:
Send data
Send data on socket

Disassembly:
push edi
mov edi, ecx
cmp dword [edi + 8], 0xffffffff
jne 0x401a9f
push str.MSG_channel_didnt_exist_n
call fcn.004083a9
add esp, 4
mov eax, 7
pop edi
ret 8
push esi
mov esi, dword [esp + 0xc]
push esi
call fcn.0041521e
push esi
push str.AckNetCmd
push str._s:_s
push str.HandleNetEvent
call fcn.004025c0
mov eax, dword [esp + 0x24]
mov ecx, dword [edi + 8]
add esp, 0x14
push 0
push eax
push esi
push ecx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
pop esi
jne 0x401af0
push str.Error_to_send_the_ack_msg_n
call fcn.004083a9
add esp, 4
mov eax, 0xa
pop edi
ret 8
xor eax, eax
pop edi
ret 8
Function at 0x402a30
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x416528
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov al, byte [esp + 0x28]
push ebp
push esi
push edi
mov edi, ecx
push 0xc
mov byte [esp + 0x18], al
call fcn.004085c9
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esp + 0x1c], eax
xor eax, eax
add esp, 4
mov dword [esp + 0x1c], eax
mov ebp, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], eax
mov dword [ebp], eax
mov byte [esi], al
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x10]
push ecx
push edx
push eax
mov ecx, edi
call fcn.00402dd0
test al, al
jne 0x402ae8
mov edi, dword [esp + 0x18]
mov dword [esp + 0x28], 0xffffffff
mov esi, dword [edi]
cmp esi, edi
je 0x402ac2
mov eax, esi
mov esi, dword [esi]
lea ecx, [esp + 0x38]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.004049f0
cmp esi, edi
jne 0x402aab
mov edx, dword [esp + 0x18]
push edx
call fcn.0040839e
add esp, 4
mov eax, 0xb
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
mov eax, dword [esp + 0x10]
push ebx
cmp eax, 9
ja case.default.0x402af6
jmp dword [eax*4 + 0x402c0c]
mov eax, dword [esp + 0x10]
lea ebx, [edi + 4]
push ebx
push eax
mov ecx, edi
call fcn.00403810
test al, al
je 0x402b90
mov byte [esi], 1
mov dword [ebp], ebx
jmp case.default.0x402af6
mov ecx, dword [esp + 0x10]
lea ebx, [edi + 0x10]
push ebx
push ecx
mov ecx, edi
call fcn.00402f80
test al, al
je 0x402b90
mov byte [esi], 1
mov dword [ebp], ebx
jmp case.default.0x402af6
mov edx, dword [esp + 0x10]
lea ebx, [edi + 0x68]
push ebx
push edx
mov ecx, edi
call fcn.00403120
test al, al
je 0x402b90
mov byte [esi], 1
mov dword [ebp], ebx
jmp case.default.0x402af6
mov eax, dword [esp + 0x10]
lea ebx, [edi + 0x38]
push ebx
push eax
mov ecx, edi
call fcn.004034a0
test al, al
je 0x402b90
mov byte [esi], 1
mov dword [ebp], ebx
jmp case.default.0x402af6
mov byte [esi], 1
jmp case.default.0x402af6
mov ecx, dword [esp + 0x10]
lea ebx, [edi + 0x78]
push ebx
push ecx
mov ecx, edi
call fcn.00404820
test al, al
je 0x402b90
mov byte [esi], 1
mov edx, dword [ebx]
mov dword [ebp], edx
jmp case.default.0x402af6
mov byte [esi], 0
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x2c], 0xffffffff
mov esi, dword [edi]
cmp esi, edi
je 0x402be8
mov eax, esi
mov esi, dword [esi]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x34]
push 0
push eax
lea ecx, [esp + 0x40]
call fcn.004049b0
mov eax, dword [eax]
push eax
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov dword [ecx], edx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
call fcn.0040839e
mov ecx, dword [esp + 0x24]
add esp, 4
dec ecx
cmp esi, edi
mov dword [esp + 0x20], ecx
jne 0x402ba9
mov eax, dword [esp + 0x1c]
push eax
call fcn.0040839e
mov ecx, dword [esp + 0x28]
add esp, 4
mov eax, ebx
mov dword fs:[0], ecx
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x20
ret 0xc
Function at 0x404a50
Capabilities:
Create thread
Resume thread
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x41665b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea ecx, [esi + 0xc]
call fcn.00401260
xor ebx, ebx
mov ecx, esi
mov dword [esp + 0x18], ebx
mov dword [esi], 0x417198
call fcn.00405620
mov byte [esi + 0x5c], al
lea eax, [esi + 8]
push eax
call fcn.00401000
add esp, 4
test eax, eax
je 0x404aba
push str.InitQueue_fail
push 0x41a0fc
push str.PPEAdapter
call fcn.004025c0
add esp, 0xc
push ebx
call fcn.004084d6
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebx
push ebx
push ebx
push ebx
call edi
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0x34], eax
call edi
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0x38], eax
call edi
lea ecx, [esi + 0x68]
mov dword [esi + 0x3c], eax
push ecx
push 4
push esi
push 0x404d30
or eax, 0xffffffff
push ebx
push ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x48], 7
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], eax
mov dword [esi + 0x44], ebx
mov dword [esi + 0x4c], eax
mov byte [esi + 4], 1
call fcn.00409434
add esp, 0x18
cmp eax, ebx
mov dword [esi + 0x60], eax
jne 0x404b3f
push str.can_not_create_the_PPEProcessData_thread_n
call fcn.004083a9
push str.Create_the_PPEProcessData_thread_fail
push 0x41a0fc
push str.PPEAdapter
call fcn.004025c0
add esp, 0x10
push ebx
call fcn.004084d6
mov edi, dword [sym.imp.KERNEL32.dll_ResumeThread]
push eax
call edi
lea edx, [esi + 0x6c]
push edx
push 4
push esi
push 0x404bb0
push ebx
push ebx
call fcn.00409434
add esp, 0x18
cmp eax, ebx
mov dword [esi + 0x64], eax
jne 0x404b8c
push str.can_not_create_the_ProcessSendData_thread_n
call fcn.004083a9
push str.Create_the_ProcessSendData_thread_fail
push 0x41a0fc
push str.PPEAdapter
call fcn.004025c0
add esp, 0x10
push ebx
call fcn.004084d6
push eax
call edi
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret