joyce8/EMBER2024-capa huggingface dataset:
Function at 0x30085ea5
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0x30008668
push 0x3000864c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x30085eda
push 0
push 0
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call esi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov esi, dword [ebp - 8]
xor esi, dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor esi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
mov ebx, 0x30008648
push ebx
call edi
test esi, esi
mov dword [0x30008648], esi
jne 0x30085f3e
mov dword [0x30008648], 0xbb40e64e
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push ebx
call edi
pop edi
pop esi
mov dword [0x300bc414], 0x44bf19b1
pop ebx
leave
ret

Function at 0x30085f59
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x30008648]
jne 0x30086e20
ret
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x300bdf38], eax
mov dword [0x300bdf34], ecx
mov dword [0x300bdf30], edx
mov dword [0x300bdf2c], ebx
mov dword [0x300bdf28], esi
mov dword [0x300bdf24], edi
mov word [0x300bdf50], ss
mov word [0x300bdf44], cs
mov word [0x300bdf20], ds
mov word [0x300bdf1c], es
mov word [0x300bdf18], fs
mov word [0x300bdf14], gs
pushfd
pop dword [0x300bdf48]
mov eax, dword [ebp]
mov dword [0x300bdf3c], eax
mov eax, dword [ebp + 4]
mov dword [0x300bdf40], eax
lea eax, [ebp + 8]
mov dword [0x300bdf4c], eax
mov eax, dword [ebp - 0x320]
mov dword [0x300bde88], 0x10001
mov eax, dword [0x300bdf40]
mov dword [0x300bde3c], eax
mov dword [0x300bde30], 0xc0000409
mov dword [0x300bde34], 1
mov eax, dword [0x30008648]
mov dword [ebp - 0x328], eax
mov eax, dword [0x300bc414]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x300bde80], eax
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x300089a8
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x300bde80], 0
jne 0x30086f10
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret
Function at 0x30085f71
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x30008694
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x30085fc9
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push 0
push 0
push 0x3000868c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x30085fc9
mov al, 1
jmp 0x30085fcb
xor al, al
leave
ret 8
Function at 0x30086802
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x300b0f60
call fcn.30086ad1
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x300be17c
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x300865a5
cmp eax, esi
jne 0x30086598
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x300865a8
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x3008657f
xor esi, esi
inc esi
mov eax, dword [0x300be178]
cmp eax, esi
jne 0x300865bb
push 0x1f
call sub.MSVCR80.dll__amsg_exit
pop ecx
jmp 0x300865ea
mov eax, dword [0x300be178]
test eax, eax
jne 0x300865e4
mov dword [0x300be178], esi
push 0x30001458
push 0x3000144c
call sub.MSVCR80.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x300865ea
jmp 0x3008670e
mov dword [0x300bde28], esi
mov eax, dword [0x300be178]
cmp eax, esi
jne 0x3008660e
push 0x30001448
push 0x3000141c
call sub.MSVCR80.dll__initterm
pop ecx
pop ecx
mov dword [0x300be178], 2
cmp dword [ebp - 0x20], ebx
jne 0x3008661b
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x300be188], ebx
je 0x3008663c
push 0x300be188
call fcn.30086fe3
pop ecx
test eax, eax
je 0x3008663c
push ebx
push 2
push ebx
call dword [0x300be188]
mov eax, dword [sym.imp.MSVCR80.dll__wcmdln]
cmp dword [eax], ebx
je 0x3008670e
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x300866a6
cmp cx, bx
je 0x30086661
cmp dword [ebp - 0x1c], ebx
jne 0x300866a6
movzx ecx, word [eax]
cmp cx, bx
je 0x30086676
cmp cx, 0x20
ja 0x30086676
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x30086661
test byte [ebp - 0x40], 1
je 0x30086682
movzx ecx, word [ebp - 0x3c]
jmp 0x30086685
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x30000000
call main
mov dword [0x300bde24], eax
cmp dword [0x300bde18], ebx
jne 0x300866eb
push eax
call dword [sym.imp.MSVCR80.dll_exit]
cmp cx, 0x22
jne 0x300866b7
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x3008664b
cmp dword [0x300bde28], ebx
jne 0x300866f9
call dword [sym.imp.MSVCR80.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x300bde24]
jmp 0x3008671a
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.30086b16
ret
call fcn.30085ea5
jmp 0x30086542
Function at 0x3009c930
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [esi + 0x2c]
mov dword [ebp - 0xc], edi
jmp 0x3009c943
mov edi, dword [ebp - 0xc]
mov ebx, dword [esi + 0x3c]
sub ebx, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub ebx, eax
lea edx, [edi + ecx - 0x106]
cmp eax, edx
mov dword [ebp - 4], ebx
jb 0x3009c9c1
mov eax, dword [esi + 0x38]
push edi
lea ecx, [edi + eax]
push ecx
push eax
call sub.MSVCR80.dll_memcpy
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x44]
sub dword [esi + 0x70], edi
sub dword [esi + 0x6c], edi
add esp, 0xc
sub dword [esi + 0x5c], edi
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, edi
jb 0x3009c991
sub eax, edi
jmp 0x3009c993
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x3009c982
mov ecx, dword [esi + 0x40]
mov edx, edi
lea ecx, [ecx + edi*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, edi
jb 0x3009c9b2
sub eax, edi
jmp 0x3009c9b4
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x3009c9a3
add ebx, edi
mov dword [ebp - 4], ebx
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x3009ca72
mov eax, dword [esi + 0x74]
add eax, dword [esi + 0x6c]
mov ecx, dword [edi + 4]
add eax, dword [esi + 0x38]
mov edx, dword [ebp - 4]
mov ebx, ecx
cmp ebx, edx
mov dword [ebp - 8], eax
jbe 0x3009c9e7
mov ebx, edx
test ebx, ebx
je 0x3009ca34
mov edx, dword [edi + 0x1c]
sub ecx, ebx
mov dword [edi + 4], ecx
mov ecx, dword [edx + 0x18]
cmp ecx, 1
jne 0x3009ca0a
mov eax, dword [edi]
mov ecx, dword [edi + 0x30]
push ebx
push eax
push ecx
call fcn.3009e040
jmp 0x3009ca1c
cmp ecx, 2
jne 0x3009ca22
mov edx, dword [edi]
mov eax, dword [edi + 0x30]
push ebx
push edx
push eax
call fcn.3009a580
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 8]
mov ecx, dword [edi]
push ebx
push ecx
push eax
call sub.MSVCR80.dll_memcpy
add dword [edi], ebx
add esp, 0xc
add dword [edi + 8], ebx
add dword [esi + 0x74], ebx
mov edi, dword [esi + 0x74]
cmp edi, 3
jb 0x3009ca5e
mov eax, dword [esi + 0x38]
mov edx, dword [esi + 0x6c]
mov ecx, dword [esi + 0x58]
add edx, eax
movzx eax, byte [edx]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp edi, 0x106
jae 0x3009ca72
mov edx, dword [esi]
cmp dword [edx + 4], 0
jne 0x3009c940
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401da0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x408668
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetParent]
mov eax, dword [esi + 0x20]
push eax
call edi
push eax
call sub.MFC42.DLL_CWnd::FromHandle
push eax
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CClientDC::CClientDC
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0xc]
push ecx
push edx
mov dword [esp + 0x50], 0
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi + 0x20]
push edx
call edi
push eax
call sub.MFC42.DLL_CWnd::FromHandle
lea ecx, [esp + 0x1c]
push ecx
mov ecx, eax
call sub.MFC42.DLL_CWnd::ScreenToClient
mov eax, dword [esi + 0xf4]
mov ebx, dword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
jne 0x401ed6
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x2c]
neg eax
sbb eax, eax
and eax, ecx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esi + 0xf0]
call sub.MFC42.DLL_CDC::Attach
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
mov edx, dword [esp + 0x30]
sub eax, ecx
mov ecx, dword [esp + 0x14]
sub ecx, edi
push eax
push ecx
push edx
lea edi, [esi + 0x100]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, edi
call sub.MFC42.DLL_CGdiObject::Attach
test edi, edi
je 0x401e82
mov edi, dword [edi + 4]
mov eax, dword [esi + 0xf4]
push edi
push eax
call sub.MFC42.DLL_CDC::SelectGdiObject
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov dword [esi + 0x108], eax
mov eax, dword [esp + 0xc]
sub ecx, edx
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x30]
sub edx, eax
lea eax, [esp + 0x2c]
push 0xcc0020
neg eax
sbb eax, eax
and eax, edi
mov edi, dword [esp + 0x24]
push edi
mov edi, dword [esp + 0x24]
push edi
push eax
push ecx
mov ecx, dword [esi + 0xf4]
push edx
push 0
push 0
push ecx
call ebx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
sub eax, ecx
mov ecx, dword [esp + 0x14]
lea edx, [esi + 0xf0]
sub ecx, edi
test edx, edx
je 0x401ef7
mov edx, dword [edx + 4]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x60]
push eax
push ecx
push 0
mov eax, dword [edx + 4]
push 0
push eax
call ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x48], 0xffffffff
call fcn.004080b4
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret 4
Function at 0x4044c0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x104
mov ecx, dword [esp + 0x10c]
mov edx, dword [esp + 0x108]
push ebx
push ebp
push esi
lea eax, [esp + 0x10]
push edi
push eax
push ecx
push edx
call fcn.00404480
push 0x40
lea eax, [esp + 0x24]
push 0x40db10
push eax
call dword [sym.imp.MSVCRT.dll__fsopen]
add esp, 0x18
mov dword [esp + 0x10], eax
test eax, eax
je 0x40468b
push eax
call dword [sym.imp.MSVCRT.dll__fileno]
push eax
call dword [sym.imp.MSVCRT.dll__filelength]
mov esi, eax
add esp, 8
shr esi, 5
cmp esi, 1
jl 0x40468b
mov ebp, esi
shl ebp, 5
push ebp
call dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, ebp
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
push 0
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x1c]
push edi
call dword [sym.imp.MSVCRT.dll_fseek]
push edi
push 1
push ebp
push ebx
call dword [sym.imp.MSVCRT.dll_fread]
lea ebp, [esi - 1]
add esp, 0x20
mov edi, ebp
test edi, edi
jl 0x40458c
mov ecx, dword [esp + 0x120]
mov eax, edi
shl eax, 5
add eax, ebx
cmp ecx, dword [eax]
jge 0x404588
dec edi
sub eax, 0x20
test edi, edi
jge 0x40457a
jmp 0x40458c
test edi, edi
jge 0x4045b1
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
push ebx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
mov edx, edi
shl edx, 5
lea eax, [edx + ebx]
mov edx, dword [edx + ebx]
cmp edx, ecx
jne 0x404616
mov ecx, dword [esp + 0x124]
test ecx, ecx
jne 0x4045ed
inc edi
mov ecx, edi
shl ecx, 0x1b
sub ecx, edi
add ecx, esi
shl edi, 5
shl ecx, 5
add edi, ebx
push ecx
push edi
push eax
call dword [sym.imp.MSVCRT.dll_memmove]
add esp, 0xc
mov esi, ebp
jmp 0x404648
lea eax, [edi + 1]
mov edx, eax
shl edx, 0x1b
sub edx, eax
add edx, esi
shl eax, 5
shl edx, 5
add eax, ebx
push edx
push eax
push ebx
call dword [sym.imp.MSVCRT.dll_memmove]
or eax, 0xffffffff
add esp, 0xc
sub eax, edi
add esi, eax
jmp 0x404648
mov eax, dword [esp + 0x124]
test eax, eax
je 0x404648
lea eax, [edi + 1]
mov ecx, eax
shl ecx, 0x1b
sub ecx, eax
add ecx, esi
shl eax, 5
shl ecx, 5
add eax, ebx
push ecx
push eax
push ebx
call dword [sym.imp.MSVCRT.dll_memmove]
or edx, 0xffffffff
add esp, 0xc
sub edx, edi
add esi, edx
mov edi, dword [esp + 0x10]
push 0
push 0
push edi
call dword [sym.imp.MSVCRT.dll_fseek]
shl esi, 5
push edi
push 1
push esi
push ebx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x1c
push esi
push edi
call dword [sym.imp.MSVCRT.dll__fileno]
add esp, 4
push eax
call dword [sym.imp.MSVCRT.dll__chsize]
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
push ebx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 0x10
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x104
ret
Function at 0x402410
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [esp + 0xc], 0
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call sub.msvcrt.dll__lseeki64
test edx, edx
js 0x402460
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll__get_osfhandle]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
sub esp, 4
test eax, eax
sete al
movzx eax, al
neg eax
mov ebx, dword [ebp - 4]
leave
ret
mov eax, 0xffffffff
jmp 0x40245b
Function at 0x407060
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, edx
push esi
mov esi, eax
push ebx
sub esp, 0x81c
lea ebx, [ebp - 0x818]
mov dword [esp + 8], 0x400
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
sub eax, 1
sub esp, 0xc
cmp eax, 0x3fe
jbe 0x407100
xor ebx, ebx
mov eax, edi
test al, al
je 0x4070e0
mov dword [esp + 4], 0x25
mov dword [esp], esi
call sub.msvcrt.dll_strchr
test eax, eax
je 0x4070e0
lea edi, [ebp - 0x418]
mov dword [esp + 8], 0x400
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
sub eax, 1
sub esp, 0xc
cmp eax, 0x3fe
jbe 0x407110
lea esi, [esi]
test ebx, ebx
je 0x407104
cmp byte [ebx], 0
je 0x407104
mov dword [esp], ebx
call sub.msvcrt.dll__strdup
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, ebx
jmp 0x40709a
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], 0x25
mov dword [esp], edi
call sub.msvcrt.dll_strchr
test eax, eax
jne 0x4070e0
mov ebx, edi
jmp 0x4070e4

Function at 0x407130
Capabilities:
Query environment variable

Disassembly:
sub esp, 0xc
xor edx, edx
mov eax, str.CURL_HOME
call fcn.00407060
test eax, eax
je 0x407147
add esp, 0xc
ret
xor edx, edx
mov eax, 0x456d2a
call fcn.00407060
test eax, eax
jne 0x407143
mov edx, 1
mov eax, str.APPDATA
call fcn.00407060
test eax, eax
jne 0x407143
mov edx, 1
mov eax, str._USERPROFILE_Application_Data
add esp, 0xc
jmp fcn.00407060

Function at 0x4071b0
Capabilities:
Write file on windows

Disassembly:
push edi
xor eax, eax
push esi
mov ecx, 0xe
push ebx
sub esp, 0x50
lea esi, [esp + 0x18]
mov edi, esi
rep stosd dword es:[edi], eax
mov dword [esp + 0xc], 0x38
mov dword [esp + 8], 0x456d60
mov dword [esp + 4], 0xfffffff1
mov dword [esp], esi
mov dword [esp + 0x38], 0x407190
mov dword [esp + 0x3c], 0x407180
mov dword [esp + 0x1c], 0xb5d6
mov dword [esp + 0x18], 0x456d8a
call fcn.004466c4
test eax, eax
je 0x407210
add esp, 0x50
pop ebx
pop esi
pop edi
ret
mov dword [esp], 0x10000
call sub.msvcrt.dll_malloc
test eax, eax
mov edi, eax
jne 0x407252
jmp 0x40727d
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov edx, 0x10000
sub edx, dword [esp + 0x28]
mov dword [esp + 8], 1
mov dword [esp], edi
add eax, 0x20
mov dword [esp + 0xc], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_fwrite
cmp ebx, 1
je 0x407275
mov dword [esp + 4], 2
mov dword [esp], esi
mov dword [esp + 0x28], 0x10000
mov dword [esp + 0x24], edi
call fcn.0044697c
cmp eax, 1
mov ebx, eax
jbe 0x407224
mov dword [esp], edi
call sub.msvcrt.dll_free
mov dword [esp], esi
call fcn.00448a60
add esp, 0x50
pop ebx
pop esi
pop edi
ret
Function at 0x407450
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x12c
mov edi, dword [esp + 0x140]
mov eax, dword [edi + 0x108]
test eax, eax
je 0x407476
add esp, 0x12c
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [esp + 0x148]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x144]
lea ebx, [esp + 0x20]
mov dword [esp + 4], 0x100
mov dword [esp], ebx
mov dword [esp + 8], eax
call sym.curl.exe_curl_mvsnprintf
test eax, eax
mov dword [esp + 0x18], eax
jle 0x40746b
mov esi, dword [sym.imp.msvcrt.dll_isspace]
nop
mov eax, dword [edi + 0x1e8]
mov dword [esp + 8], 9
mov dword [esp + 4], 1
mov dword [esp], str.Warning:
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
cmp dword [esp + 0x18], 0x46
jle 0x407548
mov ebp, 0x45
jmp 0x4074ef
test ebp, ebp
je 0x407580
sub ebp, 1
movzx eax, byte [ebx + ebp]
mov dword [esp], eax
call esi
test eax, eax
je 0x4074e4
test ebp, ebp
je 0x407565
lea eax, [ebp + 1]
mov dword [esp + 0x1c], eax
mov ecx, dword [edi + 0x1e8]
mov dword [esp], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp + 0xc], ecx
call sub.msvcrt.dll_fwrite
mov eax, dword [edi + 0x1e8]
mov dword [esp], 0xa
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputc
add ebx, dword [esp + 0x1c]
sub dword [esp + 0x18], ebp
jmp 0x4074b0
mov eax, dword [edi + 0x1e8]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
add esp, 0x12c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x1c], 0x46
mov eax, 0x46
mov ebp, 0x45
jmp 0x407507
mov dword [esp + 0x1c], 0x46
mov al, 0x46
mov bp, 0x45
jmp 0x407507

Function at 0x4075a0
Capabilities:
Write file on windows

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov esi, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
test esi, esi
je 0x4075e6
lea edi, [esp + 0x28]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 6
mov dword [esp + 4], 1
mov dword [esp], str.curl:
call sub.msvcrt.dll_fwrite
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym.curl.exe_curl_mvfprintf
mov dword [esp], ebx
mov dword [esp + 4], str.curl:_try_curl___help_or_curl___manual_for_more_information_n
call sym.curl.exe_curl_mfprintf
add esp, 0x10
pop ebx
pop esi
pop edi
ret
Function at 0x40be40
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
xor ebx, ebx
sub esp, 0x1c
mov ebp, dword [esp + 0x38]
test ebp, ebp
je 0x40bf13
mov esi, 0x200
xor edi, edi
jmp 0x40bea3
mov eax, esi
add eax, 1
js 0x40beb2
add esi, esi
lea eax, [esi + 1]
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.msvcrt.dll_realloc
test eax, eax
je 0x40beb2
mov edi, eax
mov eax, esi
sub eax, ebx
mov dword [esp + 8], eax
lea eax, [edi + ebx]
mov dword [esp + 0xc], ebp
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.msvcrt.dll_fread
add ebx, eax
test eax, eax
je 0x40bed0
cmp esi, ebx
je 0x40be60
test edi, edi
jne 0x40be7e
mov eax, esi
add eax, 1
jns 0x40be67
test edi, edi
je 0x40bebe
mov dword [esp], edi
call sub.msvcrt.dll_free
mov eax, 0xa
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
cmp esi, ebx
mov ebp, edi
mov byte [edi + ebx], 0
je 0x40beef
lea eax, [ebx + 1]
mov dword [esp], edi
mov dword [esp + 4], eax
call sub.msvcrt.dll_realloc
test eax, eax
mov edi, eax
je 0x40bf25
test ebx, ebx
jne 0x40befd
mov dword [esp], edi
xor edi, edi
call sub.msvcrt.dll_free
mov eax, dword [esp + 0x34]
mov dword [eax], ebx
mov eax, dword [esp + 0x30]
mov dword [eax], edi
xor eax, eax
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x34]
xor edi, edi
mov dword [eax], ebx
mov eax, dword [esp + 0x30]
mov dword [eax], edi
xor eax, eax
jmp 0x40bf0b
mov dword [esp], ebp
call sub.msvcrt.dll_free
mov eax, 0xa
jmp 0x40bec3

Function at 0x410be0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a8
lea eax, [ebp - 0x198]
mov dword [esp + 4], eax
mov dword [esp], 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov edx, 2
sub esp, 8
test eax, eax
je 0x410c10
mov eax, edx
leave
ret
movzx eax, word [ebp - 0x198]
cmp al, 2
je 0x410c30
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov edx, 2
mov eax, edx
leave
ret
shr ax, 8
cmp al, 2
jne 0x410c1b
xor edx, edx
jmp 0x410c0c

Function at 0x4117c0
Capabilities:
Read file on windows

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x20
mov edi, dword [eax]
cmp dword [edi + 4], 2
je 0x411818
mov esi, dword [eax + 8]
test esi, esi
je 0x411840
mov dword [esp + 0xc], esi
mov dword [esp + 8], ecx
mov dword [esp + 4], 1
mov dword [esp], edx
call sub.msvcrt.dll_fread
test eax, eax
jne 0x411811
mov eax, dword [ebx + 8]
test eax, eax
je 0x411809
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov dword [ebx + 8], 0
mov eax, dword [ebx]
mov eax, dword [eax]
mov dword [ebx], eax
xor eax, eax
add esp, 0x20
pop ebx
pop esi
pop edi
ret
mov esi, dword [eax + 0xc]
xor eax, eax
test esi, esi
je 0x411811
mov eax, dword [edi + 8]
mov dword [esp + 8], ecx
mov dword [esp + 4], 1
mov dword [esp], edx
mov dword [esp + 0xc], eax
call esi
jmp 0x4117ef
mov dword [esp + 4], 0x4653c0
mov eax, dword [edi + 8]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov esi, eax
test esi, esi
mov dword [ebx + 8], eax
mov eax, 0xffffffff
jne 0x4117d7
jmp 0x411811