joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002e00
Capabilities:
Get disk information via ioctl
Print debug messages

Disassembly:
sub esp, 0x12c
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], bl
mov byte [esp + 0x3c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x3d]
xor esi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x140]
lea ecx, [esp + 0x1c]
push eax
push str..PHYSICALDRIVE_d
push ecx
mov dword [esp + 0x20], esi
call fcn.10011dec
add esp, 0xc
lea edx, [esp + 0x1c]
push ebx
push ebx
push 3
push ebx
push 1
push closesocket
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x10002ea4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x40]
push str.CreateFile___Error:__ld_n
push eax
call fcn.10011dec
add esp, 0xc
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, esi
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x12c
ret
push 0x270
call fcn.10012d54
add esp, 4
lea edx, [esp + 0x18]
mov esi, eax
mov ecx, 0x9c
push ebx
push edx
push 0x270
push esi
push ebx
xor eax, eax
mov edi, esi
push ebx
push 0x70050
push ebp
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x10002f06
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x40]
push str.IOCTL_DISK_GET_DRIVE_LAYOUT_EX_Error:__ld_n
push eax
call fcn.10011dec
add esp, 0xc
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edi, dword [esp + 0x14]
jmp 0x10002f0c
mov ebx, dword [esi + 0x40]
mov edi, dword [esi + 0x44]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.10012c6b
add esp, 4
mov edx, edi
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x12c
ret
Function at 0x10003be0
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [0x1002f864]
push ebp
call fcn.100056c0
add esp, 4
test eax, eax
jne 0x10003bfe
pop esi
pop ebp
pop ebx
ret
test esi, esi
je 0x10003c1d
lea eax, [esi + 0xc]
push ebp
push eax
call fcn.100053f0
add esp, 8
test eax, eax
je 0x10003c1d
mov esi, dword [esi + 0x864]
test esi, esi
jne 0x10003c02
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x10003c32
test esi, esi
je 0x10003c2c
mov byte [esi], 2
mov eax, esi
pop esi
pop ebp
pop ebx
ret
mov ebx, dword [esp + 0x1c]
test esi, esi
jne 0x10003ce5
push 0x868
call fcn.10012d54
mov ecx, dword [0x1002f864]
mov esi, eax
add esp, 4
mov dword [esi + 0x864], ecx
mov dword [0x1002f864], esi
push edi
mov ecx, 0x21a
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
lea edi, [esi + 0xc]
push 0x40
push edi
push ebp
call fcn.1000e530
mov edx, dword [esp + 0x28]
lea eax, [esi + 0x4c]
push edx
push eax
call fcn.10005250
lea ecx, [esi + 8]
push ecx
call fcn.10011d10
push edi
mov dword [esi + 0x14c], ebx
call fcn.10001620
lea edx, [esi + 0x154]
mov dword [esi + 0x150], eax
push edx
push eax
call fcn.100014e0
push 1
push esi
call fcn.10003350
add esp, 0x2c
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push 0
push esi
push 0x10003ba0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp dword [esi + 0x14c], ebx
jne 0x10003d07
push 0
call fcn.10011d10
mov edx, dword [esi + 8]
add esp, 4
sub eax, edx
cmp eax, 2
jge 0x10003d07
mov eax, esi
pop esi
pop ebp
pop ebx
ret
cmp ebx, 0xffffffff
jne 0x10003c5f
mov eax, esi
pop esi
pop ebp
pop ebx
ret

Function at 0x10003db0
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x1002f868]
test eax, eax
jne 0x10003dee
mov eax, dword [esp + 4]
lea ecx, [esp + 4]
push ecx
push 0
push 0
push 0x100042f0
push 0
push 0
mov dword [0x1002f868], eax
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.10001220
mov eax, 1
ret
Function at 0x10004450
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x12c
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x39]
mov byte [esp + 0x38], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x38]
push 0xfe
push eax
call fcn.100067c0
add esp, 8
lea ecx, [esp + 0x38]
push ecx
push str._slog
push 0xfe
push 0x1002f86c
call fcn.10011e3e
push str.comsl.ini
lea edx, [esp + 0x4c]
push 0xfe
push edx
call fcn.10005a30
lea eax, [esp + 0x54]
push eax
call fcn.1000e8c0
mov esi, eax
add esp, 0x20
cmp esi, ebx
je 0x100044ee
push 0x7f
push 0x1002f83c
push str.PostUrl
push str.CrashReport
push esi
call fcn.1000ef10
add esp, 0x10
push eax
push 0x1002f96c
call fcn.10005280
push esi
call fcn.1000ee20
add esp, 0x10
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], ebx
push ecx
push 0xf003f
push ebx
push str.SOFTWAREGZSAClient_Security
push closesocket
mov dword [esp + 0x28], 1
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100045c3
mov ecx, 7
lea edi, [esp + 0x19]
mov byte [esp + 0x18], bl
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push ecx
push ebx
mov edi, 0x1f
push str.server_ip
push edx
mov dword [esp + 0x2c], 1
mov dword [esp + 0x28], edi
call esi
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push 0x1002f9ec
push ecx
push ebx
push str.HostID
push edx
mov dword [esp + 0x2c], 1
mov dword [esp + 0x28], edi
call esi
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x1002f96c
call fcn.100056c0
add esp, 4
test eax, eax
jne 0x100045c3
lea ecx, [esp + 0x18]
push ecx
push str.http:___s__UD_ErrorLog.aspx
push 0x7f
push 0x1002f96c
call fcn.10011e3e
add esp, 0x10
pop edi
pop esi
pop ebx
add esp, 0x12c
ret
Function at 0x10004a40
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0
push 0
push 0x10004a10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret

Function at 0x10004f90
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x10024dd7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [esp + 0xc], 0
mov ebx, 1
push 0x1002f83c
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], ebx
call fcn.1000f4d0
mov edi, dword [esp + 0x2c]
mov byte [esp + 0x20], 2
cmp edi, 0x100
jle 0x1000501e
mov esi, dword [esp + 0x28]
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
call fcn.1000f5b0
mov dword [esp + 0xc], ebx
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], bl
call fcn.1000f870
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 0
call fcn.1000f870
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
push ebp
call fcn.100136fb
mov ecx, 0x100
cdq
sub ecx, edi
idiv ecx
mov ebp, edx
push ebp
call fcn.10004df0
add esp, 4
lea ecx, [esp + 0x14]
push eax
call fcn.1000fc20
xor esi, esi
test edi, edi
jle 0x1000506f
mov eax, dword [esp + 0x34]
mov dl, byte [esi + ebp + 0x100262c0]
xor dl, byte [eax + esi]
push edx
call fcn.10004df0
add esp, 4
lea ecx, [esp + 0x14]
push eax
call fcn.1000fc20
inc esi
cmp esi, edi
jl 0x10005049
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.1000f5b0
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], ebx
mov byte [esp + 0x24], bl
call fcn.1000f870
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 0
call fcn.1000f870
mov ecx, dword [esp + 0x1c]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x10005dc0
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows

Disassembly:
sub esp, 0x6c
push ebx
push ebp
push esi
xor eax, eax
push edi
xor esi, esi
mov ebx, dword [esp + 0x84]
mov dword [esp + 0x20], eax
mov ecx, 0x10
lea edi, [esp + 0x3c]
mov dword [esp + 0x38], esi
mov ebp, dword [esp + 0x88]
rep stosd dword es:[edi], eax
xor ecx, ecx
cmp ebx, esi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x34], ecx
mov dword [esp + 0x18], esi
je 0x10005e24
mov ecx, ebp
mov edi, ebx
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x1c]
push esi
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
mov dword [esp + 0x2c], 0xc
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x10005e5d
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x6c
ret
lea eax, [esp + 0x38]
mov dword [esp + 0x38], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x28]
lea edx, [esp + 0x38]
push ecx
push edx
push esi
push esi
push esi
mov dword [esp + 0x8c], eax
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x94]
push 1
push esi
push esi
push eax
push esi
mov word [esp + 0x90], si
mov dword [esp + 0x8c], 0x101
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x10005ede
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
call esi
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x6c
ret
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x28]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [esp + 0x2c]
push eax
call edi
mov ecx, dword [esp + 0x10]
push ecx
call edi
cmp ebx, esi
je 0x10005f28
cmp ebp, esi
jle 0x10005f28
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push esi
dec ebp
push edx
push ebp
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x14]
push ecx
call edi
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
Function at 0x10005f40
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 0x14], 0x44
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x40]
mov word [esp + 0x44], ax
lea eax, [esp + 4]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
or edx, 1
push 0
push 0x10
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x70]
push 0
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
jne 0x10005f98
or eax, 0xffffffff
add esp, 0x54
ret
mov eax, dword [esp + 4]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 4]
push ecx
call esi
xor eax, eax
pop esi
add esp, 0x54
ret

Function at 0x10007890
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x200
push esi
mov esi, dword [esp + 0x208]
test esi, esi
push edi
jne 0x100078ae
pop edi
xor eax, eax
pop esi
add esp, 0x200
ret
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x10007903
lea eax, [esi + 0x24c]
push 0x200
lea ecx, [esp + 0xc]
push eax
push ecx
call fcn.10005280
push str..
lea edx, [esp + 0x18]
push 0x200
push edx
call fcn.10005a30
add esp, 0x18
lea edi, [esi + 4]
lea eax, [esp + 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x1000791b
pop edi
xor eax, eax
pop esi
add esp, 0x200
ret
lea edi, [esi + 4]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1000791b
pop edi
pop esi
add esp, 0x200
ret
lea ecx, [esi + 0x30]
push 0x104
lea edx, [esi + 0x147]
push ecx
push edx
call fcn.10005280
mov cx, word [esi + 0x24]
add esp, 0xc
xor cx, word [esi + 8]
lea eax, [esi + 0x144]
mov word [eax], cx
jne 0x1000794b
mov word [eax], 0x1337
mov ecx, dword [edi]
pop edi
and cl, 0x10
neg cl
sbb cl, cl
and cl, 0xfd
add cl, 5
mov byte [esi + 0x146], cl
pop esi
add esp, 0x200
ret
Function at 0x1000cf00
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x10
push ebx
push esi
mov esi, dword [esp + 0x20]
push edi
push 0x1ac
push 0
push esi
call fcn.10005740
lea eax, [esi + 0xa8]
push 0xff
push 0x1002adac
push eax
call fcn.10005280
mov eax, dword [esp + 0x38]
push eax
call fcn.100051c0
mov ebx, eax
push 0x1002b3d4
push ebx
mov dword [esp + 0x48], ebx
call fcn.100055c0
mov edi, eax
add esp, 0x24
test edi, edi
je 0x1000cf68
lea eax, [esi + 8]
push 0x1f
push ebx
mov byte [edi], 0
push eax
add edi, 3
call fcn.10005280
add esp, 0xc
jmp 0x1000cf7d
lea eax, [esi + 8]
push 0x1f
push str.HTTP
push eax
call fcn.10005280
add esp, 0xc
mov edi, ebx
lea eax, [esi + 8]
push str.HTTPS
push eax
call fcn.100053f0
add esp, 8
test eax, eax
jne 0x1000cf9d
mov word [esi + 0x1a8], 0x1bb
jmp 0x1000cfa6
mov word [esi + 0x1a8], 0x50
push ebp
push 0x2f
push edi
call fcn.100054f0
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x1000cfe3
lea ebx, [esi + 0x28]
push 0x80
push edi
push ebx
mov byte [ebp], 0
call fcn.10005280
inc ebp
lea eax, [esi + 0xa8]
push ebp
push 0xff
push eax
call fcn.10005a30
add esp, 0x18
jmp 0x1000cff5
lea ebx, [esi + 0x28]
push 0x80
push edi
push ebx
call fcn.10005280
add esp, 0xc
push 0x3a
push ebx
call fcn.100054f0
add esp, 8
test eax, eax
pop ebp
je 0x1000d019
mov byte [eax], 0
inc eax
push eax
call fcn.10005120
add esp, 4
mov word [esi + 0x1a8], ax
mov ecx, dword [esp + 0x24]
push ecx
call fcn.10012c6b
lea edi, [esi + 8]
push str.HTTP
push edi
call fcn.100053f0
add esp, 0xc
test eax, eax
je 0x1000d06c
push str.HTTPS
push edi
call fcn.100053f0
add esp, 8
test eax, eax
je 0x1000d06c
mov edx, dword [esp + 0x28]
push edi
push 0x1002b3b0
push 0x80
push edx
call fcn.10005a80
add esp, 0x10
or eax, 0xffffffff
pop edi
pop esi
pop ebx
add esp, 0x10
ret
mov cx, word [esi + 0x1a8]
lea eax, [esp + 0xc]
push eax
push ecx
push ebx
call fcn.1000e690
add esp, 0xc
test eax, eax
je 0x1000d0a2
mov edx, dword [esp + 0x28]
push 0x1002b3a0
push edx
call fcn.10005250
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
add esp, 0x10
ret
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x1000d0d2
mov eax, dword [esp + 0x28]
push 0x1002b390
push eax
call fcn.10005250
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
add esp, 0x10
ret
lea ecx, [esp + 0xc]
push 0x10
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1000d10b
mov edx, dword [esp + 0x28]
push 0x1002b378
push edx
call fcn.10005250
mov eax, dword [esi + 4]
add esp, 8
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x10
ret
push str.HTTPS
push edi
call fcn.100053f0
add esp, 8
test eax, eax
jne 0x1000d151
mov ecx, dword [esi + 4]
push ecx
call fcn.10011aa0
add esp, 4
mov dword [esi], eax
test eax, eax
jne 0x1000d151
mov edx, dword [esp + 0x28]
push edi
push 0x1002b368
push 0x80
push edx
call fcn.10005a80
add esp, 0x10
or eax, 0xffffffff
pop edi
pop esi
pop ebx
add esp, 0x10
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret
Function at 0x1000e670
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x1000e680
ret
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
ret

Function at 0x1000e6f0
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
sub esp, 0x10c
mov eax, dword [esp + 0x11c]
push ebx
mov ebx, dword [esp + 0x118]
push esi
test ebx, ebx
push edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0
je 0x1000e777
mov edi, dword [esp + 0x124]
test edi, edi
jne 0x1000e72d
push ebx
call fcn.100056c0
add esp, 4
mov edi, eax
mov esi, dword [esp + 0x11c]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push 0
push edx
lea eax, [esi + 1]
push 0
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jg 0x1000e768
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10c
ret
push 0
push edi
push ebx
push esi
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jge 0x1000e77a
or eax, 0xffffffff
pop edi
pop esi
pop ebx
add esp, 0x10c
ret

Function at 0x1000e7b0
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x10c
mov eax, dword [esp + 0x11c]
push ebx
push esi
mov esi, dword [esp + 0x11c]
test esi, esi
push edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0
je 0x1000e84f
mov ebx, dword [esp + 0x124]
test ebx, ebx
je 0x1000e84f
mov edi, dword [esp + 0x11c]
lea ecx, [esp + 0xc]
push ecx
push 0
lea edx, [esp + 0x1c]
push 0
lea eax, [edi + 1]
push edx
push eax
mov byte [esi], 0
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jg 0x1000e823
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
add esp, 0x10c
ret
push 0
push ebx
push esi
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jge 0x1000e841
pop edi
pop esi
mov eax, 0xfffffffd
pop ebx
add esp, 0x10c
ret
mov byte [eax + esi], 0
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10c
ret
Function at 0x10011800
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x10030018]
sub esp, 0x20
test eax, eax
jne 0x10011a46
mov ecx, dword [0x1002bc4c]
mov edx, dword [0x1002bc50]
mov eax, dword [str.libssl32.dll]
mov dword [esp + 4], ecx
xor ecx, ecx
mov dword [esp + 8], edx
mov dword [esp + 0xd], ecx
mov dword [esp], eax
mov al, byte [0x1002bc54]
mov dword [esp + 0x11], ecx
mov dword [esp + 0x15], ecx
lea edx, [esp]
mov dword [esp + 0x19], ecx
push edx
mov word [esp + 0x21], cx
mov byte [esp + 0x10], al
mov byte [esp + 0x23], cl
call fcn.100050d0
add esp, 4
mov dword [0x10030018], eax
test eax, eax
jne 0x10011880
lea eax, [esp]
push eax
push str.error:load__s_failed
call fcn.100076a0
add esp, 8
push 1
call fcn.1001554a
push str.SSL_library_init
push eax
call fcn.100050e0
mov ecx, dword [0x10030018]
push str.SSL_load_error_strings
push ecx
mov dword [0x1003001c], eax
call fcn.100050e0
mov edx, dword [0x10030018]
push str.SSL_get_error
push edx
mov dword [0x10030020], eax
call fcn.100050e0
mov dword [0x10030024], eax
mov eax, dword [0x10030018]
push str.SSLv23_client_method
push eax
call fcn.100050e0
mov ecx, dword [0x10030018]
push str.SSL_connect
push ecx
mov dword [0x10030028], eax
call fcn.100050e0
mov edx, dword [0x10030018]
push str.SSL_set_fd
push edx
mov dword [0x1003002c], eax
call fcn.100050e0
mov dword [0x10030030], eax
mov eax, dword [0x10030018]
push str.SSL_write
push eax
call fcn.100050e0
mov ecx, dword [0x10030018]
push str.SSL_read
push ecx
mov dword [0x10030034], eax
call fcn.100050e0
mov edx, dword [0x10030018]
add esp, 0x40
mov dword [0x10030038], eax
push str.SSL_CTX_new
push edx
call fcn.100050e0
mov dword [0x1003003c], eax
mov eax, dword [0x10030018]
push str.SSL_CTX_free
push eax
call fcn.100050e0
mov ecx, dword [0x10030018]
push str.SSL_new
push ecx
mov dword [0x10030040], eax
call fcn.100050e0
mov edx, dword [0x10030018]
push str.SSL_free
push edx
mov dword [0x10030044], eax
call fcn.100050e0
mov dword [0x10030048], eax
mov eax, dword [0x10030018]
push str.SSL_shutdown
push eax
call fcn.100050e0
mov ecx, dword [0x10030018]
push str.SSL_get_shutdown
push ecx
mov dword [0x1003004c], eax
call fcn.100050e0
mov ecx, dword [0x1003001c]
add esp, 0x30
test ecx, ecx
mov dword [0x10030050], eax
je 0x10011a50
mov edx, dword [0x10030020]
test edx, edx
je 0x10011a50
mov edx, dword [0x10030024]
test edx, edx
je 0x10011a50
mov edx, dword [0x10030028]
test edx, edx
je 0x10011a50
mov edx, dword [0x1003002c]
test edx, edx
je 0x10011a50
mov edx, dword [0x10030030]
test edx, edx
je 0x10011a50
mov edx, dword [0x10030034]
test edx, edx
je 0x10011a50
mov edx, dword [0x10030038]
test edx, edx
je 0x10011a50
mov edx, dword [0x1003003c]
test edx, edx
je 0x10011a50
mov edx, dword [0x10030040]
test edx, edx
je 0x10011a50
mov edx, dword [0x10030044]
test edx, edx
je 0x10011a50
mov edx, dword [0x10030048]
test edx, edx
je 0x10011a50
mov edx, dword [0x1003004c]
test edx, edx
je 0x10011a50
test eax, eax
je 0x10011a50
call ecx
call dword [0x10030020]
inc dword [0x10030014]
add esp, 0x20
ret
lea edx, [esp]
push edx
push 0x1002bb38
call fcn.100076a0
add esp, 8
push 1
call fcn.1001554a
nop
nop
nop
nop
nop
nop
nop
Function at 0x10011aa0
Capabilities:
Set socket configuration

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
cmp edi, 0xffffffff
je 0x10011b35
push 0x10
call fcn.10012d54
mov esi, eax
mov byte [esi], 0x53
mov dword [esi + 0xc], edi
call fcn.10011800
call dword [0x10030028]
push eax
call dword [0x1003003c]
add esp, 8
mov dword [esi + 4], eax
test eax, eax
je 0x10011b2c
push eax
call dword [0x10030044]
add esp, 4
mov dword [esi + 8], eax
test eax, eax
je 0x10011b2c
mov ecx, dword [esi + 0xc]
push ecx
push eax
call dword [0x10030030]
add esp, 8
test eax, eax
je 0x10011b2c
mov edx, dword [esi + 8]
push edx
call dword [0x1003002c]
add esp, 4
cmp eax, 1
jne 0x10011b2c
mov ecx, dword [esi + 0xc]
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 0x8004667e
push ecx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, esi
pop edi
pop esi
ret
push esi
call fcn.10011b40
add esp, 4
pop edi
xor eax, eax
pop esi
ret

Function at 0x1002460d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1002462d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1001511c
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x10024650
test byte [esp + 8], 2
je 0x10024650
call fcn.1001518f
mov dword [eax], 0xd
call fcn.10015198
mov dword [eax], 5
jmp 0x10024629
xor eax, eax
ret