joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b5cc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41405c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00404f6c
and dword [ebp - 0x14], 0
cmp dword [0x415c14], 0
mov dword [ebp - 0x18], eax
jne 0x40b67f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40b727
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40b727
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x415c14], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x415c18], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x415c1c], eax
call edi
push eax
call esi
mov dword [0x415c24], eax
test eax, eax
je 0x40b67f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x415c20], eax
mov eax, dword [0x415c20]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40b6d8
cmp dword [0x415c24], ecx
je 0x40b6d8
push eax
call esi
push dword [0x415c24]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40b6d8
test ebx, ebx
je 0x40b6d8
call edi
test eax, eax
je 0x40b6cf
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40b6cf
test byte [ebp - 8], 1
jne 0x40b6d8
or dword [ebp + 0x10], 0x200000
jmp 0x40b70b
mov eax, dword [0x415c18]
cmp eax, dword [ebp - 0x18]
je 0x40b70b
push eax
call esi
test eax, eax
je 0x40b70b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40b70b
mov eax, dword [0x415c1c]
cmp eax, dword [ebp - 0x18]
je 0x40b70b
push eax
call esi
test eax, eax
je 0x40b70b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x415c14]
call esi
test eax, eax
je 0x40b727
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40b729
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040320a
leave
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x402cf0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [eax + 0x10]
push esi
push edi
mov edi, ecx
mov ecx, dword [eax + 0x14]
mov dword [ebp - 8], ecx
cmp ecx, 0x10
jb 0x402d10
mov esi, dword [eax]
jmp 0x402d12
mov esi, eax
xor ecx, ecx
mov edx, 0x811c9dc5
test ebx, ebx
je 0x402d31
lea ecx, [ecx]
movzx eax, byte [esi + ecx]
xor edx, eax
inc ecx
imul edx, edx, 0x1000193
cmp ecx, ebx
jb 0x402d20
mov esi, dword [edi + 0x14]
mov ecx, esi
and ecx, edx
cmp dword [edi + 0x18], ecx
ja 0x402d46
shr esi, 1
or eax, 0xffffffff
sub eax, esi
add ecx, eax
mov eax, dword [edi + 8]
lea edx, [eax + ecx*8]
mov ecx, dword [edi]
mov eax, dword [edx]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], eax
mov esi, eax
mov dword [ebp - 0xc], ecx
jmp 0x402d60
cmp eax, ecx
jne 0x402d68
mov eax, ecx
jmp 0x402d6d
mov eax, dword [edx + 4]
mov eax, dword [eax]
cmp esi, eax
je 0x402e7b
cmp dword [ebp - 8], 0x10
lea ecx, [esi + 8]
jb 0x402d85
mov eax, dword [ebp + 0xc]
mov edi, dword [eax]
jmp 0x402d88
mov edi, dword [ebp + 0xc]
cmp dword [ecx + 0x14], 0x10
mov eax, dword [ecx + 0x10]
mov dword [ebp - 4], eax
jb 0x402d96
mov ecx, dword [ecx]
cmp eax, ebx
mov edx, ebx
cmovb edx, eax
test edx, edx
je 0x402df9
sub edx, 4
jb 0x402db7
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x402dbc
add ecx, 4
add edi, 4
sub edx, 4
jae 0x402da6
cmp edx, 0xfffffffc
je 0x402df0
mov al, byte [ecx]
cmp al, byte [edi]
jne 0x402de9
cmp edx, 0xfffffffd
je 0x402df0
mov al, byte [ecx + 1]
cmp al, byte [edi + 1]
jne 0x402de9
cmp edx, 0xfffffffe
je 0x402df0
mov al, byte [ecx + 2]
cmp al, byte [edi + 2]
jne 0x402de9
cmp edx, 0xffffffff
je 0x402df0
mov al, byte [ecx + 3]
cmp al, byte [edi + 3]
je 0x402df0
sbb eax, eax
or eax, 1
jmp 0x402df2
xor eax, eax
test eax, eax
jne 0x402e09
mov eax, dword [ebp - 4]
cmp eax, ebx
jb 0x402e09
xor eax, eax
cmp dword [ebp - 4], ebx
setne al
test eax, eax
je 0x402e19
mov esi, dword [esi]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
jmp 0x402d60
cmp dword [esi + 0x1c], 0x10
mov edi, dword [esi + 0x18]
lea ecx, [esi + 8]
jb 0x402e27
mov ecx, dword [ecx]
cmp dword [ebp - 8], 0x10
jb 0x402e35
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
mov eax, edi
cmp ebx, edi
cmovb eax, ebx
push eax
push ecx
push dword [ebp + 0xc]
call fcn.004028a0
add esp, 0xc
test eax, eax
jne 0x402e70
cmp ebx, edi
jb 0x402e70
cmp ebx, edi
setne al
test eax, eax
jne 0x402e70
mov eax, dword [ebp + 8]
lea ecx, [ebp + 0xc]
pop edi
mov dword [ebp + 0xc], esi
mov ecx, dword [ecx]
pop esi
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0xc]
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], eax
mov ecx, dword [ecx]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x406880
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a6e7
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x45fc58]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
cmp dword [ebp + 8], 0
mov dword [ebp - 0x10], 0
je 0x4068d4
mov dword [edi], 0x44d988
mov dword [edi + 0x60], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, dword [edi]
push 0
mov eax, dword [eax + 4]
lea esi, [edi + 4]
mov dword [edi + eax], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
push esi
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov ecx, dword [eax + 4]
add ecx, edi
call fcn.00408460
mov eax, dword [edi]
mov dword [ebp - 4], 2
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [ecx + edi - 4], eax
mov ecx, esi
call fcn.004069c0
lea eax, [esi + 4]
mov dword [esi + 0xc], eax
lea eax, [esi + 0x14]
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x4c], 0
mov byte [esi + 0x45], 0
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
lea ecx, [esi + 8]
mov dword [esi + 0x10], ecx
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov dword [esi + 0x50], 0
mov eax, dword [0x46218c]
mov dword [esi + 0x48], eax
mov dword [esi + 0x40], 0
mov eax, edi
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 0x407840
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a3d8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x45fc58]
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 + 0x40], 0
je 0x407965
cmp byte [ebx + 0x45], 0
je 0x407965
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x407894
xor al, al
jmp 0x407967
mov ecx, 0xf
mov byte [ebp - 0x28], 0
xorps xmm0, xmm0
movq qword [ebp - 0x28], xmm0
lea eax, [ebp - 0x28]
cmp ecx, 0x10
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], 8
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x14], 0x10
mov ecx, dword [ebx + 0x40]
lea eax, [ebp - 0x2c]
mov edx, dword [ecx]
push eax
mov eax, dword [ebp - 0x18]
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x4078fe
dec eax
je 0x407902
sub eax, 2
je 0x40794e
xor bl, bl
jmp 0x407950
mov byte [ebx + 0x45], 0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
cmovae eax, edx
sub esi, eax
je 0x407934
push dword [ebx + 0x50]
cmp ecx, 0x10
push esi
lea eax, [ebp - 0x28]
cmovae eax, edx
push 1
push eax
call fcn.0041ace0
add esp, 0x10
cmp esi, eax
jne 0x4078fa
cmp byte [ebx + 0x45], 0
je 0x40794e
test esi, esi
jne 0x4078c4
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00407e60
jmp 0x4078c4
mov bl, 1
cmp dword [ebp - 0x14], 0x10
jb 0x407961
push dword [ebp - 0x28]
call fcn.00418e43
add esp, 4
mov al, bl
jmp 0x407967
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.004195d9
mov esp, ebp
pop ebp
ret
Function at 0x408810
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a898
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x45fc58]
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
mov ecx, dword [ebp + 8]
cmp ecx, 0xffffffff
jne 0x40884c
xor eax, eax
jmp 0x4089dc
mov eax, dword [ebx + 0x20]
mov edx, dword [eax]
test edx, edx
je 0x40887a
mov esi, dword [ebx + 0x30]
mov edi, dword [esi]
lea eax, [edi + edx]
cmp edx, eax
jae 0x40887a
lea eax, [edi - 1]
mov dword [esi], eax
mov ecx, dword [ebx + 0x20]
mov edx, dword [ecx]
lea eax, [edx + 1]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
mov byte [edx], al
jmp 0x4089dc
cmp dword [ebx + 0x50], 0
jne 0x408888
or eax, 0xffffffff
jmp 0x4089dc
mov edx, dword [ebx + 0xc]
lea eax, [ebx + 0x44]
cmp dword [edx], eax
jne 0x4088a9
mov eax, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x3c]
mov dword [edx], eax
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
sub ecx, ecx
mov dword [eax], ecx
mov ecx, dword [ebp + 8]
cmp dword [ebx + 0x40], 0
jne 0x4088ce
push dword [ebx + 0x50]
movsx eax, cl
push eax
call fcn.0041a91c
or ecx, 0xffffffff
add esp, 8
cmp eax, ecx
cmovne ecx, dword [ebp + 8]
mov eax, ecx
jmp 0x4089dc
mov byte [ebp - 0x2c], cl
mov ecx, 0xf
mov byte [ebp - 0x28], 0
xorps xmm0, xmm0
movq qword [ebp - 0x28], xmm0
lea eax, [ebp - 0x28]
cmp ecx, 0x10
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], 8
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x14], 0x10
mov esi, dword [ebx + 0x40]
lea eax, [ebp - 0x30]
mov edi, dword [esi]
push eax
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
lea edx, [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
add eax, ecx
push eax
push edx
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x2b]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebx + 0x48]
push eax
mov ecx, esi
call dword [edi + 0x1c]
test eax, eax
js 0x4089c6
cmp eax, 1
jg 0x4089a6
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x30]
cmp edi, 0x10
lea eax, [ebp - 0x28]
cmovae eax, ecx
sub esi, eax
je 0x408977
push dword [ebx + 0x50]
lea eax, [ebp - 0x28]
push esi
cmp edi, 0x10
cmovae eax, ecx
push 1
push eax
call fcn.0041ace0
add esp, 0x10
cmp esi, eax
jne 0x4089c6
lea eax, [ebp - 0x2c]
mov byte [ebx + 0x45], 1
cmp dword [ebp - 0x34], eax
jne 0x4089a1
test esi, esi
jne 0x408901
cmp dword [ebp - 0x18], 0x20
jae 0x4089c6
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00407e60
jmp 0x408901
mov ebx, dword [ebp + 8]
jmp 0x4089c9
cmp eax, 3
jne 0x4089c6
push dword [ebx + 0x50]
push dword [ebp - 0x2c]
call fcn.00406740
or ecx, 0xffffffff
add esp, 8
test al, al
cmovne ecx, dword [ebp + 8]
mov ebx, ecx
jmp 0x4089c9
or ebx, 0xffffffff
cmp dword [ebp - 0x14], 0x10
jb 0x4089da
push dword [ebp - 0x28]
call fcn.00418e43
add esp, 4
mov eax, ebx
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.004195d9
mov esp, ebp
pop ebp
ret 4
Function at 0x40b4b0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44abb0
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x45fc58]
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 eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x74], eax
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [ebx], ax
jne 0x40b51c
xor ecx, ecx
jmp 0x40b530
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b521
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x28]
call fcn.004026b0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 4], 0
call fcn.0040a400
add esp, 8
cmp dword [eax + 0x14], 0x10
jb 0x40b559
mov eax, dword [eax]
lea ecx, [ebp - 0x80]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
cmp dword [ebp - 0x2c], 0x10
mov edi, eax
jb 0x40b576
push dword [ebp - 0x40]
call fcn.00418e43
add esp, 4
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
mov dword [ebp - 4], 0xffffffff
jb 0x40b5a0
push dword [ebp - 0x28]
call fcn.00418e43
add esp, 4
test edi, edi
je 0x40b68f
push edi
call fcn.0041b680
mov esi, eax
add esp, 4
test esi, esi
je 0x40b68f
push ebx
lea ecx, [ebp - 0x70]
call fcn.00401680
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 4], 1
call fcn.0040a400
add esp, 8
cmp dword [eax + 0x14], 0x10
jb 0x40b5e3
mov eax, dword [eax]
push esi
push edi
push dword [ebp - 0x80]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
sete bl
cmp dword [ebp - 0x44], 0x10
jb 0x40b604
push dword [ebp - 0x58]
call fcn.00418e43
add esp, 4
cmp dword [ebp - 0x5c], 8
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
jb 0x40b627
push dword [ebp - 0x70]
call fcn.00418e43
add esp, 4
test bl, bl
jne 0x40b686
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x44da74
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40b686
mov ecx, dword [ebp - 0x78]
mov edx, dword [ebp - 0x7c]
movzx eax, word [ecx + 0xa]
mov word [edx], ax
movzx eax, word [ecx + 8]
mov edx, dword [ebp - 0x88]
push esi
mov word [edx], ax
movzx eax, word [ecx + 0xe]
mov edx, dword [ebp - 0x84]
mov word [edx], ax
movzx eax, word [ecx + 0xc]
mov ecx, dword [ebp - 0x74]
mov word [ecx], ax
call fcn.0041a186
add esp, 4
mov eax, 1
jmp 0x40b691
push esi
call fcn.0041a186
add esp, 4
xor eax, eax
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.004195d9
mov esp, ebp
pop ebp
ret
Function at 0x40b6b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx ecx, word [ebp + 0xc]
push ecx
movzx ecx, word [ebp + 8]
mov ebx, eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
push edi
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [ebp + 0x14]
pop edi
pop esi
mov dword [ecx], eax
pop ebx
pop ebp
ret

Function at 0x40b9b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x45fc58]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
test esi, esi
jne 0x40ba11
lea eax, [ebp - 0x20c]
push eax
push 0x104
push ebx
call fcn.0041b3f2
add esp, 0xc
test edi, edi
je 0x40ba0f
push edi
push 0x104
push ebx
call fcn.0041b386
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004195d9
mov esp, ebp
pop ebp
ret
Function at 0x40be20
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44ac70
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x45fc58]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], esi
push 0
lea ecx, [ebp - 0x38]
push ecx
push 0
push 0
push 0x16
push dword [eax]
xor bl, bl
mov dword [ebp - 4], esi
mov byte [ebp - 0x2d], bl
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x40bedd
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x7a
je 0x40beda
call edi
mov ecx, dword [ebp - 0x34]
push str.Header___failed
mov dword [ecx + 0x28], eax
lea ecx, [ebp - 0x2c]
call fcn.00401580
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 1
call fcn.0040ce40
add esp, 4
cmp dword [ebp - 0x18], 0x10
jb 0x40bec9
push dword [ebp - 0x2c]
call fcn.00418e43
add esp, 4
push 0
call fcn.004195d4
add esp, 4
xor al, al
jmp 0x40bf6a
mov edi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
mov byte [ebp - 4], 2
neg ecx
or ecx, eax
push ecx
call fcn.004178fb
add esp, 4
mov dword [ebp - 0x34], eax
test eax, eax
je 0x40bf14
push 0
call fcn.004195d4
mov esi, dword [ebp - 0x34]
add esp, 4
mov dword [ebp - 0x3c], esi
push 0
call fcn.004195d4
add esp, 4
mov dword [ebp - 4], 0
test esi, esi
je 0x40bf5f
push 0
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x40]
push esi
push 0
push 0x16
push dword [eax]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x40bf4f
push esi
mov ecx, edi
call fcn.0040ced0
mov bl, 1
jmp 0x40bf5f
xor bl, bl
jmp 0x40bf5f
push esi
call fcn.004195d4
add esp, 4
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 - 0x14]
xor ecx, ebp
call fcn.004195d9
mov esp, ebp
pop ebp
ret
Function at 0x40bf90
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44aca8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x45fc58]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 8]
mov edi, edi
lea eax, [ebp - 0x14]
push eax
push dword [ebx]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x40bff0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 0x28], eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x14], 0
jbe 0x40c10b
xor esi, esi
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 4], esi
push eax
mov byte [ebp - 4], 1
call fcn.004178fb
mov edi, eax
add esp, 4
test edi, edi
je 0x40c024
push esi
call fcn.004195d4
add esp, 4
mov esi, edi
push 0
call fcn.004195d4
add esp, 4
mov dword [ebp - 4], 0
test esi, esi
je 0x40c0f1
mov eax, dword [ebp - 0x14]
inc eax
push eax
push 0
push esi
call fcn.0041a3f0
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x18], 0
push esi
push dword [ebx]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x40c091
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x10]
push esi
mov dword [ecx + 0x28], eax
call fcn.004195d4
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x40c0a8
push esi
call fcn.004195d4
add esp, 4
xor esi, esi
jmp 0x40c0f1
push dword [ebp + 0x14]
push eax
push ecx
mov ecx, esp
push dword [ebp + 0xc]
mov eax, esi
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ecx], eax
call fcn.0040c810
add esp, 0x10
test al, al
jne 0x40c0f1
push 0
call fcn.004195d4
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004195d4
add esp, 4
cmp dword [ebp - 0x14], 0
ja 0x40bfc0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret