joyce8/EMBER2024-capa huggingface dataset:
Function at 0x451c80
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x6ed0a4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
call fcn.00612090
add esp, 0xc
xor edi, edi
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x451d22
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x451d1b
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea eax, [ebp - 0x20c]
push 0x6e1f38
push eax
call fcn.0061893b
add esp, 8
test eax, eax
jne 0x451d04
call ebx
mov ecx, dword [ebp - 0x228]
cmp ecx, eax
jne 0x451d18
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x451ce0
jmp 0x451d1a
mov edi, ecx
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0060f4a4
mov esp, ebp
pop ebp
ret
Function at 0x451d40
Capabilities:
Delete service
Query service status
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x6ed0a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
xorps xmm0, xmm0
push 0xf003f
push esi
mov edi, ecx
movq qword [ebp - 0x10], xmm0
push esi
mov dword [ebp - 0x24], edi
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x451dc5
push 0xf01ff
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x451db4
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x451db1
cmp dword [ebp - 0x1c], 4
mov eax, 1
cmove esi, eax
push edi
call ebx
push dword [ebp - 0x28]
call ebx
test esi, esi
je 0x451dc5
mov ecx, dword [ebp - 0x24]
call fcn.00453a70
xor edi, edi
call fcn.00451c80
test eax, eax
je 0x451e0b
call fcn.00451c80
test eax, eax
je 0x451dfd
push eax
push 0
push 0x411
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x451dfd
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0x32
jl 0x451dc7
push 0xf003f
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x451e79
push 0xf01ff
push dword [ebp - 0x24]
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x451e3b
push eax
mov edi, 1
call ebx
push esi
call ebx
test edi, edi
je 0x451e79
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x451e79
push 0xf01ff
push dword [ebp - 0x24]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x451e76
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
push edi
call ebx
mov ecx, dword [ebp - 0x24]
call fcn.00453730
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0060f4a4
mov esp, ebp
pop ebp
ret
Function at 0x451ea0
Capabilities:
Delete service
Query service status
Start service
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x6ed0a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
xorps xmm0, xmm0
push 0xf003f
push esi
mov edi, ecx
movq qword [ebp - 0x10], xmm0
push esi
mov dword [ebp - 0x24], edi
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x451f25
push 0xf01ff
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x451f14
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x451f11
cmp dword [ebp - 0x1c], 4
mov eax, 1
cmove esi, eax
push edi
call ebx
push dword [ebp - 0x28]
call ebx
test esi, esi
je 0x451f25
mov ecx, dword [ebp - 0x24]
call fcn.00453a70
xor edi, edi
call fcn.00451c80
test eax, eax
je 0x451f6b
call fcn.00451c80
test eax, eax
je 0x451f5d
push eax
push 0
push 0x411
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x451f5d
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0x32
jl 0x451f27
push 0xf003f
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x451fd9
push 0xf01ff
push dword [ebp - 0x24]
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x451f9b
push eax
mov edi, 1
call ebx
push esi
call ebx
test edi, edi
je 0x451fd9
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x451fd9
push 0xf01ff
push dword [ebp - 0x24]
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x451fd6
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push edi
call ebx
push esi
call ebx
mov esi, dword [ebp - 0x24]
mov ecx, esi
call fcn.00453730
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x45201c
push 0xf01ff
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x452019
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push esi
call ebx
push edi
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0060f4a4
mov esp, ebp
pop ebp
ret
Function at 0x452030
Capabilities:
Delete service
Query service status
Start service
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x6ed0a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
xorps xmm0, xmm0
push 0xf003f
push esi
mov edi, ecx
movq qword [ebp - 0x10], xmm0
push esi
mov dword [ebp - 0x24], edi
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x4520b5
push 0xf01ff
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x4520a4
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4520a1
cmp dword [ebp - 0x1c], 4
mov eax, 1
cmove esi, eax
push edi
call ebx
push dword [ebp - 0x28]
call ebx
test esi, esi
je 0x4520b5
mov ecx, dword [ebp - 0x24]
call fcn.00453a70
xor edi, edi
call fcn.00451c80
test eax, eax
je 0x4520fb
call fcn.00451c80
test eax, eax
je 0x4520ed
push eax
push 0
push 0x411
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4520ed
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0x32
jl 0x4520b7
push 0xf003f
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x452169
push 0xf01ff
push dword [ebp - 0x24]
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x45212b
push eax
mov edi, 1
call ebx
push esi
call ebx
test edi, edi
je 0x452169
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x452169
push 0xf01ff
push dword [ebp - 0x24]
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x452166
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push edi
call ebx
push esi
call ebx
mov esi, dword [ebp - 0x24]
mov ecx, esi
call fcn.00453c70
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x4521ac
push 0xf01ff
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x4521a9
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push esi
call ebx
push edi
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0060f4a4
mov esp, ebp
pop ebp
ret
Function at 0x4521c0
Capabilities:
Delete service
Query service status
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x6ed0a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
xorps xmm0, xmm0
push 0xf003f
push esi
mov edi, ecx
movq qword [ebp - 0x10], xmm0
push esi
mov dword [ebp - 0x24], edi
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x452245
push 0xf01ff
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x452234
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x452231
cmp dword [ebp - 0x1c], 4
mov eax, 1
cmove esi, eax
push edi
call ebx
push dword [ebp - 0x28]
call ebx
test esi, esi
je 0x452245
mov ecx, dword [ebp - 0x24]
call fcn.00453a70
xor edi, edi
call fcn.00451c80
test eax, eax
je 0x45228b
call fcn.00451c80
test eax, eax
je 0x45227d
push eax
push 0
push 0x411
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x45227d
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0x32
jl 0x452247
push 0xf003f
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x4522f9
push 0xf01ff
push dword [ebp - 0x24]
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x4522bb
push eax
mov edi, 1
call ebx
push esi
call ebx
test edi, edi
je 0x4522f9
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x4522f9
push 0xf01ff
push dword [ebp - 0x24]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x4522f6
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
push edi
call ebx
mov ecx, dword [ebp - 0x24]
call fcn.00453c70
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0060f4a4
mov esp, ebp
pop ebp
ret
Function at 0x453a70
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x6ed0a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
xorps xmm0, xmm0
push 0xf003f
push ebx
push ebx
mov edi, ecx
movq qword [ebp - 0x10], xmm0
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [ebp - 0x24], esi
test esi, esi
je 0x453b1b
push 0xf01ff
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x453b14
lea eax, [ebp - 0x20]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x453b0d
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [ebp - 0x20]
push eax
push edi
call ebx
xor esi, esi
nop
cmp dword [ebp - 0x1c], 4
jne 0x453b01
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x20]
push eax
push edi
call ebx
inc esi
cmp esi, 0x32
jl 0x453ae0
cmp dword [ebp - 0x1c], 4
je 0x453b08
mov ebx, 1
jmp 0x453b0a
xor ebx, ebx
mov esi, dword [ebp - 0x24]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0060f4a4
mov esp, ebp
pop ebp
ret
Function at 0x4543b0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64d966
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
mov eax, dword [0x6ed0a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x25c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x260], eax
mov eax, dword [ebp + 0x14]
push 0x208
mov dword [ebp - 0x264], eax
lea eax, [ebp - 0x218]
push 0
push eax
mov dword [ebp - 0x258], esi
mov byte [ebp - 0x249], 0
call fcn.00612090
xor eax, eax
mov dword [ebp - 0x220], 0
add esp, 0xc
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
push 0x104
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 1
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.RepairTool.exe
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x454495
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.0044b550
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push 0
cmovae eax, dword [ebp - 0x230]
push eax
mov dword [ebp - 0x250], 0x34
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x454579
push edi
call fcn.0060f4f3
push edi
mov esi, eax
push 0
push esi
call fcn.00612090
add esp, 0x10
lea ecx, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
cmovae ecx, dword [ebp - 0x230]
push esi
push edi
push 0
push ecx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x454568
lea eax, [ebp - 0x250]
mov ecx, esi
push eax
lea eax, [ebp - 0x254]
push eax
call fcn.00454330
test eax, eax
je 0x454568
mov eax, dword [ebp - 0x254]
mov byte [ebp - 0x249], 1
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x298], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [ebp - 0x288], xmm0
movups xmm0, xmmword [eax + 0x20]
mov eax, dword [eax + 0x30]
movups xmmword [ebp - 0x278], xmm0
push 1
push esi
call fcn.0060f4b5
mov esi, dword [ebp - 0x258]
add esp, 8
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x4545b5
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4545ab
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x454615
push edx
push ecx
call fcn.0060f4b5
add esp, 8
cmp byte [ebp - 0x249], 0
je 0x4545f6
mov ecx, dword [ebp - 0x288]
mov eax, ecx
mov edx, dword [ebp - 0x260]
shr eax, 0x10
mov word [esi], ax
mov eax, dword [ebp - 0x25c]
mov word [eax], cx
mov ecx, dword [ebp - 0x284]
mov eax, ecx
shr eax, 0x10
mov word [edx], ax
mov eax, dword [ebp - 0x264]
mov word [eax], cx
mov al, 1
jmp 0x4545f8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0060f4a4
mov esp, ebp
pop ebp
ret 0x10
call fcn.0061405c
int3
Function at 0x455650
Capabilities:
Link many functions at runtime

Disassembly:
push edi
mov edi, ecx
mov eax, dword [edi + 0x50]
test eax, eax
je 0x455767
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.stat_init
push eax
call esi
push str.stat_proxy
push dword [edi + 0x50]
mov dword [edi], eax
call esi
push str.stat_dispatch_addr
push dword [edi + 0x50]
mov dword [edi + 4], eax
call esi
push str.stat_online_addr
push dword [edi + 0x50]
mov dword [edi + 8], eax
call esi
push str.stat_action_addr
push dword [edi + 0x50]
mov dword [edi + 0xc], eax
call esi
push str.stat_install_addr
push dword [edi + 0x50]
mov dword [edi + 0x10], eax
call esi
push str.stat_loginout_addr
push dword [edi + 0x50]
mov dword [edi + 0x14], eax
call esi
push str.stat_unionid
push dword [edi + 0x50]
mov dword [edi + 0x18], eax
call esi
push str.stat_appid
push dword [edi + 0x50]
mov dword [edi + 0x1c], eax
call esi
push str.stat_level
push dword [edi + 0x50]
mov dword [edi + 0x20], eax
call esi
push str.stat_version
push dword [edi + 0x50]
mov dword [edi + 0x24], eax
call esi
push str.stat_version_ex
push dword [edi + 0x50]
mov dword [edi + 0x28], eax
call esi
push str.stat_online
push dword [edi + 0x50]
mov dword [edi + 0x2c], eax
call esi
push str.stat_offline
push dword [edi + 0x50]
mov dword [edi + 0x30], eax
call esi
push str.stat_action
push dword [edi + 0x50]
mov dword [edi + 0x34], eax
call esi
push str.stat_mutilaction
push dword [edi + 0x50]
mov dword [edi + 0x38], eax
call esi
push str.stat_install
push dword [edi + 0x50]
mov dword [edi + 0x3c], eax
call esi
push str.stat_close
push dword [edi + 0x50]
mov dword [edi + 0x40], eax
call esi
push str.stat_app_install
push dword [edi + 0x50]
mov dword [edi + 0x44], eax
call esi
push str.stat_http_post
push dword [edi + 0x50]
mov dword [edi + 0x48], eax
call esi
mov dword [edi + 0x4c], eax
pop esi
pop edi
ret
Function at 0x45f740
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor edx, edx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x1505
add eax, esi
mov ecx, eax
sub ecx, esi
push edi
xor edi, edi
cmp esi, eax
cmova ecx, edx
mov dword [ebp + 8], ecx
test ecx, ecx
je 0x45f789
mov al, byte [esi]
push eax
call fcn.0046e570
movsx ecx, al
lea esi, [esi + 1]
mov eax, ebx
inc edi
shl eax, 5
add esp, 4
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp edi, dword [ebp + 8]
jb 0x45f767
pop edi
pop esi
movzx eax, bl
pop ebx
pop ebp
ret
Function at 0x46a170
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 0x71e], 0
je 0x46a1f3
cmp dword [edi + 0x1b0], 0
je 0x46a1bd
push esi
push 1
push edi
call fcn.0045b600
push dword [edi + 0x14c]
mov eax, dword [edi + 0x1b0]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.0045b600
add esp, 0x24
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x46a1f3
push dword [edi + 0x148]
lea eax, [eax + eax*2]
push 1
add eax, 0x6519b0
push 2
push eax
call fcn.0061c995
push dword [edi + 0x148]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0061c995
add esp, 0x20
xor eax, eax
pop edi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x6ed0a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov eax, dword [edx + 0xc]
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x10]
mov ebx, dword [eax + ecx*4 + 0x148]
push ecx
push eax
push edx
mov dword [ebp - 0x108], edx
call fcn.0046a9b0
add esp, 0xc
test eax, eax
je 0x46a58b
pop edi
mov dword [esi], 0x1b
or eax, 0xffffffff
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0060f4a4
mov esp, ebp
pop ebp
ret
push 0
push dword [ebp + 0x14]
push edi
push ebx
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
mov dword [esi], 0
cmp edi, 0xffffffff
jne 0x46a608
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x46a5d0
xor edi, edi
mov dword [esi], 0x51
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0060f4a4
mov esp, ebp
pop ebp
ret
push 0x100
lea eax, [ebp - 0x104]
push eax
push ebx
call fcn.0047c1e0
push eax
push str.Send_failure:__s
push dword [ebp - 0x108]
call fcn.0046a200
mov eax, dword [ebp - 0x108]
add esp, 0x18
mov dword [eax + 0x96c], ebx
mov dword [esi], 0x37
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0060f4a4
mov esp, ebp
pop ebp
ret
Function at 0x46a9b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
lea esi, [edx + 0x17]
mov eax, dword [ecx + 0x2a0]
shl esi, 4
add esi, ecx
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x44], 3
je 0x46aa81
cmp dword [ecx + edx*4 + 0x160], 0x46a430
jne 0x46aa81
cmp dword [esi], 0
je 0x46a9f8
test edi, edi
je 0x46aa81
mov ebx, dword [ecx + edx*4 + 0x148]
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.00479cc0
add esp, 0x14
cmp eax, 0xffffffff
je 0x46aa81
test al, 1
je 0x46aa81
mov ecx, dword [esi]
test ecx, ecx
jne 0x46aa5c
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x4e8]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x6e9004]
mov ecx, eax
add esp, 4
mov dword [esi], ecx
test ecx, ecx
jne 0x46aa47
pop edi
pop esi
lea eax, [ecx + 0x1b]
pop ebx
pop ebp
ret
mov edi, dword [esi + 4]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test ecx, ecx
je 0x46aa7a
mov eax, dword [esi + 8]
push 0
push edi
add eax, ecx
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x46aa81
add dword [esi + 8], eax
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
mov dword [esi + 4], 0
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp byte [eax + 0x19c], 0
je 0x46ac50
push eax
call fcn.00463df0
add esp, 4
test eax, eax
jne 0x46ac6e
xor al, al
pop ebp
ret
mov eax, dword [eax + 0x148]
cmp eax, 0xffffffff
je 0x46ac4c
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x46ac4c
mov al, 1
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0x6ed0a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x184]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
push 0x80
push 0
push eax
mov dword [ebp - 0x188], 0x80
call fcn.00612090
add esp, 0xc
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x184]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x46af1d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x104]
push 0x100
push eax
push esi
call fcn.0047c1e0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x46af60
push edi
push esi
push dword [ebp - 0x188]
lea eax, [ebp - 0x184]
push eax
call fcn.0046aa90
add esp, 0x10
test al, al
jne 0x46af69
call fcn.0061c2ae
mov esi, dword [eax]
call fcn.0061c2ae
mov edi, eax
lea eax, [ebp - 0x104]
push 0x100
push eax
push esi
call fcn.0047c1e0
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.0046a200
add esp, 0x1c
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0060f4a4
mov esp, ebp
pop ebp
ret
Function at 0x46b750
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x6ef3f4]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x46b7a1
push 3
push 2
push eax
push 6
call fcn.00498330
add esp, 0x10
test al, al
je 0x46b795
mov dword [0x6ef3f4], 2
mov esp, ebp
pop ebp
ret
mov dword [0x6ef3f4], 1
jmp 0x46b7a6
cmp eax, 2
je 0x46b7e6
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x46b7cd
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x46b7e6
push 4
lea eax, [ebp - 8]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esp, ebp
pop ebp
ret