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

Disassembly:
push esi
push 8
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
pop ecx
test esi, esi
je 0x10028df9
push 8
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp byte [0x1003ce0b], 0
jne 0x10028e0f
cmp byte [0x1003ce0a], 0
je 0x10028f4e
push edi
push 0x64
push str.sizeof__t_ASMBlock____d
mov edi, 0x1003e608
push edi
call fcn.100188b0
add esp, 0xc
cmp byte [0x1003ce0a], 0
je 0x10028e35
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003ce0b], 0
je 0x10028e4e
push edi
call fcn.10005ee0
cmp byte [0x1003ce0b], 0
pop ecx
jne 0x10028e57
cmp byte [0x1003ce0a], 0
je 0x10028e77
push 4
push str.sizeof_Uns32____d
push edi
call fcn.100188b0
add esp, 0xc
cmp byte [0x1003ce0a], 0
je 0x10028e77
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003ce0b], 0
je 0x10028e90
push edi
call fcn.10005ee0
cmp byte [0x1003ce0b], 0
pop ecx
jne 0x10028e99
cmp byte [0x1003ce0a], 0
je 0x10028eb9
push 4
push str.sizeof_HANDLE____d
push edi
call fcn.100188b0
add esp, 0xc
cmp byte [0x1003ce0a], 0
je 0x10028eb9
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003ce0b], 0
je 0x10028ed2
push edi
call fcn.10005ee0
cmp byte [0x1003ce0b], 0
pop ecx
jne 0x10028edb
cmp byte [0x1003ce0a], 0
je 0x10028efb
push 4
push str.sizeof_Handle32____d
push edi
call fcn.100188b0
add esp, 0xc
cmp byte [0x1003ce0a], 0
je 0x10028efb
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003ce0b], 0
je 0x10028f14
push edi
call fcn.10005ee0
cmp byte [0x1003ce0b], 0
pop ecx
jne 0x10028f1d
cmp byte [0x1003ce0a], 0
je 0x10028f3d
push 4
push str.sizeof_void____d
push edi
call fcn.100188b0
add esp, 0xc
cmp byte [0x1003ce0a], 0
je 0x10028f3d
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003ce0b], 0
je 0x10028f4d
push edi
call fcn.10005ee0
pop ecx
pop edi
mov eax, esi
pop esi
ret

Function at 0x10028fdd
Capabilities:
Print debug messages

Disassembly:
push 0x1c
mov eax, 0x1002e2c3
call fcn.1002b28b
cmp byte [0x1003ce0b], 0
mov ebx, 0x1003e608
mov edi, dword [ebp + 8]
jne 0x10029008
mov al, byte [0x1003ce0a]
test al, al
jne 0x10029008
lea esi, [edi + 4]
jmp 0x1002901f
lea esi, [edi + 4]
push esi
push str.ASM_Release__s
push ebx
call fcn.100188b0
mov al, byte [0x1003ce0a]
add esp, 0xc
test al, al
je 0x1002902a
push ebx
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003ce0b], 0
je 0x1002903a
push ebx
call fcn.10005ee0
pop ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.100188b0
push dword [edi + 0x48]
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.100028bc
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x1002906d
mov ecx, dword [ebx]
push 1
mov esi, dword [ecx]
mov ecx, esi
call dword [0x1002f5c8]
mov ecx, ebx
call esi
lea ecx, [ebp - 0x28]
call fcn.10003172
and dword [edi + 0x4c], 0
and dword [edi + 0x44], 0
call fcn.1002b235
ret
Function at 0x10029083
Capabilities:
Print debug messages

Disassembly:
push 0x24
mov eax, 0x1002e2f7
call fcn.1002b28b
cmp byte [0x1003ce0b], 0
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], esi
jne 0x100290b0
cmp byte [0x1003ce0a], 0
je 0x100290ff
call fcn.100188b0
test al, al
mov edx, 0x1002fbdc
mov ecx, str._in_AppContaner
cmove ecx, edx
push ecx
push str.ASM_Retrieve_retrieving_shared_memory_in_Plug_in_s
push 0x1003e608
call fcn.100188b0
add esp, 0xc
cmp byte [0x1003ce0a], 0
je 0x100290eb
push 0x1003e608
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003ce0b], 0
je 0x100290ff
push 0x1003e608
call fcn.10005ee0
pop ecx
and dword [esi], 0
lea eax, [edi + 4]
and dword [ebx], 0
lea ecx, [ebp - 0x28]
push eax
call fcn.100188b0
push dword [edi + 0x48]
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.100028bc
or dword [ebp - 4], 0xffffffff
mov ebx, eax
pop ecx
pop ecx
lea ecx, [ebp - 0x28]
call fcn.10003172
test ebx, ebx
jne 0x1002917d
cmp byte [0x1003ce0b], bl
jne 0x10029149
cmp byte [0x1003ce0a], bl
je 0x100291f1
push str.ASM_Retrieve_ERROR__finding_memory_mapped_file_
mov ebx, 0x1003e608
push ebx
call fcn.100188b0
cmp byte [0x1003ce0a], 0
pop ecx
pop ecx
je 0x1002916b
push ebx
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003ce0b], 0
je 0x100291f1
push ebx
call fcn.10005ee0
pop ecx
jmp 0x100291f1
mov eax, dword [ebx]
mov esi, dword [eax + 0x20]
mov ecx, esi
call dword [0x1002f5c8]
mov ecx, ebx
call esi
mov dword [edi + 0x44], eax
test eax, eax
jne 0x100291ac
cmp byte [0x1003ce0b], al
jne 0x100291a5
cmp byte [0x1003ce0a], al
je 0x100291f1
push str.ASM_Retrieve_ERROR__getting_memory_mapped_file_handle_
jmp 0x1002914e
mov eax, dword [ebx]
push dword [edi + 0x48]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x1002f5c8]
mov ecx, ebx
call esi
mov dword [edi + 0x4c], eax
test eax, eax
jne 0x100291e1
cmp byte [0x1003ce0b], al
jne 0x100291d7
cmp byte [0x1003ce0a], al
je 0x100291f1
push str.ASM_Retrieve_ERROR__mapping_for_writing_
jmp 0x1002914e
mov ecx, dword [ebp - 0x2c]
mov eax, dword [edi + 0x48]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x30]
mov eax, dword [edi + 0x4c]
mov dword [ecx], eax
call fcn.1002b235
ret
Function at 0x4615f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x4674cc]
cmp dword [eax + 0x28], 0
jne 0x461608
xor eax, eax
jmp 0x461737
mov ecx, dword [0x46743c]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
add edx, 0xe
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
mov dword [0x467430], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
mov dword [0x46742c], eax
push 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x10], eax
push 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x18], eax
mov ecx, dword [0x467430]
mov dword [ebp - 0x40], ecx
mov edx, dword [0x46742c]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x40]
shr eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 8]
shr ecx, 1
mov dword [ebp - 0x1c], ecx
push 0
mov edx, dword [0x4674b8]
push edx
push 0
push 0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 0x80000000
push 0x465680
push 0x4656d0
push 0x88
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [0x467428], ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.00461530
push 5
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x4615c0
mov edx, dword [0x4674cc]
mov eax, dword [edx + 0x34]
imul eax, eax, 0x3e8
push eax
push 0
push 0
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [0x467434], eax
push 1
push 0
push 0
push 0
lea ecx, [ebp - 0x3c]
push ecx
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x461737
cmp dword [ebp - 0x38], 0x12
jne 0x46172b
mov dword [0x467444], 0
call fcn.00461740
xor eax, eax
jmp 0x461737
lea edx, [ebp - 0x3c]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x4616fc
mov esp, ebp
pop ebp
ret 4

Function at 0x462b00
Capabilities:
Read .ini file
Read and send data from client to server
Send data
Send data on socket
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebp
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
pop ebp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x46369c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edi, 0x465168
sub eax, eax
test esi, esi
je 0x463774
sub eax, 1
test ecx, ecx
je 0x463772
test esi, 3
je 0x4636da
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x4636bf
mov edx, ecx
and edx, 7
shr ecx, 3
je 0x463759
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x4636e4
mov ecx, edx
test ecx, ecx
je 0x463772
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x46375f
not eax
mov dword [esp + 0x1c], eax
popal
ret

Function at 0x46377c
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.004637ff
jae 0x46378a
xor ecx, ecx
call fcn.004637ff
jae 0x4637b9
xor eax, eax
call fcn.004637ff
jae 0x4637c9
mov bl, 2
inc ecx
mov al, 0x10
call fcn.004637ff
adc al, al
jae 0x4637ab
jne 0x4637f5
stosb byte es:[edi], al
jmp 0x46378d
call fcn.0046380b
sub ecx, ebx
jne 0x4637d2
call fcn.00463809
jmp 0x4637f1
lodsb al, byte [esi]
shr eax, 1
je 0x46381b
adc ecx, ecx
jmp 0x4637ee
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.00463809
cmp eax, 0x7d00
jae 0x4637ee
cmp ah, 5
jae 0x4637ef
cmp eax, 0x7f
ja 0x4637f0
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x46378d
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret

Function at 0x46414c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x467000]
jne 0x464156
repz ret
jmp fcn.004643fd
Function at 0x4afce4
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
jmp 0x4afda3
cmp dword [esi + 0x10], 0x1000
jne 0x4afd8f
test byte [esi + 0x15], 1
jne 0x4afd8f
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4afd40
cmp ebp, 2
je 0x4afd40
cmp ebp, 0x10
je 0x4afd40
cmp ebp, 0x20
jne 0x4afd5c
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4afd5c
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4afd6d
mov eax, dword [esi]
add eax, ebx
call fcn.004afcdc
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4afd60
cmp byte [esp + 4], 0
je 0x4afd8f
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4afd15
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x4b6f5f9b
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e024
nop
nop
mov eax, section..data_1
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x59594e8c
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x409000
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e2b58
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x52610c]
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 0x40912e
cmp byte [ebx + 0x3d], 0
je 0x40912e
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x409059
xor al, al
jmp 0x409130
push 0
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00408e10
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x4090bf
sub eax, 1
je 0x4090c3
mov ecx, dword [ebp - 0x14]
sub eax, 2
je 0x409116
xor bl, bl
jmp 0x409118
mov byte [ebx + 0x3d], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x4090f8
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.004c27bd
mov ecx, dword [ebp - 0x14]
add esp, 0x10
cmp esi, eax
jne 0x4090bb
cmp byte [ebx + 0x3d], 0
je 0x409116
test esi, esi
jne 0x409081
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00408f50
jmp 0x40907e
mov bl, 1
cmp ecx, 0x10
jb 0x40912a
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.004099a0
mov al, bl
jmp 0x409130
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.004a04d5
mov esp, ebp
pop ebp
ret

Function at 0x40b450
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e2dec
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x52610c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea edx, [esi + 0x30]
mov dword [ebp - 4], 0
mov eax, dword [edx + 4]
cmp eax, dword [edx + 8]
sbb ecx, ecx
xor al, al
and ecx, 0xfffffffc
add ecx, 8
add ecx, edx
mov edx, dword [edx + 0xc]
mov edi, edx
push edx
mov ecx, dword [ecx]
rep stosb byte es:[edi], al
call fcn.004a0500
add esp, 4
mov dword [ebp - 4], 1
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x40b4b8
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [ebp + 8], 1
je 0x40b4c9
push 0x40
push esi
call fcn.004a04e6
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40f240
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [0x52610c]
xor eax, esp
mov dword [esp + 0x60], eax
cmp dword [0x52e1c4], 0
push esi
mov esi, dword [ebp + 8]
jne 0x40f275
mov dword [0x52e1c8], 0
mov dword [0x52e1c4], 1
push edx
mov edx, ecx
mov dword [esp + 0xc], 0x67452301
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call fcn.0040f070
add esp, 4
lea edx, [esp + 8]
mov ecx, esi
call fcn.0040f190
mov ecx, dword [esp + 0x64]
pop esi
xor ecx, esp
call fcn.004a04d5
mov esp, ebp
pop ebp
ret

Function at 0x40f3f0
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4a4
mov eax, dword [0x52610c]
xor eax, esp
mov dword [esp + 0x4a0], eax
push esi
mov esi, ecx
mov dword [esp + 0xc], 0
mov dword [esp + 8], esi
cmp dword [edx + 0x14], 0x10
mov dword [esp + 8], 0
jb 0x40f429
mov edx, dword [edx]
push 0x507a80
push edx
lea eax, [esp + 0x10]
push eax
call fcn.004c650f
add esp, 0xc
test eax, eax
je 0x40f45d
push 0
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
push 0x507250
jmp 0x40f5a2
cmp dword [0x52e1c4], 0
xorps xmm0, xmm0
mov byte [esp + 0x6c], 0
movq qword [esp + 0x6d], xmm0
mov dword [esp + 0x75], 0
mov word [esp + 0x79], 0
mov byte [esp + 0x7b], 0
movups xmmword [esp + 0x7c], xmm0
mov byte [esp + 0x9c], 0
movups xmmword [esp + 0x8c], xmm0
jne 0x40f4b1
mov dword [0x52e1c8], 0
mov dword [0x52e1c4], 1
push 0x400
lea eax, [esp + 0xa4]
mov dword [esp + 0x14], 0x67452301
push 0
push eax
mov dword [esp + 0x20], 0xefcdab89
mov dword [esp + 0x24], 0x98badcfe
mov dword [esp + 0x28], 0x10325476
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
call fcn.004b98e0
push dword [esp + 0x14]
lea eax, [esp + 0xb0]
push 0x400
push 1
push eax
call fcn.004c6722
add esp, 0x1c
test eax, eax
je 0x40f544
push eax
lea edx, [esp + 0xa4]
lea ecx, [esp + 0x14]
call fcn.0040f070
push dword [esp + 0xc]
lea eax, [esp + 0xa8]
push 0x400
push 1
push eax
call fcn.004c6722
add esp, 0x14
test eax, eax
jne 0x40f514
push dword [esp + 8]
call fcn.004c2505
lea edx, [esp + 0x14]
lea ecx, [esp + 0x70]
call fcn.0040f190
lea edx, [esp + 0x80]
lea ecx, [esp + 0x70]
call fcn.0040f2d0
mov dword [esi + 0x14], 0xf
add esp, 4
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp byte [esp + 0x7c], 0
jne 0x40f589
xor ecx, ecx
jmp 0x40f599
lea ecx, [esp + 0x7c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f590
sub ecx, edx
push ecx
lea eax, [esp + 0x80]
push eax
mov ecx, esi
call fcn.00409af0
mov ecx, dword [esp + 0x4a4]
mov eax, esi
pop esi
xor ecx, esp
call fcn.004a04d5
mov esp, ebp
pop ebp
ret
Function at 0x40fd10
Capabilities:
Initialize winhttp library
Prepare http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e3748
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x52610c]
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 dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 2
call fcn.0040fa70
test eax, eax
jne 0x40fda5
lea ecx, [ebp - 0x28]
call fcn.004095a0
lea ecx, [ebp - 0x40]
call fcn.004095a0
lea ecx, [ebp - 0x58]
call fcn.004095a0
xor eax, eax
jmp 0x40ff19
cmp dword [esi + 0x7c], 0
jne 0x40fdb2
mov eax, 0x507aac
jmp 0x40fdc0
cmp dword [esi + 0x80], 8
lea eax, [esi + 0x6c]
jb 0x40fdc0
mov eax, dword [eax]
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov ecx, eax
mov dword [esi + 4], ecx
test ecx, ecx
je 0x40fd86
mov eax, dword [esi + 0xc]
push eax
push dword [esi + 0x14]
push dword [esi + 0x10]
push eax
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
je 0x40fd86
cmp dword [esi + 0x34], 0
je 0x40fe14
push 4
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0xaa0
push eax
push 0x54
push dword [esi + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x40fd86
mov eax, dword [esi + 0x34]
xor ecx, ecx
test eax, eax
je 0x40fe2d
cmp dword [esi + 0x38], ecx
jne 0x40fe29
mov ecx, 0x1bb
jmp 0x40fe42
test eax, eax
jne 0x40fe39
cmp dword [esi + 0x38], ecx
jne 0x40fe3e
mov ecx, 0x50
jmp 0x40fe42
cmp dword [esi + 0x38], ecx
je 0x40fe42
movzx ecx, word [esi + 0x38]
cmp dword [esi + 0x50], 8
lea eax, [esi + 0x3c]
jb 0x40fe4d
mov eax, dword [eax]
push 0
push ecx
push eax
push dword [esi + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 8], 0
je 0x40fd86
mov eax, dword [esi + 0x34]
neg eax
sbb eax, eax
and eax, 0x800000
cmp dword [esi + 0xac], 0
jne 0x40fe89
mov edx, str.HTTP_1.1
jmp 0x40fe9a
cmp dword [esi + 0xb0], 8
lea edx, [esi + 0x9c]
jb 0x40fe9a
mov edx, dword [edx]
cmp dword [esi + 0x94], 0
jne 0x40feaa
mov ecx, 0x507ad8
jmp 0x40febb
cmp dword [esi + 0x98], 8
lea ecx, [esi + 0x84]
jb 0x40febb
mov ecx, dword [ecx]
cmp dword [esi + 0x68], 8
lea edi, [esi + 0x54]
jb 0x40fec6
mov edi, dword [edi]
push eax
push 0
push 0
push edx
push edi
push ecx
push dword [esi + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [esi], eax
test eax, eax
je 0x40fd86
cmp dword [esi + 0x34], 0
je 0x40ff05
push 4
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0x3300
push ecx
push 0x1f
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x40fd86
mov ecx, esi
call fcn.00410190
test eax, eax
je 0x40fd86
mov eax, 1
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.004a04d5
mov esp, ebp
pop ebp
ret
Function at 0x40ff40
Capabilities:
Set http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x52610c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx], 0
jne 0x40ff6d
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a04d5
mov esp, ebp
pop ebp
ret
mov edi, dword [ebx + 0xb4]
mov dword [ebp - 0x20], 1
mov esi, dword [edi]
cmp esi, edi
je 0x410012
xor ecx, ecx
mov dword [ebp - 8], 7
push 0xffffffffffffffff
push ecx
lea eax, [esi + 8]
mov word [ebp - 0x1c], cx
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0xc], 0
call fcn.00403ab0
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
push 0x20000000
push dword [ebp - 0xc]
cmovae eax, dword [ebp - 0x1c]
push eax
push dword [ebx]
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
je 0x40fff6
mov eax, dword [ebp - 8]
cmp eax, 8
jb 0x40ffdc
inc eax
lea ecx, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
call fcn.00403f90
mov esi, dword [esi]
cmp esi, edi
jne 0x40ff84
mov eax, dword [ebp - 0x20]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a04d5
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x20], 0
cmp ecx, 8
jb 0x410012
inc ecx
push ecx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x1c]
call fcn.00403f90
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x20]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004a04d5
mov esp, ebp
pop ebp
ret