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

Disassembly:
push ebp
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
xor eax, eax
xor ebx, ebx
cmp edx, 0
je 0xee6fe3
mov al, byte [edi]
mov bl, byte [edi + 4]
add edi, 8
lea ecx, [esi + edx]
sub ebp, esi
mov dword [esp + 0x18], ecx
inc al
cmp dword [edi + 0x100], 0xffffffff
je 0xee6fb0
mov ecx, dword [edi + eax*4]
and edx, 0xfffffffc
je 0xee6f80
lea edx, [esi + edx - 4]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ebp
lea esi, [esi]
add bl, cl
mov edx, dword [edi + ebx*4]
mov dword [edi + ebx*4], ecx
mov dword [edi + eax*4], edx
add edx, ecx
inc al
and edx, 0xff
mov ecx, dword [edi + eax*4]
mov ebp, dword [edi + edx*4]
add bl, cl
mov edx, dword [edi + ebx*4]
mov dword [edi + ebx*4], ecx
mov dword [edi + eax*4], edx
add edx, ecx
inc al
and edx, 0xff
ror ebp, 8
mov ecx, dword [edi + eax*4]
or ebp, dword [edi + edx*4]
add bl, cl
mov edx, dword [edi + ebx*4]
mov dword [edi + ebx*4], ecx
mov dword [edi + eax*4], edx
add edx, ecx
inc al
and edx, 0xff
ror ebp, 8
mov ecx, dword [edi + eax*4]
or ebp, dword [edi + edx*4]
add bl, cl
mov edx, dword [edi + ebx*4]
mov dword [edi + ebx*4], ecx
mov dword [edi + eax*4], edx
add edx, ecx
inc al
and edx, 0xff
ror ebp, 8
mov ecx, dword [esp + 0x20]
or ebp, dword [edi + edx*4]
ror ebp, 8
xor ebp, dword [esi]
cmp esi, dword [esp + 0x1c]
mov dword [ecx + esi], ebp
lea esi, [esi + 4]
mov ecx, dword [edi + eax*4]
jb 0xee6ee0
cmp esi, dword [esp + 0x18]
je 0xee6fdb
mov ebp, dword [esp + 0x20]
nop
lea esi, [esi]
add bl, cl
mov edx, dword [edi + ebx*4]
mov dword [edi + ebx*4], ecx
mov dword [edi + eax*4], edx
add edx, ecx
inc al
and edx, 0xff
mov edx, dword [edi + edx*4]
xor dl, byte [esi]
lea esi, [esi + 1]
mov ecx, dword [edi + eax*4]
cmp esi, dword [esp + 0x18]
mov byte [ebp + esi - 1], dl
jb 0xee6f80
jmp 0xee6fdb
movzx ecx, byte [edi + eax]
add bl, cl
movzx edx, byte [edi + ebx]
mov byte [edi + ebx], cl
mov byte [edi + eax], dl
add dl, cl
movzx edx, byte [edi + edx]
add al, 1
xor dl, byte [esi]
lea esi, [esi + 1]
movzx ecx, byte [edi + eax]
cmp esi, dword [esp + 0x18]
mov byte [ebp + esi - 1], dl
jb 0xee6fb4
dec al
mov byte [edi - 4], bl
mov byte [edi - 8], al
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0xef9840
Capabilities:
Access the windows event log

Disassembly:
push esi
push ebx
sub esp, 0x144
mov ebx, dword [esp + 0x150]
mov dword [esp], 0xfffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push edx
test eax, eax
je 0xef9873
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
push esi
test eax, eax
jne 0xef9970
lea eax, [esp + 0x154]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 0xff
lea ebx, [esp + 0x3c]
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll__vsnprintf]
mov byte [esp + 0x13b], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
js 0xef98b2
call fcn.00ef96d0
test eax, eax
jg 0xef98e0
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], str.OpenSSL:_FATAL
mov dword [esp + 4], ebx
mov dword [esp], 0
call dword [sym.imp.USER32.dll_MessageBoxA]
sub esp, 0x10
add esp, 0x144
pop ebx
pop esi
ret
mov dword [esp + 4], str.OPENSSL
mov dword [esp], 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
sub esp, 8
mov esi, eax
mov dword [esp + 0x13c], ebx
mov dword [esp + 0x20], 0
lea eax, [esp + 0x13c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
sub esp, 0x24
mov dword [esp], esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
push ebx
add esp, 0x144
pop ebx
pop esi
ret
lea eax, [esp + 0x154]
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
add esp, 0x144
pop ebx
pop esi
ret
Function at 0x1039130
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x1c
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
test ebx, ebx
je 0x1039180
mov edx, dword [ebx + 0x5c]
test edx, edx
je 0x103915f
mov ecx, dword [edx + 0xc]
mov dword [esp + 4], eax
mov dword [esp], edx
call dword [ecx + 0xc]
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0x18]
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x24], eax
add esp, 0x1c
jmp fcn.01038b00
mov eax, 0x23
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
add esp, 0x1c
ret

Function at 0x1084800
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0xc
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x11018d0], eax
je 0x1084817
add esp, 0xc
ret
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x1084cd0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub esp, 0x3c
cmp dword [0x1aba15c], 1
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], ebp
je 0x1084cf1
call fcn.01084c40
mov eax, dword [0x11018d0]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x1084d20
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
mov ebp, dword [esp + 0x38]
add esp, 0x3c
ret
call fcn.01084b90
test eax, eax
mov ebx, eax
je 0x1084e33
mov edx, dword [entry3]
test edx, edx
je 0x1084e33
mov dword [eax + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebx + 0x40], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebx + 0x1c], 0xffffffff
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x38], 0xfeedbab1
mov dword [ebx + 0x3c], 1
mov dword [ebx + 0x68], 0
sub esp, 0x10
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x14], 0
call esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, eax
call esi
lea edx, [ebx + 0x14]
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 8], ebp
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
sub esp, 0x1c
test eax, eax
je 0x1084e3c
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [ebx + 0x6c], 0
mov dword [ebx + 0x70], eax
movzx eax, byte [ebx + 0x20]
sub esp, 4
and eax, 0xffffffcf
or eax, 0x10
mov byte [ebx + 0x20], al
mov eax, dword [0x11018d0]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x1084e3c
mov eax, ebx
jmp 0x1084d06
xor ebx, ebx
mov eax, ebx
jmp 0x1084d06
lea esi, [esi]
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]
Function at 0x10854d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
test eax, eax
je 0x10854e8
cmp eax, 3
je 0x1085500
mov eax, 1
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
add esp, 0x1c
ret 0xc
mov eax, dword [0x11018d0]
cmp eax, 0xffffffff
je 0x10854e8
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
mov ebx, eax
je 0x10854e8
test byte [eax + 0x20], 0x30
jne 0x10855f0
mov eax, dword [eax + 0x6c]
test eax, eax
mov eax, dword [ebx + 0x18]
jne 0x10855d0
test eax, eax
je 0x1085544
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov eax, dword [ebx + 0xb8]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x6c], 1
mov dword [esp], eax
call fcn.010853b0
test byte [ebx + 0x24], 4
je 0x10855a8
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x108557f
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov eax, ebx
mov dword [ebx + 0x14], 0
xor ebx, ebx
call fcn.010849e0
mov eax, dword [0x11018d0]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call fcn.01083470
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x38], 0xfeedbab1
mov dword [ebx + 0x3c], 1
jmp 0x10854e8
test eax, eax
je 0x10855e0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov dword [ebx + 0x18], 0
jmp 0x10855a8
mov eax, dword [eax + 0xb8]
mov dword [esp], eax
call fcn.010853b0
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x1085630
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x18]
sub esp, 4
test eax, eax
je 0x1085622
mov dword [esp], eax
call esi
sub esp, 4
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x14], 0
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call fcn.01083470
mov eax, ebx
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x38], 0xfeedbab1
mov dword [ebx + 0x3c], 1
call fcn.010849e0
mov eax, dword [0x11018d0]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
jmp 0x10854e8
Function at 0x10859b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub esp, 0x1c
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x20]
call fcn.01084cd0
test eax, eax
mov ebx, eax
je 0x1085a53
mov dword [eax + 4], esi
mov eax, dword [eax + 0xb8]
mov dword [esp], eax
call fcn.010853b0
test byte [ebx + 0x20], 0x30
je 0x1085a40
mov eax, dword [0x11018d0]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
mov ebx, eax
je 0x1085a31
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x1085ab0
mov esi, dword [eax + 4]
mov dword [eax + 0x6c], 1
mov eax, dword [eax + 0x18]
test eax, eax
je 0x1085a24
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
test byte [ebx + 0x24], 4
mov dword [ebx + 0x18], 0
jne 0x1085a64
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__endthreadex]
lea esi, [esi]
add ebx, 0x74
mov dword [esp + 4], 1
mov dword [esp], ebx
call sub.msvcrt.dll_longjmp
mov eax, 0x16
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
add esp, 0x1c
ret
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x14], 0
sub esp, 4
mov eax, ebx
call fcn.010849e0
mov eax, dword [0x11018d0]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__endthreadex]
lea esi, [esi]
mov dword [eax], 0xdeadbeef
mov eax, dword [eax + 0x18]
test eax, eax
je 0x1085ac9
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov dword [ebx + 0x18], 0
mov esi, dword [ebx + 4]
jmp 0x1085a80
Function at 0x1088fe0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x33c
mov esi, dword [esp + 0x350]
lea ebp, [esp + 0x126]
mov ebx, dword [esp + 0x354]
mov dword [esp], 0x2000
call sub.msvcrt.dll_malloc
test esi, esi
lea ecx, [esi + 0x208]
mov edi, eax
mov eax, ebp
jne 0x108902c
jmp 0x1089034
add esi, 2
mov byte [eax], dl
add eax, 1
cmp esi, ecx
je 0x1089034
movzx edx, word [esi]
test dx, dx
jne 0x1089020
lea esi, [esp + 0x22b]
test ebx, ebx
mov byte [eax], 0
lea ecx, [ebx + 0x208]
mov eax, esi
jne 0x108905c
jmp 0x1089064
add ebx, 2
mov byte [eax], dl
add eax, 1
cmp ebx, ecx
je 0x1089064
movzx edx, word [ebx]
test dx, dx
jne 0x1089050
mov byte [eax], 0
cmp byte [esp + 0x22b], 0
je 0x1089120
cmp byte [esp + 0x126], 0
je 0x108914e
lea ebx, [esp + 0x21]
mov byte [esp + 0x125], 0
mov dword [esp + 8], 0x104
mov dword [esp + 4], ebx
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
sub esp, 0xc
test eax, eax
je 0x1089160
mov eax, dword [esp + 0x358]
mov dword [esp + 0x14], ebp
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 4], str.Assertion_failed__n_nProgram:__s_nFile:__s__Line__u_n_nExpression:__s
mov dword [esp], edi
call sub.msvcrt.dll_sprintf
mov eax, dword [0x1a4da00]
test eax, eax
je 0x1089199
mov dword [esp + 0xc], 0x12012
mov dword [esp + 8], str.MinGW_Runtime_Assertion
mov dword [esp + 4], edi
mov dword [esp], 0
call dword [sym.imp.USER32.dll_MessageBoxA]
sub esp, 0x10
cmp eax, 3
je 0x1089181
cmp eax, 5
jne 0x108917c
add esp, 0x33c
pop ebx
pop esi
pop edi
pop ebp
ret
cmp byte [esp + 0x126], 0
mov dword [esp + 0x22b], 0x6b6e753c
mov dword [esp + 0x22f], 0x6e776f6e
mov word [esp + 0x233], 0x3e
jne 0x1089083
mov word [esp + 0x126], 0x3f
jmp 0x1089083
mov dword [esp + 0x21], 0x6b6e753c
mov dword [esp + 0x25], 0x6e776f6e
mov word [esp + 0x29], 0x3e
jmp 0x10890b3
call sub.msvcrt.dll_abort
mov dword [esp], 0x16
call sub.msvcrt.dll_raise
mov dword [esp], 3
call sub.msvcrt.dll__exit
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], edi
mov dword [esp + 4], 0x14c9aa9
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
call sub.msvcrt.dll_abort
lea esi, [esi]
Function at 0x40230a
Capabilities:
Allocate or change rwx memory
Create process on windows
Create thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x469d00]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push str.006:107_4:_00007:277_0:_004:_04:_008:_08:_08:_8:_7:2_3:_9:193_4:_
lea ecx, [ebp - 0x1c]
call fcn.00401648
push 0xc
call fcn.00404aab
pop ecx
test eax, eax
je 0x402343
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
call fcn.004016a1
jmp 0x402345
xor eax, eax
mov esi, dword [eax + 4]
shl esi, 2
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
lea eax, [ebp - 0x20]
mov ebx, 0x4ac
mov edi, 0x469840
sub esi, 0x40
push eax
push 0x40
push ebx
push edi
push 0xffffffffffffffff
mov dword [ebp - 0x20], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push ebx
push edi
mov dword [ebp - 0x24], esi
call fcn.004020fc
push 0x3e
push section..data
push 0x43800
mov esi, 0x426040
push esi
call fcn.00401c27
add esp, 0x18
lea eax, [ebp - 0x24]
push eax
xor eax, eax
push eax
push esi
push 0x4699c8
push eax
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_CreateCaret]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
lea ecx, [ebp - 0x1c]
call fcn.00401fb0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404ae9
leave
ret

Function at 0x4039ed
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x403a0e
jl 0x403a05
test edi, edi
jne 0x403a0e
xor eax, eax
xor edx, edx
jmp 0x403acf
cmp dword [ebx + 0x38], 0
je 0x403a23
push eax
push edi
push dword [ebp + 8]
call fcn.00403ad5
jmp 0x403acf
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x403a6a
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x403a6a
cmp eax, edi
jb 0x403a44
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00405610
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x403a70
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x403ac4
mov ecx, ebx
call fcn.00403116
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x403aaf
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0040a942
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x403ac4
jmp 0x403a82
test edx, edx
je 0x403ac4
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0040a942
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc
Function at 0x10005f20
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
call fcn.10006030
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
push bind
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
cmp dword [edx], 0xffffffff
jne 0x10005f5c
xor al, al
jmp 0x10005fd3
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x10005fa1
mov ecx, dword [ebp - 4]
call fcn.10006030
xor al, al
jmp 0x10005fd3
push 0
push 0
push 0
push 4
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0xc], 0
jne 0x10005fd1
mov ecx, dword [ebp - 4]
call fcn.10006030
xor al, al
jmp 0x10005fd3
mov al, 1
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_send]
mov esp, ebp
pop ebp
ret

Function at 0x10006310
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
push ecx
push 0
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov eax, dword [edx]
add eax, 1
push eax
call dword [sym.imp.WS2_32.dll_select]
mov esp, ebp
pop ebp
ret

Function at 0x10006460
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
push ecx
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov eax, dword [edx]
add eax, 1
push eax
call dword [sym.imp.WS2_32.dll_select]
mov esp, ebp
pop ebp
ret
Function at 0x10006620
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x100b00f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
cmp ecx, 2
jne 0x10006656
mov edx, dword [ebp + 8]
movzx eax, word [edx + 2]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, ax
mov edx, dword [ebp + 0x14]
mov dword [edx], ecx
jmp 0x1000667d
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
cmp ecx, 0x17
jne 0x10006679
mov edx, dword [ebp + 8]
movzx eax, word [edx + 2]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, ax
mov edx, dword [ebp + 0x14]
mov dword [edx], ecx
jmp 0x1000667d
xor al, al
jmp 0x100066f5
push 0x401
push 0
lea eax, [ebp - 0x408]
push eax
call fcn.10070380
add esp, 0xc
lea ecx, [ebp - 0x408]
call fcn.10013370
mov dword [ebp - 0x40c], eax
lea ecx, [ebp - 0x408]
call fcn.100025a0
mov dword [ebp - 0x410], eax
push 2
push 0
push 0
mov ecx, dword [ebp - 0x40c]
push ecx
mov edx, dword [ebp - 0x410]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
je 0x100066df
xor al, al
jmp 0x100066f5
lea ecx, [ebp - 0x408]
call fcn.100025a0
push eax
mov ecx, dword [ebp + 0x10]
call fcn.10016390
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006ddbb
mov esp, ebp
pop ebp
ret

Function at 0x10006710
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x100b00f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x88], pe_nt_image_headers32
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x84]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x10006767
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x88]
push edx
lea eax, [ebp - 0x84]
push eax
call fcn.10006620
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006ddbb
mov esp, ebp
pop ebp
ret

Function at 0x1000a470
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x100b00f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x198], ecx
mov eax, dword [ebp - 0x198]
mov byte [eax], 0
lea ecx, [ebp - 0x194]
push ecx
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1000a4ae
mov edx, dword [ebp - 0x198]
mov byte [edx], 1
mov eax, dword [ebp - 0x198]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006ddbb
mov esp, ebp
pop ebp
ret