joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402e67
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x402e8e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00403455
jmp 0x402f43
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x402eb0
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x402eb2
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x402f37
jg 0x402ec7
test esi, esi
je 0x402f37
test ecx, ecx
jl 0x402f1a
jg 0x402ed1
test eax, eax
je 0x402f1a
cmp edi, ecx
jg 0x402ee5
jl 0x402edb
cmp esi, eax
jae 0x402ee5
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.00406d40
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov eax, dword [ebx + 0x30]
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
mov eax, dword [ebp + 8]
add eax, ecx
test edi, edi
jl 0x402f37
jg 0x402f1d
test esi, esi
je 0x402f37
jmp 0x402f1d
mov eax, dword [ebp + 8]
cmp dword [ebx + 0x4c], 0
je 0x402f37
push dword [ebx + 0x4c]
push esi
push 1
push eax
call fcn.0040a87f
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x402f4c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
jg 0x402f76
jl 0x402f6d
test edi, edi
jne 0x402f76
xor eax, eax
xor edx, edx
jmp 0x403028
cmp dword [ecx + 0x38], 0
je 0x402f89
push esi
push edi
push edx
call fcn.0040351c
jmp 0x403028
mov eax, dword [ecx + 0x1c]
push ebx
mov ebx, edi
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x402fc9
mov eax, dword [ecx + 0x2c]
cmp dword [eax], 0
jbe 0x402fc9
cmp dword [eax], edi
mov esi, edi
cmovb esi, dword [eax]
push esi
push dword [ebp - 0xc]
push edx
call fcn.00406d40
mov ecx, dword [ebp - 8]
sub ebx, esi
add dword [ebp - 4], esi
add esp, 0xc
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp + 0x10]
cmp dword [ecx + 0x4c], 0
mov edx, ebx
je 0x40301e
call fcn.00403c62
mov edx, ebx
jmp 0x402ffc
push dword [ecx + 0x4c]
push eax
push 1
push dword [ebp - 4]
call fcn.0040ae84
add dword [ebp - 4], eax
sub ebx, eax
add esp, 0x10
mov edx, ebx
cmp eax, 0xfff
jne 0x40302e
mov ecx, dword [ebp - 8]
mov eax, 0xfff
cmp ebx, eax
ja 0x402fda
test edx, edx
je 0x40301e
push dword [ecx + 0x4c]
push ebx
push 1
push dword [ebp - 4]
call fcn.0040ae84
mov edx, ebx
add esp, 0x10
sub edx, eax
sub edi, edx
sbb esi, 0
mov eax, edi
mov edx, esi
pop ebx
pop edi
pop esi
leave
ret 0xc
sub edi, ebx
jmp 0x403020
Function at 0x403291
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x42b004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
or edi, 0xffffffff
mov esi, ecx
cmp ebx, edi
jne 0x4032b7
xor eax, eax
jmp 0x40337e
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x4032e0
mov edx, dword [esi + 0x30]
mov eax, dword [edx]
add eax, ecx
cmp ecx, eax
jae 0x4032e0
dec dword [edx]
mov eax, ebx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
jmp 0x40337e
cmp dword [esi + 0x4c], 0
je 0x40337c
mov ecx, esi
call fcn.00403c62
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x40330d
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.00409e7a
cmp eax, edi
pop ecx
pop ecx
cmovne edi, ebx
jmp 0x40337c
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
sub eax, 0
je 0x40334b
sub eax, 1
je 0x40334b
dec eax
sub eax, 1
jne 0x40337c
push dword [esi + 0x4c]
movsx ecx, byte [ebp - 0x25]
push ecx
jmp 0x4032ff
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
sub eax, ecx
mov dword [ebp - 0x34], eax
je 0x40336e
push dword [esi + 0x4c]
push eax
mov eax, ecx
push 1
push eax
call fcn.0040a87f
add esp, 0x10
cmp dword [ebp - 0x34], eax
jne 0x40337c
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
mov eax, ebx
jne 0x40337e
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404747
leave
ret 4

Function at 0x403c85
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x42b004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x38], ebx
je 0x403cdc
cmp byte [esi + 0x3d], bl
je 0x403cdc
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x403d15
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, ebx
je 0x403ced
sub eax, 1
je 0x403cf0
dec eax
sub eax, 1
jne 0x403d15
mov byte [esi + 0x3d], bl
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404747
leave
ret
mov byte [esi + 0x3d], bl
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x403d0d
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0040a87f
add esp, 0x10
cmp edi, eax
jne 0x403d15
cmp byte [esi + 0x3d], bl
sete al
jmp 0x403cde
xor al, al
jmp 0x403cde
Function at 0x404a08
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x429510
call fcn.00405200
push 1
call fcn.00404cbf
pop ecx
test al, al
je 0x4049f2
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.00404c8d
mov byte [ebp - 0x24], al
mov eax, dword [0x42c134]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x4049f2
test eax, eax
jne 0x404916
mov dword [0x42c134], ecx
push 0x41d1d0
push 0x41d1b4
call fcn.0040bd1b
pop ecx
pop ecx
test eax, eax
je 0x4048f9
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x4049e2
push 0x41d1b0
push 0x41d190
call fcn.0040bcd4
pop ecx
pop ecx
mov dword [0x42c134], 2
jmp 0x40491b
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.00404e13
pop ecx
call fcn.00404f9a
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x40494c
push esi
call fcn.00404d7f
pop ecx
test al, al
je 0x40494c
mov esi, dword [esi]
push edi
push 2
push edi
mov ecx, esi
call dword [0x41d18c]
call esi
call fcn.00404fa0
mov esi, eax
cmp dword [esi], edi
je 0x40496a
push esi
call fcn.00404d7f
pop ecx
test al, al
je 0x40496a
push dword [esi]
call fcn.0040bfaf
pop ecx
call fcn.004050c1
movzx esi, ax
call fcn.0040bc8a
push esi
push eax
push edi
push 0x400000
call main
mov esi, eax
call fcn.004050f7
test al, al
je 0x4049f9
test bl, bl
jne 0x404998
call fcn.0040bf8a
push edi
push 1
call fcn.00404e30
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x4049e2
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
push 7
call fcn.00404fa6
push esi
call fcn.0040bfd5
push dword [ebp - 0x20]
call fcn.0040bf99
int3
call fcn.00404ee7
jmp 0x40488c

Function at 0x410507
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041037d

Function at 0x5d8aa8
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x5d87dc
add ebx, ebx
call fcn.005d8ae6
sub edi, 0xf12f948c
or edi, ebx
xor dword [edx], esi
or edi, edi
or ebx, edi
add edx, 2
mov edi, 0x5f6fd26c
inc ebx
and ebx, edi
cmp edx, ecx
jl fcn.005d8aa8
add ebx, edi
and ebx, ebx
mov ebx, 0xf8f4bf0d
ret
Function at 0x401030
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43e591
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x464770]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x1c], ebx
push 0x454dbb
lea esi, [esp + 0x24]
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
call fcn.004019b0
mov eax, dword [esp + 0x44]
mov dword [esp + 0x38], 1
mov edx, 6
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ebx
cmp eax, ebx
jne 0x4010f3
mov esi, dword [esp + 0x40]
mov ebp, dword [esp + 0x28]
mov dword [esi], vtable.CPureString.0
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
cmp ebp, ebx
je 0x4010d5
lea edi, [ebp + 1]
cmp edi, ebx
jle 0x4010be
push edi
call fcn.00401a60
mov eax, dword [esi + 4]
push edi
mov edi, dword [esp + 0x28]
push edi
push eax
call fcn.0042a110
add esp, 0xc
mov dword [esi + 8], ebp
jmp 0x4010d9
mov edi, dword [esp + 0x24]
mov dword [esp + 0x1c], 1
mov byte [esp + 0x38], bl
cmp edi, ebx
je 0x4011d6
push edi
jmp 0x4011ce
mov ecx, dword [esp + 0x48]
mov dword [edi + 4], eax
lea eax, [esp + 0x14]
mov dword [edi + 8], ecx
push eax
lea ecx, [esp + 0x1c]
mov eax, edi
mov dword [edi + 0xc], ebx
call fcn.00401330
mov ebp, dword [esp + 0x14]
cmp ebp, ebx
jle 0x40114b
jmp 0x401120
movzx ecx, byte [eax + str.ET5bwHVFnYBhKPU1RycjCZIG7_t6AzMD9ka4uWSivdLO3x2Qos0prelN8gmfJqX]
push ecx
lea esi, [esp + 0x24]
call fcn.00401b90
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x1c]
mov edx, ebp
mov eax, edi
call fcn.00401330
mov ebp, dword [esp + 0x14]
cmp ebp, ebx
jg 0x401120
mov edi, dword [esp + 0x28]
mov eax, edi
and eax, 0x80000003
jns 0x40115d
dec eax
or eax, 0xfffffffc
inc eax
je 0x40117e
nop
lea esi, [esp + 0x20]
call fcn.00401ae0
mov edi, dword [esp + 0x28]
mov ecx, edi
and ecx, 0x80000003
jns 0x40117c
dec ecx
or ecx, 0xfffffffc
inc ecx
jne 0x401160
mov esi, dword [esp + 0x40]
mov dword [esi], vtable.CPureString.0
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
cmp edi, ebx
je 0x4011b9
lea ebp, [edi + 1]
cmp ebp, ebx
jle 0x4011a2
push ebp
call fcn.00401a60
mov edx, dword [esi + 4]
push ebp
mov ebp, dword [esp + 0x28]
push ebp
push edx
call fcn.0042a110
add esp, 0xc
mov dword [esi + 8], edi
jmp 0x4011bd
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x1c], 1
mov byte [esp + 0x38], bl
cmp ebp, ebx
je 0x4011d6
push ebp
call fcn.0040bae0
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 0xc
Function at 0x401f60
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x464770]
xor eax, esp
mov dword [esp + 0x194], eax
lea eax, [esp]
push eax
push 0x202
call dword [0x44c5ac]
test eax, eax
jne 0x401fb9
cmp byte [esp], 2
jne 0x401fb3
mov ecx, dword [esp + 2]
shr ecx, 8
cmp cl, 2
jne 0x401fb3
mov al, 1
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.00428579
mov esp, ebp
pop ebp
ret
call dword [0x44c5b0]
mov ecx, dword [esp + 0x194]
xor ecx, esp
xor al, al
call fcn.00428579
mov esp, ebp
pop ebp
ret

Function at 0x402070
Capabilities:
Connect socket
Get socket status
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x134
mov eax, dword [0x464770]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
xor eax, eax
push ebp
push edi
mov dword [esp + 0x12c], eax
mov ebx, edx
mov dword [esp + 0x130], eax
mov dword [esp + 0x134], eax
mov dword [esp + 0x138], eax
mov eax, 2
push ebx
mov edi, ecx
mov word [esp + 0x130], ax
call dword [0x44c580]
mov dword [esp + 0x130], eax
cmp eax, 0xffffffff
jne 0x4020e6
push ebx
call dword [0x44c59c]
test eax, eax
je 0x402215
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [esp + 0x130], eax
mov ecx, dword [esp + 0x144]
push ecx
call dword [0x44c5b4]
mov ecx, dword [esp + 0x134]
mov word [esp + 0x12e], ax
mov edx, dword [esp + 0x12c]
mov eax, dword [esp + 0x130]
mov dword [esi + 0x18], edx
mov edx, dword [esp + 0x138]
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], ecx
mov ecx, dword [esi + 4]
mov dword [esi + 0x24], edx
test edi, edi
jle 0x402247
mov ebx, dword [0x44c578]
lea eax, [esp + 0xc]
push eax
push 0x8004667e
push ecx
mov dword [esp + 0x18], 1
call ebx
mov eax, dword [esi + 4]
push 0x10
lea edx, [esp + 0x130]
push edx
push eax
call dword [0x44c57c]
cmp eax, 0xffffffff
jne 0x40222d
mov ebp, dword [0x44c2d0]
call ebp
cmp eax, 0x2733
je 0x402183
call ebp
cmp eax, 0x2734
jne 0x402208
mov eax, 0x10624dd3
imul edi
sar edx, 6
mov ecx, dword [esi + 4]
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x18], eax
imul eax, eax, 0x3e8
sub edi, eax
lea edx, [esp + 0x18]
imul edi, edi, 0x3e8
push edx
push 0
lea eax, [esp + 0x28]
push eax
push 0
push 0
mov dword [esp + 0x30], edi
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], 1
call dword [0x44c584]
test eax, eax
jle 0x402208
mov eax, dword [esi + 4]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push 0x1007
push 0xffff
push eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 4
call dword [0x44c5a4]
cmp dword [esp + 0x10], 0
je 0x40222d
mov edx, dword [esi]
mov eax, dword [edx + 0x20]
mov ecx, esi
call eax
xor eax, eax
jmp 0x402262
mov edx, dword [esi]
mov eax, dword [edx + 0x20]
mov ecx, esi
call eax
push 0x2726
call dword [0x44c594]
xor eax, eax
jmp 0x402262
mov edx, dword [esi + 4]
lea ecx, [esp + 0xc]
push ecx
push 0x8004667e
push edx
mov dword [esp + 0x18], 0
call ebx
jmp 0x40225d
push 0x10
lea eax, [esp + 0x130]
push eax
push ecx
call dword [0x44c57c]
cmp eax, 0xffffffff
je 0x402208
mov eax, 1
mov ecx, dword [esp + 0x13c]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.00428579
add esp, 0x134
ret 4
Function at 0x4022c0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
mov ebp, ecx
xor esi, esi
mov ecx, dword [ebp + 4]
push 0
mov eax, ebx
sub eax, esi
push eax
push edi
push ecx
call dword [0x44c588]
cmp eax, 0xffffffff
je 0x4022fc
test eax, eax
jle 0x4022f3
add esi, eax
add edi, eax
cmp esi, ebx
jne 0x4022d0
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8

Function at 0x402310
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
xor esi, esi
mov ebp, ecx
test ebx, ebx
jle 0x40235d
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [ebp + 4]
push 0
push 1
push edi
push eax
call dword [0x44c588]
test eax, eax
jle 0x40235c
add esi, eax
cmp esi, ebx
je 0x402358
mov cl, byte [edi]
cmp cl, 0xd
je 0x402358
cmp cl, 0xa
je 0x402358
add edi, eax
cmp esi, ebx
jl 0x402324
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 8
mov byte [edi], 0
dec esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 8

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

Disassembly:
sub esp, 0x110
push ebp
xor ebp, ebp
cmp dword [esp + 0x11c], ebp
push edi
mov edi, ecx
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], ebp
mov dword [esp + 8], ebp
jle 0x402496
push ebx
mov ebx, dword [0x44c588]
push esi
mov esi, dword [esp + 0x124]
jmp 0x4023b0
cmp dword [esp + 0x10], 3
je 0x402478
mov eax, dword [edi + 4]
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
lea edx, [esp + 0x28]
push edx
push 0
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], 1
call dword [0x44c584]
test eax, eax
jne 0x4023ea
inc dword [esp + 0x10]
jmp 0x402454
cmp eax, 0xffffffff
je 0x402425
mov ecx, dword [edi + 4]
lea eax, [esp + 0x1c]
push eax
push ecx
call fcn.0043ce80
test eax, eax
je 0x402454
mov edx, dword [edi + 4]
push 0
push 1
push esi
push edx
call ebx
cmp eax, 0xffffffff
jne 0x40242a
call dword [0x44c2d0]
cmp eax, 0x2733
je 0x402454
cmp eax, 0x2738
je 0x402454
or ebp, 0xffffffff
jmp 0x402471
test eax, eax
je 0x402463
add ebp, eax
cmp ebp, dword [esp + 0x128]
je 0x402467
cmp byte [esi], 0xa
jne 0x402452
cmp dword [esi - 3], 0xa0d0a0d
je 0x40246d
cmp byte [esi - 1], 0xa
jne 0x402452
cmp byte [esi], 0xa
je 0x40246d
add esi, eax
cmp ebp, dword [esp + 0x128]
jl 0x4023b0
jmp 0x402471
xor ebp, ebp
jmp 0x402471
mov byte [esi], 0
dec ebp
jmp 0x402471
mov byte [esi + 1], 0
cmp dword [esp + 0x10], 3
jne 0x402487
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
add esp, 0x110
ret 8
pop esi
pop ebx
pop edi
mov eax, ebp
pop ebp
add esp, 0x110
ret 8
pop edi
mov eax, ebp
pop ebp
add esp, 0x110
ret 8
Function at 0x4024b0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
xor esi, esi
push esi
push ebx
mov ebp, ecx
mov eax, dword [ebp + 4]
push edi
push eax
call dword [0x44c5a0]
cmp eax, 0xffffffff
je 0x4024f1
add esi, eax
add edi, eax
cmp esi, ebx
je 0x4024fb
mov edx, dword [ebp + 4]
push 0
mov ecx, ebx
sub ecx, esi
push ecx
push edi
push edx
call dword [0x44c5a0]
cmp eax, 0xffffffff
jne 0x4024d2
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 8
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 8

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43e6d8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x464770]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
push esi
mov eax, dword [0x464770]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
xor eax, eax
mov esi, ecx
mov dword [esp + 0x10], vtable.CSocketImpl.0
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
push eax
push 1
push 2
mov dword [esp + 0x54], eax
call dword [0x44c58c]
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x14], eax
movzx eax, word [ebp + 8]
mov edx, esi
push eax
lea esi, [esp + 0x14]
call fcn.00402070
test eax, eax
je 0x4025f0
push 0x234
call fcn.0040bab1
add esp, 4
test eax, eax
je 0x4025f0
mov ebx, esi
mov esi, eax
call fcn.00401d10
jmp 0x4025f2
xor eax, eax
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00428579
mov esp, ebp
pop ebp
ret 8
Function at 0x4042b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
lea eax, [esp]
push eax
push str.SoftwareVeryProxy
push 0x80000002
call dword [0x44c02c]
test eax, eax
jne 0x4042fb
lea ecx, [esp + 4]
push ecx
lea edx, [esi + 0x124]
push edx
push eax
push eax
mov eax, dword [esp + 0x10]
push str.AutoSetting
push eax
mov dword [esp + 0x1c], 4
call dword [0x44c034]
mov ecx, dword [esp]
push ecx
call dword [0x44c020]
push 0
mov ecx, esi
call fcn.00414170
add esp, 8
ret
Function at 0x40b8ac
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x24
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov eax, dword [edx + 0x78]
mov ebx, dword [edx + 0x8c]
cmp eax, ebx
mov eax, dword [edx + 0x34]
mov ebx, dword [edx + 0x7c]
jl 0x40b8d1
shr ebx, 2
dec ebx
shl ebx, 0x10
or ebx, eax
mov dword [esp], ebx
mov eax, dword [edx + 0x90]
mov ebx, dword [edx + 0x74]
cmp ebx, eax
jl 0x40b8e9
mov ebx, eax
mov dword [esp + 0x18], ebx
mov esi, dword [edx + 0x38]
mov dword [esp + 4], esi
mov ebp, dword [edx + 0x6c]
lea edi, [ebp + esi]
mov dword [esp + 0x20], edi
mov eax, edi
neg eax
and eax, 3
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0x2c]
sub eax, 0x106
sub ebp, eax
jg 0x40b918
xor ebp, ebp
mov eax, dword [edx + 0x78]
mov dword [esp + 0x1c], eax
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [edi]
mov dword [esp + 0x10], ebx
movzx ebx, word [eax + edi - 1]
mov dword [esp + 0xc], ebx
mov edi, dword [edx + 0x40]
mov edx, dword [esp]
jmp 0x40b95a
and ecx, edx
movzx ecx, word [edi + ecx*2]
cmp ecx, ebp
jbe 0x40ba2e
sub edx, 0x10000
js 0x40ba2e
movzx eax, word [ecx + esi - 1]
cmp eax, ebx
jne 0x40b940
mov eax, dword [esp + 4]
movzx eax, word [ecx + eax]
cmp eax, dword [esp + 0x10]
jne 0x40b940
mov dword [esp], edx
mov esi, dword [esp + 4]
mov edi, dword [esp + 0x20]
add esi, ecx
mov eax, dword [esp + 0x14]
mov edx, 0xfffffef8
lea edi, [eax + edi + 0x108]
lea esi, [eax + esi + 0x108]
mov eax, dword [edx + esi]
xor eax, dword [edx + edi]
jne 0x40b9b1
mov eax, dword [edx + esi + 4]
xor eax, dword [edx + edi + 4]
jne 0x40b9ae
add edx, 8
jne 0x40b995
jmp 0x40ba1f
add edx, 4
test eax, 0xffff
jne 0x40b9be
add edx, 2
shr eax, 0x10
sub al, 1
adc edx, 0
lea eax, [edx + edi]
mov edi, dword [esp + 0x20]
sub eax, edi
cmp eax, 0x102
jge 0x40ba1f
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
cmp eax, ebx
jg 0x40b9f2
mov esi, dword [esp + 8]
mov edi, dword [edx + 0x40]
mov ebx, dword [esp + 0xc]
mov edx, dword [esp]
jmp 0x40b940
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov dword [edx + 0x70], ecx
cmp eax, ebx
jge 0x40ba2e
mov esi, dword [esp + 4]
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [eax + edi - 1]
mov edi, dword [edx + 0x40]
mov dword [esp + 0xc], ebx
mov edx, dword [esp]
jmp 0x40b940
mov edx, dword [esp + 0x38]
mov dword [esp + 0x1c], 0x102
mov dword [edx + 0x70], ecx
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
mov eax, dword [edx + 0x74]
cmp ebx, eax
jg 0x40ba3f
mov eax, ebx
add esp, 0x24
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x417db2
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x43d673
call fcn.0042c137
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x417dd7
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [0x44c478]
jmp 0x417e1d
lea ecx, [ebp - 0x10]
call fcn.00402930
mov ecx, dword [esi + 0x50]
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.0040df86
add esp, 0x10
push dword [ebp + 8]
call dword [0x44c28c]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004026f0
mov eax, esi
call fcn.0042c20f
ret 8