joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402050
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4027c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
xor ebx, ebx
push esi
push edi
mov byte [ebp - 0x24], bl
mov byte [ebp - 0x23], bl
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0x2710
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
call edi
mov eax, dword [ebp + 0xc]
push 0xffffffffffffffff
push eax
call fcn.00402210
mov ecx, dword [ebp - 0x1c]
add esp, 8
cmp ecx, eax
mov dword [ebp - 0x20], eax
je 0x4020cc
cmp ecx, ebx
je 0x4020b7
push ecx
call edi
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov ecx, dword [ebp - 0x20]
push eax
push ecx
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov dword [ebp - 0x1c], eax
mov edx, 0x4041ec
test edx, edx
jne 0x4020d9
xor esi, esi
jmp 0x402105
push 0x4041ec
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00402260
mov eax, esp
push ebx
push esi
push 0x4041ec
push eax
call fcn.00401990
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push esi
lea ecx, [ebp - 0x1c]
call fcn.004019d0
lea eax, [ebp + 0xc]
push eax
call fcn.00401f70
mov esi, eax
add esp, 4
mov ecx, dword [esi]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov edx, dword [esi]
push eax
push edx
lea ecx, [ebp - 0x1c]
call fcn.004019d0
mov eax, dword [ebp + 0xc]
push eax
call edi
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0x24]
push ecx
push ebx
push edx
push 0x401640
push ebx
push ebx
mov dword [ebp - 0x14], 0x2710
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
cmp edi, ebx
je 0x4021b7
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
mov dword [ebp + 0xc], eax
jne 0x402170
xor eax, eax
jmp 0x402195
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and al, 0xfc
call fcn.00402260
mov ecx, dword [ebp + 0xc]
mov eax, esp
push ebx
push esi
push ecx
push eax
call fcn.004021e0
mov edx, dword [ebp + 8]
push 0x10
push eax
push edx
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xffffffffffffffff
push edi
mov byte [ebp - 0x24], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push eax
call esi
mov ecx, dword [ebp - 0x20]
push ecx
call esi
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x30]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ce0a
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push edi
push esi
lea edx, [6]
push edx
mov edi, 0x4ee
shr edi, 8
push edi
pop dword [0x42499a]
push 0x424b96
mov ebx, 0x482
and ebx, 0xff
or ebx, ebx
jne 0x40ce3f
shl ebx, 6
mov dword [ebp - 0x30], ebx
push 0x60
call fcn.0040c224
push str.ISAietLG
push str.qcnixX
call dword [sym.imp.kernel32.dll_lstrcmpA]
mov dword [0x424a82], eax
push 0x101
push 0
call dword [sym.imp.WSOCK32.DLL_WSAStartup]
mov dword [0x4249ee], eax
mov edi, 0x4c5
and edi, 0xfff
ror edi, 0xc
mov dword [ebp - 0x24], edi
mov esi, 0xca0
add esi, dword [0x422139]
test esi, esi
jne 0x40ce93
shr esi, 4
mov dword [ebp - 0x10], esi
mov eax, 0x679
sub eax, 0xde6
test eax, eax
jne 0x40cea7
shl eax, 8
push eax
pop dword [0x424983]
push str.yangs
push str.TZzMCn
call dword [sym.imp.kernel32.dll_lstrcmpA]
mov dword [0x424b04], eax
push 0x101
push 0
call dword [sym.imp.WSOCK32.DLL_WSAStartup]
mov dword [0x42491b], eax
push 0x422c1f
push str.hdTXVA
call dword [sym.imp.kernel32.dll_lstrcmpA]
mov dword [0x424ad2], eax
mov dword [0x424ce9], 0xc8a8e1b2
push 0x101
push 0
call dword [sym.imp.WSOCK32.DLL_WSAStartup]
mov dword [0x4248f0], eax
push esp
push esi
call fcn.0040c144
lea edx, [0x1f]
push edx
lea edx, [0x20]
push edx
push edi
call fcn.0040c224
push 0x101
push 0
call dword [sym.imp.WSOCK32.DLL_WSAStartup]
mov dword [0x4248b6], eax
add dword [0x424ce9], 0x3797f1d3
mov edi, 0x3d4
mov dword [0x424840], edi
sub edi, 0x8b3
push edi
pop dword [0x4248dc]
mov edi, 0x485
add edi, dword [0x423b1b]
push edi
pop dword [0x42496d]
mov edx, dword [0x42496d]
mov dword [0x424921], edx
push dword [0x422387]
push dword [0x423169]
push str.oBzz
call dword [sym.imp.winspool.drv_AddPrinterW]
push eax
push eax
push eax
push str.hFxWieFBWvdphN
push eax
call dword [sym.imp.winspool.drv_SetPrinterDataW]
push 0x30
push 0x424ab6
lea edx, [0x47]
push edx
call fcn.0040c0d4
lea edx, [0x17]
push edx
lea edx, [0x2f]
push edx
push 0x424a97
mov ecx, 0x8d8
and ecx, 0xff
cmp ecx, 0x71
jne 0x40cfd6
push ecx
pop dword [0x4248ae]
mov dword [0x4249c3], ecx
push 0x424a1a
jmp 0x4622dc
Function at 0x404b14
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
and dword [esp + 4], 0
push ebx
push esi
push edi
pushal
xor eax, eax
dec eax
xor ebx, eax
mov dword [esp + 0x30], ebx
popal
push str.V3.5_n
call dword [sym.imp.MSVCR90.dll_printf]
cmp dword [0x4093a8], 0
pop ecx
jne 0x404b4d
call fcn.0040435c
cmp dword [0x4093a4], 0
jne 0x404b5b
call fcn.0040429c
call fcn.0040459d
mov esi, dword [ebp + 0xc]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x10]
push eax
push dword [esi]
call fcn.00404144
lea eax, [esp + 0x14]
push eax
call fcn.00403faf
mov dword [0x4093ac], eax
lea eax, [esp + 0x38]
push eax
call fcn.00403f65
push dword [esp + 0xc]
push dword [esi]
call fcn.00404033
push eax
mov dword [0x4093b0], eax
call dword [sym.imp.MSVCR90.dll__msize]
pop ecx
mov esi, eax
push esi
call fcn.00403fe4
mov eax, esi
imul eax, eax, 3
push eax
mov dword [esp + 0x10], eax
call dword [sym.imp.MSVCR90.dll_malloc]
pop ecx
mov edi, eax
push esi
lea eax, [esp + 0x10]
push eax
push edi
call fcn.0040327f
test edi, edi
je 0x404bf3
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x10]
push edi
call fcn.004043b2
lea eax, [esp + 0x38]
push eax
call dword [0x409398]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00404267
int3

Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53
Function at 0x401700
Capabilities:
Encode data using xor

Disassembly:
push esi
push ebx
push eax
mov ebx, dword [esp + 0x10]
lea eax, [ebx - 1]
cmp eax, 8
mov esi, dword [esp + 0x14]
jbe 0x401723
sub esp, 0xc
push str.bad_pack_level
call fcn.0040a4b4
add esp, 0x10
push eax
push 0x10000
push 0
push 0x4522e0
mov dword [0x411080], ebx
call sub.msvcrt.dll_memset
movzx edx, word [ebx*8 + 0x40e022]
mov dword [0x411070], edx
movzx eax, word [ebx*8 + 0x40e020]
movzx ecx, word [ebx*8 + 0x40e024]
movzx edx, word [ebx*8 + 0x40e026]
add esp, 0x10
cmp ebx, 1
mov dword [0x4110a0], 0xffffffff
mov dword [0x411090], 0
mov dword [0x414710], eax
mov dword [0x414730], ecx
mov dword [0x414700], edx
je 0x401879
cmp ebx, 9
jne 0x40179b
or word [esi], 2
mov dword [0x4146e0], 0
mov dword [0x414720], 0
call fcn.0040b3b0
sub esp, 8
push 0x10000
push 0x421030
call dword [0x4146c0]
add esp, 0x10
test eax, eax
je 0x401861
cmp eax, 0xffffffff
je 0x401861
cmp eax, 0x105
mov dword [0x411060], eax
mov dword [0x411050], 0
ja 0x401831
mov ebx, dword [section..data]
sub ebx, eax
mov edx, dword [0x4146e0]
sub ebx, edx
cmp ebx, 0xffffffff
je 0x401980
cmp edx, 0xfef9
ja 0x4018bc
mov esi, dword [0x411050]
test esi, esi
je 0x401882
cmp eax, 0x105
ja 0x401831
mov ebx, dword [0x411050]
test ebx, ebx
je 0x4017f1
mov dword [0x411040], 0
xor ecx, ecx
xor edx, edx
shl edx, 5
movzx eax, byte [ecx + 0x421030]
xor edx, eax
inc ecx
and edx, 0x7fff
cmp ecx, 1
jbe 0x40183f
mov dword [0x411040], edx
pop eax
pop ebx
pop esi
ret
mov dword [0x411050], 1
mov dword [0x411060], 0
pop eax
pop ebx
pop esi
ret
or word [esi], 4
jmp 0x40179b
sub esp, 8
add eax, dword [0x4146e0]
push ebx
add eax, 0x421030
push eax
call dword [0x4146c0]
add esp, 0x10
test eax, eax
je 0x40196c
cmp eax, 0xffffffff
je 0x40196c
add eax, dword [0x411060]
mov dword [0x411060], eax
jmp 0x401820
push esi
push 0x8000
push 0x429030
push 0x421030
call sub.msvcrt.dll_memcpy
mov eax, dword [0x4110a0]
add esp, 0x10
sub dword [0x4146f0], 0x8000
sub dword [0x4146e0], 0x8000
cmp eax, 0xffffffff
je 0x4018fc
sub eax, 0x8000
mov dword [0x4110a0], eax
sub dword [0x414720], 0x8000
xor edx, edx
movzx eax, word [edx + edx + 0x4522e0]
xor ecx, ecx
cmp eax, 0x7fff
jbe 0x40191f
lea ecx, [eax - 0x8000]
mov word [edx + edx + 0x4522e0], cx
inc edx
cmp edx, 0x7fff
jbe 0x401908
xor edx, edx
nop
movzx eax, word [edx + edx + 0x4422e0]
xor ecx, ecx
cmp eax, 0x7fff
jbe 0x40194b
lea ecx, [eax - 0x8000]
mov word [edx + edx + 0x4422e0], cx
inc edx
cmp edx, 0x7fff
jbe 0x401934
add ebx, 0x8000
mov eax, dword [0x411060]
jmp 0x401816
mov eax, dword [0x411060]
mov dword [0x411050], 1
jmp 0x401820
mov bl, 0xfe
jmp 0x401816
Function at 0x40a280
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, ebx
mov ecx, dword [esp + 0xc]
mov edx, 0xffffffff
je 0x40a2b1
mov edx, dword [0x40eb30]
test ecx, ecx
jmp 0x40a2af
mov al, byte [ebx]
xor eax, edx
movzx eax, al
shr edx, 8
xor edx, dword [eax*4 + 0x40e730]
inc ebx
dec ecx
jne 0x40a29c
mov dword [0x40eb30], edx
not edx
mov eax, edx
pop ebx
ret

Function at 0x40a308
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x18]
test eax, eax
js 0x40a328
push edx
push eax
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call sub.msvcrt.dll__read
add esp, 0x1c
ret
mov eax, 0x7fffffff
push edx
push eax
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call sub.msvcrt.dll__read
add esp, 0x1c
ret

Function at 0x40a4e4
Capabilities:
Query environment variable

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x18
mov esi, dword [esp + 0x2c]
mov edi, dword [esi]
push dword [esp + 0x34]
call sub.msvcrt.dll_getenv
xor ebp, ebp
add esp, 0x10
xor edx, edx
test eax, eax
je 0x40a5e8
sub esp, 0xc
push eax
call fcn.0040cba4
mov dword [esp + 0x18], eax
add esp, 0x10
cmp byte [eax], 0
mov ebx, eax
je 0x40a5f2
sub esp, 8
push 0x4102b4
push ebx
call sub.msvcrt.dll_strspn
add ebx, eax
add esp, 0x10
cmp byte [ebx], 0
je 0x40a560
sub esp, 8
push 0x4102b4
push ebx
call sub.msvcrt.dll_strcspn
add ebx, eax
mov al, byte [ebx]
add esp, 0x10
test al, al
je 0x40a55b
mov byte [ebx], 0
inc ebx
mov al, byte [ebx]
inc ebp
test al, al
jne 0x40a524
test ebp, ebp
je 0x40a5f2
mov edx, dword [esi]
sub esp, 8
add edx, ebp
mov dword [esi], edx
push 4
inc edx
push edx
call fcn.0040cb34
mov ebx, dword [esp + 0x34]
mov edx, eax
mov ecx, dword [ebx]
mov dword [ebx], eax
lea eax, [edi - 1]
mov dword [esp + 0x14], eax
add esp, 0x10
test edi, edi
js 0x40a60d
mov esi, dword [ecx]
test ebp, ebp
mov dword [edx], esi
lea edi, [ecx + 4]
lea esi, [edx + 4]
mov ebx, dword [esp + 8]
jle 0x40a5c8
sub esp, 8
push 0x4102b4
push ebx
call sub.msvcrt.dll_strspn
add ebx, eax
mov dword [esi], ebx
add esp, 0x10
add esi, 4
mov al, byte [ebx]
inc ebx
test al, al
jne 0x40a5bc
dec ebp
test ebp, ebp
jg 0x40a5a4
mov edx, dword [esp + 4]
jmp 0x40a5d8
mov ebp, dword [edi]
mov dword [esi], ebp
add edi, 4
add esi, 4
dec edx
cmp edx, 0xffffffff
jne 0x40a5ce
mov dword [esi], 0
mov edx, dword [esp + 8]
add esp, 0xc
pop ebx
pop esi
pop edi
mov eax, edx
pop ebp
ret
sub esp, 0xc
push dword [esp + 0x14]
call sub.msvcrt.dll_free
add esp, 0x10
add esp, 0xc
pop ebx
pop esi
xor edx, edx
pop edi
mov eax, edx
pop ebp
ret
sub esp, 0xc
push str.argc_0
push 0x432030
push dword [0x414740]
mov ecx, dword [sym.imp.msvcrt.dll__iob]
push str._n_s:__s:__s_n
add ecx, 0x40
push ecx
call sub.msvcrt.dll_fprintf
add esp, 0x20
call fcn.00405594
sub esp, 0xc
mov eax, dword [0x4110c8]
test eax, eax
je 0x40a660
mov ecx, dword [0x4110b8]
test ecx, ecx
jne 0x40a65c
mov dword [0x4110b8], 2
add esp, 0xc
ret
sub esp, 0xc
push dword [esp + 0x1c]
push 0x432030
push dword [0x414740]
mov edx, dword [sym.imp.msvcrt.dll__iob]
push str._s:__s:_warning:__s_n
add edx, 0x40
push edx
call sub.msvcrt.dll_fprintf
add esp, 0x20
jmp 0x40a648
Function at 0x40a964
Capabilities:
Encode data using xor
Hash data with crc32
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [0x421000], 0
jmp 0x40a9a3
push ebp
push eax
push ecx
push ebx
call sub.msvcrt.dll__read
add esp, 0x10
test eax, eax
je 0x40a9d4
cmp eax, 0xffffffff
je 0x40aaa5
add eax, dword [0x421000]
cmp eax, 0x7fff
mov dword [0x421000], eax
ja 0x40a9d4
mov edx, dword [0x421000]
mov eax, 0x8000
sub eax, edx
mov ebx, dword [0x420fd0]
lea ecx, [edx + 0x418f60]
jns 0x40a978
mov eax, 0x7fffffff
push ebp
push eax
push ecx
push ebx
call sub.msvcrt.dll__read
add esp, 0x10
test eax, eax
jne 0x40a988
nop
mov edi, dword [0x421000]
test edi, edi
jne 0x40aaea
mov esi, dword [esp + 0x20]
test esi, esi
mov eax, 0xffffffff
jne 0x40ab0f
mov ebp, dword [0x442190]
test ebp, ebp
je 0x40aa9a
mov ebx, 0x421030
mov ecx, ebp
mov edx, dword [0x40eb30]
nop
mov al, byte [ebx]
xor eax, edx
movzx eax, al
shr edx, 8
xor edx, dword [eax*4 + 0x40e730]
inc ebx
dec ecx
jne 0x40aa10
mov ebx, dword [0x4110c0]
test ebx, ebx
mov dword [0x40eb30], edx
jne 0x40aa7c
mov edi, dword [0x4421b0]
mov esi, 0x421030
mov ebx, ebp
jmp 0x40aa61
push edx
push eax
push esi
push edi
call sub.msvcrt.dll__write
add esp, 0x10
cmp eax, ebx
je 0x40aa7c
cmp eax, 0xffffffff
je 0x40ab32
sub ebx, eax
add esi, eax
test ebx, ebx
mov eax, ebx
jns 0x40aa44
mov eax, 0x7fffffff
push edx
push eax
push esi
push edi
call sub.msvcrt.dll__write
add esp, 0x10
cmp eax, ebx
jne 0x40aa54
mov edi, dword [0x442190]
xor edx, edx
add dword [0x418f50], edi
adc dword [0x418f54], edx
mov dword [0x442190], 0
call sub.msvcrt.dll__errno
mov dword [eax], 0
call sub.msvcrt.dll__errno
mov ebx, dword [eax]
push eax
push dword [0x414740]
mov esi, dword [sym.imp.msvcrt.dll__iob]
push str._n_s:
add esi, 0x40
push esi
call sub.msvcrt.dll_fprintf
add esp, 0x10
test ebx, ebx
je 0x40ab17
call sub.msvcrt.dll__errno
sub esp, 0xc
mov dword [eax], ebx
push 0x432030
call sub.msvcrt.dll_perror
add esp, 0x10
call fcn.00405594
mov ebp, dword [0x421000]
xor ebx, ebx
add dword [0x421010], ebp
adc dword [0x421014], ebx
mov dword [0x432170], 1
movzx eax, byte [0x418f60]
add esp, 0xc
pop ebx
pop esi
pop edi
pop ebp
ret
push eax
push 0x432030
mov eax, dword [sym.imp.msvcrt.dll__iob]
push str._s:_unexpected_end_of_file_n
add eax, 0x40
push eax
call sub.msvcrt.dll_fprintf
jmp 0x40aae2
call sub.msvcrt.dll__errno
mov ebp, dword [eax]
push ecx
push dword [0x414740]
mov ecx, dword [sym.imp.msvcrt.dll__iob]
push str._n_s:
add ecx, 0x40
push ecx
call sub.msvcrt.dll_fprintf
add esp, 0x10
call sub.msvcrt.dll__errno
sub esp, 0xc
mov dword [eax], ebp
push 0x4421d0
jmp 0x40aadd
Function at 0x40d1d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push edi
push esi
push ebx
sub esp, 0x120
mov ebx, dword [esp + 0x130]
call sub.msvcrt.dll__errno
mov dword [eax], 0
test ebx, ebx
je 0x40d400
cmp byte [ebx], 0
je 0x40d3cb
mov dword [esp], ebx
call sub.KERNEL32.dll_GetFileAttributesA
sub esp, 4
cmp eax, 0xffffffff
je 0x40d3f1
test al, 0x10
je 0x40d3cb
mov dword [esp + 4], ebx
mov eax, 0x104
lea esi, [esp + 0x10]
mov dword [esp + 8], eax
mov dword [esp], esi
call sub.msvcrt.dll__fullpath
mov ecx, esi
lea esi, [esi]
lea edi, [edi]
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
not eax
and edx, eax
and edx, 0x80808080
je 0x40d240
test edx, 0x8080
jne 0x40d265
shr edx, 0x10
add ecx, 2
add dl, dl
sbb ecx, 3
sub ecx, esi
lea eax, [ecx + 0x233]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
test eax, eax
mov ebx, eax
je 0x40d3e2
mov dword [esp + 4], esi
lea esi, [eax + 0x22c]
mov dword [esp], esi
call sub.msvcrt.dll_strcpy
cmp byte [ebx + 0x22c], 0
je 0x40d360
mov dword [esp], esi
mov eax, 0x2f
mov dword [esp + 4], eax
call sub.msvcrt.dll_strrchr
mov edi, eax
mov ecx, esi
nop
lea esi, [esi]
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
not eax
and edx, eax
and edx, 0x80808080
je 0x40d2c0
test edx, 0x8080
jne 0x40d2e5
shr edx, 0x10
add ecx, 2
add dl, dl
sbb ecx, 3
sub ecx, esi
lea eax, [ecx + ebx + 0x22b]
cmp edi, eax
je 0x40d360
mov dword [esp], esi
mov edi, 0x5c
mov dword [esp + 4], edi
call sub.msvcrt.dll_strrchr
mov edi, eax
mov ecx, esi
lea esi, [esi]
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
not eax
and edx, eax
and edx, 0x80808080
je 0x40d310
test edx, 0x8080
jne 0x40d335
shr edx, 0x10
add ecx, 2
add dl, dl
sbb ecx, 3
sub ecx, esi
lea eax, [ecx + ebx + 0x22b]
cmp edi, eax
je 0x40d360
mov dword [esp], esi
call sub.msvcrt.dll_strlen
mov ecx, 0x5c
mov word [ebx + eax + 0x22c], cx
lea esi, [esi]
mov dword [esp], esi
xor edi, edi
xor esi, esi
call sub.msvcrt.dll_strlen
mov edx, 0x2a
mov ecx, 0x104
mov word [ebx + eax + 0x22c], dx
mov eax, 0xffffffff
mov word [ebx + 0x11c], di
xor edx, edx
mov dword [ebx + 0x224], eax
xor eax, eax
mov dword [ebx + 0x228], eax
xor eax, eax
mov dword [ebx + 0x118], eax
lea eax, [ebx + 0x120]
mov word [ebx + 0x11e], si
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_memset
add esp, 0x120
mov eax, ebx
pop ebx
pop esi
pop edi
ret
call sub.msvcrt.dll__errno
mov dword [eax], 0x14
xor eax, eax
add esp, 0x120
pop ebx
pop esi
pop edi
ret
call sub.msvcrt.dll__errno
mov dword [eax], 0xc
xor eax, eax
jmp 0x40d3d8
call sub.msvcrt.dll__errno
mov dword [eax], 2
xor eax, eax
jmp 0x40d3d8
call sub.msvcrt.dll__errno
mov dword [eax], 0xe
xor eax, eax
jmp 0x40d3d8
Function at 0x401f50
Capabilities:
Set http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451e28
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x46a524]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 4], 0
cmp dword [edi + 0x20], 0
je 0x40201f
cmp dword [edi + 0x24], 0
je 0x40201f
cmp dword [edi + 0x28], 0
je 0x40201f
mov eax, dword [ebp + 0x1c]
xor ecx, ecx
lea eax, [eax + eax - 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041e740
add esp, 4
push 0x20000000
push 0xffffffffffffffff
sub esp, 0x20
mov esi, eax
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
call fcn.00402380
call fcn.00407a50
mov ecx, dword [edi + 0x28]
add esp, 0x20
push eax
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
push esi
mov edi, eax
call fcn.004207f0
add esp, 4
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.00401210
test edi, edi
je 0x402052
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x20
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x20], 0x10
jb 0x402038
mov edx, dword [ebp + 0xc]
push edx
call fcn.004205f0
add esp, 4
lea ecx, [ebp + 8]
mov dword [ebp + 0x20], 0xf
mov dword [ebp + 0x1c], 0
mov byte [ebp + 0xc], 0
call fcn.00401380
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x20
Function at 0x402070
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452028
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x46a524]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp dword [edi + 0x18], 0x10
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x44], ebx
mov dword [edi + 0x14], ebx
jb 0x4020b6
mov eax, dword [edi + 4]
jmp 0x4020b9
lea eax, [edi + 4]
mov byte [eax], bl
jmp 0x4020c0
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 0x28]
lea ecx, [ebp - 0x38]
push ecx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x40222d
mov ecx, dword [ebp - 0x38]
inc ecx
push ecx
call fcn.0041e740
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x40222d
mov edx, dword [ebp - 0x38]
inc edx
push edx
push ebx
push esi
call fcn.00428b80
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x3c]
add esp, 0xc
lea eax, [ebp - 0x44]
push eax
mov eax, dword [edx + 0x28]
push ecx
push esi
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x40222d
mov dword [ebp - 0x34], ebx
push 8
mov dword [ebp - 4], ebx
call fcn.00420770
add esp, 4
cmp eax, ebx
je 0x402231
mov dword [ebp - 0x34], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x34]
lea ecx, [ebp - 0x34]
mov dword [edx], ecx
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x38]
push eax
push esi
call fcn.00401430
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x34]
push ecx
mov ecx, edi
call fcn.004025f0
mov eax, dword [ebp - 0x30]
mov ecx, 0x10
mov dword [ebp - 0x20], ebx
cmp dword [ebp - 0x1c], ecx
jae 0x402188
lea eax, [ebp - 0x30]
mov byte [eax], bl
cmp dword [ebp - 0x1c], ecx
jb 0x40219b
mov edx, dword [ebp - 0x30]
push edx
call fcn.004205f0
add esp, 4
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
mov dword [ebp - 4], 2
cmp dword [ebp - 0x34], ebx
je 0x4021e6
push 3
lea ecx, [ebp - 0x40]
call fcn.0041e6d0
mov eax, dword [ebp - 0x34]
cmp dword [eax + 4], ebx
je 0x4021d8
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov edx, dword [eax + 4]
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
cmp ecx, ebx
jne 0x4021c6
mov edx, dword [ebp - 0x34]
lea ecx, [ebp - 0x40]
mov dword [edx + 4], ebx
call fcn.0041e710
mov eax, dword [ebp - 0x34]
push eax
call fcn.004205f0
push esi
mov dword [ebp - 0x34], ebx
mov dword [ebp - 4], 0xffffffff
call fcn.004207f0
add esp, 8
cmp dword [ebp - 0x38], ebx
ja 0x4020c0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041fd40
mov esp, ebp
pop ebp
ret 4
xor eax, eax
jmp 0x402210
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x48], ebx
call fcn.0041fd80
push 0x467ba8
lea edx, [ebp - 0x54]
push edx
mov dword [ebp - 0x54], vtable.std::bad_alloc.0
call fcn.004287b0
int3