joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x415180]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x64
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.00401f50
push 0
push 1
push 0x64
lea eax, [ebp - 0x68]
push eax
push str.what_
push str.hello
call fcn.00401240
add esp, 0x24
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004013df
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4012c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x28], 0
jne 0x4012df
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 8]
push edi
test eax, eax
je 0x401311
mov edi, dword [esi + 0x34]
push 5
movzx eax, ax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x401309
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edx, eax
test edx, edx
jne 0x40131c
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 4]
test eax, eax
mov edx, dword [ebp + 8]
cmovne edx, eax
cmp word [edx], 1
jne 0x40137c
mov eax, 0xffff
cmp word [edx + 2], ax
jne 0x40137c
test edx, edx
je 0x40137c
mov eax, dword [edx + 8]
or eax, dword [esi + 0x18]
mov ecx, dword [edx + 0xc]
mov dword [edx + 8], eax
or ecx, dword [esi + 0x10]
mov dword [edx + 0xc], ecx
and eax, dword [esi + 0x1c]
mov dword [edx + 8], eax
and ecx, dword [esi + 0x14]
mov dword [edx + 0xc], ecx
cmp byte [esi + 0xc], 0
je 0x40135e
or ecx, 0x800
mov dword [edx + 0xc], ecx
movzx eax, word [esi + 0x38]
cmp ax, 0xffff
je 0x40136c
mov word [edx + 0x12], ax
movzx eax, word [esi + 0x3a]
cmp ax, 0xffff
je 0x4013c0
mov word [edx + 0x14], ax
jmp 0x4013c0
mov ecx, dword [edx + 4]
or ecx, dword [esi + 0x18]
mov dword [edx + 4], ecx
mov eax, dword [esi + 0x10]
or dword [edx], eax
and ecx, dword [esi + 0x1c]
mov eax, dword [edx]
mov dword [edx + 4], ecx
and eax, dword [esi + 0x14]
mov dword [edx], eax
cmp byte [esi + 0xc], 0
je 0x4013a4
or eax, 0x800
mov dword [edx], eax
movzx eax, word [esi + 0x38]
cmp ax, 0xffff
je 0x4013b2
mov word [edx + 0xa], ax
movzx eax, word [esi + 0x3a]
cmp ax, 0xffff
je 0x4013c0
mov word [edx + 0xc], ax
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
push 0x401060
push dword [esi + 0x30]
push edx
push dword [esi + 0x34]
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamA]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x401c0f
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4076ab
push ebx
push esi
call fcn.004075d7
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040756b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x407658
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4076aa
push edi
push eax
call fcn.00407ea1
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x407678
call fcn.004060b1
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4076a9
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040756b
add esp, 0x20
test eax, eax
jne 0x407697
push edi
call fcn.004060b1
jmp 0x40769f
push ebx
call fcn.004060b1
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4085a7
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x410020
push 0x410018
push str.FlsAlloc
push 0x1f
call fcn.004084c3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4085db
push dword [ebp + 8]
mov ecx, esi
call dword [0x40e144]
call esi
jmp 0x4085e1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x408625
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x410030
push 0x410028
push str.FlsGetValue
push 0x21
call fcn.004084c3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40865c
push dword [ebp + 8]
mov ecx, esi
call dword [0x40e144]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x408664
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x410038
push 0x410030
push str.FlsSetValue
push 0x22
call fcn.004084c3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40869e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x40e144]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40d550
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40d57d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40d57d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40180f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x40181e
pop dword [ebp - 0x34]
mov eax, 0x40181e
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0x58e90749
sub dword [ebp - 0x44], 0xa96c1fe
mov dword [ebp - 0x40], 0xd357cd57
sub dword [ebp - 0x40], 0xa1248112
mov dword [ebp - 0x3c], 0x2dc681e3
sub dword [ebp - 0x3c], 0xe17a3db5
mov dword [ebp - 0x38], 0x6c201384
add dword [ebp - 0x38], 0x93dfec7c
lea eax, [ebp - 0x44]
push eax
mov eax, 0xd14f04b0
add eax, 0x2ef1cb9c
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0x1c8a64a7
add dword [ebp - 0x44], 0x57e804af
mov dword [ebp - 0x40], 0x2671617b
add dword [ebp - 0x40], 0x1afafffa
mov dword [ebp - 0x3c], 0xce8fd4e8
sub dword [ebp - 0x3c], 0x6b20687c
mov dword [ebp - 0x38], 0x159a7966
sub dword [ebp - 0x38], 0x159a7966
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, 0x6adada0f
sub eax, 0x6a9a09c7
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x3ae19
push 0
call eax
mov ecx, 0xc5338ae6
add ecx, 0x3accc218
mov esi, eax
mov edx, 0x41b000
add edx, dword [ebp - 0x34]
mov edi, 0x2c6ad608
mov dword [ebp - 0x24], 0x93822ae1
mov ebx, dword [edx]
add dword [ebp - 0x30], esi
sub ebx, edi
xor dword [ebp - 4], ecx
mov dword [esi], ebx
add esi, 0x6829b236
add esi, 0x97d64dce
add edx, 0x6dfdc69f
add edx, 0x92023965
loop 0x40192f
add eax, 0x5f5d788
sub eax, 0x5f4b0bd
mov ebx, eax
add eax, 0x2d9c34d8
sub eax, 0x2d9c34d3
mov ecx, 0x9f9c8590
add ecx, 0x60a37a70
add ecx, dword [ebp - 0x34]
call ebx
leave
ret

Function at 0x401b66
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410004]
jne 0x401b70
repz ret
jmp fcn.0040324d

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x432030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x402640
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x45e080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x234], ecx
mov esi, edx
push edi
mov ecx, 0x46510d
mov dword [ebp - 0x230], eax
call fcn.00444b2d
push esi
push 8
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
xor ebx, ebx
cmp esi, 0xffffffff
je 0x4026f1
push 0x220
lea eax, [ebp - 0x228]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x22c], 0x224
lea eax, [ebp - 0x22c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Module32First]
test eax, eax
je 0x4026ea
mov edi, dword [sym.imp.KERNEL32.dll_Module32Next]
mov ebx, dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbscmp]
push dword [ebp - 0x230]
lea eax, [ebp - 0x20c]
push eax
call ebx
add esp, 8
test eax, eax
je 0x402768
lea eax, [ebp - 0x22c]
push eax
push esi
call edi
test eax, eax
jne 0x4026c0
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0xc]
mov edi, 1
mov eax, dword [ebp + 0x10]
sub eax, ecx
sar eax, 2
mov esi, dword [ecx]
add esi, ebx
mov dword [ebp - 8], esi
cmp eax, edi
jbe 0x40273c
mov ebx, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push 0
push 4
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp - 0x234]
call ebx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
sub eax, ecx
sar eax, 2
mov esi, dword [ecx + edi*4]
inc edi
add esi, dword [ebp - 8]
mov dword [ebp - 8], esi
cmp edi, eax
jb 0x402712
test ecx, ecx
je 0x40277d
mov edx, dword [ebp + 0x14]
mov eax, ecx
sub edx, ecx
and edx, 0xfffffffc
cmp edx, 0x1000
jb 0x402773
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402773
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov ebx, dword [ebp - 0x218]
jmp 0x4026ea
push edx
push ecx
call fcn.00443979
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004435d5
mov esp, ebp
pop ebp
ret
Function at 0x407920
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
mov ebx, ecx
mov ecx, 0x465109
push edi
mov dword [esp + 0xc], ebx
call fcn.00444b2d
cmp dword [ebx + 0x38], 0
je 0x40795c
push dword [ebp + 0x10]
mov ecx, ebx
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 + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x407984
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x40798a
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x4079f8
jg 0x4079a1
test esi, esi
je 0x4079f8
test ecx, ecx
jl 0x4079ef
jg 0x4079ab
test eax, eax
je 0x4079ef
cmp edi, ecx
jg 0x4079bf
jl 0x4079b5
cmp esi, eax
jae 0x4079bf
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
mov ebx, dword [ebp + 8]
push eax
push ebx
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x10]
add ebx, edx
mov ecx, dword [esp + 0xc]
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ecx + 0x20]
add dword [eax], edx
jmp 0x4079ff
mov ebx, dword [ebp + 8]
mov ecx, dword [esp + 0xc]
jmp 0x407a09
mov ebx, dword [ebp + 8]
mov ecx, dword [esp + 0xc]
test edi, edi
jl 0x407a23
jg 0x407a09
test esi, esi
je 0x407a23
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x407a23
push eax
push esi
push 1
push ebx
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 + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x407a40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
mov ecx, 0x465109
mov dword [ebp - 4], esi
call fcn.00444b2d
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
test eax, eax
jg 0x407a76
jl 0x407a6a
test ecx, ecx
jne 0x407a76
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x407a8f
push eax
push ecx
push esi
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, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x407add
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x407ae3
mov edi, dword [ebp - 4]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [ebp - 4], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp - 4]
jmp 0x407ae3
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x407b56
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x407b0c
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 [ebp - 0xc]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x407b44
nop dword [eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x407b56
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x407b20
test edi, edi
je 0x407b56
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x407f00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x45e080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov ecx, 0x465109
call fcn.00444b2d
cmp ebx, 0xffffffff
jne 0x407f3a
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004435d5
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x407f76
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x407f76
lea ecx, [edi - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004435d5
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x40804d
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x407f9e
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 0x407faa
movsx eax, bl
jmp 0x407fe2
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 0x40800c
sub eax, 1
je 0x40800c
sub eax, 2
jne 0x40804d
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
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004435d5
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40802a
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 0x40804d
lea ecx, [ebp - 0x25]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x30], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004435d5
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.004435d5
mov esp, ebp
pop ebp
ret 4
Function at 0x408da0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x45e080]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov ecx, 0x465109
call fcn.00444b2d
cmp dword [esi + 0x38], 0
je 0x408e68
cmp byte [esi + 0x3d], 0
je 0x408e68
mov eax, dword [esi]
mov ecx, esi
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x408e56
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 0x408e1d
sub eax, 1
je 0x408e21
sub eax, 2
jne 0x408e56
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004435d5
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x408e3f
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 0x408e56
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004435d5
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004435d5
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.004435d5
mov esp, ebp
pop ebp
ret

Function at 0x409dc0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44563d
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x45e080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, 0x465105
call fcn.00444b2d
push 0x10
call fcn.004435e3
mov ecx, eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], ecx
mov dword [ecx], eax
mov eax, dword [0x464588]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ecx + 8], eax
mov eax, dword [ebp + 8]
mov dword [ecx + 0xc], eax
lea edi, [esi + 4]
mov dword [ebp - 4], 0
push edi
push 0
push ecx
push 0x40b750
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x1c
mov dword [esi], eax
test eax, eax
je 0x409e62
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004435d5
mov esp, ebp
pop ebp
ret 0x10
push 6
mov dword [edi], 0
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x4110db
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push 0x44
mov eax, 0x445e16
call fcn.00443d31
mov edi, dword [ebp + 8]
xor eax, eax
mov ebx, dword [ebp + 0xc]
push 0x20
push eax
mov dword [ebp - 4], eax
mov esi, eax
lea eax, [ebp - 0x50]
push eax
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [ebp - 0x48], 1
add esp, 0xc
mov dword [ebp - 0x44], eax
cmp dword [ebx + 0x10], eax
je 0x41112a
cmp dword [ebx + 0x14], 0x10
mov esi, ebx
jb 0x41111e
mov esi, dword [ebx]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], 4
jmp 0x411145
cmp dword [edi + 0x10], eax
je 0x411139
cmp dword [edi + 0x14], 0x10
mov esi, edi
jb 0x411139
mov esi, dword [edi]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x50], eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x28]
push eax
call fcn.0040ecb5
pop ecx
pop ecx
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 1
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
push esi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x411228
mov esi, dword [ebp - 0x30]
test esi, esi
je 0x411221
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
push 0x81
push 0
push 0
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4111c0
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x411213
cmp byte [ebp + 0x1c], 0
je 0x4111d8
push 4
xor ecx, ecx
lea eax, [ebp - 0x2c]
push eax
inc ecx
push ecx
push 6
push edi
mov dword [ebp - 0x2c], ecx
call ebx
cmp dword [ebp + 0x44], 0
je 0x4111e7
push edi
lea ecx, [ebp + 0x20]
call fcn.00419673
cmp dword [esi + 4], 0x17
jne 0x4111fe
and dword [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
push 4
push eax
push 0x1b
push 0x29
push edi
call ebx
push esi
push edi
lea ecx, [ebp + 0x48]
call fcn.00418fba
test al, al
jne 0x411243
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x41118b
mov esi, dword [ebp - 0x30]
push esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
or edi, 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00408850
lea ecx, [ebp + 0x20]
call fcn.0041e69e
mov eax, edi
call fcn.00443cef
ret
push dword [ebp - 0x30]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
jmp 0x41122b