joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x576af0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00507630
push 0x104
lea ecx, [ebp - 0x20c]
push 0
push ecx
call fcn.00507630
push esi
lea edx, [ebp - 0x20c]
push 0x554d4c
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x24
mov ecx, 0x555162
lea eax, [ebp - 0x20c]
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401080
test dl, dl
je 0x40107c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401080
add eax, 2
add ecx, 2
test dl, dl
jne 0x401060
xor eax, eax
jmp 0x401085
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40109a
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050540a
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
push esi
call edi
test eax, eax
jne 0x401146
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7b
je 0x4010d6
cmp eax, 3
je 0x4010d6
cmp eax, 0xb7
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050540a
mov esp, ebp
pop ebp
ret
push 0x5c
push esi
call fcn.00505420
add esp, 8
test eax, eax
jne 0x4010ea
or eax, 0xffffffff
jmp 0x4010ed
sub eax, esi
inc eax
dec eax
push eax
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.00505450
lea eax, [ebp - 0x108]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401108
sub eax, edx
push eax
lea ecx, [ebp - 0x108]
push ecx
call section..text
add esp, 8
test al, al
je 0x401134
push 0
lea edx, [ebp - 0x20c]
push edx
call edi
test eax, eax
jne 0x401146
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050540a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.0050540a
mov esp, ebp
pop ebp
ret

Function at 0x401b70
Capabilities:
Create tcp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x576af0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 6
push 1
push 2
mov dword [ebp - 8], 1
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401bb1
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050540a
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea edx, [ebp - 8]
push edx
push 0x80
push 0xffff
push esi
call edi
mov ebx, dword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x401bdb
push esi
call ebx
test eax, eax
jne 0x401b9d
push 4
lea eax, [ebp - 0xc]
push eax
push 1
push 6
push esi
mov dword [ebp - 0xc], 1
call edi
test eax, eax
je 0x401bfa
push esi
call ebx
test eax, eax
je 0x401b9d
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050540a
mov esp, ebp
pop ebp
ret
Function at 0x401c30
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x576af0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x401c4c
mov eax, 0x7f000001
mov ecx, 2
push eax
mov word [ebp - 0x18], cx
call dword [sym.imp.WS2_32.dll_htonl]
mov edx, dword [ebp + 0x10]
push edx
mov dword [ebp - 0x14], eax
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebp + 8]
mov word [ebp - 0x16], ax
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
push 0x10
lea eax, [ebp - 0x18]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x401cab
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor edx, edx
cmp eax, 0x2733
sete dl
mov eax, edx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0050540a
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 8]
xor ecx, ebp
mov eax, 1
call fcn.0050540a
mov esp, ebp
pop ebp
ret 0xc

Function at 0x401f30
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x576af0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
lea ecx, [ebp - 0x328]
push ecx
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x110]
mov eax, 1
push ecx
lea edx, [ebp - 0x320]
push edx
xor edi, edi
push eax
mov dword [ebp - 0x320], edi
mov dword [ebp - 0x10c], esi
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x328], eax
mov dword [ebp - 0x324], edi
call dword [sym.imp.WS2_32.dll_select]
mov ebx, dword [sym.imp.WS2_32.dll___WSAFDIsSet]
lea eax, [ebp - 0x320]
push eax
push esi
call ebx
test eax, eax
je 0x401fb2
mov edi, 1
lea ecx, [ebp - 0x110]
push ecx
push esi
call ebx
test eax, eax
je 0x401fc3
or edi, 2
lea edx, [ebp - 0x218]
push edx
push esi
call ebx
test eax, eax
je 0x401fd4
or edi, 4
mov ecx, dword [ebp - 4]
mov ax, di
pop edi
xor ecx, ebp
pop ebx
call fcn.0050540a
mov esp, ebp
pop ebp
ret
Function at 0x402090
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x576af0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x414]
push eax
push 0x104
mov dword [esi], vtable.CEventLog.0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [ebp - 0x414]
push ecx
xor ebx, ebx
lea edx, [ebp - 0x108]
push str._sCommLog
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
push edx
mov dword [esi + 0x14], 0xffffffff
call fcn.00505574
lea eax, [ebp - 0x108]
push eax
lea ecx, [esi + 0x18]
push 0x554d4c
push ecx
call fcn.00505574
push 0x104
lea edx, [ebp - 0x20c]
push ebx
push edx
call fcn.00507630
push 0x104
lea eax, [ebp - 0x310]
push ebx
push eax
call fcn.00507630
lea ecx, [ebp - 0x108]
push ecx
lea edx, [ebp - 0x310]
push 0x554d4c
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x3c
mov ecx, 0x555162
lea eax, [ebp - 0x310]
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402170
cmp dl, bl
je 0x40216c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402170
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x402150
xor eax, eax
jmp 0x402175
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x40220e
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push ebx
lea eax, [ebp - 0x108]
push eax
call edi
test eax, eax
jne 0x40220d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7b
je 0x4021a2
cmp eax, 3
jne 0x40220d
lea ecx, [ebp - 0x108]
push 0x5c
push ecx
call fcn.00505420
add esp, 8
cmp eax, ebx
jne 0x4021bc
or eax, 0xffffffff
jmp 0x4021c5
lea edx, [ebp - 0x108]
sub eax, edx
inc eax
dec eax
push eax
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call fcn.00505450
lea eax, [ebp - 0x20c]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4021e6
sub eax, edx
push eax
lea edx, [ebp - 0x20c]
push edx
call section..text
add esp, 8
test al, al
je 0x40220d
push ebx
lea eax, [ebp - 0x310]
push eax
call edi
pop edi
mov dword [esi + 0x120], 5
call fcn.004088ca
mov ecx, dword [eax + 4]
mov dword [esi + 0x124], ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [esi + 0x120], 0xa
mov eax, esi
pop ebx
call fcn.0050540a
mov esp, ebp
pop ebp
ret

Function at 0x4037d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4037eb
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403822
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40381e
jmp 0x403810
cmp esi, eax
jae 0x403822
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x403810
cmp esi, eax
jb 0x403829
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x405220
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa0
mov eax, dword [0x576af0]
xor eax, esp
mov dword [esp + 0x9c], eax
push esi
push edi
lea edi, [ebx + 0xc]
push edi
xor esi, esi
push 0x104
mov dword [ebx], vtable.CPantiltAnalyser.0
mov dword [ebx + 4], esi
mov dword [ebx + 8], esi
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
xor eax, eax
push esi
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
call fcn.00505c5a
mov dword [esp + 0x10], eax
add esp, 4
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x18], edx
call fcn.005059ab
neg eax
sbb esi, esi
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x6c]
not esi
and esi, dword [esp + 0x30]
push eax
call fcn.005059ab
add esp, 0x10
test eax, eax
jne 0x4052e2
mov ecx, dword [esp + 0x70]
inc ecx
mov dword [esp + 8], ecx
jmp 0x4052ea
mov dword [esp + 8], 0
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x40]
push eax
call fcn.005059ab
add esp, 8
test eax, eax
jne 0x40530b
mov eax, dword [esp + 0x50]
add eax, 0x76c
jmp 0x40530d
xor eax, eax
mov ecx, dword [esp + 8]
push esi
push ecx
push eax
lea edx, [esp + 0x90]
push str.Dump__04d_02d_02d.txt
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
dec edi
jmp 0x405330
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405330
mov ax, word [0x55515c]
mov word [edi], ax
lea eax, [esp + 0x84]
mov esi, eax
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405350
mov edi, dword [esp + 0x14]
sub eax, esi
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x405360
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x1000
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebx + 0x110]
push 0
push ecx
call fcn.00507630
add esp, 0xc
push 0x400
lea edx, [ebx + 0x1914]
push 0
push edx
call fcn.00507630
mov ecx, dword [esp + 0xb0]
add esp, 0xc
pop edi
pop esi
xor ecx, esp
mov dword [ebx + 0x1110], 0
mov eax, ebx
call fcn.0050540a
mov esp, ebp
pop ebp
ret
Function at 0x405d40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x576af0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
push ebx
mov dword [ebp - 0x10], eax
xor eax, eax
push esi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
lea ebx, [edi + 8]
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
call esi
mov edx, dword [edi + 0x28]
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0xc], 0
jne 0x405dd2
lea ebx, [ebx]
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp eax, 0x64
jge 0x405e65
push ebx
call esi
mov edx, dword [edi + 0x28]
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0xc], 0
je 0x405da0
mov dword [ebp - 0x1c], 0
cmp dword [ebp - 0xc], 0
je 0x405e72
push ebx
call esi
mov edx, dword [edi + 0x98]
mov ecx, dword [ebp - 0xc]
add edx, dword [edi + 0x8c]
lea esi, [edi + 0x3c]
push esi
lea eax, [ebp - 0x18]
push eax
mov eax, dword [edi + 0x28]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x405e2e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
cmp eax, 0x3e5
jne 0x405e2e
mov edx, dword [edi + 0x28]
push 1
lea ecx, [ebp - 0x18]
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
movzx eax, word [ebp - 0x18]
add dword [edi + 0x98], eax
mov eax, dword [edi + 0x98]
mov ecx, dword [edi + 0x8c]
lea esi, [edi + 0xc8]
call fcn.00405410
mov dword [edi + 0x98], 0
jmp 0x405d72
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x405dd9
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0050540a
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405e90
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x576af0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x118], eax
call fcn.004088ca
call fcn.00401b70
mov esi, eax
cmp esi, 0xffffffff
jne 0x405ef4
push 0x104
lea ecx, [ebp - 0x110]
push 0
push ecx
call fcn.00507630
add esp, 0xc
lea edi, [ebp - 0x110]
call fcn.00401cc0
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050540a
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push edx
push eax
push esi
call fcn.00401c30
test eax, eax
jne 0x405f21
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050540a
mov esp, ebp
pop ebp
ret 0xc
call fcn.00401f30
cmp ax, 2
jne 0x405f06
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea ecx, [ebp - 0x114]
push ecx
push 0x1005
push 0xffff
push esi
mov dword [ebp - 0x114], 0xbb8
call edi
test eax, eax
je 0x405f65
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x405ee0
push 4
lea edx, [ebp - 0x114]
push edx
push 0x1006
push 0xffff
push esi
mov dword [ebp - 0x114], 0xbb8
call edi
test eax, eax
je 0x405f98
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x405ee0
mov ecx, esi
call fcn.00402020
test eax, eax
jne 0x405fb1
call fcn.00401c10
cmp eax, 0xffffffff
je 0x405ee0
push 4
lea eax, [ebp - 0x114]
push eax
push 0x1001
push 0xffff
push esi
mov dword [ebp - 0x114], 0xc800
call edi
test eax, eax
jne 0x405fe0
mov ecx, esi
call fcn.00401ff0
test eax, eax
jne 0x405fef
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x405ee0
mov ecx, dword [ebp - 0x118]
mov dword [ecx + 4], esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.0050540a
mov esp, ebp
pop ebp
ret 0xc
Function at 0x406010
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x576af0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [edi + 4]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x328], esi
mov dword [ebp - 0x324], esi
mov dword [ebp - 0x110], esi
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x320], esi
lea ebx, [esi + 1]
cmp eax, 0xffffffff
je 0x406074
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x31c], eax
mov dword [ebp - 0x320], ebx
lea eax, [ebp - 0x328]
push eax
lea ecx, [ebp - 0x320]
push ecx
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x110]
push eax
push 0x41
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
mov eax, dword [edi + 4]
jne 0x4060c4
cmp eax, esi
je 0x4060b2
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 4], 0xffffffff
xor al, al
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050540a
mov esp, ebp
pop ebp
ret
cmp eax, esi
mov esi, dword [sym.imp.WS2_32.dll___WSAFDIsSet]
jbe 0x4061b0
lea ecx, [ebp - 0x320]
push ecx
push eax
call esi
test eax, eax
je 0x4061b0
mov ecx, dword [ebp - 0x110]
xor eax, eax
test ecx, ecx
je 0x406135
mov edx, dword [edi + 4]
cmp dword [ebp + eax*4 - 0x10c], edx
je 0x406104
add eax, ebx
cmp eax, ecx
jb 0x4060f3
jmp 0x406135
lea edx, [ecx - 1]
cmp eax, edx
jae 0x40612d
jmp 0x406110
mov ecx, dword [ebp + eax*4 - 0x108]
mov dword [ebp + eax*4 - 0x10c], ecx
mov ecx, dword [ebp - 0x110]
add eax, ebx
lea edx, [ecx - 1]
cmp eax, edx
jb 0x406110
sub ecx, ebx
mov dword [ebp - 0x110], ecx
mov ecx, dword [ebp - 0x218]
xor eax, eax
test ecx, ecx
je 0x406185
mov edx, dword [edi + 4]
cmp dword [ebp + eax*4 - 0x214], edx
je 0x406155
add eax, ebx
cmp eax, ecx
jb 0x406144
jmp 0x406185
lea edx, [ecx - 1]
cmp eax, edx
jae 0x40617d
lea esp, [esp]
mov ecx, dword [ebp + eax*4 - 0x210]
mov dword [ebp + eax*4 - 0x214], ecx
mov ecx, dword [ebp - 0x218]
add eax, ebx
lea edx, [ecx - 1]
cmp eax, edx
jb 0x406160
sub ecx, ebx
mov dword [ebp - 0x218], ecx
mov eax, dword [edi + 4]
test eax, eax
je 0x4060b2
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 4], 0xffffffff
xor al, al
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050540a
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 4]
test eax, eax
je 0x406230
lea ecx, [ebp - 0x110]
push ecx
push eax
call esi
test eax, eax
je 0x406230
push 0x5004
call fcn.0040687e
mov esi, eax
push 0x5000
lea ebx, [esi + 4]
push 0
mov dword [esi], 0
push ebx
mov dword [esi], 0xffffffff
call fcn.00507630
mov eax, dword [edi + 4]
add esp, 0x10
push 0
push 0x5000
push ebx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jns 0x406215
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x406242
xor eax, eax
mov dword [esi], eax
mov edx, dword [edi]
add edx, 0x134
push edx
mov ecx, esi
call fcn.004019d0
cmp dword [esi], 0
jle 0x406185
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0050540a
mov esp, ebp
pop ebp
ret
push esi
call fcn.004068b8
add esp, 4
jmp 0x406185
Function at 0x4066b0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xb8]
add eax, 0xc4
push eax
xor bl, bl
call fcn.00401860
test eax, eax
jg 0x4066dc
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
mov byte [ebp - 1], 1
mov dword [ebp - 0xc], eax
jmp 0x4066f3
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0xb8]
add ecx, 0xc4
push ecx
call fcn.004017a0
mov edx, dword [esi + 0xc8]
mov edi, dword [eax]
xor esi, esi
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], edx
lea ebx, [eax + 4]
test edi, edi
jle 0x406749
lea esp, [esp]
mov ecx, dword [ebp - 0x10]
push 0
mov eax, edi
sub eax, esi
push eax
push ebx
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
js 0x406740
add esi, eax
add ebx, eax
cmp esi, edi
jl 0x406720
jmp 0x406746
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov eax, dword [ebp - 8]
push eax
call fcn.004068b8
add esp, 4
dec dword [ebp - 0xc]
jne 0x4066f0
mov bl, byte [ebp - 1]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40fc9c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x40fce3
call fcn.004088ca
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40fce3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40fcff
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040f7a1
mov esi, eax
test edi, edi
je 0x40fcfd
test ebx, ebx
je 0x40fcfd
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4104e0
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5291eb
call fcn.00506fdc
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x410505
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x410557
call fcn.0040691f
push eax
lea ecx, [ebp - 0x10]
call fcn.00401630
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.005070e6
push eax
call fcn.00407182
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401660
mov eax, esi
call fcn.005070b4
ret 8

Function at 0x411257
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0040e1fb
call fcn.0040b353
cmp eax, esi
pop esi
jne 0x411273
mov ecx, 0x57a4c0
jmp fcn.0041db4a
ret
Function at 0x411fa6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.004088ca
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x411fdf
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00411be8
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x41203d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x412061
cmp dword [edi + 0x74], 0
jne 0x412061
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.004088ca
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
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00411ffe
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x414415
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.004140d4
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x41445f
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004094f3
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00401450
jmp 0x41446a
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0041b88a
pop edi
pop esi
pop ebp
ret 0xc