joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42f380
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
push eax
push ecx
push 0xca62c1d6
push 0x8f1bbcdc
push 0x6ed9eba1
push 0x5a827999
push edx
call fcn.0042f730
ret 0x18

Function at 0x42f610
Capabilities:
Hash data using sha1

Disassembly:
mov ecx, dword [esp + 4]
mov eax, ecx
and eax, 0xfffffff
imul eax, eax, 8
jo 0x42f630
test ecx, 0x10000000
je 0x42f62d
or eax, 0x80000000
ret 4
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x42f640
Capabilities:
Hash data using sha1

Disassembly:
mov ecx, dword [esp + 4]
mov eax, ecx
and eax, 0x3fffffff
imul eax, eax, 2
jo 0x42f66a
test ecx, 0x40000000
je 0x42f65d
or eax, 0x80000000
test ecx, 0x80000000
je 0x42f667
or al, 1
ret 4
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]

Function at 0x42f670
Capabilities:
Hash data using sha1

Disassembly:
push esi
mov esi, dword [esp + 8]
mov ecx, esi
mov eax, esi
and ecx, 0x3ffffff
imul ecx, ecx, 0x20
jo 0x42f6ae
and eax, 0xf8000000
cdq
and edx, 0x7ffffff
add eax, edx
sar eax, 0x1b
and eax, 0x1f
or ecx, eax
test esi, 0x4000000
pop esi
je 0x42f6a9
or ecx, 0x80000000
mov eax, ecx
ret 4
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x42f6c0
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, eax
xor edx, ecx
jge 0x42f6d5
add eax, ecx
jo 0x42f6e6
ret 8
xor eax, 0x80000000
add eax, ecx
jo 0x42f6e6
xor eax, 0x80000000
ret 8
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
nop

Function at 0x42f6f0
Capabilities:
Hash data using sha1

Disassembly:
push ebx
mov ebx, dword [esp + 8]
mov ecx, ebx
mov eax, ebx
and ecx, 1
imul ecx, ecx, 0x40000000
jo 0x42f727
and al, 0xfc
cdq
and edx, 3
add eax, edx
sar eax, 2
and eax, 0x3fffffff
or ecx, eax
test bl, 2
pop ebx
je 0x42f722
or ecx, 0x80000000
mov eax, ecx
ret 4
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
Function at 0x42740b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42744a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42744a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42744a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42744a
cmp dword [ecx + 0x74], 0xe
jbe 0x42744a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x42ebab
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 0x42ec48
push ebx
push esi
call fcn.0042eb74
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.0042eb08
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x42ebf5
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42ec47
push edi
push eax
call fcn.0042d640
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x42ec15
call fcn.0042d68e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42ec46
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0042eb08
add esp, 0x20
test eax, eax
jne 0x42ec34
push edi
call fcn.0042d68e
jmp 0x42ec3c
push ebx
call fcn.0042d68e
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 0x42fe57
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x438e90
push 0x438e88
push str.FlsAlloc
push 0x1f
call fcn.0042fd16
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42fe8b
push dword [ebp + 8]
mov ecx, esi
call dword [0x436144]
call esi
jmp 0x42fe91
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42fed5
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x438ea0
push 0x438e98
push str.FlsGetValue
push 0x21
call fcn.0042fd16
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42ff0c
push dword [ebp + 8]
mov ecx, esi
call dword [0x436144]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x42ff14
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x438ea8
push 0x438ea0
push str.FlsSetValue
push 0x22
call fcn.0042fd16
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42ff4e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x436144]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x435220
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push esi
push edi
mov edi, dword [ebx]
lea esi, [edx + 0x1000]
mov dword [ebp - 4], 0x10
xor ecx, dword [esi]
mov dword [ebp - 8], ecx
call fcn.004b408c
xor eax, edi
mov edi, dword [ebp - 8]
add esi, 4
dec dword [ebp - 4]
mov ecx, eax
jne 0x4b40da
mov eax, dword [edx + 0x1040]
xor eax, ecx
mov ecx, dword [edx + 0x1044]
mov edx, dword [ebp + 8]
xor ecx, edi
pop edi
mov dword [edx], ecx
mov dword [ebx], eax
pop esi
leave
ret

Function at 0x4b410e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push esi
push edi
mov edi, dword [ebx]
lea esi, [edx + 0x1044]
mov dword [ebp - 4], 0x10
xor ecx, dword [esi]
mov dword [ebp - 8], ecx
call fcn.004b408c
xor eax, edi
mov edi, dword [ebp - 8]
sub esi, 4
dec dword [ebp - 4]
mov ecx, eax
jne 0x4b4129
mov eax, dword [edx + 0x1004]
xor eax, ecx
mov ecx, dword [edx + 0x1000]
mov edx, dword [ebp + 8]
xor ecx, edi
pop edi
mov dword [edx], ecx
mov dword [ebx], eax
pop esi
leave
ret
Function at 0x4d6a40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4d6aa0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
je 0x4d6a97
mov edx, dword [0x50ba80]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4d6a8b
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4d6a70
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov al, 1
jmp 0x4d6a99
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x4d88b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xf8
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0x78]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
add edx, dword [ecx + 0x20]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0x1c]
mov dword [ebp - 8], eax
mov dword [ebp - 0x24], 0
jmp 0x4d891c
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x24]
cmp eax, dword [edx + 0x18]
jae 0x4d8963
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.004e9fa2
add esp, 8
test eax, eax
jne 0x4d8961
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
movzx edx, word [ecx + eax*2]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + edx*4]
mov eax, ecx
jmp 0x4d8965
jmp 0x4d8913
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4df840
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d8
mov eax, dword [0x5048e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.004dac10
add esp, 4
movzx edx, al
test edx, edx
je 0x4df8d1
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push 0x2cc
push 0
lea ecx, [ebp - 0x2d8]
push ecx
call fcn.004e3f60
add esp, 0xc
mov dword [ebp - 0x2d8], 0x10001
lea edx, [ebp - 0x2d8]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x4df8cf
mov edx, dword [ebp - 0x220]
cmp edx, dword [ebp + 0xc]
jne 0x4df8cf
jmp 0x4df8d1
jmp 0x4df853
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e46b5
mov esp, ebp
pop ebp
ret

Function at 0x4e001e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [edi + 0x2c]
push esi
mov esi, dword [edi + 0x3c]
sub esi, dword [edi + 0x74]
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x2c]
lea ecx, [ebx + ecx - 0x106]
sub esi, eax
cmp eax, ecx
jb 0x4e00a3
mov eax, dword [edi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.004e3fe0
mov eax, dword [edi + 0x4c]
mov ecx, dword [edi + 0x44]
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
add esp, 0xc
sub dword [edi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x4e0066
mov eax, dword [edi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x4e0088
add esi, ebx
mov eax, dword [edi]
cmp dword [eax + 4], 0
je 0x4e00fe
mov ecx, dword [edi + 0x74]
add ecx, dword [edi + 0x6c]
push esi
add ecx, dword [edi + 0x38]
mov esi, eax
push ecx
call fcn.004dfdec
add dword [edi + 0x74], eax
mov esi, dword [edi + 0x74]
cmp esi, 3
pop ecx
pop ecx
jb 0x4e00ea
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x38]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [edi + 0x58]
mov dword [edi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [edi + 0x54]
mov dword [edi + 0x48], eax
cmp esi, 0x106
jae 0x4e00fe
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x4e0027
pop esi
pop ebx
leave
ret
Function at 0x4e46b5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5048e0]
jne 0x4e46bf
repz ret
jmp fcn.004e7189

Function at 0x4e82c2
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x504ff8]
je 0x4e82dd
inc edi
cmp edi, 0x17
jb 0x4e82ce
cmp edi, 0x17
jae 0x4e845d
push ebp
push 3
call fcn.004ec20d
cmp eax, 1
pop ecx
je 0x4e8429
push 3
call fcn.004ec20d
test eax, eax
pop ecx
jne 0x4e8311
cmp dword [0x5049b4], 1
je 0x4e8429
cmp ebx, 0xfc
je 0x4e845c
push 0x509f80
mov ebx, 0x314
push ebx
mov ebp, 0x50ccd0
push ebp
call fcn.004e9d62
add esp, 0xc
test eax, eax
je 0x4e8347
push esi
push esi
push esi
push esi
push esi
call fcn.004e864c
add esp, 0x14
push 0x104
mov esi, 0x50cce9
push esi
push 0
mov byte [0x50cded], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4e838b
push 0x509f68
push 0x2fb
push esi
call fcn.004e9d62
add esp, 0xc
test eax, eax
je 0x4e838b
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004e864c
add esp, 0x14
push esi
call fcn.004e5ff0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4e83d0
push esi
call fcn.004e5ff0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x50cfe4
push 0x509f64
sub ecx, eax
push ecx
push eax
call fcn.004ebf56
add esp, 0x14
test eax, eax
je 0x4e83d0
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004e864c
add esp, 0x14
jmp 0x4e83d2
xor esi, esi
push 0x509f60
push ebx
push ebp
call fcn.004ebe96
add esp, 0xc
test eax, eax
je 0x4e83f2
push esi
push esi
push esi
push esi
push esi
call fcn.004e864c
add esp, 0x14
push dword [edi*8 + 0x504ffc]
push ebx
push ebp
call fcn.004ebe96
add esp, 0xc
test eax, eax
je 0x4e8414
push esi
push esi
push esi
push esi
push esi
call fcn.004e864c
add esp, 0x14
push 0x12010
push 0x509f38
push ebp
call fcn.004ec050
add esp, 0xc
jmp 0x4e845c
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4e845c
cmp ebp, 0xffffffff
je 0x4e845c
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x504ffc]
push dword [esi]
call fcn.004e5ff0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4ec050
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004e7d2a
xor ebx, ebx
cmp dword [0x50d354], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4ec126
push 0x50a8ec
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4ec206
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x50a8e0
push edi
call esi
cmp eax, ebx
je 0x4ec206
push eax
call fcn.004e7cbc
mov dword [esp], 0x50a8d0
push edi
mov dword [0x50d354], eax
call esi
push eax
call fcn.004e7cbc
mov dword [esp], 0x50a8bc
push edi
mov dword [0x50d358], eax
call esi
push eax
call fcn.004e7cbc
mov dword [0x50d35c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004e639a
test eax, eax
pop ecx
pop ecx
je 0x4ec0f4
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004e864c
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4ec126
push 0x50a8a0
push edi
call esi
push eax
call fcn.004e7cbc
cmp eax, ebx
pop ecx
mov dword [0x50d364], eax
je 0x4ec126
push 0x50a888
push edi
call esi
push eax
call fcn.004e7cbc
pop ecx
mov dword [0x50d360], eax
mov eax, dword [0x50d360]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4ec1ab
cmp dword [0x50d364], ecx
je 0x4ec1ab
push eax
call fcn.004e7d33
push dword [0x50d364]
mov esi, eax
call fcn.004e7d33
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4ec1ab
cmp edi, ebx
je 0x4ec1ab
call esi
cmp eax, ebx
je 0x4ec178
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4ec178
test byte [ebp - 0x18], 1
jne 0x4ec1ab
lea eax, [ebp - 0x10]
push eax
call fcn.004e63d1
test eax, eax
pop ecx
je 0x4ec193
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004e864c
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4ec1a2
or dword [ebp + 0x10], 0x200000
jmp 0x4ec1e6
or dword [ebp + 0x10], 0x40000
jmp 0x4ec1e6
mov eax, dword [0x50d358]
cmp eax, dword [ebp - 8]
je 0x4ec1e6
push eax
call fcn.004e7d33
cmp eax, ebx
pop ecx
je 0x4ec1e6
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4ec1e6
mov eax, dword [0x50d35c]
cmp eax, dword [ebp - 8]
je 0x4ec1e6
push eax
call fcn.004e7d33
cmp eax, ebx
pop ecx
je 0x4ec1e6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x50d354]
call fcn.004e7d33
cmp eax, ebx
pop ecx
je 0x4ec206
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4ec208
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409b90
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
push 0
lea eax, [ebp - 4]
mov edi, ecx
push eax
push 0
push 0
push 0x15
push dword [edi + 0x10]
xor bl, bl
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x409c0a
push esi
push dword [ebp - 4]
call fcn.00447d93
add esp, 4
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
push 0
push 0x15
push dword [edi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x409c00
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409be5
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp + 8]
push esi
call fcn.004049f0
mov bl, 1
push esi
call fcn.00447d78
add esp, 4
pop esi
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x409c20
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x48f244]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x40]
push 0x3c
push 0
push eax
mov esi, ecx
xor bl, bl
call fcn.00444b80
add esp, 0xc
mov dword [ebp - 0x44], 0x3c
lea eax, [ebp - 0x44]
push 0
push eax
lea eax, [ebp - 0x40]
push eax
push 0
push 5
push dword [esi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x409c9c
push 0xa
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 0
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004543e1
add esp, 0xc
mov dword [edi], eax
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004390b1
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004390b1
mov esp, ebp
pop ebp
ret 4
Function at 0x40a250
Capabilities:
Set http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46b61d
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x48f244]
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 edi, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x40]
mov ebx, dword [ebp + 0xc]
lea ecx, [edi + 0x20]
push eax
call fcn.0040b240
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00405280
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x40a2d4
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a2ca
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a37f
push edx
push ecx
call fcn.00439095
add esp, 8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0xa0000000
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
push dword [edi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test esi, esi
jne 0x40a2f9
xor ecx, ecx
jmp 0x40a309
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a300
sub ecx, edx
mov eax, dword [edi + 0x10]
push 0
push ecx
push ecx
push esi
test ebx, ebx
jne 0x40a319
push ebx
push ebx
jmp 0x40a31c
push 0xffffffffffffffff
push ebx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov edx, dword [ebp - 0x14]
cmp eax, 1
sete bl
cmp edx, 8
jb 0x40a35f
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a355
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a384
push edx
push ecx
call fcn.00439095
add esp, 8
mov al, bl
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.004390b1
mov esp, ebp
pop ebp
ret 8
call fcn.004480ba
call fcn.004480ba
int3
Function at 0x40a390
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x94], 0
je 0x40a40a
mov eax, dword [esi + 0xa0]
test eax, eax
jne 0x40a4a3
mov eax, dword [esi + 0x9c]
lea edx, [esi + 0x84]
mov edi, dword [edx + 0x10]
mov dword [ebp + 0x10], eax
add eax, 0x400
sub edi, dword [ebp + 0x10]
cmp dword [edx + 0x10], eax
mov eax, 0x400
mov dword [ebp - 4], edx
cmova edi, eax
mov dword [ebx], edi
cmp dword [edx + 0x14], 0x10
jb 0x40a3ea
mov edx, dword [edx]
mov dword [ebp - 4], edx
mov ecx, dword [ebp + 0x10]
add ecx, edx
test edi, edi
je 0x40a42c
mov eax, dword [ebp + 8]
test eax, eax
jne 0x40a415
call fcn.00448918
mov dword [eax], 0x16
call fcn.004480aa
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test ecx, ecx
je 0x40a464
cmp edi, 0x400
ja 0x40a464
push edi
push ecx
push eax
call fcn.00444600
add esp, 0xc
mov eax, dword [ebx]
add dword [esi + 0x9c], eax
mov eax, dword [esi + 0x9c]
cmp eax, dword [esi + 0x94]
jne 0x40a456
mov dword [esi + 0xa0], 1
mov dword [esi + 0x9c], 0
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x400
push 0
push eax
call fcn.00444b80
mov eax, dword [ebp - 4]
add esp, 0xc
add eax, dword [ebp + 0x10]
je 0x40a3fa
cmp edi, 0x400
jbe 0x40a40a
call fcn.00448918
mov dword [eax], 0x22
call fcn.004480aa
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp eax, 1
jne 0x40a456
cmp dword [esi + 0xb8], 8
xorps xmm0, xmm0
mov eax, dword [esi + 0x9c]
mov dword [ebp - 0x18], eax
lea eax, [esi + 0xa4]
movlpd qword [ebp - 0x20], xmm0
movlpd qword [ebp - 0x14], xmm0
jb 0x40a4cf
mov eax, dword [eax]
push 0
push 0
push 3
push 0
push 3
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
xor eax, eax
mov dword [ebp + 0x10], eax
mov dword [ebp - 4], eax
cmp edi, 0xffffffff
jne 0x40a4fa
mov dword [ebx], eax
xor ecx, ecx
jmp 0x40a542
lea eax, [ebp - 0xc]
xorps xmm0, xmm0
push eax
push edi
movq qword [ebp - 0xc], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x40a536
lea eax, [ebp - 0x20]
push eax
push ebx
push 0x400
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40a536
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp + 0x10], 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebx]
mov eax, dword [ebp + 0x10]
add dword [esi + 0x9c], ecx
mov ecx, dword [ebp - 4]
cmp dword [esi + 0x9c], ecx
jne 0x40a40c
pop edi
mov dword [esi + 0x9c], 0
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc