joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10024ef0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push ebx
xor ebx, ebx
mov dword [esp + 4], ebx
mov dword [eax], ebx
lea eax, [esp + 8]
push eax
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x10025082
push ebp
push edi
mov edi, dword [esp + 0x10]
test edi, edi
je 0x1002506c
push esi
mov eax, dword [edi + 4]
cmp eax, 2
jne 0x10024f3f
lea ebp, [eax + 0xe]
jmp 0x10024f4b
cmp eax, 0x17
jne 0x10024ff9
lea ebp, [eax + 5]
cmp dword [edi + 0x18], 0
je 0x10024ff9
mov eax, dword [edi + 0x10]
test eax, eax
je 0x10024ff9
cmp eax, ebp
jb 0x10024ff9
push 0x20
call dword [section..data]
mov esi, eax
add esp, 4
test esi, esi
je 0x10025061
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
push ebp
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ebp
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], 0
call dword [section..data]
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
je 0x10025050
push ebp
push dword [edi + 0x18]
push eax
call fcn.10045c90
mov eax, dword [edi + 0x14]
add esp, 0xc
test eax, eax
je 0x10024fe5
push eax
call dword [0x1009e00c]
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x10025036
mov eax, dword [esp + 0x10]
test ebx, ebx
cmove ebx, esi
test eax, eax
je 0x10024ff5
mov dword [eax + 0x1c], esi
mov dword [esp + 0x10], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x10024f32
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
pop esi
test eax, eax
je 0x10025018
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebp, ebp
je 0x10025068
push ebx
call fcn.10024eb0
mov eax, dword [esp + 0x2c]
add esp, 4
xor ebx, ebx
mov dword [eax], ebx
mov eax, ebp
pop edi
pop ebp
pop ebx
add esp, 0xc
ret
push dword [esi + 0x18]
mov ebp, 8
call dword [0x1009e004]
push esi
call dword [0x1009e004]
add esp, 8
jmp 0x10025008
push esi
mov ebp, 8
call dword [0x1009e004]
add esp, 4
jmp 0x10025008
mov ebp, 8
jmp 0x10025008
test ebx, ebx
jne 0x10025078
mov ebp, 0x2af9
push ebp
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x28]
pop edi
mov dword [eax], ebx
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x1002c4c0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x88
mov eax, dword [0x1009e024]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x9c]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 0x80
push eax
mov ebp, dword [edi + 0x424]
or esi, 0xffffffff
mov ebx, dword [edi]
push ebp
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1002c522
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x80
push eax
lea eax, [esp + 0x18]
push eax
push ebp
call dword [sym.imp.WS2_32.dll_accept]
mov esi, eax
push ebp
push edi
call fcn.10017b90
add esp, 8
cmp esi, 0xffffffff
jne 0x1002c549
push str.Error_accept__ing_server_connect
push ebx
call fcn.10017100
add esp, 8
mov eax, 0x1e
jmp 0x1002c5d5
push str.Connection_accepted_from_server_n
push ebx
call fcn.100171e0
push 1
mov byte [edi + 0x500], 0
push esi
mov dword [edi + 0x424], esi
call fcn.10020190
add esp, 0x10
mov byte [edi + 0x7e0], 1
cmp dword [ebx + 0x610], 0
je 0x1002c5d3
push 1
push ebx
call fcn.10010180
mov eax, dword [ebx + 0x610]
push 1
push esi
push dword [ebx + 0x614]
call eax
push 0
push ebx
mov esi, eax
call fcn.10010180
add esp, 0x1c
test esi, esi
je 0x1002c5d3
mov eax, dword [edi + 0x424]
cmp eax, 0xffffffff
je 0x1002c5c5
push eax
push edi
call fcn.10017b90
add esp, 8
mov dword [edi + 0x424], 0xffffffff
mov byte [edi + 0x4f3], 0
mov eax, 0x2a
jmp 0x1002c5d5
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1004138c
add esp, 0x88
ret

Function at 0x1002ea70
Capabilities:
Check http status code

Disassembly:
mov ecx, dword [esp + 8]
mov eax, 0x51eb851f
imul ecx
push ebx
sar edx, 5
push esi
mov eax, edx
xor esi, esi
push edi
mov edi, dword [esp + 0x10]
shr eax, 0x1f
add eax, edx
mov ebx, dword [edi]
cmp eax, 2
je 0x1002eaaa
push str.Couldnt_set_desired_mode
push ebx
call fcn.10017100
add esp, 8
lea eax, [esi + 0x11]
pop edi
pop esi
pop ebx
ret
cmp ecx, 0xc8
je 0x1002eac1
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push ebx
call fcn.100171e0
add esp, 0xc
mov eax, dword [esp + 0x18]
cmp eax, 0x13
jne 0x1002ead9
push edi
call fcn.1002e780
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebx
ret
cmp eax, 0x14
jne 0x1002eaed
push edi
call fcn.1002d7b0
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebx
ret
cmp eax, 0x15
jne 0x1002eb05
push 0xd
push 1
push edi
call fcn.1002e2f0
add esp, 0xc
mov esi, eax
pop edi
pop esi
pop ebx
ret
cmp eax, 0x16
jne 0x1002eb19
push 0xe
push 1
push edi
call fcn.1002e2f0
add esp, 0xc
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x10031150
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x1009e024]
xor eax, esp
mov dword [esp + 0x190], eax
push esi
mov esi, dword [esp + 0x19c]
lea eax, [esp + 4]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1003118e
push eax
push str.WSAStartup_failed___d_
push esi
call fcn.10017100
add esp, 0xc
jmp 0x100311c9
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [esp + 4]
cmp al, 2
jne 0x100311bb
shr eax, 8
test al, al
jne 0x100311bb
xor eax, eax
pop esi
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.1004138c
add esp, 0x194
ret
push str.insufficient_winsock_version_to_support_telnet
push esi
call fcn.10017100
add esp, 8
mov ecx, dword [esp + 0x194]
mov eax, 2
pop esi
xor ecx, esp
call fcn.1004138c
add esp, 0x194
ret

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

Disassembly:
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push edi
push 0
mov byte [esp + 0x16], al
lea eax, [esp + 0x14]
mov edi, dword [esi]
push 3
push eax
push dword [esi + 0x420]
mov byte [esp + 0x20], 0xff
mov byte [esp + 0x21], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x10031aac
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.10017100
add esp, 0xc
push dword [esp + 0x18]
push ebx
push str.SENT
push dword [esi]
call fcn.10031370
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x10031be0
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
cmp dword [esp + 0xc], 0x1f
mov eax, dword [esp + 8]
push ebx
mov eax, dword [eax]
mov dword [esp + 4], eax
mov ebx, dword [eax + 0x14c]
jne 0x10031d2b
push ebp
push edi
lea ebp, [ebx + 0x1cb0]
lea edi, [ebx + 0x1eb0]
mov dword [edi], ebp
cmp ebp, edi
jae 0x10031c17
mov byte [ebp], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x10031c22
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x10031c2d
mov byte [eax], 0x1f
inc dword [edi]
movzx eax, word [ebx + 0x1ca8]
push esi
mov esi, dword [sym.imp.WS2_32.dll_htons]
push eax
call esi
movzx eax, ax
mov dword [esp + 0x1c], eax
movzx eax, word [ebx + 0x1caa]
push eax
call esi
mov ecx, dword [esp + 0x1c]
movzx edx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x10031c60
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x10031c6a
mov byte [eax], ch
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x10031c74
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x10031c7e
mov byte [eax], dh
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x10031c89
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x10031c94
mov byte [eax], 0xf0
inc dword [edi]
mov eax, dword [edi]
mov esi, dword [esp + 0x10]
mov dword [ebx + 0x1eb4], eax
sub eax, ebp
sub eax, 2
mov dword [edi], ebp
push eax
lea eax, [ebx + 0x1cb2]
push eax
push 0x3e
push esi
call fcn.10031480
mov edi, dword [esp + 0x28]
add esp, 0x10
push 0
push 3
push ebp
push dword [edi + 0x420]
call dword [sym.imp.WS2_32.dll_send]
mov ebp, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jns 0x10031cea
call ebp
push eax
push str.Sending_data_failed___d_
push esi
call fcn.10017100
add esp, 0xc
push 4
lea eax, [ebx + 0x1cb3]
push eax
push edi
call fcn.10031ad0
add esp, 0xc
lea eax, [ebx + 0x1cb7]
push 0
push 2
push eax
push dword [edi + 0x420]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x10031d28
call ebp
push eax
push str.Sending_data_failed___d_
push esi
call fcn.10017100
add esp, 0xc
pop esi
pop edi
pop ebp
pop ebx
pop ecx
ret
Function at 0x10032d40
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x8c
mov eax, dword [0x1009e024]
xor eax, esp
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x90]
push ebx
push ebp
push esi
mov ebx, dword [eax]
push edi
mov edi, dword [eax + 0x718]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], 0x80
lea eax, [esp + 0x1c]
push eax
mov eax, dword [edi + 0x154]
push 0
add eax, 4
push eax
push dword [edi + 0x15c]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [edi + 0x148], 0
mov dword [edi + 0x14c], eax
jne 0x10032dc9
push dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
lea eax, [edi + 0xc8]
push eax
call fcn.10045c90
mov eax, dword [esp + 0x20]
add esp, 0xc
mov dword [edi + 0x148], eax
mov esi, dword [edi + 0x14c]
cmp esi, 4
jge 0x10032e04
push str.Received_too_short_packet
push ebx
call fcn.10017100
add esp, 8
mov dword [edi + 0xc], 7
xor eax, eax
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1004138c
add esp, 0x8c
ret
mov ecx, dword [edi + 0x15c]
movzx eax, byte [ecx]
shl ax, 8
movzx edx, ax
movzx eax, byte [ecx + 1]
or edx, eax
mov dword [edi + 0xc], edx
add edx, 0xfffffffd
cmp edx, 3
ja case.default.0x10032e29
jmp dword [edx*4 + 0x10032f48]
cmp esi, 4
jle case.0x10032e29.4
movzx eax, byte [ecx + 2]
mov ebp, dword [esp + 0x10]
shl ax, 8
movzx edx, ax
movzx eax, byte [ecx + 3]
or edx, eax
movzx eax, word [edi + 0x40]
inc eax
and eax, 0xffff
cmp eax, edx
jne 0x10032f21
lea eax, [esi - 4]
push eax
lea eax, [ecx + 4]
push eax
push 1
push ebp
call fcn.10017040
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10032e8b
push 5
push edi
call fcn.100337f0
add esp, 8
mov eax, esi
jmp 0x10032deb
mov eax, dword [edi + 0x14c]
sub eax, 4
cdq
add dword [ebx + 0x98], eax
adc dword [ebx + 0x9c], edx
push dword [ebx + 0x9c]
push dword [ebx + 0x98]
push ebx
call fcn.10020220
add esp, 0xc
jmp 0x10032f21
mov edx, ecx
lea ebp, [ecx + 4]
add esi, 0xfffffffc
push esi
push ebp
movzx eax, byte [edx + 2]
shl ax, 8
movzx ecx, ax
movzx eax, byte [edx + 3]
or ecx, eax
mov dword [edi + 8], ecx
call fcn.100329c0
add esp, 8
cmp eax, esi
jae case.0x10032e29.4
push ebp
push str.TFTP_error:__s_n
push ebx
call fcn.100171e0
jmp 0x10032f1a
lea eax, [esi - 2]
push eax
lea eax, [ecx + 2]
push eax
push edi
call fcn.10032ad0
add esp, 0xc
test eax, eax
je case.0x10032e29.4
jmp 0x10032deb
push str.Internal_error:_Unexpected_packet
push 0x10097fa0
push ebx
call fcn.10017100
add esp, 0xc
mov ebp, dword [esp + 0x10]
push ebp
call fcn.10020520
add esp, 4
test eax, eax
je 0x10032de9
push 5
push edi
call fcn.100337f0
add esp, 8
mov eax, 0x2a
jmp 0x10032deb
Function at 0x10041260
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [section..data]
mov edi, eax
add esp, 4
test edi, edi
jne 0x10041287
pop edi
pop esi
pop ecx
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [esp + 0x1c]
mov dword [edi + 8], eax
push ebp
cmp ebx, dword [esi + 0x10]
jbe 0x100412cf
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [esp + 0x24]
push dword [edi + 4]
call eax
mov ebp, dword [edi + 8]
push dword [edi + 4]
add ebp, dword [esi + 0xc]
mov eax, dword [esi + 8]
push ebp
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [esp + 0x20], ebx
jmp 0x100412d3
mov ebp, dword [esp + 0x1c]
push dword [edi + 4]
mov eax, dword [esi]
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [esp + 0x28]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x10041333
mov dword [esp + 0x10], eax
mov ebx, eax
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x18], al
lea eax, [esp + 0x18]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x24], al
lea eax, [esp + 0x24]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
dec ebx
jne 0x100412f4
mov ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0x10]
jae 0x10041367
jmp 0x10041340
mov eax, dword [esi + 4]
push 1
push 0x100814e6
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x100814e7
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x10041340
pop ebp
pop ebx
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x10057733
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100575b2

Function at 0x1005a8b8
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1005a578

Function at 0x10060581
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x401400
Capabilities:
Create directory

Disassembly:
sub esp, 0x10c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x11c]
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x1c]
mov edx, ecx
mov ecx, 0x40
cmp edx, 0xff
mov dword [esp + 0x10], edx
rep stosd dword es:[edi], eax
jle 0x40143e
mov dword [esp + 0x10], 0xff
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], 0
test eax, eax
jle 0x4014cd
lea ecx, [esp + 0x1c]
lea edi, [esp + 0x1d]
lea ebx, [esp + 0x1e]
sub ecx, esi
lea ebp, [esp + 0x1f]
sub edi, esi
sub ebx, esi
mov dword [esp + 0x14], ecx
sub ebp, esi
mov al, byte [esi]
cmp al, 0x5c
je 0x401479
cmp al, 0x2f
je 0x401479
mov byte [ecx + esi], al
jmp 0x4014bb
mov byte [ecx + esi], 0x5c
lea eax, [esp + 0x1c]
mov byte [edi + esi], 0x2a
mov byte [ebx + esi], 0x2e
push eax
mov byte [esi + ebp], 0x2a
call fcn.004013c0
add esp, 4
mov byte [edi + esi], 0
test al, al
mov byte [ebx + esi], 0
mov byte [esi + ebp], 0
jne 0x4014b7
lea ecx, [esp + 0x1c]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4014cd
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
inc eax
inc esi
cmp eax, edx
mov dword [esp + 0x18], eax
jl 0x40146a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret

Function at 0x4014e0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x200
lea eax, [esp]
push esi
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
push 0x25
push 0x25
push 0x42b094
push eax
call esi
add esp, 0x10
lea ecx, [esp + 0x104]
lea edx, [esp + 4]
push 0x100
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov eax, dword [esp + 0x208]
lea ecx, [esp + 0x104]
push eax
push ecx
lea edx, [esp + 0xc]
push 0x42b084
push edx
call esi
lea eax, [esp + 0x14]
push eax
call fcn.00401400
mov edx, dword [esp + 0x220]
lea ecx, [esp + 0x18]
push ecx
push 0x42b080
push edx
call esi
add esp, 0x20
pop esi
add esp, 0x200
ret
Function at 0x4034d0
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 0x1c]
sub esp, 0x554
test eax, eax
push ebx
push ebp
push esi
push edi
jne 0x4034ef
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x554
ret
mov ebp, dword [esp + 0x578]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
mov ax, word [esp + 0x57c]
mov edi, ebp
mov word [esp + 0x50], ax
or ecx, 0xffffffff
xor eax, eax
xor esi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x20], 0x44
mov dword [esp + 0x4c], 1
je 0x403532
mov esi, ebp
mov edi, dword [esp + 0x574]
mov ebx, dword [esp + 0x570]
push edi
push ebx
lea ecx, [esp + 0x16c]
push str._s__s
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea edx, [esp + 0x10]
lea eax, [esp + 0x20]
lea ecx, [esp + 0x164]
push edx
push eax
push esi
push 0
push 0x230
push 0
push 0
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4036a4
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x14]
push eax
call esi
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [esp + 0x18]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x64]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x64]
push ecx
push edx
call fcn.00402c80
lea edi, [esp + 0x6c]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x4035e1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x554
ret
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.MSVCRT.dll__strlwr]
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
lea ecx, [esp + 0x68]
push 0x42b3c8
push ecx
call esi
add esp, 0xc
test eax, eax
jne 0x403636
lea edx, [esp + 0x64]
push str..bat
push edx
call esi
add esp, 8
test eax, eax
jne 0x403636
lea eax, [esp + 0x64]
push str..cmd
push eax
call esi
add esp, 8
test eax, eax
jne 0x403636
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x554
ret
cmp byte [esp + 0x65], 0x3a
jne 0x403642
mov byte [esp + 0x64], 0x63
lea ecx, [esp + 0x64]
push str.debug
push ecx
call esi
add esp, 8
test eax, eax
jne 0x403676
lea edx, [esp + 0x64]
push str.player.exe
push edx
call esi
add esp, 8
test eax, eax
jne 0x403676
lea eax, [esp + 0x64]
push 0x1b
push eax
push str._s_c
jmp 0x403682
lea ecx, [esp + 0x64]
push 0x1b
push ecx
push 0x42b394
push 0x42d28c
call dword [sym.imp.MSVCRT.dll_sprintf]
mov eax, dword [esp + 0x28]
add esp, 0x10
mov dword [0x42d51c], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x554
ret
mov edx, dword [esp + 0x57c]
mov eax, dword [esp + 0x56c]
mov ecx, dword [esp + 0x568]
push edx
push ebp
push edi
push ebx
push eax
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov edx, 0x20
pop edi
cmp edx, eax
pop esi
sbb eax, eax
pop ebp
inc eax
pop ebx
add esp, 0x554
ret
Function at 0x41d910
Capabilities:
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x425158
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x1457c]
mov dword [esp + 0x38], 0
test eax, eax
je 0x41d945
call fcn.0041d850
mov ecx, esi
call fcn.0041d880
test eax, eax
jne 0x41d974
lea ecx, [esp + 0x40]
mov dword [esp + 0x38], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 8
lea eax, [esp + 0x40]
lea ecx, [esi + 0x8e0]
push eax
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esp + 0x40]
mov ebx, dword [esp + 0x44]
push ecx
mov dword [esi + 0x8e4], ebx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x41d9c3
lea ecx, [esp + 0x40]
mov dword [esp + 0x38], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 8
mov edx, dword [eax + 0xc]
push edi
push ebx
mov eax, dword [edx]
mov edi, dword [eax]
mov dword [esp + 0x10], edi
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esp + 0xf]
mov edx, dword [esp + 0xe]
mov eax, dword [esp + 0xd]
and ecx, 0xff
and edx, 0xff
push ecx
and eax, 0xff
push edx
and edi, 0xff
push eax
push edi
lea ecx, [esp + 0x24]
push 0x42b388
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov eax, dword [esi + 0x14584]
add esp, 0x18
mov ecx, dword [eax + 0x2c]
mov edx, dword [eax + 0x28]
mov edi, dword [eax + 0x30]
push ecx
push edx
mov edx, dword [eax + 0x34]
mov eax, dword [eax + 0x24]
push edx
push edi
push eax
lea ecx, [esp + 0x28]
push ebx
push ecx
mov ecx, dword [esi + 8]
call fcn.004226c0
test eax, eax
pop edi
jne 0x41da63
lea ecx, [esp + 0x40]
mov dword [esp + 0x38], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 8
mov ecx, dword [esi + 8]
push 0x15f90
call fcn.00422570
lea ecx, [esp + 0x40]
mov dword [esi + 0x1457c], 1
mov dword [esp + 0x38], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x30]
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret 8

Function at 0x41dc20
Capabilities:
Check mutex on windows

Disassembly:
push str.NetbladeIf_Win32_Instance_Mutex
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
jne 0x41dc34
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
setne cl
mov eax, ecx
ret
Function at 0x2183700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0218378f
jae 0x218370e
xor ecx, ecx
call fcn.0218378f
jae 0x218373d
xor eax, eax
call fcn.0218378f
jae 0x218374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0218378f
adc al, al
jae 0x218372f
jne 0x2183779
stosb byte es:[edi], al
jmp 0x2183711
call fcn.0218379b
sub ecx, ebx
jne 0x2183756
call fcn.02183799
jmp 0x2183775
lodsb al, byte [esi]
shr eax, 1
je 0x2183783
adc ecx, ecx
jmp 0x2183772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.02183799
cmp eax, 0x7d00
jae 0x2183772
cmp ah, 5
jae 0x2183773
cmp eax, 0x7f
ja 0x2183774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x2183711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x402e70
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ae281
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [str._o86]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 1
push eax
mov eax, esp
sub eax, esp
je 0x402eac
call dword [0xd04d8d58]
pop eax
lea ecx, [ebp - 0x30]
call fcn.00479710
mov byte [ebp - 4], 2
push 0x4b77c4
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.0040e470
add esp, 0xc
mov byte [ebp - 4], 3
push 0x4b77c8
lea ecx, [ebp - 0x14]
call fcn.0040e180
lea edx, [ebp + 0xc]
push edx
lea ecx, [ebp - 0x14]
call fcn.0040e160
push 0
lea ecx, [ebp - 0x14]
call fcn.0040ff40
push eax
lea ecx, [ebp - 0x30]
call fcn.004797ca
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x402f60
lea ecx, [ebp - 0x30]
call fcn.004794a9
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x30]
call fcn.0040fcb0
test eax, eax
jne 0x402f5e
mov byte [ebp - 4], 4
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x30]
call fcn.00479978
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
call fcn.0040ff40
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x34]
call fcn.0040fec0
jmp 0x402f57
mov dword [ebp - 4], 3
jmp 0x402f01
lea ecx, [ebp - 0x30]
call fcn.004793c3
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.0040fec0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.00479736
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0040fec0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0040fec0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret