joyce8/EMBER2024-capa huggingface dataset:
Function at 0x436070
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov al, byte [esi + 0x42]
cmp al, 1
je 0x4360b9
cmp al, 3
jb 0x43608f
call fcn.004316e0
test eax, eax
jne 0x43618c
cmp byte [esi + 0x42], 0
jne 0x4360a1
mov dword [ebx], 1
xor eax, eax
pop edi
pop esi
pop ebx
ret
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4360b9
mov byte [esi + 0x42], 1
mov dword [esi + 0x3c], 0
jg 0x43618a
movsx eax, byte [esi + 0x44]
mov edx, dword [esi + eax*4 + 0x78]
inc word [esi + eax*2 + 0x50]
mov ax, word [esi + eax*2 + 0x50]
mov cl, byte [edx + 5]
cmp ax, word [edx + 0x12]
jb 0x436182
test cl, cl
jne 0x436102
movzx ecx, byte [edx + 6]
mov eax, dword [edx + 0x38]
mov edx, dword [ecx + eax + 8]
mov ecx, esi
bswap edx
call fcn.004357a0
test eax, eax
jne 0x43618c
mov ecx, esi
pop edi
pop esi
pop ebx
jmp fcn.00435950
mov cl, byte [esi + 0x44]
test cl, cl
je 0x43615e
nop dword [eax]
and byte [esi + 0x40], 0xf9
xor eax, eax
mov word [esi + 0x24], ax
movsx eax, cl
dec cl
mov eax, dword [esi + eax*4 + 0x78]
mov byte [esi + 0x44], cl
mov ecx, dword [eax + 0x48]
test byte [ecx + 0x18], 0x40
mov edi, dword [ecx + 0x10]
je 0x436139
call fcn.0042bfc0
jmp 0x43613e
call fcn.004285a0
mov ecx, edi
call fcn.0042d140
mov cl, byte [esi + 0x44]
movsx eax, cl
mov edx, dword [esi + eax*4 + 0x78]
mov ax, word [esi + eax*2 + 0x50]
cmp ax, word [edx + 0x12]
jb 0x43616e
test cl, cl
jne 0x436110
mov dword [ebx], 1
xor eax, eax
mov byte [esi + 0x42], 0
pop edi
pop esi
pop ebx
ret
cmp byte [edx + 2], 0
je 0x43618a
push ebx
push esi
call fcn.00436190
add esp, 8
pop edi
pop esi
pop ebx
ret
test cl, cl
je 0x4360f8
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x436200
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov al, byte [esi + 0x42]
cmp al, 1
je 0x436241
cmp al, 3
jb 0x43621b
call fcn.004316e0
test eax, eax
jne 0x436229
cmp byte [esi + 0x42], 0
jne 0x43622d
mov dword [ebx], 1
xor eax, eax
pop edi
pop esi
pop ebx
ret
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x436241
mov byte [esi + 0x42], 1
mov dword [esi + 0x3c], 0
js 0x436227
mov cl, byte [esi + 0x44]
movsx eax, cl
mov edi, dword [esi + eax*4 + 0x78]
movzx eax, word [esi + eax*2 + 0x50]
cmp byte [edi + 5], 0
jne 0x436289
mov ecx, eax
mov eax, dword [edi + 0x40]
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [edi + 0x14]
movzx edx, cx
mov ecx, esi
and edx, eax
mov eax, dword [edi + 0x38]
mov edx, dword [edx + eax]
bswap edx
call fcn.004357a0
test eax, eax
jne 0x436229
mov ecx, esi
pop edi
pop esi
pop ebx
jmp fcn.004359f0
test ax, ax
jne 0x4362d7
nop
xor eax, eax
test cl, cl
je 0x43630e
and byte [esi + 0x40], 0xf9
mov word [esi + 0x24], ax
movsx eax, cl
dec cl
mov eax, dword [esi + eax*4 + 0x78]
mov byte [esi + 0x44], cl
mov ecx, dword [eax + 0x48]
test byte [ecx + 0x18], 0x40
mov edi, dword [ecx + 0x10]
je 0x4362bd
call fcn.0042bfc0
jmp 0x4362c2
call fcn.004285a0
mov ecx, edi
call fcn.0042d140
mov cl, byte [esi + 0x44]
movsx eax, cl
cmp word [esi + eax*2 + 0x50], 0
je 0x436290
movsx eax, cl
mov ecx, 0xffff
add word [esi + eax*2 + 0x50], cx
movsx eax, byte [esi + 0x44]
mov eax, dword [esi + eax*4 + 0x78]
cmp byte [eax + 2], 0
je 0x436227
cmp byte [eax + 5], 0
jne 0x436227
push ebx
push esi
call fcn.00436320
add esp, 8
pop edi
pop esi
pop ebx
ret
pop edi
mov byte [esi + 0x42], 0
pop esi
mov dword [ebx], 1
pop ebx
ret
Function at 0x442620
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
mov ebx, edx
mov dword [ebp - 4], ecx
push esi
push edi
mov esi, dword [ebx]
mov ecx, esi
call fcn.004351a0
mov eax, dword [esi + 0x14]
mov edi, dword [esi + 0x10]
test eax, eax
jl 0x4426fd
jg 0x4426fd
test edi, edi
je 0x4426fd
test eax, eax
jg 0x4426fd
jl 0x442669
cmp edi, 0x7fffffff
ja 0x4426fd
mov esi, dword [ebx]
xor eax, eax
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], 0
movsx eax, byte [esi + 0x44]
mov edx, dword [esi + 0x18]
mov eax, dword [esi + eax*4 + 0x78]
mov ecx, dword [eax + 0x3c]
movzx eax, word [esi + 0x20]
sub ecx, edx
cmp eax, ecx
cmovae eax, ecx
cmp edi, eax
ja 0x4426ac
mov eax, 0x1010
mov dword [ebp - 0x20], edx
mov word [ebp - 0x28], ax
mov dword [ebp - 0x24], edi
jmp 0x4426c9
lea eax, [ebp - 0x30]
xor edx, edx
push eax
push 1
push edi
mov ecx, esi
call fcn.0043d670
add esp, 0xc
test eax, eax
jne 0x442724
mov edx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
push 0
push dword [ebp + 8]
mov ecx, edi
call fcn.00441a60
mov ecx, dword [ebp + 0xc]
add esp, 8
test dword [ebp - 0x28], 0x2460
mov dword [ecx], eax
jne 0x4426ec
cmp dword [ebp - 0x18], 0
je 0x4426f4
lea ecx, [ebp - 0x30]
call fcn.0043cca0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
push 0x52c134
push 0x11196
push str.database_corruption_at_line__d_of___.10s_
push 0xb
mov dword [eax], 0
call fcn.00422230
add esp, 0x10
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44d0c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
push 0
push 0x14
mov dword [ebx], 0
call fcn.0041fb40
mov esi, eax
add esp, 8
test esi, esi
jne 0x44d0f0
lea eax, [esi + 7]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x533e94], 0
mov edi, dword [ebp + 8]
je 0x44d123
mov eax, dword [ebp - 4]
mov dword [esi + 8], eax
lea eax, [esi + 4]
push eax
push 0
push esi
push 0x422420
push 0
push 0
mov dword [esi + 0xc], edi
call fcn.004f7e6b
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x44d130
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
cmp dword [esi + 8], 0
jne 0x44d149
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi + 4], eax
call dword [ebp - 4]
add esp, 4
mov dword [esi + 0x10], eax
pop edi
mov dword [ebx], esi
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49b1a0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x50], 0
je 0x49b211
cmp byte [esi + 0x60], 0
je 0x49b1f6
cmp dword [esi + 0x54], 8
lea eax, [esi + 0x40]
jb 0x49b1be
mov eax, dword [eax]
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x49b1f5
lea ecx, [esi + 0x64]
push ecx
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
cmp byte [esi + 0x59], 0
je 0x49b211
cmp dword [esi + 0x54], 8
lea eax, [esi + 0x40]
jb 0x49b207
mov eax, dword [eax]
push dword [esi + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop esi
pop ebp
ret 8

Function at 0x49bedd
Capabilities:
Create process on windows

Disassembly:
push 0xa0
mov eax, 0x50b004
call fcn.0049e9e0
mov edi, ecx
mov ebx, dword [ebp + 8]
mov ecx, ebx
mov esi, dword [sym.imp.DuiLib.dll_public:_bool___thiscall_DuiLib::CDuiString::operator_wchar_t_const__const]
push str.windowinit
call esi
test al, al
je 0x49bf11
lea ecx, [edi - 0x20]
call fcn.0049c3a0
jmp 0x49bff9
push str.click
mov ecx, ebx
call esi
test al, al
je 0x49bff9
mov ecx, dword [ebx + 0x108]
lea edx, [ebp - 0xac]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor ebx, ebx
lea ecx, [ebp - 0xac]
push str.btnClose
mov dword [ebp - 4], ebx
call esi
test al, al
jne 0x49bf94
push str.btn_update
lea ecx, [ebp - 0xac]
call esi
test al, al
je 0x49bf68
lea ecx, [edi - 0x20]
call fcn.0049c0c1
jmp 0x49bfed
push str.btn_start
lea ecx, [ebp - 0xac]
call esi
test al, al
je 0x49bf83
lea ecx, [edi - 0x20]
call fcn.0049c001
jmp 0x49bf94
push str.btn_comp
lea ecx, [ebp - 0xac]
call esi
test al, al
je 0x49bfaa
push ebx
push 0xf060
push 0x112
lea ecx, [edi - 0x20]
call dword [sym.imp.DuiLib.dll_public:_long_int___thiscall_DuiLib::CWindowWnd::SendMessageW_unsigned_int__unsigned_int__long_int_]
jmp 0x49bfed
push str.up_page
lea ecx, [ebp - 0xac]
call esi
test al, al
je 0x49bfed
lea eax, [ebp - 0x28]
push eax
call fcn.004093f0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
pop ecx
cmovae eax, dword [ebp - 0x28]
push 1
push ebx
push str.http:__www.kantu365.com
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x28]
call fcn.00405280
lea ecx, [ebp - 0xac]
call dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_]
call fcn.0049e98a
ret 4
Function at 0x49c0c1
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, ecx
push edi
push str.btn_update
lea ecx, [esi + 0x2c]
call dword [sym.imp.DuiLib.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_wchar_t_const__const]
xor edi, edi
mov ecx, eax
push edi
mov edx, dword [eax]
call dword [edx + 0xcc]
mov ecx, dword [esi + 0x3a8]
push 1
mov eax, dword [ecx]
call dword [eax + 0xcc]
mov ecx, dword [esi + 0x3a4]
push edi
mov eax, dword [ecx]
call dword [eax + 0xcc]
mov ecx, dword [esi + 0x398]
push 1
mov eax, dword [ecx]
call dword [eax + 0xcc]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x49bb7d
push eax
lea ecx, [esi + 0x3b8]
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], esi
call fcn.0049ba2f
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push edi
push esi
push 0x49c82a
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x49c15d
push 0xf
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
leave
ret

Function at 0x49c161
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov edi, ecx
push str.up_no_desc
lea ecx, [edi + 0x2c]
call dword [sym.imp.DuiLib.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_wchar_t_const__const]
push str.ck_W_vN
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x2c]
mov eax, dword [ebp + 0x10]
cdq
sub eax, edx
mov ecx, dword [edi + 0x398]
sar eax, 1
movd xmm0, eax
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [0x52ca40]
cvttsd2si esi, xmm0
push esi
call dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::CProgressUI::SetValue_int_]
cmp esi, 0x32
jl 0x49c20d
cmp byte [edi + 0x40c], 0
jne 0x49c20d
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x49cae4
xor esi, esi
mov dword [ebp - 4], edi
push eax
lea ecx, [edi + 0x3e0]
mov dword [ebp - 0xc], esi
call fcn.0049ba2f
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], esi
push eax
push esi
push edi
push 0x49c8aa
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x49c206
push 0xf
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [edi + 0x40c], 1
pop edi
xor eax, eax
pop esi
leave
ret 0x10
Function at 0x4a7ea0
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 0x4a7ee9
mov al, byte [esi]
push eax
call fcn.004b5400
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 0x4a7ec7
pop edi
pop esi
movzx eax, bl
pop ebx
pop ebp
ret

Function at 0x4b1aa0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp byte [esi + 0x6d0], 0
je 0x4b1b27
cmp dword [esi + 0x1a4], 0
je 0x4b1af1
push esi
call fcn.004a3880
push 1
push esi
mov byte [ebp + 8], al
call fcn.004a3ac0
push dword [esi + 0x154]
mov eax, dword [esi + 0x1a4]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call eax
push dword [ebp + 8]
push esi
call fcn.004a3ac0
add esp, 0x28
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x4b1b27
push dword [esi + 0x150]
lea eax, [eax + eax*2]
push 1
add eax, 0x5110c0
push 2
push eax
call fcn.004ea4bc
push dword [esi + 0x150]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.004ea4bc
add esp, 0x20
pop esi
pop ebp
ret

Function at 0x4b3630
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
call fcn.004b3660
add esp, 4
mov dword [ebp + 0x10], eax
pop ebp
jmp fcn.005002b6
Function at 0x4b38b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
push str.kernel32
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 4], eax
test eax, eax
jne 0x4b38d0
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
push 0x5112d0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [ebp + 8]
mov ebx, eax
push 0x5112e0
push esi
mov dword [ebp - 8], ebx
call fcn.004f9b47
add esp, 8
test eax, eax
je 0x4b391c
test ebx, ebx
je 0x4b390c
push 8
push 0
push esi
call ebx
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x4b3945
push str.AddDllDirectory
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4b3945
push 0x800
push 0
push esi
call ebx
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
mov dword [ebp - 4], edx
test edx, edx
je 0x4b3a08
mov ecx, esi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b3961
sub ecx, ebx
sar ecx, 1
lea eax, [ecx + edx]
lea eax, [eax*2 + 2]
push eax
call dword [0x5330b0]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4b39fe
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4b39fe
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b39a0
sub ecx, edx
sar ecx, 1
mov dword [ebx + ecx*2], 0x5c
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b39c0
sub ecx, edx
sar ecx, 1
add ecx, ecx
sub ecx, esi
add ecx, ebx
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x4b39d5
mov eax, dword [ebp - 8]
test eax, eax
je 0x4b39f5
push 8
push 0
push ebx
call eax
jmp 0x4b39fc
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
push ebx
call dword [0x5330b4]
add esp, 4
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4b3a20
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x53307c]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [ebp + 8], 2
je 0x4b3a79
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4b3a66
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x4b3a60
shr eax, 8
cmp al, 2
je 0x4b3a79
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049e964
mov esp, ebp
pop ebp
ret
push str.iphlpapi.dll
call fcn.004b38b0
add esp, 4
mov dword [0x535bd8], eax
test eax, eax
je 0x4b3aac
push str.if_nametoindex
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x535bd4]
test eax, eax
cmovne ecx, eax
mov dword [0x535bd4], ecx
push 3
push 2
push 0
push 0
push 6
call fcn.004dec70
add esp, 0x14
test al, al
setne byte [0x5372f0]
push 0x5372f8
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0049e964
mov esp, ebp
pop ebp
ret

Function at 0x4b63b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4b63ce
cmp dword [esi + 0x78], 0
je 0x4b63ce
push 2
push 3
push esi
call fcn.004b5b40
add esp, 0xc
push dword [ebp + 0xc]
call fcn.004b5e00
add esp, 4
test esi, esi
je 0x4b63ee
cmp dword [esi + 0x78], 0
je 0x4b63ee
push 3
push esi
call fcn.004b5b80
add esp, 8
pop esi
pop ebp
ret

Function at 0x4b64a0
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4b64e1
mov eax, dword [esi + 0x70]
cmp byte [eax + 0xf0], 0
jne 0x4b64d4
push 0
call fcn.004b64a0
add esp, 4
test al, al
mov eax, dword [esi + 0x70]
setne cl
inc cl
mov byte [eax + 0xf0], cl
mov eax, dword [esi + 0x70]
cmp byte [eax + 0xf0], 2
pop esi
sete al
pop ebp
ret
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x4b64f7
xor al, al
pop esi
pop ebp
ret
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, 1
pop esi
pop ebp
ret
Function at 0x4c0730
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x4c074b
cmp dword [edi], 0
jne 0x4c075d
test esi, esi
je 0x4c0754
cmp dword [esi], 0
jne 0x4c075d
test ebx, ebx
je 0x4c07a6
cmp dword [ebx], 0
je 0x4c07a6
push dword [ebp + 0x1c]
lea eax, [ebp - 8]
push dword [ebp + 0x18]
push eax
call fcn.004e33c0
add esp, 0xc
test ebx, ebx
je 0x4c0778
cmp dword [ebx], 0
jne 0x4c077a
xor ebx, ebx
test esi, esi
je 0x4c0783
cmp dword [esi], 0
jne 0x4c0785
xor esi, esi
test edi, edi
je 0x4c078e
cmp dword [edi], 0
jne 0x4c0790
xor edi, edi
push eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
call fcn.004c06e0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c3580
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.004a88e0
push dword [ebp + 8]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x10], xmm0
call fcn.004c1f30
push dword [ebp + 0xc]
mov edi, eax
call fcn.004c1f30
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
add esp, 0xc
mov esi, eax
push 1
push esi
push edi
call ebx
test eax, eax
jne 0x4c3607
lea eax, [ebp - 0x20]
push eax
call fcn.004a88e0
movups xmm0, xmmword [ebp - 0x10]
sub esp, 0xc
mov ecx, esp
sub esp, 0x10
movups xmmword [ecx], xmm0
mov ecx, esp
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
call fcn.004a8990
add esp, 0x20
test edx, edx
ja 0x4c362a
jb 0x4c35f5
cmp eax, 0x3e8
ja 0x4c362a
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push esi
push edi
call ebx
test eax, eax
je 0x4c35c0
test edi, edi
je 0x4c3614
push edi
call fcn.004edf01
add esp, 4
test esi, esi
je 0x4c3621
push esi
call fcn.004edf01
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x4c3637
push edi
call fcn.004edf01
add esp, 4
test esi, esi
je 0x4c3644
push esi
call fcn.004edf01
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c3a10
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
push ebx
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [eax], ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x4c3b8d
push esi
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x4c3b79
push edi
nop dword [eax]
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4c3a6e
lea edx, [eax + 1]
nop word [eax + eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c3a60
sub eax, edx
lea ecx, [eax + 1]
jmp 0x4c3a70
xor ecx, ecx
mov eax, dword [esi + 4]
mov dword [ebp - 8], ecx
cmp eax, 2
jne 0x4c3a82
mov eax, 0x10
jmp 0x4c3a90
cmp eax, 0x17
jne 0x4c3b35
mov eax, 0x1c
cmp dword [esi + 0x18], 0
mov dword [ebp - 4], eax
je 0x4c3b35
mov edx, dword [esi + 0x10]
test edx, edx
je 0x4c3b35
cmp edx, eax
jb 0x4c3b35
add ecx, 0x20
add eax, ecx
push eax
call dword [0x5330b0]
mov edi, eax
add esp, 4
test edi, edi
je 0x4c3b6e
mov ecx, dword [esi]
mov dword [edi], ecx
mov ecx, dword [esi + 4]
mov dword [edi + 4], ecx
mov ecx, dword [esi + 8]
mov dword [edi + 8], ecx
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 4]
mov dword [edi + 0xc], eax
lea eax, [edi + 0x20]
push ecx
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x18], eax
push dword [esi + 0x18]
push eax
call fcn.004e69f0
mov edx, dword [ebp - 8]
add esp, 0xc
test edx, edx
je 0x4c3b23
mov eax, dword [edi + 0x18]
add eax, dword [ebp - 4]
push edx
mov dword [edi + 0x14], eax
push dword [esi + 0x14]
push eax
call fcn.004e69f0
add esp, 0xc
mov eax, dword [ebp - 0xc]
test ebx, ebx
cmove ebx, edi
test eax, eax
je 0x4c3b32
mov dword [eax + 0x1c], edi
mov dword [ebp - 0xc], edi
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x4c3a50
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
pop edi
test eax, eax
je 0x4c3b52
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x4c3b75
push ebx
call fcn.004c39e0
mov eax, dword [ebp + 0x14]
add esp, 4
xor ebx, ebx
mov dword [eax], ebx
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, 8
jmp 0x4c3b43
test ebx, ebx
jne 0x4c3b85
mov esi, 0x2af9
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c3fa0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call fcn.004f7e6b
add esp, 0x18
test eax, eax
je 0x4c3fc2
cmp eax, 0xffffffff
jne 0x4c3fc4
xor eax, eax
pop ebp
ret

Function at 0x4c4120
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.004e7890
add esp, 0xc
push 2
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
pop ebp
ret