joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d464
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41af20]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00409cee
mov dword [ebp - 0x14], eax
cmp dword [0x43e4bc], esi
jne 0x40d557
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d4e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d637
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d637
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d637
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x43e4bc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x43e4c0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x43e4c4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43e4cc], eax
test eax, eax
je 0x40d554
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43e4c8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d57c
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d56f
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d591
push 4
pop eax
jmp 0x40d639
cmp dword [ebp - 0x14], esi
je 0x40d591
push dword [0x43e4bc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d576
mov eax, dword [0x43e4c8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d5ef
cmp dword [0x43e4cc], edi
je 0x40d5ef
push eax
call ebx
push dword [0x43e4cc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d5ef
test eax, eax
je 0x40d5ef
call ecx
test eax, eax
je 0x40d5e4
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d5e4
test byte [ebp - 8], 1
jne 0x40d5ef
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d61f
mov eax, dword [0x43e4c0]
cmp eax, edi
je 0x40d61c
push eax
call ebx
test eax, eax
je 0x40d61c
call eax
mov esi, eax
test esi, esi
je 0x40d61c
mov eax, dword [0x43e4c4]
cmp eax, edi
je 0x40d61c
push eax
call ebx
test eax, eax
je 0x40d61c
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x43e4bc]
call ebx
test eax, eax
je 0x40d637
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d639
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004042a7
mov esp, ebp
pop ebp
ret
Function at 0x4011a0
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x46c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x468], eax
push esi
push 0x104
lea eax, [esp + 0x44]
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x4011db
mov edx, 0x4031e8
jmp 0x401294
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x24c]
push str._scmd.exe
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov dword [esp + 4], 0x3c
lea eax, [esp + 0x248]
mov dword [esp + 8], 0x40
xorps xmm0, xmm0
mov dword [esp + 0x14], eax
lea eax, [esp + 4]
movlpd qword [esp + 0x28], xmm0
push eax
movlpd qword [esp + 0x34], xmm0
movlpd qword [esp + 0x3c], xmm0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], str.open
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40128f
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x40128f
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esp + 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov ecx, dword [esp + 0x468]
xor ecx, esp
call fcn.00401879
mov esp, ebp
pop ebp
ret
mov edx, str.ShellExecuteEx_failed.
push 0x401760
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.00401530
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
mov ecx, dword [esp + 0x46c]
pop esi
xor ecx, esp
call fcn.00401879
mov esp, ebp
pop ebp
ret

Function at 0x4020b1
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4020f0
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4020f0
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4020f0
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4020f0
cmp dword [ecx + 0x74], 0xe
jbe 0x4020f0
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401110
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xd4
call fcn.00401121
Function at 0x42091d
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x88
mov dword [esp], ecx
call fcn.0044ac0d
mov esi, eax
push 5
pop edx
mov ecx, eax
push 0xa
call fcn.00407914
pop ecx
lea ecx, [esp + 4]
mov dword [ecx], eax
mov eax, 0x29a
push 0x64
pop ebx
mov ecx, esi
mov edx, ebx
push eax
call fcn.00407914
pop ecx
lea ecx, [esp + 8]
mov dword [ecx], eax
push 0x63
pop eax
push 0xa
pop edx
mov ecx, esi
push eax
call fcn.00407914
pop ecx
lea ecx, [esp + 0xc]
mov dword [ecx], eax
push 0x6e
pop edi
mov ecx, esi
mov edx, ebx
push edi
call fcn.00407914
pop ecx
lea ecx, [esp + 0x10]
mov ebp, 0x1450
mov edx, 0x1388
mov dword [ecx], eax
mov ecx, esi
push ebp
call fcn.00407914
pop ecx
lea ecx, [esp + 0x14]
mov edx, ebx
mov dword [ecx], eax
mov ecx, esi
push edi
call fcn.00407914
pop ecx
lea ecx, [esp + 0x18]
mov edx, ebx
mov dword [ecx], eax
mov eax, 0x29a
mov ecx, esi
push eax
call fcn.00407914
pop ecx
lea ebx, [esp + 0x1c]
mov ecx, esi
mov dword [ebx], eax
push 0xa
pop edx
push 0x63
pop eax
push eax
call fcn.00407914
pop ecx
lea edi, [esp + 0x20]
mov ecx, esi
mov edx, 0x1388
mov dword [edi], eax
push ebp
call fcn.00407914
pop ecx
lea ecx, [esp + 0x24]
lea edx, [esp + 4]
lea ebp, [esp + 8]
mov dword [ecx], eax
lea eax, [esp + 0x40]
mov dword [eax], edx
mov edx, fcn.0042ea40
mov dword [eax + 4], edx
mov dword [eax + 8], ebp
lea ebp, [esp + 0xc]
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ebp
lea ebp, [esp + 0x10]
mov dword [eax + 0x14], edx
mov dword [eax + 0x18], ebp
lea ebp, [esp + 0x14]
mov dword [eax + 0x1c], edx
mov dword [eax + 0x20], ebp
lea ebp, [esp + 0x18]
mov dword [eax + 0x24], edx
mov dword [eax + 0x28], ebp
mov dword [eax + 0x2c], edx
mov dword [eax + 0x30], ebx
mov dword [eax + 0x34], edx
mov dword [eax + 0x38], edi
mov dword [eax + 0x3c], edx
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], edx
lea edx, [esp + 0x28]
mov dword [edx], 0x4cf6b8
push 9
pop ecx
mov dword [edx + 4], ecx
and dword [edx + 0x10], 0
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov ecx, dword [esp]
call fcn.00407b77
mov ecx, esi
call fcn.004489bc
add esp, 0x88
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x420f29
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x60
mov edi, edx
mov esi, ecx
lea ebx, [esp + 0x10]
mov ecx, ebx
push dword [ebp + 8]
call fcn.00487de0
pop eax
mov eax, dword [ebx]
xor eax, 2
or eax, dword [ebx + 4]
jne 0x420f61
mov edx, dword [esp + 0x18]
mov ecx, esi
push dword [esp + 0x1c]
jmp 0x421070
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov edx, eax
shr ecx, 0x1d
shr edx, 0xa
and ecx, edx
test cl, 1
jne 0x420fcd
and eax, 0x10
je 0x420fcd
lea ebx, [esp + 0x10]
mov edx, edi
mov ecx, ebx
push dword [ebp + 8]
call fcn.0047d8b0
pop eax
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov edi, dword [ebx + 8]
test eax, eax
je 0x42102d
lea edx, [esp + 0x10]
mov dword [edx], eax
mov dword [edx + 8], edi
lea edi, [esp + 4]
mov dword [edx + 4], ecx
mov ecx, edi
push 1
call fcn.00485630
pop eax
mov ebx, dword [edi]
mov ecx, dword [edi + 4]
test ebx, ebx
je 0x421035
mov dword [esp], ecx
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x421017
lea ebx, [esp + 0x10]
mov edx, edi
mov ecx, ebx
push dword [ebp + 8]
call fcn.0047d8b0
pop eax
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov edi, dword [ebx + 8]
test eax, eax
je 0x42102d
lea edx, [esp + 0x10]
mov dword [edx], eax
mov dword [edx + 8], edi
lea edi, [esp + 4]
mov dword [edx + 4], ecx
mov ecx, edi
push 1
call fcn.00485630
pop eax
mov ebx, dword [edi]
mov ecx, dword [edi + 4]
test ebx, ebx
je 0x421035
mov dword [esp], ecx
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x42104b
cmp dword [esp], 0
je 0x421044
push 2
pop edx
mov ecx, ebx
call fcn.00425c30
jmp 0x421044
mov edx, ecx
shrd edx, edi, 8
jmp 0x42103f
mov edi, dword [esp + 0xc]
mov edx, edi
shld edx, ecx, 0x18
cmp cl, 4
jne 0x421065
mov word [esi], 0x100
jmp 0x421076
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esp], 0
mov edi, eax
je 0x421063
push 2
pop edx
mov ecx, ebx
call fcn.00425c30
xor ecx, ecx
movzx eax, cl
shl edx, 8
mov ecx, esi
or edx, eax
push edi
call fcn.0040109b
pop eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x42107e
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x50
mov esi, esp
mov dword [esi + 0x38], ebp
lea eax, [esi + 0x40]
mov ebx, ecx
lea edi, [esi + 8]
mov dword [esi + 0x28], edx
mov dword [eax - 4], esp
or dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x4a9de0
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov ecx, edi
mov dword fs:[0], eax
push dword [ebp + 8]
call fcn.0047d8b0
pop eax
mov ecx, dword [edi]
mov edx, dword [edi + 4]
mov eax, dword [edi + 8]
test ecx, ecx
je 0x4211f4
mov edi, edx
lea edx, [esi + 8]
mov dword [edx], ecx
mov dword [edx + 4], edi
lea edi, [esi + 0x2c]
mov dword [edx + 8], eax
mov ecx, edi
push 1
call fcn.00485630
pop eax
mov eax, dword [edi]
mov edx, dword [edi + 4]
test eax, eax
je 0x4211cb
mov edi, dword [ebp + 0x10]
mov dword [esi + 4], edx
mov edx, dword [ebp + 0xc]
and dword [esi + 0x48], 0
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ebx
lea ecx, [esi + 8]
push edi
call fcn.0047d8b0
pop eax
mov ecx, dword [esi + 8]
mov ebx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
test ecx, ecx
je 0x4211d3
lea edx, [esi + 8]
mov dword [edx], ecx
mov dword [edx + 4], ebx
mov dword [edx + 8], eax
lea ecx, [esi + 0x2c]
push 1
call fcn.00485630
pop eax
mov edi, dword [esi + 0x2c]
mov ebx, dword [esi + 0x30]
test edi, edi
je 0x4211d0
and dword [esi + 0xc], 0
and dword [esi + 8], 0
push 0
push 0
lea eax, [esi + 8]
push eax
push 0x498180
push edi
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
je 0x42120e
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
test ebx, ebx
mov dword [esi + 0x24], ecx
mov dword [esi + 0x20], eax
je 0x42118c
push 2
pop edx
mov ecx, edi
call fcn.00425c30
mov bl, byte [ebp + 0x14]
cmp dword [esi + 4], 0
je 0x4211a0
push 2
pop edx
mov ecx, dword [esi + 0x14]
call fcn.00425c30
test bl, bl
je 0x42122e
mov edx, dword [esi + 0x28]
lea edi, [esi + 8]
mov ecx, edi
push dword [ebp + 8]
call fcn.00420f29
pop eax
cmp byte [edi], 0
mov ecx, dword [esi + 0x18]
je 0x421238
mov eax, dword [esi + 0xc]
mov dword [ecx + 4], eax
mov al, 1
jmp 0x421240
mov eax, dword [esi + 0x34]
jmp 0x4211f4
mov eax, dword [esi + 0x34]
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], eax
mov eax, dword [esi + 4]
mov ebx, dword [esi + 0x18]
test eax, eax
je 0x4211ee
push 2
pop edx
mov ecx, dword [esi + 0x14]
call fcn.00425c30
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 0x20]
mov ecx, ebx
push eax
call fcn.0040109b
pop eax
mov eax, dword [esi + 0x40]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [esi + 0x1c], 0
mov dword [esi + 0x20], eax
mov eax, dword [esi + 4]
test ebx, ebx
je 0x4211dc
push 2
pop edx
mov ecx, edi
call fcn.00425c30
jmp 0x4211d9
mov eax, dword [esi + 0x18]
mov word [eax], 0x100
jmp 0x4211fd
mov al, byte [esi + 9]
mov byte [ecx + 1], al
xor eax, eax
mov byte [ecx], al
jmp 0x4211fd
Function at 0x42cb00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, edx
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x20]
xor esi, esi
lea edx, [eax + edx*2]
movzx ebx, byte [eax + 1]
cmp byte [eax], ch
lea eax, [eax + 2]
lea edi, [esi + ebx]
jne 0x42cb50
cmp edi, esi
jb 0x42cbb8
cmp edi, dword [esp + 0x1c]
ja 0x42cbcb
add esi, dword [esp + 0x18]
nop word [eax + eax]
test ebx, ebx
je 0x42cb52
dec ebx
cmp byte [esi], cl
lea esi, [esi + 1]
jne 0x42cb40
jmp 0x42cbaf
ja 0x42cb58
cmp eax, edx
mov esi, edi
jne 0x42cb13
mov edi, dword [esp + 0x24]
movzx ecx, cx
mov al, 1
add edi, ebp
nop word cs:[eax + eax]
nop dword [eax]
movzx edx, byte [ebp]
lea esi, [ebp + 1]
test dl, dl
js 0x42cb90
mov ebp, esi
sub ecx, edx
jns 0x42cba7
jmp 0x42cbb1
cmp esi, edi
je 0x42cbe0
movzx esi, byte [ebp + 1]
and edx, 0x7f
add ebp, 2
shl edx, 8
or edx, esi
sub ecx, edx
js 0x42cbb1
xor al, 1
cmp ebp, edi
jne 0x42cb70
jmp 0x42cbb1
xor eax, eax
and al, 1
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, esi
mov edx, edi
push 0x4d1660
call fcn.004c8a60
add esp, 4
ud2
mov edx, dword [esp + 0x1c]
mov ecx, edi
push 0x4d1660
call fcn.004c8850
add esp, 4
ud2
mov ecx, 0x4f022c
mov edx, 0x2b
push 0x4d1650
call fcn.004c88c0
add esp, 4
ud2
Function at 0x42efc9
Capabilities:
Hash data with crc32

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov eax, edx
mov edx, dword [esp + 0x18]
mov ebx, ecx
not ebx
cmp edx, 0x40
jb 0x42f0f0
push 4
pop edi
sub edi, 1
jb 0x42efd8
cmp edx, 0xf
jbe 0x42f100
movzx ebp, byte [eax + 0xe]
movzx esi, byte [eax + 0xf]
mov ecx, ebx
mov dword [esp], edx
mov edx, 0xff
shr ecx, 0x18
mov ebp, dword [ebp*4 + 0x4d8ac0]
xor ebp, dword [esi*4 + 0x4d86c0]
movzx esi, byte [eax + 0xd]
xor ebp, dword [esi*4 + 0x4d8ec0]
movzx esi, byte [eax + 0xc]
xor ebp, dword [esi*4 + 0x4d92c0]
movzx esi, byte [eax + 0xb]
xor ebp, dword [esi*4 + 0x4d96c0]
movzx esi, byte [eax + 0xa]
xor ebp, dword [esi*4 + 0x4d9ac0]
movzx esi, byte [eax + 9]
xor ebp, dword [esi*4 + 0x4d9ec0]
movzx esi, byte [eax + 8]
xor ebp, dword [esi*4 + 0x4da2c0]
movzx esi, byte [eax + 7]
xor ebp, dword [esi*4 + 0x4da6c0]
movzx esi, byte [eax + 6]
xor ebp, dword [esi*4 + 0x4daac0]
movzx esi, byte [eax + 5]
xor ebp, dword [esi*4 + 0x4daec0]
movzx esi, byte [eax + 4]
xor ebp, dword [esi*4 + 0x4db2c0]
movzx esi, byte [eax + 3]
xor ecx, esi
mov esi, ebx
xor ebp, dword [ecx*4 + 0x4db6c0]
movzx ecx, byte [eax + 2]
shr esi, 0x10
and esi, edx
xor esi, ecx
movzx ecx, byte [eax + 1]
xor ebp, dword [esi*4 + 0x4dbac0]
mov esi, ebx
and ebx, edx
shr esi, 8
and esi, edx
mov edx, dword [esp]
xor esi, ecx
movzx ecx, byte [eax]
xor ebp, dword [esi*4 + 0x4dbec0]
xor ebx, ecx
mov ecx, eax
xor ebp, dword [ebx*4 + 0x4dc2c0]
push 0x4d86b0
call fcn.0042f567
pop ecx
mov ebx, ebp
jmp 0x42efe4
mov cl, byte [eax]
inc eax
dec edx
xor cl, bl
shr ebx, 8
movzx esi, cl
xor ebx, dword [esi*4 + 0x4d86c0]
test edx, edx
jne 0x42f0dd
not ebx
mov eax, ebx
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
push 0xf
pop ecx
push 0x4d86a0
call fcn.004c8770
pop eax
ud2

Function at 0x42fb99
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
mov ecx, section..data
call fcn.0049f0b5
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jbe 0x42fbbe
cmp dword [eax + 4], 0
mov edi, eax
je 0x42fbbe
add edi, 8
jmp 0x42fc29
mov ecx, section..data
call fcn.0049f0b5
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x42fc27
mov esi, eax
test eax, eax
jne 0x42fc03
push 0xc
pop ecx
push 4
pop edx
call fcn.0042fa9d
mov dword [eax], section..data
and dword [eax + 4], 0
mov ecx, section..data
mov esi, eax
call fcn.0049f0b5
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
call fcn.0042f5e1
call fcn.0042f63d
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
mov dword [esi + 4], 1
lea edi, [esi + 8]
mov dword [esi + 8], eax
call fcn.0042f6c2
jmp 0x42fc29
xor edi, edi
mov eax, edi
pop esi
pop edi
ret
Function at 0x431a13
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov ebp, edx
mov dword [esp], ecx
mov esi, dword [esp]
test ebp, ebp
je 0x431a57
lea eax, [esi + ebp]
mov ebx, ebp
mov dword [esp], eax
push 2
push ebp
push esi
push 0
call dword [sym.imp.bcrypt.dll_BCryptGenRandom]
xor ebp, ebp
cmp eax, 0xbfffffff
jbe 0x431a1d
mov edi, eax
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
jne 0x431a1d
add edi, 0x80000000
jmp 0x431a59
xor edi, edi
mov eax, edi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x43d8d5
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x38
mov dword [esp + 0x1c], edx
mov edx, dword [ebp + 8]
lea ebx, [esp + 0x20]
mov esi, ecx
mov ecx, ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0043ded9
pop eax
pop ecx
mov ecx, dword [ebx + 8]
mov edi, dword [ebx]
mov eax, dword [ebx + 4]
cmp ecx, 0x3b9aca01
jne 0x43d917
mov dword [esi], edi
mov dword [esi + 4], eax
jmp 0x43d9ef
mov dword [esp + 0x14], esi
xor esi, esi
cmp ecx, 0x3b9aca00
je 0x43d9a3
mov esi, 0x3e8
mul esi
mov dword [esp + 0x18], eax
mov eax, edi
seto byte [esp + 7]
mul esi
mov edi, edx
mov dword [esp + 8], eax
add edi, dword [esp + 0x18]
setb al
or al, byte [esp + 7]
xor esi, esi
dec esi
test al, al
jne 0x43d9a3
mov eax, ecx
xor edx, edx
mov esi, 0xf4240
div esi
mov edx, dword [esp + 8]
add edx, eax
adc edi, 0
jae 0x43d96c
xor esi, esi
dec esi
jmp 0x43d9a3
mov eax, edx
mov dword [esp + 8], edx
mov eax, ecx
xor edx, edx
mov esi, 0xf4240
div esi
mov esi, 0xffffffff
xor eax, eax
test edx, edx
setne al
add dword [esp + 8], eax
mov eax, dword [esp + 8]
adc edi, 0
jb 0x43d9a3
neg edi
mov esi, 0
sbb esi, esi
or esi, eax
je 0x43d9f7
mov dword [esp + 0x20], esi
push 4
push ebx
push 0x1006
push 0xffff
push dword [esp + 0x2c]
call sub.WS2_32.dll_setsockopt
mov cl, 4
cmp eax, 0xffffffff
jne 0x43d9db
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
and word [esp + 0xd], 0
xor ecx, ecx
mov byte [esp + 0xf], 0
mov dword [esp + 0x10], eax
mov byte [esp + 0xc], cl
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0xc]
call fcn.0043e8bd
mov byte [esi], 4
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov byte [esp + 0xc], 2
mov dword [esp + 0x10], 0x4eb404
jmp 0x43d9df
Function at 0x43e7af
Capabilities:
Connect socket

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov ebx, dword [esp + 0x38]
mov esi, ecx
cmp dl, 4
jne 0x43e809
mov eax, dword [0x53cb84]
cmp eax, 3
jne 0x43e8b3
mov edx, dword [ebx]
lea edi, [esp + 8]
mov ecx, edi
push 1
call fcn.0048a7b0
pop eax
mov al, byte [edi]
cmp al, 4
jne 0x43e824
mov ebp, dword [esp + 0xc]
cmp word [ebx], 0
je 0x43e83f
mov ecx, dword [ebx + 0x18]
movups xmm0, xmmword [ebx + 4]
lea eax, [ebx + 0x14]
add ebx, 0x1c
mov dword [esp + 4], ecx
push 0x1c
pop ecx
mov dx, 0x17
jmp 0x43e855
mov eax, edx
shr eax, 8
mov word [esi + 1], ax
mov eax, edx
shr eax, 0x18
mov byte [esi + 3], al
mov byte [esi], dl
mov dword [esi + 4], ebx
jmp 0x43e8ab
mov cl, byte [esp + 0xb]
movzx edi, word [esp + 9]
mov edx, dword [esp + 0xc]
mov byte [esi + 3], cl
mov word [esi + 1], di
mov byte [esi], al
mov dword [esi + 4], edx
jmp 0x43e8ab
lea eax, [ebx + 2]
add ebx, 6
push 0x10
pop ecx
mov dword [esp], ebp
mov dx, 2
xorps xmm0, xmm0
mov ebp, dword [esp]
movzx ebx, word [ebx]
mov eax, dword [eax]
mov word [esp + 8], dx
rol bx, 8
mov word [esp + 0xa], bx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 4]
movups xmmword [esp + 0x10], xmm0
mov dword [esp + 0x20], eax
push ecx
push edi
push ebp
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x43e88f
mov dword [esi + 4], ebp
mov byte [esi], 4
jmp 0x43e8ab
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor ecx, ecx
mov byte [esi], cl
and word [esi + 1], 0
mov byte [esi + 3], cl
mov dword [esi + 4], eax
push ebp
call dword [sym.imp.WS2_32.dll_closesocket]
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.004cb450
jmp 0x43e7cf
Function at 0x441b62
Capabilities:
Connect pipe

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov ebp, dword [edx]
mov al, 1
mov esi, ecx
xchg byte [ebp + 0x54], al
test al, al
je 0x441b82
and dword [esi + 4], 0
mov dword [esi], 0xd01
jmp 0x441bfc
mov edi, edx
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x50]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x441beb
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 4]
mov ebx, eax
mov byte [ecx], 0
mov dword [ecx + 4], eax
call fcn.00441b29
cmp eax, 1
jne 0x441bde
mov dword [esp], ebx
mov bh, 1
cmp edx, 0xe8
je 0x441bd2
cmp edx, 0x217
je 0x441bd2
cmp edx, 0x3e5
jne 0x441bde
xor eax, eax
mov bh, al
mov edx, dword [esp]
xor ecx, ecx
call fcn.00444767
jmp 0x441be7
mov ebx, dword [esp + 4]
cmp bl, 4
jne 0x441c04
test bh, bh
je 0x441c14
xor eax, eax
xor edx, edx
xchg byte [ebp + 0x54], al
mov ecx, dword [edi]
call fcn.00441c22
mov byte [esi], 4
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 8]
xor ecx, ecx
xchg byte [ebp + 0x54], cl
mov dword [esi], ebx
mov dword [esi + 4], eax
jmp 0x441bfc
lock inc dword [ebp]
jg 0x441b76
ud2