joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cf0b0
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push 0
call sub.ws2_32.dll_select
test eax, eax
setg byte [ebp - 9]
cmp byte [ebp - 9], 0
je 0x4cf17c
mov esi, ebx
dec esi
test esi, esi
jl 0x4cf17c
inc esi
xor edi, edi
mov edx, dword [ebp - 4]
add edx, edi
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 4]
call fcn.004944d0
mov ebx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
push ebx
call sub.ws2_32.dll___WSAFDIsSet
test eax, eax
setne al
test al, al
je 0x4cf14e
push 2
push 1
lea eax, [ebp - 0xa]
push eax
push ebx
call sub.ws2_32.dll_recv
dec eax
jne 0x4cf13f
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 8]
mov edx, ebx
call fcn.00494364
jmp 0x4cf174
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 0xc]
mov edx, ebx
call fcn.00494364
jmp 0x4cf174
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
push ebx
call sub.ws2_32.dll___WSAFDIsSet
test eax, eax
setne al
test al, al
je 0x4cf174
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 0xc]
mov edx, ebx
call fcn.00494364
inc edi
dec esi
jne 0x4cf0f4
movzx eax, byte [ebp - 9]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
xor edx, edx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4cfdd1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [esi + 0x28]
cmp eax, 0xffffffff
setne bl
test bl, bl
je 0x4cfdb9
lea edx, [ebp - 3]
push edx
push 0
lea edx, [ebp - 2]
xor ecx, ecx
call dword [0x5059ac]
test al, al
je 0x4cfd51
cmp byte [ebp - 3], 0
je 0x4cfd55
xor ebx, ebx
jmp 0x4cfd57
mov bl, 1
test byte [ebp - 2], bl
je 0x4cfd71
push 2
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [esi + 0x28]
push eax
call sub.ws2_32.dll_recv
dec eax
sete bl
test bl, bl
jne 0x4cfdb9
lea eax, [ebp - 8]
push eax
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0x11
movzx eax, word [esi + 0x10]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0xc], 0
lea edx, [ebp - 0x18]
mov ecx, 1
mov eax, 0x4cfdec
call fcn.0042279c
mov edx, dword [ebp - 8]
mov ecx, 0x4cfe2c
mov eax, 7
call fcn.004bbb28
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x10]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cfdd8
lea eax, [ebp - 8]
call fcn.0040a088
pop eax
jmp eax
Function at 0x4d0954
Capabilities:
Set socket configuration

Disassembly:
push ebx
push ecx
mov ebx, eax
xor eax, eax
mov dword [ebx + 0x34], eax
mov eax, dword [ebx + 0x30]
call fcn.00407294
xor eax, eax
mov dword [ebx + 0x30], eax
mov eax, dword [ebx + 0x28]
cmp eax, 0xffffffff
je 0x4d09af
cmp byte [ebx + 0x14], 0
je 0x4d09a0
mov word [esp], 1
movzx edx, word [ebx + 0x16]
mov word [esp + 2], dx
push 4
lea edx, [esp + 4]
push edx
push 0x80
push 0xffff
push eax
call sub.ws2_32.dll_setsockopt
jmp 0x4d09a8
push 2
push eax
call sub.ws2_32.dll_shutdown
mov eax, ebx
call fcn.004cfe68
pop edx
pop ebx
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov esi, eax
xor eax, eax
push ebp
push 0x4d0a9d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [esi + 0x34], 0
jbe 0x4d09de
mov bl, 1
jmp 0x4d0a85
mov eax, dword [esi + 0x28]
cmp eax, 0xffffffff
jne 0x4d09ed
xor ebx, ebx
jmp 0x4d0a85
xor ebx, ebx
mov byte [ebp - 2], 0
lea ecx, [ebp - 4]
push ecx
push edx
lea edx, [ebp - 3]
xor ecx, ecx
call dword [0x5059ac]
test al, al
je 0x4d0a35
cmp byte [ebp - 4], 0
jne 0x4d0a35
cmp byte [ebp - 3], 0
je 0x4d0a31
push 2
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [esi + 0x28]
push eax
call sub.ws2_32.dll_recv
dec eax
jne 0x4d0a2b
mov bl, 1
jmp 0x4d0a39
mov byte [ebp - 2], 1
jmp 0x4d0a39
xor ebx, ebx
jmp 0x4d0a39
mov byte [ebp - 2], 1
cmp byte [ebp - 2], 0
je 0x4d0a85
lea eax, [ebp - 8]
push eax
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0x11
movzx eax, word [esi + 0x10]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0xc], 0
lea edx, [ebp - 0x18]
mov ecx, 1
mov eax, 0x4d0ab8
call fcn.0042279c
mov edx, dword [ebp - 8]
mov ecx, 0x4d0af8
mov eax, 7
call fcn.004bbb28
xor ebx, ebx
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x10]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d0aa4
lea eax, [ebp - 8]
call fcn.0040a088
pop eax
jmp eax
Function at 0x4d0bf4
Capabilities:
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov edi, ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4d0da5
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x18]
test al, al
je 0x4d0d8d
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], 4
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x1001
push 0xffff
mov eax, dword [esi + 0x28]
push eax
call sub.ws2_32.dll_getsockopt
test eax, eax
jne 0x4d0d75
cmp edi, dword [ebp - 0x10]
jle 0x4d0d75
mov dword [ebp - 0x10], edi
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x1001
push 0xffff
mov eax, dword [esi + 0x28]
push eax
call sub.ws2_32.dll_setsockopt
jmp 0x4d0d75
mov byte [ebp - 0x15], 0
mov byte [ebp - 0x16], 0
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x16]
push eax
push 0x5dc
lea ecx, [ebp - 0x15]
xor edx, edx
mov eax, dword [ebp - 0x1c]
call dword [0x5059ac]
mov byte [ebp - 0x1d], al
movzx ebx, byte [ebp - 0x1d]
test byte [ebp - 0x15], bl
je 0x4d0d06
cmp byte [ebp - 0x16], 0
jne 0x4d0d06
push 0
push edi
mov eax, dword [ebp - 4]
push eax
mov eax, dword [esi + 0x28]
push eax
call sub.ws2_32.dll_send
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x4d0ce8
sub edi, dword [ebp - 8]
mov eax, dword [ebp - 8]
add dword [ebp - 4], eax
mov eax, dword [ebp - 8]
cdq
add dword [esi + 0x38], eax
adc dword [esi + 0x3c], edx
jmp 0x4d0d1b
cmp dword [ebp - 8], 0
jge 0x4d0cf7
mov dword [ebp - 0xc], 0xb
jmp 0x4d0d1b
inc dword [ebp - 0xc]
push 0x5dc
call sub.kernel32.dll_Sleep
jmp 0x4d0d1b
xor bl, 1
or bl, byte [ebp - 0x16]
je 0x4d0d11
inc dword [ebp - 0xc]
push 0x5dc
call sub.kernel32.dll_Sleep
cmp dword [ebp - 0xc], 0xa
jle 0x4d0d75
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0
lea eax, [ebp - 0x28]
push eax
push 0
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0x11
movzx eax, word [esi + 0x10]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0
lea edx, [ebp - 0x3c]
mov ecx, 1
mov eax, 0x4d0dc4
call fcn.0042279c
mov edx, dword [ebp - 0x2c]
mov ecx, 0x4d0e04
mov eax, 7
call fcn.004bbb40
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x10]
test edi, edi
jle 0x4d0d88
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x18]
test al, al
jne 0x4d0c83
test edi, edi
setle bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d0dac
lea eax, [ebp - 0x2c]
call fcn.0040a088
pop eax
jmp eax
Function at 0x4f1d48
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4f1f0d
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
xor edx, edx
push ebp
push 0x4f1edc
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, 0x4f1f28
call fcn.004f11f4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4f1ebf
mov dl, 1
mov eax, dword [0x47365c]
call fcn.0049830c
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x4f1eb8
push dword fs:[edx]
mov dword fs:[edx], esp
call fcn.0042d240
mov ecx, eax
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x78]
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x4f1ea0
inc esi
xor ebx, ebx
lea ecx, [ebp - 0xc]
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.00496554
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4f1dfa
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x4f1e98
lea ecx, [ebp - 0x10]
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.00497450
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4f1e1b
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x4f1e98
lea ecx, [ebp - 0x24]
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.00496554
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0x11
lea ecx, [ebp - 0x28]
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.00497450
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0x11
lea eax, [ebp - 0x20]
push eax
push 1
mov ecx, 0x4f1f50
mov edx, 0x4f1f68
mov eax, 7
call fcn.004bbb40
lea ecx, [ebp - 0x2c]
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.00497450
mov eax, dword [ebp - 0x2c]
call fcn.0040abe8
push eax
lea ecx, [ebp - 0x30]
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.00496554
mov eax, dword [ebp - 0x30]
call fcn.0040abe8
push eax
call sub.kernel32.dll_SetEnvironmentVariableW
inc ebx
dec esi
jne 0x4f1de1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f1ebf
mov eax, dword [ebp - 8]
call fcn.0040841c
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f1ee3
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [ebp - 4], edx
call fcn.0040841c
pop eax
jmp eax
Function at 0x4f1fa0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
xor edx, edx
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x70], edx
mov dword [ebp - 0x6c], edx
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x58], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4f226b
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x4f2288
mov eax, 3
call fcn.004bbb30
mov dl, 1
mov eax, dword [0x4cae1c]
call fcn.004cbe54
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4f2154
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.004cbf3c
mov edx, 0x4f22b4
mov eax, dword [ebp - 0x10]
call fcn.004cbfa0
test al, al
jne 0x4f213c
mov ecx, 0x4f22f0
mov edx, 0x4f2288
mov eax, 3
call fcn.004bbb28
lea eax, [ebp - 0x58]
mov ecx, 0x4f2314
mov edx, dword [ebp - 4]
call fcn.0040ae34
mov eax, dword [ebp - 0x58]
mov dl, 1
call fcn.00421af4
test al, al
jne 0x4f20c3
mov ecx, 0x4f2334
mov edx, 0x4f2288
mov eax, 7
call fcn.004bbb28
push 0x4f236c
push 0xa
mov ecx, dword [0x50a63c]
mov dl, 1
mov eax, dword [0x476fe8]
call fcn.004990a4
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x4f20bc
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x5c]
mov ecx, 0x4f2314
mov edx, dword [ebp - 4]
call fcn.0040ae34
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x14]
call fcn.00498e80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f20c3
mov eax, dword [ebp - 0x14]
call fcn.0040841c
pop eax
jmp eax
lea eax, [ebp - 0x54]
xor ecx, ecx
mov edx, 0x3c
call fcn.00407d90
mov dword [ebp - 0x54], 0x3c
mov dword [ebp - 0x50], 0x40
lea eax, [ebp - 0x60]
mov ecx, 0x4f2314
mov edx, dword [ebp - 4]
call fcn.0040ae34
mov eax, dword [ebp - 0x60]
call fcn.0040abe8
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x54]
push eax
call sub.shell32.dll_ShellExecuteExW
test eax, eax
je 0x4f2128
push 0x3e8
call sub.kernel32.dll_Sleep
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_GetExitCodeProcess
cmp dword [ebp - 0xc], 0x103
je 0x4f2108
mov ecx, 0x4f22f0
mov edx, 0x4f2288
mov eax, 5
call fcn.004bbb28
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f215b
mov eax, dword [ebp - 0x10]
call fcn.0040841c
pop eax
jmp eax
Function at 0x4f5868
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4f59d4
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetEnvironmentStringsW
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x4f58ed
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0xc]
jmp 0x4f58a3
add eax, 2
cmp word [eax], 0
jne 0x4f58a0
lea edx, [eax + 2]
cmp word [edx], 0
jne 0x4f58a0
sub eax, dword [ebp - 0xc]
add eax, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
call fcn.00407278
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
call fcn.00407790
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f58f4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_FreeEnvironmentStringsW
pop eax
jmp eax
Function at 0x408516
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4091c0
push 0x4086c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x40f51c], 0xffffffff
or dword [0x40f520], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x40f518]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x40f514]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x40f524], eax
call fcn.00408665
cmp dword [0x40ee60], 0
jne 0x408599
push 0x408662
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.0040864a
push 0x40b00c
push 0x40b008
call sub.MSVCRT.dll__initterm
mov eax, dword [0x40f510]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x40f50c]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___wgetmainargs]
push 0x40b004
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___winitenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call section..text
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x1007201
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x100e220
call fcn.01007534
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x10104ec
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1007016
cmp eax, esi
jne 0x1007009
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x1007019
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1006ff0
xor esi, esi
inc esi
mov eax, dword [0x10104e8]
cmp eax, esi
jne 0x100702c
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1007067
mov eax, dword [0x10104e8]
test eax, eax
jne 0x1007061
mov dword [0x10104e8], esi
push 0x1001284
push 0x1001278
call fcn.01006f6d
pop ecx
pop ecx
test eax, eax
je 0x1007067
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x1007131
mov dword [0x1010090], esi
mov eax, dword [0x10104e8]
cmp eax, esi
jne 0x100708b
push 0x1001274
push 0x100126c
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x10104e8], 2
cmp dword [ebp - 0x1c], ebx
jne 0x1007098
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x10104f0], ebx
je 0x10070b9
push 0x10104f0
call fcn.010074a9
pop ecx
test eax, eax
je 0x10070b9
push ebx
push 2
push ebx
call dword [0x10104f0]
push dword [0x1010078]
push dword [0x101007c]
push dword [0x1010074]
call fcn.01006529
add esp, 0xc
mov dword [0x101008c], eax
cmp dword [0x1010080], ebx
jne 0x1007117
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x1010090], ebx
jne 0x1007125
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x101008c]
call fcn.01007579
ret
call fcn.01007681
jmp 0x1006fce
Function at 0x1009b3f
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa08
mov eax, dword [0x101003c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
xor esi, esi
mov dword [ebp - 0x9e4], eax
push 7
xor eax, eax
pop ecx
lea edi, [ebp - 0xa04]
mov dword [ebp - 0xa08], esi
mov dword [ebp - 0x9e8], edx
mov dword [ebp - 0x9e0], esi
mov dword [ebp - 0x9dc], esi
rep stosd dword es:[edi], eax
mov word [ebp - 0x46], ax
cmp dword [ebp - 0x9e4], esi
je 0x1009cc3
cmp ebx, esi
je 0x1009cc3
mov eax, dword [ebx]
cmp eax, esi
je 0x1009bbc
cmp eax, 2
jb 0x1009cc3
cmp edx, esi
je 0x1009cc3
cmp dword [0x10103cc], esi
jne 0x1009bf0
lea eax, [ebp - 0x9d8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1009be6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
jmp 0x1009ccf
mov dword [0x10103cc], 1
lea eax, [ebp - 0x9dc]
push eax
lea eax, [ebp - 0xa08]
push eax
push esi
push dword [ebp - 0x9e4]
call dword [sym.imp.WS2_32.dll_GetAddrInfoW]
test eax, eax
jne 0x1009cd5
mov esi, dword [ebp - 0x9dc]
xor edi, edi
jmp 0x1009c5d
push 4
xor eax, eax
mov word [ebp - 0x848], ax
push 0x20
lea eax, [ebp - 0x44]
push eax
push 0x401
lea eax, [ebp - 0x848]
push eax
push dword [esi + 0x10]
push dword [esi + 0x18]
call dword [sym.imp.WS2_32.dll_GetNameInfoW]
cmp eax, edi
je 0x1009c63
cmp eax, 0x2afc
jne 0x1009c5a
cmp word [ebp - 0x848], di
jne 0x1009c63
mov esi, dword [esi + 0x1c]
cmp esi, edi
jne 0x1009c1d
jmp 0x1009caf
lea esi, [ebp - 0x848]
cmp dword [ebp + 0x14], edi
jne 0x1009c80
mov eax, esi
push 0x1001330
push eax
call dword [sym.imp.msvcrt.dll_wcstok]
pop ecx
pop ecx
mov esi, eax
push edi
push esi
call fcn.01007c44
mov ecx, dword [ebx]
inc eax
cmp ecx, eax
jae 0x1009c9c
mov dword [ebx], eax
mov dword [ebp - 0x9e0], 1
jmp 0x1009caf
push ecx
push esi
push dword [ebp - 0x9e8]
call fcn.010085b6
mov dword [ebp - 0x9e0], eax
push dword [ebp - 0x9dc]
call dword [sym.imp.WS2_32.dll_FreeAddrInfoW]
mov eax, dword [ebp - 0x9e0]
jmp 0x1009cd7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1009cd5
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01007233
leave
ret 0x10
Function at 0x100a0f1
Capabilities:
Connect network resource

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
je 0x100a24c
push esi
call fcn.01009eb8
cmp eax, 1
je 0x100a24c
push esi
mov dword [ebp + 8], esi
call fcn.01009a46
cmp eax, 1
jne 0x100a12b
add esi, 4
mov dword [ebp + 8], esi
push dword [ebp + 8]
call fcn.0100a01f
test eax, eax
jne 0x100a147
call fcn.01007a15
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100a280
cmp dword [ebp + 0x14], ebx
je 0x100a170
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x100a170
push dword [ebp + 0x14]
push dword [ebp + 8]
push 0x10018fc
push 2
call fcn.01008e01
add esp, 0x10
jmp 0x100a182
push dword [ebp + 8]
push 0x10018e0
push 1
call fcn.01008e01
add esp, 0xc
test eax, eax
jne 0x100a1a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100a198
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.01007a15
push 8
pop eax
jmp 0x100a280
call fcn.01007982
cmp eax, ebx
jne 0x100a1b7
push 0x12
call fcn.01007911
jmp 0x100a1c1
push ebx
push ebx
push eax
push 0x12
call fcn.01008b10
mov edx, eax
cmp edx, ebx
je 0x100a186
push edi
push 8
pop ecx
push ebx
push dword [ebp + 0xc]
xor eax, eax
push dword [ebp + 0x10]
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], edx
call sub.MPR.dll_WNetAddConnection2W
mov esi, eax
pop edi
cmp esi, ebx
je 0x100a212
cmp esi, 0x4b8
je 0x100a20b
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.01007a15
jmp 0x100a27a
call fcn.01008e93
jmp 0x100a27a
push ebx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 8]
call fcn.01009ced
push eax
call fcn.01007b5d
test eax, eax
jne 0x100a27a
push dword [ebp + 8]
call fcn.0100a0d4
push 0x1580
call fcn.01009994
push eax
call fcn.010079ae
mov esi, 0x4b8
jmp 0x100a27a
cmp dword [ebp + 0xc], ebx
je 0x100a27e
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x100a27e
push 0x157e
call fcn.01009994
push eax
call fcn.010079ae
mov esi, 0xa0010001
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
jmp 0x100a280
xor eax, eax
pop esi
pop ebx
leave
ret 0x10
Function at 0x10001f10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10028c59
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x1004f970]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
push esi
call fcn.100016e0
lea eax, [esi + 0x18]
push eax
mov dword [esp + 0x20], 0
call fcn.100016e0
lea eax, [esi + 0x30]
push eax
mov byte [esp + 0x24], 1
call fcn.100016e0
add esp, 0xc
mov edi, dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
push 0
push 1
push 1
push 0
mov byte [esp + 0x28], 2
call edi
mov dword [esi + 0x48], eax
test eax, eax
jne 0x10001f8e
push 0x72
push str.E:_Library_buildlog4cplus_1.1.2includelog4cplus_thread_impl_syncprims_win32.h
push 0x1002f700
call sym.log4cplusU.dll_void___cdecl_log4cplus::thread::impl::syncprims_throw_exception_char_const__const__char_const__const__int_
push 0
push 1
push 1
push 0
mov byte [esp + 0x28], 3
mov dword [esi + 0x4c], 0
call edi
mov dword [esi + 0x50], eax
test eax, eax
jne 0x10001fbc
push 0x72
push str.E:_Library_buildlog4cplus_1.1.2includelog4cplus_thread_impl_syncprims_win32.h
push 0x1002f700
call sym.log4cplusU.dll_void___cdecl_log4cplus::thread::impl::syncprims_throw_exception_char_const__const__char_const__const__int_
mov dword [esi + 0x54], 0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret