joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6e3b1f7f
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0x40000010
push 0
push 0
push 0
push 0
mov dword [ebp - 4], 0
mov dword [edi], 0
call dword [0x6e3f0088]
mov esi, eax
test esi, esi
jne 0x6e3b1f09
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1c]
push ecx
call fcn.6e3a2ce1
test eax, eax
je 0x6e3b1f40
mov dword [edi], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x6e3acfaa
push eax
call fcn.6e3acfb9
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
pop ebx
rcr byte [ecx + esi + 0x42421ce], 1
imul dword [ebx]
mov ch, 0x11
mov esi, 0x210600b3
int 0x3e
invalid
push ss
retf 0x7aeb
jne 0x6e3b1e97
or byte fs:[edx + 0x59], ch
pop es
push edx
stosb byte es:[edi], al
lahf
nop
loop 0x6e3b1ef9
push edx
cld
inc ebx
push es
mov edi, 0xf3f0f323
cmp ah, byte [ecx + 0x4c]
cmp ah, byte [ecx + 0x4c]
lodsd eax, dword [esi]
outsd dx, dword [esi]
dec ebp
out 0xfa, eax
xchg edi, eax
pop ecx
je 0x6e3b1f7a
pop es
std
lds esp, [ebx]
stc
xchg dword [edx + 0x16de066c], edx
rol byte [0xe87d9ba], cl
movsd dword es:[edi], dword [esi]
ja 0x6e3b1f1d
int1
lea ebp, [esi - 0x2f730720]
leave
and byte [ebp + 0x5c], 0x6e
jb 0x6e3b1f7b
js 0x6e3b1f4e
jmp dword [esi + ebx + 1]
push ds
add dword [ebp - 0x7e], ebx
add byte [edi], ch
mov al, byte [0x57149b8e]
mov ebp, eax
inc edx
xchg ebp, eax
invalid
xor eax, dword [eax + 0x2804599c]
jns 0x6e3b1f4d
sbb byte [ecx + ebx*2 - 0x3486d7fc], 0x4a
dec edx
adc al, 0x26
cmp edx, dword [ebx - 0x2e]
sub dword [edi], esp
add dword [eax], 0x23
insb byte es:[edi], dx
mov eax, dword [ecx + 0x79a84606]
enter 0xffffffffffffd29b, 0x6d
cwde
leave
and al, 5
pop eax
push ebx
adc al, byte [ebx]
out 0x78, eax
or al, 0x53
and byte [edx - 0x7c], ch
cmp eax, 0x4c15a0b7
cmp eax, 0xce9da68b
mov cl, 0xf3
jg 0x6e3b202c
stc
adc edi, edx
mov esp, 0xe4f86364
ret 0x6b35
leave
cmp bl, byte [ebx - 0x3643dc98]
aam 0xa6
mul dword [ecx + 0x21]
mov byte [0xc2893f04], al
aas
mov edx, eax
and byte [0xca50e712], ah
jge 0x6e3b2084
aaa
inc esi
pop esp
mov ecx, 0xce7cf209
test dword [esi + 9], 0xd17d838f
daa
cmp dword [ebp - 0x2f], 0x27
inc esi
xor esp, ebx
or dl, byte [edx]
add al, 0xdb
adc eax, 0x27d36789
push ecx
dec ecx
xchg ebx, eax
sal byte [edx + edx*2 + 0x2c], 0x64
pop ebp
sbb al, 0x57
les eax, [eax]
inc ecx
jns 0x6e3b2043
or ebx, dword [0x6780d29e]
invalid
stosd dword es:[edi], eax
adc dh, byte [edi + 0x2f]
mov ch, bh
jb 0x6e3b201e
invalid

Function at 0x6e3e227f
Capabilities:
Encode data using xor

Disassembly:
jmp 0x6e3e4224
push dword [esp]
push dword [eax]
pop dword [esp + 0x40]
mov word [esp + 4], 0x1e08
push dword [esp]
push esi
mov byte [esp + 0x18], bh
push dword [esp + 0x48]
ret 0x4c
Function at 0x6e3e2a11
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp bl, 0x32
cmp byte [edi - 1], 0
push 0xf24fef4a
lea esp, [esp + 4]
jne 0x6e3ea187
clc
shrd di, ax, cl
ror edi, cl
mov edi, dword [edx + 0x24]
bt cx, 0xe
bt cx, dx
pushal
add edi, eax
cmp ax, di
clc
movzx ecx, word [edi + ecx*2]
call fcn.6e3e231e
mov byte [ebp - 2], al
pushfd
pushfd
mov byte [esp + 8], 0x5f
lea esp, [esp + 0x4c]
jmp 0x6e3e295b
push 0xc28a5c26
pushal
lea esp, [esp + 0x44]
jb 0x6e3e2ace
jmp 0x6e3e7165
mov byte [esp], 0x49
lea esp, [esp + 0x58]
jl 0x6e3ea162
ja 0x6e3e411a
pushal
jmp 0x6e3dfa9f
bt si, 4
jmp 0x6e3ae5e2
pushfd
call fcn.6e3e3dd1

Function at 0x6e3e34e2
Capabilities:
Encrypt data using speck

Disassembly:
clc
pushal
cmp ebx, 3
pushal
mov word [esp + 8], 0xe79f
jmp 0x6e3eade8

Function at 0x6e3e37e6
Capabilities:
Encrypt data using speck

Disassembly:
jmp 0x6e3e694e
lea esp, [esp + 4]
je 0x6e3e2467
test ebp, 0xd4aa7363
test sp, si
cmp ebx, 2
pushfd
lea esp, [esp + 4]
jns 0x6e3ae8e8
pushfd
lea esp, [esp + 4]
je 0x6e3e2976
push ebp
test dx, 0xd904
mov byte [esp], 0x9a
test cl, ch
cmp ebx, 3
call fcn.6e3e3112
pushfd
mov ebx, eax
call fcn.6e3e8570

Function at 0x6e3e3bf1
Capabilities:
Encrypt data using speck

Disassembly:
push 0x9a2b8a1d
pushfd
lea eax, [ebx + eax*4 + 0x6c0]
mov byte [esp + 0xc], bl
jmp 0x6e3e3d65
jmp 0x6e3ae901

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

Disassembly:
pushal
lea esp, [esp + 0x28]
ja 0x6e3e411a
call fcn.6e3e957e
mov dword [esp + 4], 0xffee6ad7
call fcn.6e3aeaf7

Function at 0x6e3e3fbc
Capabilities:
Encrypt data using speck

Disassembly:
mov byte [esp], cl
test dl, 0x91
cmc
mov dword [esp], eax
pushal
mov dword [esp + 0x1c], ecx
bt ax, 3
cmp eax, 4
jmp 0x6e3ae4f1

Function at 0x6e3e7c58
Capabilities:
Encrypt data using speck

Disassembly:
cmc
cmp eax, 0xe
call fcn.6e3e2660

Function at 0x6e3e7f02
Capabilities:
Encrypt data using speck

Disassembly:
mov ecx, dword [esi + 4]
stc
pushal
bt dx, 0xe
mov dword [esp], esp
or ecx, ecx
pushfd
push 0x6d708573
lea esp, [esp + 0x2c]
je 0x6e3e36fd
add bh, 0x47
add dword [ebp - 4], ecx
movsx bx, dl
shl bx, 0xf
add edi, 0xc09e4e0e
test bh, 0xa6
sub ecx, 8
btc edi, edx
sar di, 8
shld edi, edx, 0x16
rcr di, 4
shr ecx, 1
jnp 0x6e3e3264
pushal
mov edi, dword [esi]
call fcn.6e3e21d7

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

Disassembly:
lea esp, [esp + 4]
jae 0x6e3e350f
pushfd
pushfd
call fcn.6e3e9a02
lea esp, [esp + 0x14]
je 0x6e3e350f
ror dx, 9
cmp ch, bl
pushal
push edx
mov esi, dword [eax + 0x3c]
clc
btc dx, 1
add esi, eax
sbb dl, 3
xor edx, ebp
movsx dx, al
btc dx, si
mov edx, dword [esi + 0x78]
pushfd
test edx, edx
push edi
pushfd
lea esp, [esp + 0x30]
je 0x6e3e350f
test di, 0x7dba
not ch
call fcn.6e3e36bd
lea esp, [esp + 0x44]
jae 0x6e3e351b
pushal
ror cl, 3
mov ebx, eax
or di, ax
shl cl, cl
mov edi, eax
sar cx, 8
sub cl, 0x92
mov ecx, 0x104
pushal
sub al, al
stc
cmp dx, di
push 0xfc55bb21
cmp ecx, dword [ebp - 4]
jmp 0x6e3e2d6c
push ebp
lea esp, [esp + 8]
ja 0x6e3e411a
push esp
pushal
call fcn.6e3ea14a
Function at 0x6e3ea6db
Capabilities:
Resolve function by parsing pe exports

Disassembly:
call fcn.6e3ea2d3
cmc
test edx, edi
cmp ch, 0x5a
add edx, eax
pushal
pushal
pushfd
lea esp, [esp + 0x44]
jmp 0x6e3e90f4
stc
cmp al, byte [edi]
lea eax, [ebx + 0x4c47641]
setp ah
lea edi, [edi + 1]
push ecx
cwde
mov eax, dword [esp + 0x40]
lea esp, [esp + 0x44]
jnp 0x6e3e9d64
ja 0x6e3e411a
jmp 0x6e3dfc38

Function at 0x4283d0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
jmp 0x4283e8
mov eax, dword [ebp - 4]
jmp 0x46061d
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jae 0x42848c
mov edx, dword [ebp - 4]
sub edx, 0x231d
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx + eax*2 + 0x463a]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
shr eax, 0xc
cmp eax, 3
jne 0x428487
mov ecx, dword [ebp - 8]
push ecx
call fcn.004289b0
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
jne 0x428446
push 0x154b
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
test eax, eax
je 0x428446
xor eax, eax
jmp 0x42848c
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax - 0x4c3f8]
mov eax, dword [ebp + 0x18]
mov dword [eax], edx
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + edx]
add ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
mov edx, dword [ebp + 0x10]
mov dword [edx + eax], ecx
mov eax, dword [ebp - 8]
sub eax, 0x4c3f8
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
sub edx, eax
mov eax, dword [ebp + 0x18]
mov dword [eax], edx
jmp 0x4283df
mov esp, ebp
pop ebp
ret
Function at 0x408500
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42f8a8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x43c4c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x40862c
cmp byte [edi + 0x4a], bl
je 0x40862c
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffff
call edx
movzx eax, ax
mov ecx, 0xffff
cmp cx, ax
je 0x408620
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x408580
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x408598
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
mov edx, dword [esi + 0x18]
push eax
lea eax, [edi + 0x4c]
push eax
call edx
sub eax, 0
je 0x4085c1
dec eax
je 0x4085c5
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x40861b
jmp 0x408627
mov byte [edi + 0x4a], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x4085d5
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x4085fe
cmp ebx, 0x10
jae 0x4085e4
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.0041a368
add esp, 0x10
cmp esi, eax
jne 0x408618
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x4a], 0
je 0x408624
test esi, esi
jne 0x40858c
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.004012f0
jmp 0x408586
lea ecx, [ebp - 0x2c]
call fcn.00401470
xor al, al
jmp 0x40862e
lea ecx, [ebp - 0x2c]
call fcn.00401470
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041893d
mov esp, ebp
pop ebp
ret
Function at 0x408750
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42f3fb
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x43c4c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0041874d
push 4
mov dword [ebp - 4], 0
call fcn.00418b13
mov edi, eax
add esp, 4
test edi, edi
je 0x4087d0
call fcn.004183a5
mov dword [edi], eax
call fcn.00418164
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00417df4
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4087c6
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00417e1c
jmp 0x4087d2
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b030
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4303b9
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x43c4c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x50], ebx
xor ecx, ecx
push ebx
mov word [ebp - 0x2c], cx
push eax
or eax, 0xffffffff
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
call fcn.00406970
mov edi, 4
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x1c], edi
jbe 0x40b0bd
push edi
xor ecx, ecx
lea esi, [ebp - 0x48]
lea edx, [ebp - 0x2c]
call fcn.004073b0
mov ecx, eax
mov byte [ebp - 4], 1
mov eax, dword [ecx + 0x10]
mov ebx, 1
push 0x435564
mov dword [ebp - 0x50], ebx
call fcn.00409300
mov byte [ebp - 0x49], bl
test eax, eax
jne 0x40b0c1
mov byte [ebp - 0x49], 0
mov dword [ebp - 4], 0
mov edi, 8
test bl, 1
je 0x40b0e3
cmp dword [ebp - 0x34], edi
jb 0x40b0e3
mov edx, dword [ebp - 0x48]
push edx
call fcn.00418932
add esp, 4
cmp byte [ebp - 0x49], 0
je 0x40b121
lea eax, [ebp - 0x48]
push 0x435564
push eax
lea ebx, [ebp - 0x2c]
call fcn.00408eb0
add esp, 8
mov edi, eax
mov esi, ebx
mov byte [ebp - 4], 2
call fcn.00402a70
cmp dword [ebp - 0x34], 8
jb 0x40b11c
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.00418932
add esp, 4
mov edi, 8
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x40b12c
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40b16a
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x40b142
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x40b16a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp dword [ebp - 0x18], edi
jb 0x40b166
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00418932
add esp, 4
mov eax, esi
jmp 0x40b17d
cmp dword [ebp - 0x18], edi
jb 0x40b17b
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00418932
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041893d
mov esp, ebp
pop ebp
ret
Function at 0x40cc90
Capabilities:
Create tcp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430d70
mov eax, dword fs:[0]
push eax
sub esp, 0x1e0
mov eax, dword [0x43c4c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x1ec]
push eax
push 0x202
mov edi, ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ebx, eax
xor esi, esi
cmp ebx, esi
je 0x40cd2b
mov dword [ebp - 0x20], esi
xor ecx, ecx
push 0x22
mov eax, str.NetworkHelper:_WSAStartup___failed
lea esi, [ebp - 0x30]
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], cx
call fcn.00406cf0
push ebx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, dword [edi + 4]
push eax
mov ebx, esi
call fcn.0040b7a0
cmp dword [ebp - 0x1c], 8
jb 0x40cd24
mov edx, dword [ebp - 0x30]
push edx
call fcn.00418932
add esp, 4
xor al, al
jmp 0x40ce76
push 6
push 1
push 2
mov byte [edi], 1
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 8], eax
cmp eax, 0xffffffff
jne 0x40cd99
xor eax, eax
mov dword [ebp - 0x20], esi
mov word [ebp - 0x30], ax
push 0x1e
mov eax, str.NetworkHelper:_socket___failed
lea esi, [ebp - 0x30]
mov dword [ebp - 0x1c], 7
call fcn.00406cf0
mov dword [ebp - 4], 1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, dword [edi + 4]
push eax
mov ebx, esi
call fcn.0040b7a0
cmp dword [ebp - 0x1c], 8
jb 0x40cd24
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.00418932
add esp, 4
xor al, al
jmp 0x40ce76
push 0x435780
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 8]
mov edx, 2
push eax
mov word [ebp - 0x40], dx
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [edi + 8]
push 0x10
lea ecx, [ebp - 0x40]
push ecx
push edx
mov word [ebp - 0x3e], ax
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x40ce2b
xor eax, eax
mov dword [ebp - 0x20], esi
mov word [ebp - 0x30], ax
push 0x1c
mov eax, str.NetworkHelper:_bind___failed
lea esi, [ebp - 0x30]
mov dword [ebp - 0x1c], 7
call fcn.00406cf0
mov dword [ebp - 4], 2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, dword [edi + 4]
push eax
mov ebx, esi
call fcn.0040b7a0
cmp dword [ebp - 0x1c], 8
jb 0x40cd24
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.00418932
add esp, 4
xor al, al
jmp 0x40ce76
mov edx, dword [edi + 8]
push 5
push edx
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x40ce74
mov eax, str.NetworkHelper:_listen___failed
lea ecx, [ebp - 0x5c]
call fcn.00406de0
mov dword [ebp - 4], 3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, dword [edi + 4]
push eax
lea ebx, [ebp - 0x5c]
call fcn.0040b7a0
mov ecx, ebx
call fcn.00406e20
xor al, al
jmp 0x40ce76
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041893d
mov esp, ebp
pop ebp
ret 4
Function at 0x40ceb0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430d20
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x43c4c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edi
lea ebx, [ebp - 0x4c]
xor esi, esi
jmp 0x40cef0
mov edx, dword [ebp + 0xc]
push edi
mov ecx, 4
sub ecx, esi
push ecx
push ebx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, edi
je 0x40cff5
cmp eax, 0xffffffff
je 0x40cfa6
add esi, eax
add ebx, eax
cmp esi, 4
jl 0x40cef0
mov eax, dword [ebp - 0x4c]
add eax, 2
push eax
call fcn.00418644
mov edi, eax
mov eax, dword [ebp - 0x4c]
lea edx, [eax + 2]
add esp, 4
mov ebx, edi
mov ecx, edi
test edx, edx
je 0x40cf4a
lea ecx, [ecx]
mov byte [ecx], 0
inc ecx
dec edx
jne 0x40cf40
mov eax, dword [ebp - 0x4c]
xor esi, esi
test eax, eax
jle 0x40cf7c
mov ecx, dword [ebp + 0xc]
push 0
sub eax, esi
push eax
push ebx
push ecx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x40cff5
cmp eax, 0xffffffff
je 0x40cff9
add ebx, eax
add esi, eax
mov eax, dword [ebp - 0x4c]
cmp esi, eax
jl 0x40cf50
xor ecx, ecx
cmp esi, eax
setne cl
lea eax, [ecx - 1]
and eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041893d
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov word [ebp - 0x2c], ax
push 0x1c
mov eax, str.NetworkHelper:_recv___failed
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
call fcn.00406cf0
mov dword [ebp - 4], edi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [ebp - 0x50]
mov edi, dword [ecx + 4]
push eax
mov ebx, esi
call fcn.0040b7a0
cmp dword [ebp - 0x18], 8
jb 0x40cff5
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00418932
add esp, 4
xor eax, eax
jmp 0x40cf88
mov eax, str.NetworkHelper:_recv___failed
lea ecx, [ebp - 0x48]
call fcn.00406de0
mov dword [ebp - 4], 1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, dword [ebp - 0x50]
mov edi, dword [edx + 4]
push eax
lea ebx, [ebp - 0x48]
call fcn.0040b7a0
cmp dword [ebp - 0x34], 8
jb 0x40cff5
mov eax, dword [ebp - 0x48]
push eax
call fcn.00418932
add esp, 4
xor eax, eax
jmp 0x40cf88
Function at 0x40d050
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430cdb
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
mov eax, dword [0x43c4c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 0xc]
push 0
push ebx
push eax
mov eax, dword [ebp + 8]
push eax
mov edi, edx
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40d0ef
xor ecx, ecx
xor ebx, ebx
push 0x23
mov eax, str.ERROR:_NetworkHelper:_send___failed
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
call fcn.00406cf0
mov dword [ebp - 4], ebx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, dword [edi + 4]
push eax
mov ebx, esi
call fcn.0040b7a0
cmp dword [ebp - 0x18], 8
jb 0x40d0e8
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00418932
add esp, 4
xor al, al
jmp 0x40d195
lea eax, [ebp - 0xf0]
push eax
call fcn.0040be60
push ebx
push ecx
push 0x435890
push ecx
push esi
push ecx
lea ecx, [ebp - 0xe0]
push str.SendResponse:
push ecx
mov dword [ebp - 4], 1
call fcn.0040d450
add esp, 0xc
push eax
call fcn.00402470
add esp, 4
push eax
call fcn.0040d450
add esp, 0xc
push eax
call fcn.00402470
lea ecx, [ebp - 0x48]
lea eax, [ebp - 0xf0]
call fcn.0040bf00
push eax
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [edi + 4]
mov edx, eax
call fcn.0040b4e0
cmp dword [ebp - 0x34], 8
jb 0x40d16d
mov edx, dword [ebp - 0x48]
push edx
call fcn.00418932
add esp, 4
xor eax, eax
lea ecx, [ebp - 0xf0]
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], ax
mov dword [ebp - 4], 0xffffffff
call fcn.0040b350
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041893d
mov esp, ebp
pop ebp
ret 8
Function at 0x40e630
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4308c0
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x43c4c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
push 0x44
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0xb4]
push 0
push eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x50], edx
call fcn.0041b6d0
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x58]
xor eax, eax
mov word [ebp - 0x84], ax
mov eax, 8
add esp, 0xc
mov dword [ebp - 0xb4], 0x44
mov dword [ebp - 0x88], 0x101
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x74], edx
cmp dword [esi + 0x14], eax
jb 0x40e6bc
mov ecx, dword [esi]
jmp 0x40e6be
mov ecx, esi
mov esi, dword [ebp - 0x50]
cmp dword [esi + 0x14], eax
jb 0x40e6ca
mov eax, dword [esi]
jmp 0x40e6cc
mov eax, esi
lea edx, [ebp - 0x68]
push edx
lea edx, [ebp - 0xb4]
push edx
xor ebx, ebx
push ebx
push ebx
push 0x10
push 1
push ebx
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40e762
mov word [ebp - 0x30], ax
push 0xd
mov eax, str.CreateProcess
lea esi, [ebp - 0x30]
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], ebx
call fcn.00406cf0
mov dword [ebp - 4], ebx
cmp dword [edi + 0x10], ebx
je 0x40e74c
lea ecx, [ebp - 0x4c]
push str.ERROR:
push ecx
mov ebx, esi
call fcn.00408eb0
add esp, 8
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [edi + 0x10]
mov edx, eax
call fcn.0040b4e0
cmp dword [ebp - 0x38], 8
jb 0x40e74c
mov edx, dword [ebp - 0x4c]
push edx
call fcn.00418932
add esp, 4
cmp dword [ebp - 0x1c], 8
jb 0x40e75e
mov eax, dword [ebp - 0x30]
push eax
call fcn.00418932
add esp, 4
xor al, al
jmp 0x40e782
mov ecx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x64]
mov edx, dword [ebp - 0x60]
push ebx
mov dword [edi], ecx
mov dword [edi + 4], eax
push esi
lea ecx, [edi + 0x14]
or eax, 0xffffffff
mov dword [edi + 8], edx
call fcn.00406970
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041893d
mov esp, ebp
pop ebp
ret 0xc