joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409a40
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4549f8
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x472008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x4061b0
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
push eax
push str.Variable_value2:
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.00404830
add esp, 8
push eax
call fcn.00404b30
add esp, 8
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_____]
push 0x402580
lea eax, [ebp + 8]
push eax
push str.Variable_address2:
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.004021b0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___void_const__]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x409ade
test al, 0x10
jne 0x409af6
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push 0
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x409afd
mov esi, 1
jmp 0x409aff
xor esi, esi
mov ecx, dword [ebp + 0x1c]
cmp ecx, 8
jb 0x409b16
push 2
inc ecx
push ecx
push dword [ebp + 8]
call fcn.004035c0
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40b900
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x472008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 0x10]
cmp dword [eax + 0x14], 8
mov dword [ebp - 0xc], ecx
jb 0x40b927
mov eax, dword [eax]
push ebx
push 0
push 0x80
push 3
push 0
push 0
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40b95c
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040219c
mov esp, ebp
pop ebp
ret
push esi
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
call fcn.00423d44
add esp, 4
mov esi, eax
lea eax, [ebp - 8]
push 0
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [eax], edi
mov eax, dword [ebp - 0x10]
pop edi
mov dword [eax], esi
xor eax, eax
pop esi
pop ebx
call fcn.0040219c
mov esp, ebp
pop ebp
ret
Function at 0x423d60
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov byte [esi], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 4], 0x67452301
mov dword [esi + 8], 0xefcdab89
mov dword [esi + 0xc], 0x98badcfe
mov dword [esi + 0x10], 0x10325476
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x423da1
mov eax, dword [eax]
push ecx
push eax
mov ecx, esi
call fcn.00423f10
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x423dc0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
mov esi, ecx
push dword [ebp + 8]
mov byte [esi], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 4], 0x67452301
mov dword [esi + 8], 0xefcdab89
mov dword [esi + 0xc], 0x98badcfe
mov dword [esi + 0x10], 0x10325476
call fcn.00423f10
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x4270f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x457da2
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x472008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x120], esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x427155
mov eax, dword [esi]
jmp 0x427157
mov eax, esi
mov byte [eax], 0
lea eax, [ebp - 0x118]
mov dword [ebp - 4], 0
push eax
push 0x20019
push 0
push str.HARDWAREDESCRIPTIONSystemBIOS
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x11c], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4271f7
lea eax, [ebp - 0x114]
mov dword [ebp - 0x114], 0x100
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push 0
push str.BIOSVersion
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4271eb
cmp byte [ebp - 0x110], al
jne 0x4271ca
xor ecx, ecx
jmp 0x4271dc
lea ecx, [ebp - 0x110]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4271d3
sub ecx, edx
push ecx
lea eax, [ebp - 0x110]
mov ecx, esi
push eax
call fcn.00403d00
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040219c
mov esp, ebp
pop ebp
ret
Function at 0x428820
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x457da2
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x472008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x120], esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x428885
mov eax, dword [esi]
jmp 0x428887
mov eax, esi
mov byte [eax], 0
lea eax, [ebp - 0x118]
mov dword [ebp - 4], 0
push eax
push 0x20019
push 0
push str.HARDWAREDESCRIPTIONSystemBIOS
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x11c], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x428927
lea eax, [ebp - 0x114]
mov dword [ebp - 0x114], 0x100
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push 0
push str.SystemManufacturer
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42891b
cmp byte [ebp - 0x110], al
jne 0x4288fa
xor ecx, ecx
jmp 0x42890c
lea ecx, [ebp - 0x110]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x428903
sub ecx, edx
push ecx
lea eax, [ebp - 0x110]
mov ecx, esi
push eax
call fcn.00403d00
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040219c
mov esp, ebp
pop ebp
ret
Function at 0x428c80
Capabilities:
Get hostname
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4580e9
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x472008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x60], esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x428cdc
mov eax, dword [esi]
jmp 0x428cde
mov eax, esi
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x58]
mov dword [ebp - 4], ecx
push eax
mov dword [ebp - 0x5c], 1
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0x10
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea eax, [ebp - 0x30]
push eax
push str.computerName:
call fcn.004046d0
add esp, 8
cmp word [ebp - 0x30], 0
jne 0x428d28
xor ecx, ecx
jmp 0x428d3f
lea ecx, [ebp - 0x30]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x428d30
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x30]
mov ecx, esi
push eax
call fcn.00403ac0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040219c
mov esp, ebp
pop ebp
ret
Function at 0x42e3e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4589e7
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x472008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x1c], edi
mov eax, dword [ebp + 8]
mov dword [edi], eax
mov dword [ebp - 4], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
lea ebx, [edi + 0x10]
mov byte [ebp - 4], 1
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
push 0
mov ecx, ebx
mov dword [ebp - 0x14], 0
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
call fcn.0042eb20
mov dword [ebx + 0xc], 0
lea esi, [edi + 0x20]
mov byte [ebp - 4], 2
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], esi
push eax
push 0
mov ecx, esi
mov dword [ebp - 0x14], 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.0042eb20
mov dword [esi + 0xc], 0
lea esi, [edi + 0x38]
mov dword [edi + 0x30], 0
mov byte [edi + 0x34], 0
mov dword [ebp - 0x14], esi
mov dword [esi + 0x24], 0
mov ecx, dword [ebp + 0x30]
mov byte [ebp - 4], 4
test ecx, ecx
je 0x42e4ce
mov eax, dword [ecx]
push esi
call dword [eax]
mov dword [esi + 0x24], eax
mov al, byte [ebp + 0x34]
lea ecx, [edi + 0x70]
mov byte [edi + 0x60], al
push 9
mov byte [ebp - 4], 5
mov byte [edi + 0x68], 9
call fcn.00406d10
mov eax, dword [ebx + 0xc]
xorps xmm0, xmm0
mov esi, dword [ebx]
xor edx, edx
mov byte [ebp - 4], 6
mov byte [ebp - 0xd], 1
movq qword [ebp - 0x18], xmm0
test eax, eax
je 0x42e52c
mov edx, eax
test edx, edx
jns 0x42e521
neg eax
je 0x42e521
or ecx, 0xffffffff
mov eax, 0xfffffffc
sub ecx, edx
shr ecx, 5
shl ecx, 2
sub eax, ecx
add esi, eax
jmp 0x42e529
mov eax, edx
shr eax, 5
lea esi, [esi + eax*4]
and edx, 0x1f
lea eax, [ebp - 0xd]
mov ecx, ebx
push eax
push 1
push edx
push esi
lea eax, [ebp - 0x18]
push eax
call fcn.0042ed50
mov ecx, dword [ebp + 0x30]
test ecx, ecx
je 0x42e557
mov esi, dword [ecx]
lea eax, [ebp + 0xc]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x30
Function at 0x42ebe0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4546a8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x472008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x42ed24
cmp byte [ebx + 0x3d], 0
je 0x42ed24
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x42ec39
xor al, al
jmp 0x42ed26
mov ecx, 0xf
mov byte [ebp - 0x28], 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], ecx
cmp ecx, 0x10
movq qword [ebp - 0x28], xmm0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 8
cmovae eax, dword [ebp - 0x28]
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
lea edi, [ebx + 0x40]
nop
cmp esi, 0x10
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
add eax, edx
push eax
push ecx
mov ecx, dword [ebx + 0x38]
push edi
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x42ecac
sub eax, 1
je 0x42ecb0
mov esi, dword [ebp - 0x14]
sub eax, 2
je 0x42ed08
xor bl, bl
jmp 0x42ed0a
mov byte [ebx + 0x3d], 0
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
cmp esi, 0x10
mov edi, dword [ebp - 0x2c]
cmovae eax, ecx
sub edi, eax
je 0x42ece6
push dword [ebx + 0x4c]
cmp esi, 0x10
lea eax, [ebp - 0x28]
push edi
cmovae eax, ecx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov esi, dword [ebp - 0x14]
add esp, 0x10
cmp edi, eax
jne 0x42eca8
cmp byte [ebx + 0x3d], 0
je 0x42ed08
test edi, edi
lea edi, [ebx + 0x40]
jne 0x42ec70
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.00409660
jmp 0x42ec69
mov bl, 1
cmp esi, 0x10
jb 0x42ed20
push 1
lea ecx, [esi + 1]
push ecx
push dword [ebp - 0x28]
call fcn.004035c0
add esp, 0xc
mov al, bl
jmp 0x42ed26
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040219c
mov esp, ebp
pop ebp
ret
Function at 0x43c300
Capabilities:
Check http status code

Disassembly:
push esi
mov esi, ecx
call fcn.0043a510
mov ecx, esi
pop esi
jmp fcn.0043bbe0
Function at 0x43ea60
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 3
push 0x26c
push str.Socket_getch
mov dword [ebp - 4], 0xffffffff
call fcn.00448410
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.0044a970
add esp, 0x14
mov dword [ebp - 4], eax
cmp eax, 0xffffffea
jne 0x43eaf6
push 0
push 1
push edi
push esi
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x43ead0
push esi
push str.recv___getch
call fcn.0043e5b0
add esp, 8
cmp eax, 0x2733
jne 0x43eaf6
push 0
push esi
mov dword [ebp - 4], 0xffffffea
call fcn.0044abd0
jmp 0x43eaf3
test eax, eax
jne 0x43eadd
mov dword [ebp - 4], 0xffffffff
jmp 0x43eaf6
cmp eax, 1
jne 0x43eaf6
movzx eax, byte [edi]
push eax
push esi
call fcn.0044ada0
mov dword [ebp - 4], 0
add esp, 8
push 3
lea eax, [ebp - 4]
push eax
push 0x281
push str.Socket_getch
call fcn.004484c0
mov eax, dword [ebp - 4]
add esp, 0x10
pop edi
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 3
push 0x292
push str.Socket_getdata
call fcn.00448410
mov edi, dword [ebp + 0xc]
add esp, 0xc
test edi, edi
jne 0x43eb52
push dword [ebp + 8]
call fcn.0044a8b0
add esp, 4
mov esi, eax
jmp 0x43ebdc
push ebx
mov ebx, dword [ebp + 0x10]
push ebx
push edi
push dword [ebp + 8]
call fcn.0044aa30
mov ecx, dword [ebx]
add esp, 0xc
mov esi, eax
mov eax, edi
sub eax, ecx
push 0
push eax
lea eax, [ecx + esi]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
cmp eax, 0xffffffff
jne 0x43eba5
push dword [ebp + 8]
push str.recv___getdata
call fcn.0043e5b0
mov ecx, dword [ebp + 0x14]
add esp, 8
mov dword [ecx], eax
cmp eax, 0x2733
je 0x43ebab
xor esi, esi
jmp 0x43ebdb
test eax, eax
je 0x43eba1
add dword [ebx], eax
mov eax, dword [ebx]
cmp eax, edi
jne 0x43ebbe
push dword [ebp + 8]
call fcn.0044a8b0
add esp, 4
jmp 0x43ebdb
push eax
push dword [ebp + 8]
call fcn.0044abd0
push dword [ebx]
push edi
push str._d_bytes_expected_but__d_bytes_now_received
push 0xffffffffffffffff
push 1
call fcn.00446070
add esp, 0x1c
pop ebx
push 3
push 0
push 0x2b4
push str.Socket_getdata
call fcn.004484c0
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebp
ret
Function at 0x43eff0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x472008]
xor eax, ebp
mov dword [ebp - 4], eax
push 3
push 0x8a
push str.Socket_outInitialize
call fcn.00448410
add esp, 0xc
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
call fcn.0044ab60
call fcn.0043dab0
mov dword [0x4f2860], eax
call fcn.0043dab0
push 3
push 0
push 0xa6
push str.Socket_outInitialize
mov dword [0x4f2864], eax
mov dword [0x4f2868], 0
mov dword [0x4f286c], 0
mov dword [0x4f2870], 0
mov dword [0x4f2874], 0xffffffff
mov dword [0x4f287c], 0
mov dword [0x4f2880], 0
mov dword [0x4f2878], 0
call fcn.004484c0
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
call fcn.0040219c
mov esp, ebp
pop ebp
ret
Function at 0x43f360
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 3
push 0x5a
push str.Socket_setnonblocking
mov dword [ebp - 8], 1
call fcn.00448410
add esp, 0xc
lea eax, [ebp - 8]
push eax
push 0x8004667e
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push 3
push eax
push 0x64
push str.Socket_setnonblocking
call fcn.004484c0
mov eax, dword [ebp - 4]
add esp, 0x10
mov esp, ebp
pop ebp
ret

Function at 0x440b50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 3
push 0x44
push str.Paho_thread_start
call fcn.00448410
add esp, 0xc
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 3
push 0
push 0x4f
push str.Paho_thread_start
call fcn.004484c0
add esp, 0x10
pop ebp
ret
Function at 0x4466a0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x474fcc]
test eax, eax
je 0x44674e
push dword [ebp + 0xc]
push 0x4613cc
push eax
call fcn.00446a90
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, dword [0x474fcc]
add esp, 0x10
cmp ecx, eax
je 0x446744
mov eax, dword [0x474fd8]
inc eax
mov dword [0x474fd8], eax
cmp eax, dword [0x4722a4]
jl 0x446744
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
push dword [0x474fd4]
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__unlink]
push dword [0x474fd4]
push dword [0x474fd0]
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_rename]
push 0x45ad48
push dword [0x474fd0]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
add esp, 0x18
mov dword [0x474fcc], eax
test eax, eax
jne 0x446738
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov dword [0x474fcc], eax
mov dword [0x474fd8], 0
jmp 0x44674e
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
add esp, 4
mov eax, dword [0x474fdc]
test eax, eax
je 0x44675a
pop ebp
jmp eax
pop ebp
ret
Function at 0x44af30
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x472008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 3
push 0x241
push str.clearWin32
mov dword [ebp - 0x250], 0
call fcn.00448410
push ebx
push str._s_
lea eax, [ebp - 0x10c]
push 0x105
push eax
call fcn.00440af0
add esp, 0x1c
cmp eax, 0x105
jge 0x44b0bd
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x254], eax
cmp eax, 0xffffffff
je 0x44b0bd
nop dword [eax]
test byte [ebp - 0x24c], 0x20
je 0x44b049
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44afc2
sub eax, edx
lea edx, [ebp - 0x220]
lea esi, [edx + 1]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x44afd4
sub edx, esi
lea edi, [eax + 2]
add edi, edx
push edi
push 0x251
push str.D:downloadpaho.mqtt.c_1.3.13_srcMQTTPersistenceDefault.c
call fcn.00448800
mov esi, eax
add esp, 0xc
test esi, esi
je 0x44b0b1
lea eax, [ebp - 0x220]
push eax
push ebx
push str._s__s
push edi
push esi
call fcn.00440af0
add esp, 0x14
push esi
cmp eax, edi
jae 0x44b093
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
push esi
push 0x25e
push str.D:downloadpaho.mqtt.c_1.3.13_srcMQTTPersistenceDefault.c
mov dword [ebp - 0x250], eax
call fcn.00448790
add esp, 0x10
cmp dword [ebp - 0x250], 0
jne 0x44b07b
mov eax, dword [ebp - 0x254]
lea ecx, [ebp - 0x24c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
mov eax, dword [ebp - 0x254]
jne 0x44afb0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x44b085
mov eax, dword [ebp - 0x254]
jmp 0x44afb0
mov dword [ebp - 0x250], 0xfffffffe
push dword [ebp - 0x254]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x44b0c7
push 0x25a
push str.D:downloadpaho.mqtt.c_1.3.13_srcMQTTPersistenceDefault.c
mov dword [ebp - 0x250], 0xfffffffe
call fcn.00448790
add esp, 0xc
jmp 0x44b0c7
mov dword [ebp - 0x250], 0xffffff9d
jmp 0x44b0c7
mov dword [ebp - 0x250], 0xfffffffe
push 3
lea eax, [ebp - 0x250]
push eax
push 0x270
push str.clearWin32
call fcn.004484c0
mov ecx, dword [ebp - 4]
add esp, 0x10
mov eax, dword [ebp - 0x250]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0040219c
mov esp, ebp
pop ebp
ret
Function at 0x44b100
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x472008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 3
push 0x1bc
push str.containskeyWin32
mov dword [ebp - 0x250], 0xfffffffe
xor edi, edi
call fcn.00448410
push esi
push str._s_
lea eax, [ebp - 0x10c]
push 0x105
push eax
call fcn.00440af0
add esp, 0x1c
cmp eax, 0x105
jge 0x44b26a
push ebx
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x44b269
nop word [eax + eax]
test byte [ebp - 0x24c], 0x20
je 0x44b23d
lea ecx, [ebp - 0x220]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x44b196
sub ecx, edx
lea eax, [ecx + 1]
push eax
push 0x1c7
push str.D:downloadpaho.mqtt.c_1.3.13_srcMQTTPersistenceDefault.c
call fcn.00448800
mov esi, eax
add esp, 0xc
test esi, esi
je 0x44b29b
lea ecx, [ebp - 0x220]
mov edx, esi
mov eax, ecx
sub edx, eax
nop dword [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x44b1d0
push str..msg
push esi
call dword [sym.imp.VCRUNTIME140.dll_strstr]
add esp, 8
test eax, eax
je 0x44b1f3
mov byte [eax], 0
mov ecx, dword [ebp + 0xc]
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x44b218
test dl, dl
je 0x44b214
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x44b218
add eax, 2
add ecx, 2
test dl, dl
jne 0x44b1f8
xor eax, eax
jmp 0x44b21d
sbb eax, eax
or eax, 1
test eax, eax
jne 0x44b22a
mov dword [ebp - 0x250], eax
lea edi, [eax + 1]
push esi
push 0x1d5
push str.D:downloadpaho.mqtt.c_1.3.13_srcMQTTPersistenceDefault.c
call fcn.00448790
add esp, 0xc
lea eax, [ebp - 0x24c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x44b25a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x44b262
test edi, edi
je 0x44b180
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
push 3
lea eax, [ebp - 0x250]
push eax
push 0x1e0
push str.containskeyWin32
call fcn.004484c0
mov ecx, dword [ebp - 4]
add esp, 0x10
mov eax, dword [ebp - 0x250]
xor ecx, ebp
pop edi
pop esi
call fcn.0040219c
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x250], 0xffffff9d
jmp 0x44b269