joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100078c0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x10076892
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x1008d0a0]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
push edi
mov eax, dword [0x1008d0a0]
xor eax, esp
push eax
lea eax, [esp + 0x11c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x12c]
xor ebx, ebx
mov dword [esp + 0xc], ebx
movzx ecx, word [eax + 0xa]
movzx edx, word [eax + 8]
push ecx
movzx ecx, word [eax + 6]
push edx
movzx edx, word [eax + 4]
push ecx
movzx ecx, word [eax + 2]
push edx
movsx edx, word [eax]
push ecx
push edx
push str._d__02d__02d__02d:_02d:_02d
mov eax, 0x104
lea edi, [esp + 0x30]
mov dword [esp + 0x2c], esi
call fcn.100079b0
mov eax, edi
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
add esp, 0x1c
mov byte [esi + 4], bl
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x10007950
sub eax, edx
push eax
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.10006890
mov dword [esp + 0x124], ebx
mov dword [esp + 0xc], 1
mov eax, esi
mov ecx, dword [esp + 0x11c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.10049338
add esp, 0x11c
ret 4

Function at 0x10008c40
Capabilities:
Identify system language via api

Disassembly:
sub esp, 0x504
mov eax, dword [0x1008d0a0]
xor eax, esp
mov dword [esp + 0x500], eax
push ebp
mov ebp, dword [esp + 0x50c]
push esi
push edi
push 0xfe
lea eax, [esp + 0x11]
push 0
push eax
mov byte [esp + 0x18], 0
call fcn.1004f410
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx esi, ax
mov eax, esi
call fcn.10008d50
push eax
lea ecx, [esp + 0x10]
push 0xff
push ecx
call fcn.10049854
add esp, 0xc
mov eax, dword [esp + 0x518]
lea edx, [esp + 0xc]
push edx
push 0
push 0
push 0
push 0
push 1
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_CreateFontA]
mov edi, eax
test edi, edi
jne 0x10008d1e
push 0x3ff
push eax
lea ecx, [esp + 0x115]
push ecx
mov byte [esp + 0x118], al
call fcn.1004f410
lea edx, [esp + 0x18]
push edx
movzx eax, si
push eax
push str.Cannot_find_proper_font__LangID_:_0x_X__FontName_:__s___please_contact_to_Joymax
lea ecx, [esp + 0x124]
push 0x400
push ecx
call fcn.10049854
add esp, 0x20
push 0x30
push str.Error
lea edx, [esp + 0x114]
push edx
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
push edi
push 0x30
push ebp
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esp + 0x50c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.10049338
add esp, 0x504
ret
Function at 0x1000f210
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, eax
push edi
call fcn.1000e9b0
mov eax, dword [edi + 0x14]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [edi + 0x7c], eax
mov eax, dword [edi + 0x90]
lea ecx, [eax + eax*8]
add ecx, ecx
push ecx
push 0x10
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push eax
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov edx, dword [edi + 0x7c]
push eax
push edx
mov dword [edi + 0x80], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [edi + 0x14]
push esi
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
lea esi, [esp + 0x10]
mov eax, edi
call fcn.100086b0
mov ecx, dword [edi + 0x74]
mov ebx, dword [ecx]
lea eax, [edi + 0x70]
mov edx, ecx
jmp 0x1000f290
lea ecx, [edi + 0x70]
test ecx, ecx
je 0x1000f32d
cmp ecx, eax
jne 0x1000f32d
cmp ebx, edx
je 0x1000f312
cmp ebx, dword [ecx + 4]
je 0x1000f30d
mov eax, dword [edi + 0x90]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
sub ecx, dword [esp + 0x10]
mov esi, dword [ebx + 8]
lea eax, [eax + eax*8]
add eax, eax
push 0
sub edx, eax
add edx, 1
push edx
mov edx, dword [esi + 0x30]
push ecx
add eax, 0xffffffff
push eax
push 0
push edx
call dword [sym.imp.USER32.dll_MoveWindow]
mov ecx, dword [esi + 0x30]
xor eax, eax
cmp esi, dword [edi + 0x84]
setne al
sub eax, 1
and eax, 5
push eax
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
cmp ebx, dword [edi + 0x74]
lea eax, [edi + 0x70]
je 0x1000f30d
mov ebx, dword [ebx]
mov edx, dword [edi + 0x74]
lea eax, [edi + 0x70]
jmp 0x1000f290
jmp fcn.1000f830
mov edi, dword [edi + 0x84]
test edi, edi
je 0x1000f326
mov edx, dword [edi + 0x30]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
jmp fcn.1000f8a0
Function at 0x1001bc00
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1001bc78
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1001bc17
push esi
sub eax, edx
push edi
add eax, 1
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
mov eax, ebx
lea edi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1001bc43
sub eax, edi
lea ecx, [eax + 1]
cmp ecx, 0x7fffffff
ja 0x1001bc60
mov eax, ebx
call fcn.100173c0
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
pop edi
pop esi
jmp dword [sym.imp.USER32.dll_CloseClipboard]
ret
Function at 0x10020500
Capabilities:
Get system information on windows

Disassembly:
mov eax, dword [0x101544ec]
mov edx, dword [esp + 8]
mov ecx, dword [eax + 8]
sub esp, 0x24
push edi
push edx
call fcn.1001ef80
mov edi, eax
test edi, edi
jne 0x10020523
pop edi
add esp, 0x24
ret 0x1c
push esi
mov esi, dword [esp + 0x38]
test esi, esi
jg 0x1002054d
cmp dword [0x1008f678], 0
jne 0x10020548
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [esp + 0x1c]
add esi, esi
jmp 0x1002054d
mov esi, 1
mov ecx, edi
call fcn.1001eee0
test eax, eax
jne 0x10020560
pop esi
pop edi
add esp, 0x24
ret 0x1c
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x40]
push edx
push eax
push ecx
mov ecx, esi
mov edx, edi
call fcn.10042260
pop esi
pop edi
add esp, 0x24
ret 0x1c

Function at 0x10021230
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x24
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0xc]
mov dword [edx], ecx
mov ecx, dword [esp + 0x2c]
mov dword [ecx], eax
add esp, 0x24
ret
Function at 0x10021730
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10077178
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x1008d0a0]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x1008d0a0]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
lea ecx, [eax + 0x360]
mov dword [esp + 0x18], esi
call fcn.1001f8a0
xor ebx, ebx
cmp eax, ebx
je 0x100218f0
cmp esi, ebx
je 0x100218f0
mov ecx, dword [eax + 0x28]
cmp ecx, ebx
je 0x100218f0
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
mov dword [esp + 0x58], ebx
lea esi, [esp + 0x1c]
call fcn.1002f960
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
add ecx, 1
cmp dl, bl
jne 0x100217c8
sub ecx, esi
push ecx
push eax
lea ecx, [esp + 0x34]
call fcn.10006890
lea ecx, [esp + 0x14]
push ecx
push ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x1002183c
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov edx, 0x280
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10049279
add esp, 4
cmp eax, ebx
mov dword [esp + 0x10], eax
jne 0x10021831
mov dword [esp + 0x58], 0xffffffff
lea ecx, [esp + 0x2c]
call fcn.100067d0
jmp 0x100218f0
lea ecx, [esp + 0x14]
push ecx
push eax
call sub.iphlpapi.dll_GetAdaptersInfo
mov edi, dword [esp + 0x10]
cmp edi, ebx
je 0x100218bb
jmp 0x10021850
mov eax, 6
cmp dword [edi + 0x190], eax
jne 0x100218b1
cmp dword [edi + 0x1a0], eax
jne 0x100218b1
lea esi, [edi + 0x1ac]
jmp 0x10021870
cmp dword [esp + 0x44], 0x10
mov eax, dword [esp + 0x30]
jae 0x1002187f
lea eax, [esp + 0x30]
lea ecx, [esi + 4]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100218a2
cmp dl, bl
je 0x1002189e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100218a2
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x10021882
xor eax, eax
jmp 0x100218a7
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x10021912
mov esi, dword [esi]
cmp esi, ebx
jne 0x10021870
mov edi, dword [edi]
cmp edi, ebx
jne 0x10021850
mov edi, dword [esp + 0x10]
push edi
call fcn.1004a8a0
add esp, 4
mov dword [esp + 0x58], 0xffffffff
cmp dword [esp + 0x44], 0x10
jb 0x100218e0
mov ecx, dword [esp + 0x30]
push ecx
call fcn.10049347
add esp, 4
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
xor eax, eax
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.10049338
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [edi + 0x194]
mov eax, dword [esp + 0x18]
mov dword [eax], edx
mov edx, dword [esp + 0x10]
mov cx, word [edi + 0x198]
push edx
mov word [eax + 4], cx
call fcn.1004a8a0
add esp, 4
mov dword [esp + 0x58], 0xffffffff
cmp dword [esp + 0x44], 0x10
jb 0x10021952
mov eax, dword [esp + 0x30]
push eax
call fcn.10049347
add esp, 4
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
mov eax, 1
jmp 0x100218f2
Function at 0x1002ec90
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [edx]
push esi
mov ecx, 0x20
push edi
lea esp, [esp]
mov edi, eax
shr edi, 2
xor edi, eax
shr edi, 2
xor edi, eax
shr edi, 1
xor edi, eax
shr edi, 1
xor edi, eax
shr edi, 1
mov esi, eax
ror esi, 1
xor edi, eax
and esi, 0xfffffffe
and edi, 1
or esi, edi
sub ecx, 1
mov eax, esi
jne 0x1002eca0
pop edi
mov dword [edx], eax
pop esi
ret

Function at 0x1002f030
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
cmp dword [esi + 4], 0xffffffff
mov dword [esi + 8], eax
jne 0x1002f063
push 1
push 0
push 0
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x1002f063
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, esi
call fcn.1002f010
xor eax, eax
ret
mov eax, 1
ret
Function at 0x1002f570
Capabilities:
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x10073be8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x1008d0a0]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov edi, ecx
xor esi, esi
cmp edi, esi
jne 0x1002f5b4
mov eax, 0x8009
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x24
ret
lea ecx, [edi + 0x10]
cmp ecx, esi
je 0x1002f5d7
mov eax, dword [ecx + 4]
mov edx, dword [ecx]
mov dword [esp + 0x1c], eax
mov eax, dword [edx + 4]
push 0xffffffffffffffff
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], esi
call eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], esi
mov ecx, dword [edi + 0x140]
cmp ecx, esi
je 0x1002f637
cmp dword [0x10092070], esi
je 0x1002f637
push 1
mov dword [esp + 0x10], esi
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
push esi
lea eax, [esp + 0x14]
push eax
call edx
mov ecx, dword [esp + 0xc]
cmp ecx, esi
je 0x1002f637
mov eax, dword [0x10092070]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x4c]
call eax
mov ecx, dword [edi + 0x140]
push 1
mov dword [esp + 0x10], esi
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
push esi
lea eax, [esp + 0x14]
push eax
call edx
mov ecx, dword [esp + 0xc]
cmp ecx, esi
jne 0x1002f608
cmp dword [edi + 8], 1
jne 0x1002f6b4
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
je 0x1002f6ad
cmp dword [edi + 0xc], esi
je 0x1002f678
push 1
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
mov ecx, dword [edi + 4]
push esi
push esi
lea eax, [esp + 0x1c]
push eax
push 4
push esi
push esi
push esi
push 0x4004667f
push ecx
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
jmp 0x1002f69c
push 4
lea edx, [esp + 0x10]
push edx
push 0x80
push 0xffff
push eax
mov word [esp + 0x20], 1
mov word [esp + 0x22], si
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 4], 0xffffffff
mov dword [edi + 8], 0xffffffff
cmp dword [0x10092074], esi
jne 0x1002f6c1
call fcn.1002f300
mov dword [esp + 0x2c], 0xffffffff
cmp dword [esp + 0x20], esi
je 0x1002f6e5
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
neg eax
sbb eax, eax
add eax, 1
mov dword [esp + 0x20], eax
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x24
ret

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

Disassembly:
push ecx
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov ecx, dword [ecx + 4]
lea eax, [esp]
push eax
push esi
push ecx
mov dword [esp + 0xc], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
mov eax, esi
pop ecx
ret
Function at 0x1002f990
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, dword [0x10092070]
push esi
mov esi, eax
mov eax, 1
add ebp, 0x70
call fcn.1002f030
test eax, eax
jne 0x1002f9b0
pop esi
xor eax, eax
pop ebp
ret
test ebx, ebx
je 0x1002f9c1
mov eax, dword [esi + 4]
push 0x10
push ebx
push eax
call dword [sym.imp.WS2_32.dll_bind]
mov ecx, dword [esi + 4]
push 0x10
push edi
push ecx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1002f9ab
cmp dword [ebp + 4], 1
jne 0x1002f9e2
call fcn.100414b0
test eax, eax
je 0x1002f9ab
call fcn.1002f810
test eax, eax
je 0x1002f9ab
call fcn.1002f700
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x12c], eax
mov edx, dword [edi]
mov dword [esi + 0x50], edx
mov eax, dword [edi + 4]
mov dword [esi + 0x54], eax
mov ecx, dword [edi + 8]
mov dword [esi + 0x58], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0x5c], edx
pop esi
mov eax, 1
pop ebp
ret

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

Disassembly:
push ecx
push esi
mov esi, eax
mov eax, dword [esi + 0x1c]
sub eax, 0
je 0x10030511
sub eax, 1
jne 0x1003051b
mov ecx, dword [ebx + 0x98]
cmp ecx, dword [ebx + 0x9c]
lea eax, [ebx + 0x60]
jne 0x1003050a
mov eax, 6
pop esi
pop ecx
ret
call fcn.1002ea70
jmp 0x1003051b
movzx edx, word [esi + 0x103e]
mov dword [esi + 0x24], edx
push ebp
push edi
lea ebp, [ebx + 0x14c]
push ebp
xor edi, edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, dword [esi + 0x20]
mov edx, dword [ebx + 4]
push edi
push esi
push edi
lea eax, [esp + 0x18]
push eax
push ecx
add esi, 0x24
push esi
push edx
mov dword [esp + 0x28], edi
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x100305a5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x10030563
mov eax, edi
pop edi
pop ebp
pop esi
pop ecx
ret
cmp eax, 0x2733
je 0x10030589
cmp eax, 8
je 0x10030589
cmp eax, 0x2747
je 0x10030589
push ebp
mov edi, 0x8002
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, edi
pop edi
pop ebp
pop esi
pop ecx
ret
push eax
push str.WSASend_____NERR_TOO_MANY_OUTSTANDING:__d
push 0
call fcn.100215b0
add esp, 0xc
push ebp
mov edi, 0x8005
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, edi
pop edi
pop ebp
pop esi
pop ecx
ret
Function at 0x10030c00
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [ebx + 0xdc]
mov ecx, dword [ebx + 0xe0]
sub esp, 8
cmp eax, ecx
push ebp
push esi
lea esi, [ebx + 0xa4]
jne 0x10030c22
xor ebp, ebp
mov dword [esi + 0x38], ebp
jmp 0x10030c3d
sub eax, ecx
push edi
mov edi, eax
mov eax, dword [esi + 0x34]
push edi
add ecx, eax
push ecx
push eax
call fcn.1004be00
add esp, 0xc
mov dword [esi + 0x38], edi
xor ebp, ebp
pop edi
mov eax, esi
mov dword [esi + 0x3c], ebp
call fcn.1002ea70
mov ecx, dword [ebx + 0xc4]
push ebp
push esi
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
mov eax, dword [ebx + 4]
push ecx
lea edx, [ebx + 0xc8]
push edx
push eax
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
pop esi
pop ebp
jne 0x10030cac
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x10030cac
cmp eax, 0x2733
je 0x10030ca3
cmp eax, 8
je 0x10030ca3
cmp eax, 0x2747
je 0x10030ca3
mov eax, 0x8002
add esp, 8
ret
mov eax, 0x8005
add esp, 8
ret
xor eax, eax
add esp, 8
ret

Function at 0x100318d0
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, eax
xor eax, eax
call fcn.1002f030
test eax, eax
jne 0x100318e6
xor eax, eax
pop esi
pop ecx
ret 4
mov ecx, dword [esi + 4]
push 4
lea eax, [esp + 8]
push eax
push 4
push 0xffff
push ecx
mov dword [esp + 0x18], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edx, dword [esp + 0xc]
mov eax, dword [esi + 4]
push 0x10
push edx
push eax
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x100318df
mov dword [esi + 0x50], closesocket
mov dword [0x10092090], 0
mov eax, 1
pop esi
pop ecx
ret 4

Function at 0x10034cd0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x10078c9d
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x1008d0a0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
mov dword [esi], vtable.IFile.0
xor ebx, ebx
mov dword [esi + 0x2c], 0xf
mov dword [esi + 0x28], ebx
mov byte [esi + 0x18], bl
mov dword [esp + 0x1c], ebx
lea ecx, [esp + 0x24]
lea eax, [esi + 0x30]
push ecx
push eax
mov dword [esp + 0x18], eax
call fcn.10038fc0
mov byte [esp + 0x1c], 2
lea edx, [esi + 0x58]
push edx
call fcn.1001c690
mov byte [esp + 0x1c], 3
or eax, 0xffffffff
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x94], ebx
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esp + 0x1c], eax
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x14
ret 4
Function at 0x10034d70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10077c8d
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x1008d0a0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esi], vtable.IFile.0
mov dword [esp + 0x1c], 2
call fcn.10035090
mov byte [esp + 0x1c], 1
lea ecx, [esi + 0x58]
call fcn.1001b9d0
xor ebx, ebx
mov byte [esp + 0x1c], bl
lea eax, [esi + 0x30]
mov dword [esp + 0x10], eax
mov byte [esp + 0x1c], bl
push eax
call fcn.10037910
mov dword [esp + 0x1c], 0xffffffff
cmp dword [esi + 0x2c], 0x10
jb 0x10034dec
mov eax, dword [esi + 0x18]
push eax
call fcn.10049347
add esp, 4
mov dword [esi + 0x2c], 0xf
mov dword [esi + 0x28], ebx
mov byte [esi + 0x18], bl
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x100361e0
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x10079a88
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1008d0a0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [edi + 0x58]
xor esi, esi
cmp ecx, esi
je 0x1003622e
mov eax, dword [ecx + 4]
mov edx, dword [ecx]
mov dword [esp + 0x18], eax
mov eax, dword [edx + 4]
push 0xffffffffffffffff
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], esi
call eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], esi
mov ecx, dword [esp + 0x38]
mov ebp, dword [esp + 0x34]
mov ebx, dword [esp + 0x30]
push ecx
push ebp
push ebx
mov ecx, edi
call fcn.10035790
mov esi, eax
test esi, esi
je 0x1003625b
mov dword [esp + 0x28], 0xffffffff
jmp 0x10036350
mov edx, dword [edi]
mov eax, dword [edx + 0x1c]
mov ecx, edi
call eax
test eax, eax
jne 0x1003633d
mov eax, dword [edi + 4]
cmp eax, 1
jne 0x10036281
mov ecx, 0x40000000
lea edx, [eax + 1]
lea esi, [eax + 0x7f]
jmp 0x10036290
mov ecx, closesocket
mov edx, 3
mov esi, 0x8000000
cmp dword [ebx + 0x18], 0x10
jb 0x1003629b
mov eax, dword [ebx + 4]
jmp 0x1003629e
lea eax, [ebx + 4]
push 0
push esi
push edx
push 0
push 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
or ebx, 0xffffffff
cmp eax, ebx
mov dword [edi + 0x98], eax
jne 0x100362e6
mov dword [esp + 0x28], ebx
cmp dword [esp + 0x1c], 0
je 0x100362dc
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
neg eax
sbb eax, eax
add eax, 1
mov dword [esp + 0x1c], eax
mov eax, 0xfffffff3
jmp 0x1003636f
cmp dword [edi + 4], 1
push 0
jne 0x1003631b
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push ebp
push eax
mov dword [edi + 0x10], ebp
call esi
mov ecx, dword [edi + 0x98]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov edx, dword [edi + 0x98]
push 0
push 0
push 0
push edx
call esi
jmp 0x10036340
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
mov dword [edi + 0x10], eax
jne 0x10036340
mov dword [esp + 0x28], ebx
lea esi, [esp + 0x14]
call fcn.1001b940
mov eax, 0xfffffffd
jmp 0x1003636f
or ebx, 0xffffffff
mov eax, dword [esp + 0x38]
push eax
call fcn.10035320
mov esi, eax
mov dword [esp + 0x28], ebx
cmp dword [esp + 0x1c], 0
je 0x1003636d
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
neg eax
sbb eax, eax
add eax, 1
mov dword [esp + 0x1c], eax
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0xc

Function at 0x100363e0
Capabilities:
Read file on windows

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x14]
test edi, edi
mov esi, ecx
jne 0x100363f3
pop edi
xor eax, eax
pop esi
ret 0xc
mov eax, dword [esp + 0xc]
call fcn.10036390
test eax, eax
je 0x100363ec
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 0x98]
push 0
lea eax, [esp + 0x18]
push eax
push edi
push ecx
push edx
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, esi
call fcn.100363c0
mov eax, dword [esp + 0x14]
pop edi
pop esi
ret 0xc
Function at 0x10036440
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x1003644b
ret 0xc
mov ecx, dword [ecx + 0x98]
push 0
lea edx, [esp + 0x10]
push edx
push eax
mov eax, dword [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, dword [esp + 0xc]
ret 0xc