joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4013c0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x414fb0
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x41515a
push ebx
mov ebx, dword [esp + 0x10]
nop word [eax + eax]
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
sub byte [esi + ebx], 0x19
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x83
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
xor byte [esi + ebx], 0xe3
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x69
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xb8
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
add esp, 0x44
push eax
call fcn.004013a7
add byte [esi + ebx], 0x53
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xf2
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xc
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x4b
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xd8
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x2f
add esp, 0x40
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xba
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
xor byte [esi + ebx], 0x2f
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xdd
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xfa
add esp, 0x30
inc esi
cmp esi, edi
jb 0x414fd0
pop ebx
pop edi
pop esi
ret

Function at 0x4035da
Capabilities:
Terminate process

Disassembly:
jmp 0x453329
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x45333a
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405920
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x40370b
Capabilities:
Query environment variable

Disassembly:
jmp 0x49c7e2
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49c7f3
pop esi
ret
push ebx
push edi
push esi
call fcn.0049c6c9
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403fe9
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49c81b
push ebx
push esi
push edi
call fcn.00405713
add esp, 0xc
push 0
call fcn.00406262
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x40eec0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x427900]
jne 0x40eeca
repz ret
jmp fcn.00417280
Function at 0x41caf0
Capabilities:
Create directory
Get common file path
Get hostname

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x136c
call fcn.004110a0
cmp dword [0x43b74c], 0x37
jne 0x41cbe3
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CommConfigDialogA]
lea eax, [ebp - 0x924]
push eax
lea ecx, [ebp - 0x1248]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0x424d54
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp - 0x1368]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfoExA]
push 0
push 0x424d68
push 0
push 0x424da0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CompareStringW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea eax, [ebp - 0x920]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0
push 0
push 0
lea ecx, [ebp - 0xa48]
push ecx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
push 0
push 0x424e00
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x424e40
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
push 0
lea edx, [ebp - 0x808]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0
push 0x424ec0
push 0
push 0x424f18
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CompareStringW]
mov dword [ebp - 4], 0
mov eax, dword [0x43be48]
add dword [ebp - 4], eax
mov eax, 0x8c456
add dword [ebp - 4], eax
mov eax, dword [0x4397bc]
add eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
add ecx, dword [ebp + 8]
mov dl, byte [ecx]
mov byte [eax], dl
mov esp, ebp
pop ebp
ret 4
Function at 0x41d1c0
Capabilities:
Allocate thread local storage
Delete file
Get disk information
Manipulate console buffer
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc68
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [0x43b74c], 0x516
jne 0x41d265
push 0
push 0
call sub.KERNEL32.dll_Process32NextW
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll__hread]
push 0
push 0
call dword [sym.imp.KERNEL32.dll__lopen]
push 0
call dword [sym.imp.KERNEL32.dll_ExitThread]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
shr eax, 3
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
jmp 0x41d286
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 0xc]
jae 0x41d323
cmp dword [0x43b74c], 0x29
jne 0x41d2a6
push 0x424cf4
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
shl ecx, 1
mov dword [ebp - 0x10], ecx
cmp dword [0x43b74c], 0x1c
jne 0x41d30b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push 0
lea edx, [ebp - 0xc68]
push edx
push 0x424d08
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
mov dword [ebp - 0x464], 0
xor eax, eax
mov dword [ebp - 0x460], eax
mov dword [ebp - 0x45c], eax
mov dword [ebp - 0x458], eax
mov dword [ebp - 0x454], eax
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
lea ecx, [eax + edx*4]
push ecx
call fcn.0041cec0
jmp 0x41d27d
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40894d
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x4085d8
call fcn.00408978
xor dword [esi], ecx
add esi, 1
mov ebx, 0xa453a1b7
cmp esi, edx
jne fcn.0040894d
and eax, ebx
push 0x40080ecc
mov eax, dword [esp]
add esp, 4
ret
Function at 0x405490
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x4054bc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x4054de
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x4054e0
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x405565
jg 0x4054f5
test esi, esi
je 0x405565
test ecx, ecx
jl 0x405548
jg 0x4054ff
test eax, eax
je 0x405548
cmp edi, ecx
jg 0x405513
jl 0x405509
cmp esi, eax
jae 0x405513
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov eax, dword [ebx + 0x30]
sub esi, ecx
mov edx, dword [ebp + 8]
sbb edi, dword [esp + 0x10]
add edx, ecx
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
test edi, edi
jl 0x405565
jg 0x40554b
test esi, esi
je 0x405565
jmp 0x40554b
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x405565
push eax
push esi
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405580
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
push esi
mov esi, dword [ebp + 0xc]
test eax, eax
jg 0x4055ac
jl 0x4055a0
test esi, esi
jne 0x4055ac
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x4055c5
push eax
push esi
push ecx
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, esi
mov edx, dword [eax]
test edx, edx
je 0x4055ff
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x4055ff
mov edi, dword [ebp + 0xc]
cmp eax, edi
cmovb esi, eax
push esi
push edx
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [ebp - 4], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp + 0xc]
cmp dword [ebx + 0x4c], 0
mov edx, edi
je 0x405680
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x405628
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov edx, edi
mov ecx, dword [ebp - 4]
cmp edi, 0xfff
jbe 0x40566c
nop word [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push ecx
call eax
mov ecx, dword [ebp - 4]
sub edi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x405693
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x405640
test edx, edx
je 0x405680
push dword [ebx + 0x4c]
push edi
push 1
push ecx
call eax
mov edx, edi
add esp, 0x10
sub edx, eax
sub esi, edx
mov edx, dword [ebp + 0x10]
pop edi
mov eax, esi
sbb edx, 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0x10]
sub esi, edi
pop edi
mov eax, esi
sbb edx, 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405a10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x414008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x405a40
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e365
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x405a70
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x405a70
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e365
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x405b46
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x405a99
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x405aa5
movsx eax, bl
jmp 0x405add
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x405b07
sub eax, 1
je 0x405b07
sub eax, 2
jne 0x405b46
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e365
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x405b25
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x405b46
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x405b46
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e365
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e365
mov esp, ebp
pop ebp
ret 4

Function at 0x405e50
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x405e81
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x405e70
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x4064f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x414008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x4065ac
cmp byte [esi + 0x3d], 0
je 0x4065ac
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x40659a
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
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 0x406561
sub eax, 1
je 0x406565
sub eax, 2
jne 0x40659a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e365
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x406583
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x40659a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e365
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e365
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0040e365
mov esp, ebp
pop ebp
ret
Function at 0x421f20
Capabilities:
Create thread

Disassembly:
push 0
push 0
push dword [esp + 0x10]
push dword [esp + 0x10]
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x421f42
cmp eax, 0xffffffff
jne 0x421f44
xor eax, eax
ret
Function at 0x42fb20
Capabilities:
Query environment variable

Disassembly:
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push str.C:dev_vcpkg_buildtreescurl_srce5cd7b457b_e7993911b1.cleanlibgetenv.c
push 0x2d
lea esi, [ebp + 1]
push esi
push ebp
call sym.curl_dbg_realloc
mov edi, eax
add esp, 0x10
test edi, edi
je 0x42fb7d
push esi
push edi
push dword [esp + 0x1c]
mov ebp, edi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x42fb9b
cmp esi, ebx
je 0x42fb9b
cmp esi, 0x8000
ja 0x42fb9b
cmp esi, ebx
jb 0x42fb94
push str.C:dev_vcpkg_buildtreescurl_srce5cd7b457b_e7993911b1.cleanlibgetenv.c
push 0x2d
push esi
push edi
call sym.curl_dbg_realloc
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x42fb40
push str.C:dev_vcpkg_buildtreescurl_srce5cd7b457b_e7993911b1.cleanlibgetenv.c
push 0x2f
push ebp
call sym.curl_dbg_free
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push str.C:dev_vcpkg_buildtreescurl_srce5cd7b457b_e7993911b1.cleanlibgetenv.c
push 0x3a
push edi
call sym.curl_dbg_free
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x43c070
Capabilities:
Write file on windows

Disassembly:
cmp dword [0x47d3bc], 0
je 0x43c0d5
push esi
push 0x400
call dword [0x47c008]
mov esi, eax
add esp, 4
test esi, esi
je 0x43c0d4
lea eax, [esp + 0xc]
push eax
push dword [esp + 0xc]
push 0x400
push esi
call sym.curl_mvsnprintf
add esp, 0x10
cmp eax, 0x3ff
jle 0x43c0b3
mov eax, 0x3ff
jmp 0x43c0b7
test eax, eax
jle 0x43c0ca
push dword [0x47d3bc]
push eax
push 1
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite_1]
add esp, 0x10
push esi
call dword [0x47c00c]
add esp, 4
pop esi
ret

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

Disassembly:
cmp byte [0x47d3c0], 0
push esi
push edi
mov edi, dword [esp + 0x20]
je 0x43c368
test edi, edi
je 0x43c368
mov eax, dword [0x47d3c4]
test eax, eax
jne 0x43c362
mov esi, dword [esp + 0x1c]
push str.recv
push esi
push edi
push str.LIMIT__s:_d__s_reached_memlimit_n
call sym.curl_dbg_log
add esp, 0x10
push str.recv
push esi
push edi
push str.LIMIT__s:_d__s_reached_memlimit_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call sym.curl_mfprintf
push dword [0x47d3bc]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush_1]
add esp, 0x18
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
pop edi
pop esi
mov dword [eax], 0xc
or eax, 0xffffffff
ret
dec eax
mov dword [0x47d3c4], eax
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
test edi, edi
je 0x43c39b
push esi
push dword [esp + 0x18]
push dword [esp + 0x24]
push edi
push str.RECV__s:_d_recv__lu____ld_n
call sym.curl_dbg_log
add esp, 0x14
pop edi
mov eax, esi
pop esi
ret

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

Disassembly:
cmp byte [0x47d3c0], 0
push esi
push edi
mov edi, dword [esp + 0x20]
je 0x43c448
test edi, edi
je 0x43c448
mov eax, dword [0x47d3c4]
test eax, eax
jne 0x43c442
mov esi, dword [esp + 0x1c]
push str.send
push esi
push edi
push str.LIMIT__s:_d__s_reached_memlimit_n
call sym.curl_dbg_log
add esp, 0x10
push str.send
push esi
push edi
push str.LIMIT__s:_d__s_reached_memlimit_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call sym.curl_mfprintf
push dword [0x47d3bc]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush_1]
add esp, 0x18
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
pop edi
pop esi
mov dword [eax], 0xc
or eax, 0xffffffff
ret
dec eax
mov dword [0x47d3c4], eax
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
test edi, edi
je 0x43c47b
push esi
push dword [esp + 0x18]
push dword [esp + 0x24]
push edi
push str.SEND__s:_d_send__lu____ld_n
call sym.curl_dbg_log
add esp, 0x14
pop edi
mov eax, esi
pop esi
ret
Function at 0x449610
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x24
mov ecx, 0x2b
push ebx
mov ebx, dword [esp + 0x34]
push ebp
push esi
push edi
test ebx, ebx
je 0x44976f
mov ebp, dword [esp + 0x38]
mov esi, dword [esp + 0x3c]
mov edi, 4
cmp ebx, edi
push str.CURL_ENTROPY
cmovb edi, ebx
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov edx, eax
add esp, 4
test edx, edx
je 0x4496b3
cmp byte [0x47d3dc], 0
jne 0x4496a3
mov dword [esp + 0x10], 0
lea ebp, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x449662
sub eax, ebp
mov ecx, 4
cmp eax, ecx
cmovb ecx, eax
lea eax, [esp + 0x10]
push ecx
push edx
push eax
call sub.VCRUNTIME140.dll_memcpy_1
add esp, 0xc
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_ntohl]
mov ebp, dword [esp + 0x38]
mov byte [0x47d3dc], 1
mov dword [0x47d3d8], eax
jmp 0x44974d
mov eax, dword [0x47d3d8]
inc eax
mov dword [0x47d3d8], eax
jmp 0x44974d
push 4
lea eax, [esp + 0x44]
push eax
push ebp
call fcn.00469670
mov ecx, eax
add esp, 0xc
cmp ecx, 4
je 0x4496d8
test ecx, ecx
jne 0x44976f
mov eax, dword [esp + 0x40]
jmp 0x449753
cmp byte [0x47d3dc], 0
jne 0x449734
lea eax, [esp + 0x24]
push eax
call fcn.00459430
push str.WARNING:_Using_weak_random_seed_n
push ebp
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x20], xmm0
call fcn.0044b030
movups xmm1, xmmword [esp + 0x20]
add esp, 0xc
mov byte [0x47d3dc], 1
movaps xmm0, xmm1
movd eax, xmm1
psrldq xmm0, 8
movd ecx, xmm0
add ecx, dword [0x47d3d8]
add ecx, eax
imul eax, ecx, 0x7f82434b
mov ecx, 0xa70427df
sub ecx, eax
jmp 0x44973a
mov ecx, dword [0x47d3d8]
imul eax, ecx, 0x41c64e6d
add eax, 0x3039
mov dword [0x47d3d8], eax
rol eax, 0x10
xor ecx, ecx
mov dword [esp + 0x40], eax
test edi, edi
je 0x449767
mov byte [esi], al
dec ebx
inc esi
shr eax, 8
sub edi, 1
jne 0x449757
mov dword [esp + 0x40], eax
test ebx, ebx
jne 0x449630
pop edi
pop esi
pop ebp
mov eax, ecx
pop ebx
add esp, 0x24
ret
Function at 0x449780
Capabilities:
Query environment variable

Disassembly:
sub esp, 0xb4
mov eax, dword [0x47d370]
xor eax, esp
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0xb8]
push ebx
mov ebx, dword [esp + 0xc4]
mov dword [esp + 0xc], eax
mov eax, ebx
push ebp
mov ebp, dword [esp + 0xc4]
and eax, 0xfffffffe
push edi
lea edi, [esp + 0x3c]
cmp eax, 0x100
jae 0x4499a2
test bl, 1
je 0x4499a2
dec ebx
mov edx, 0x2b
mov dword [esp + 0xcc], ebx
shr ebx, 1
push esi
mov esi, edi
je 0x44993d
nop word [eax + eax]
mov edi, 4
cmp ebx, edi
push str.CURL_ENTROPY
cmovb edi, ebx
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov edx, eax
add esp, 4
test edx, edx
je 0x449877
cmp byte [0x47d3dc], 0
jne 0x449867
mov ecx, edx
mov dword [esp + 0x14], 0
lea eax, [ecx + 1]
mov dword [esp + 0x1c], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x449828
sub ecx, dword [esp + 0x1c]
mov eax, 4
cmp ecx, eax
cmovb eax, ecx
push eax
push edx
lea eax, [esp + 0x1c]
push eax
call sub.VCRUNTIME140.dll_memcpy_1
add esp, 0xc
push dword [esp + 0x14]
call dword [sym.imp.WS2_32.dll_ntohl]
mov byte [0x47d3dc], 1
mov dword [0x47d3d8], eax
jmp 0x449917
mov eax, dword [0x47d3d8]
inc eax
mov dword [0x47d3d8], eax
jmp 0x449917
push 4
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x20]
call fcn.00469670
mov edx, eax
add esp, 0xc
cmp edx, 4
je 0x44989f
test edx, edx
jne 0x449943
mov eax, dword [esp + 0x10]
jmp 0x44991d
cmp byte [0x47d3dc], 0
jne 0x4498fe
lea eax, [esp + 0x30]
push eax
call fcn.00459430
push str.WARNING:_Using_weak_random_seed_n
push dword [esp + 0x20]
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x2c], xmm0
call fcn.0044b030
movups xmm1, xmmword [esp + 0x2c]
add esp, 0xc
mov byte [0x47d3dc], 1
movaps xmm0, xmm1
movd eax, xmm1
psrldq xmm0, 8
movd ecx, xmm0
add ecx, dword [0x47d3d8]
add ecx, eax
imul eax, ecx, 0x7f82434b
mov ecx, 0xa70427df
sub ecx, eax
jmp 0x449904
mov ecx, dword [0x47d3d8]
imul eax, ecx, 0x41c64e6d
add eax, 0x3039
mov dword [0x47d3d8], eax
rol eax, 0x10
xor edx, edx
mov dword [esp + 0x10], eax
test edi, edi
je 0x449931
mov byte [esi], al
dec ebx
inc esi
shr eax, 8
sub edi, 1
jne 0x449921
mov dword [esp + 0x10], eax
test ebx, ebx
jne 0x4497f0
lea edi, [esp + 0x40]
mov ecx, edx
test ecx, ecx
je 0x44995e
mov eax, edx
pop esi
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.004699fc
add esp, 0xb4
ret
mov edx, dword [esp + 0xd0]
test edx, edx
je 0x44999a
nop dword [eax]
movzx ecx, byte [edi]
lea edi, [edi + 1]
mov eax, ecx
and ecx, 0xf
shr eax, 4
movzx eax, byte [eax + str.0123456789abcdef]
mov byte [ebp], al
movzx eax, byte [ecx + str.0123456789abcdef]
mov byte [ebp + 1], al
add ebp, 2
sub edx, 2
jne 0x449970
mov byte [ebp], 0
xor eax, eax
jmp 0x449945
mov ecx, dword [esp + 0xbc]
mov eax, 0x2b
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.004699fc
add esp, 0xb4
ret