joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4111b0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4bc8c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
test esi, esi
je 0x4111e2
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4111e2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov cl, byte [ebx]
test cl, cl
je 0x4112a8
push edi
mov edi, ebx
mov eax, ebx
cmp cl, 0x2f
je 0x4111fb
cmp byte [eax], 0x5c
jne 0x4111fd
mov edi, eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4111f1
cmp edi, ebx
je 0x41123d
sub edi, ebx
lea eax, [ebp - 0x20c]
push edi
push ebx
push eax
call fcn.0046b2f0
add esp, 0xc
cmp edi, 0x104
jae 0x4112b8
lea edx, [ebp - 0x20c]
mov byte [ebp + edi - 0x20c], 0
mov ecx, esi
call fcn.004111b0
mov byte [ebp - 0x108], 0
test esi, esi
je 0x41125d
lea ecx, [ebp - 0x108]
sub ecx, esi
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x411250
mov esi, ebx
nop
mov al, byte [ebx]
inc ebx
test al, al
jne 0x411260
lea edi, [ebp - 0x108]
sub ebx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x411270
mov ecx, ebx
lea eax, [ebp - 0x108]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop edi
cmp eax, 0xffffffff
jne 0x4112a8
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0046977a
mov esp, ebp
pop ebp
ret
call fcn.00469c20
int3
Function at 0x411690
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48d5f7
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4bc8c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x244
call fcn.004697b9
mov ebx, eax
mov dword [ebp - 0x10], ebx
push 0x244
push 0
push ebx
call fcn.0046b870
add esp, 0x10
mov dword [ebx], 0
lea edi, [ebx + 0x140]
mov dword [ebx + 4], 0xffffffff
mov dword [ebx + 0x134], 0xffffffff
mov dword [ebx + 0x138], 0
push edi
push 0x104
mov dword [ebx + 0x13c], 0
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x411722
sub ecx, edx
mov al, byte [ecx + ebx + 0x13f]
cmp al, 0x5c
je 0x411753
cmp al, 0x2f
je 0x411753
dec edi
nop dword [eax + eax]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x411740
mov ax, word [0x4a8c2c]
mov word [edi], ax
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
jne 0x41177b
mov eax, 0x200
jmp 0x4117d5
push 1
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, eax
cmp esi, 0xffffffff
push 0x20
setne bl
call fcn.004697b9
mov edi, eax
add esp, 4
mov eax, dword [ebp - 0x14]
mov byte [edi], 1
mov byte [edi + 0x10], 1
mov byte [edi + 1], bl
mov dword [edi + 4], eax
mov byte [edi + 8], 0
mov dword [edi + 0xc], 0
cmp esi, 0xffffffff
je 0x4117cc
push 1
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [edi + 0xc], eax
xor eax, eax
test edi, edi
jne 0x4117e4
mov ebx, dword [ebp - 0x10]
mov dword [0x4cb790], eax
test eax, eax
je 0x411864
jmp 0x4117fe
mov ecx, edi
call fcn.0040fab0
mov ebx, dword [ebp - 0x10]
mov dword [ebx], eax
test eax, eax
jne 0x41185a
mov dword [0x4cb790], 0x200
mov eax, dword [ebx + 0x138]
test eax, eax
je 0x411811
push eax
call fcn.00469aef
add esp, 4
mov eax, dword [ebx + 0x13c]
mov dword [ebx + 0x138], 0
test eax, eax
je 0x41182e
push eax
call fcn.00469aef
add esp, 4
push 0x244
push ebx
mov dword [ebx + 0x13c], 0
call fcn.004697ab
add esp, 8
xor eax, eax
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 dword [0x4cb790], 0
push 8
call fcn.004697b9
add esp, 4
mov dword [eax], 1
mov dword [eax + 4], ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x415400
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48db90
mov eax, dword fs:[0]
push eax
sub esp, 0x1e4
mov eax, dword [0x4bc8c0]
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 dword [ebp - 0x1f0], ecx
cmp dword [0x4bd3b4], 0xf
mov ecx, 0x4bd3a0
cmova ecx, dword [0x4bd3a0]
sub esp, 8
call fcn.00411690
xor ebx, ebx
mov esi, eax
add esp, 8
mov dword [ebp - 0x1ec], ebx
mov byte [ebp - 0x1e8], bl
mov dword [ebp - 0xc4], ebx
test esi, esi
jne 0x415473
mov eax, 0x10000
jmp 0x415496
cmp dword [esi], 1
je 0x41547f
mov eax, 0x80000
jmp 0x415496
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x1ec]
push eax
push 0xffffffffffffffff
call fcn.00410a20
mov ebx, dword [ebp - 0x1ec]
xor edi, edi
mov dword [0x4cb790], eax
test ebx, ebx
jle 0x415518
mov dword [ebp - 0x1ec], 0
mov byte [ebp - 0x1e8], 0
mov dword [ebp - 0xc4], 0
test esi, esi
je 0x415509
mov eax, dword [esi]
cmp eax, 1
je 0x4154ce
mov ecx, 0x80000
jmp 0x4154e2
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x1ec]
push eax
push edi
call fcn.00410a20
mov ecx, eax
mov eax, dword [esi]
mov dword [0x4cb790], ecx
cmp eax, 1
je 0x4154f4
mov eax, 0x80000
jmp 0x41550e
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x1e8]
sub esp, 8
push eax
push edi
call fcn.004112c0
jmp 0x41550e
mov eax, 0x10000
inc edi
mov dword [0x4cb790], eax
cmp edi, ebx
jl 0x4154a1
mov ecx, esi
call fcn.00411890
cmp dword [0x4bd3b4], 0xf
mov eax, 0x4bd3a0
cmova eax, dword [0x4bd3a0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0xb0
lea eax, [ebp - 0xc0]
push 0
push eax
call fcn.0046b870
push ecx
lea ecx, [ebp - 0xc0]
call fcn.004156b0
mov ebx, dword [ebp - 0x1f0]
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], 0
push dword [ebx + 0xcc]
call fcn.00406a40
mov eax, dword [ebp - 0xc0]
mov dword [ebx], 5
mov byte [ebx + 0xd4], 0
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xc0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xc4], eax
lea ecx, [ebp - 0xbc]
call fcn.00416430
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xc0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0xc4], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 1
push eax
mov dword [ebp - 0x58], vtable.std::ios_base.0
call fcn.00468347
add esp, 4
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.0046977a
mov esp, ebp
pop ebp
ret
Function at 0x415d60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x415d92
jl 0x415d85
test ecx, ecx
jne 0x415d92
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x415e6f
mov dword [esp + 0x10], eax
lea eax, [ebx + 0x2c]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax]
mov dword [esp + 0x18], eax
test eax, eax
je 0x415dc2
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x415dc4
xor eax, eax
cdq
mov dword [esp + 0x1c], edx
mov esi, eax
test edx, edx
jl 0x415e18
jg 0x415dd5
test esi, esi
je 0x415e18
mov eax, dword [esp + 0x10]
cmp eax, edx
jg 0x415de9
jl 0x415de3
cmp ecx, esi
jae 0x415de9
mov esi, ecx
mov dword [esp + 0x1c], eax
push esi
push dword [esp + 0x1c]
push edi
call fcn.0046b2f0
mov eax, dword [esp + 0x20]
add esp, 0xc
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
sub ecx, esi
mov eax, dword [eax]
sbb edx, dword [esp + 0x1c]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov eax, dword [esp + 0x14]
jmp 0x415e3c
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x415e58
mov ecx, dword [esp + 0xc]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
lea eax, [ebx + 0x2c]
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ecx
test edx, edx
jg 0x415da7
jl 0x415e58
test ecx, ecx
jne 0x415da7
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0xc]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x415eb3
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x415eb3
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.0046b2f0
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], 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
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x415f1c
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x415ed9
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 [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x415f07
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.00475b80
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x415f1c
cmp edi, eax
ja 0x415ee5
test edi, edi
je 0x415f1c
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.00475b80
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 0x41e220
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48e5d4
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4bc8c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x18], ebx
cmp dword [ebp + 8], 0
mov dword [ebp - 0x14], 0
je 0x41e276
lea ecx, [ebx + 0x50]
mov dword [ebx], 0x4aa814
call fcn.0041f000
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 1
mov eax, dword [ebx]
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + ebx - 4], eax
mov eax, dword [ebx]
mov esi, dword [eax + 4]
add esi, ebx
mov ecx, esi
call fcn.00404c30
mov eax, dword [esi + 0x30]
lea edi, [ebx + 4]
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], 0
mov ecx, dword [eax + 4]
mov dword [ebp - 0x1c], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 2
push eax
call fcn.0041ffd0
add esp, 4
mov ecx, dword [eax]
push 0x20
mov edx, dword [ecx + 0x30]
mov ecx, eax
call edx
movzx ecx, ax
mov dword [ebp + 8], ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x41e2f9
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x41e2f9
mov ecx, dword [eax]
push 1
mov edx, dword [ecx]
mov ecx, eax
call edx
cmp dword [esi + 0x38], 0
mov eax, dword [ebp + 8]
mov word [esi + 0x40], ax
jne 0x41e316
mov eax, dword [esi + 0xc]
mov ecx, esi
push 0
or eax, 4
push eax
call fcn.00404bb0
mov dword [ebp - 4], 3
mov eax, dword [ebx]
push 8
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ecx + ebx - 4], eax
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.004697b9
mov esi, eax
xorps xmm0, xmm0
add esp, 4
movq qword [esi], xmm0
push 1
mov byte [ebp - 4], 4
call fcn.00467d7f
add esp, 4
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.00409af0
mov dword [edi], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, ebx
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41f710
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48c9a0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4bc8c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.004697b9
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00467d7f
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.00409af0
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
Function at 0x4216e0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
cmp eax, 0x270
jne 0x421730
lea edx, [edi + 8]
mov esi, eax
mov ecx, dword [edx - 4]
lea edx, [edx + 4]
xor ecx, dword [edx - 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub esi, 1
jne 0x4216f2
mov eax, dword [edi]
jmp 0x421817
cmp eax, 0x4e0
jb 0x421817
mov eax, dword [edi + 0x9c4]
push ebx
lea ebx, [edi + 0x9c4]
push ebp
mov ebp, 0xe3
nop
mov ecx, dword [ebx + 4]
lea edx, [ebx + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx + 0x634]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub ebp, 1
jne 0x421750
mov eax, dword [edi + 0xd50]
lea ebx, [edi + 0xd50]
mov ebp, 0x18c
nop word [eax + eax]
mov ecx, eax
lea edx, [ebx + 4]
xor ecx, dword [edx]
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx - 0xd4c]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub ebp, 1
jne 0x4217a0
mov ecx, dword [edi + 0x1380]
xor ecx, dword [edi + 4]
and ecx, 0x7fffffff
xor ecx, dword [edi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
pop ebp
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi + 0x9c0], eax
xor eax, eax
mov dword [edi], 0
pop ebx
mov edx, dword [edi + eax*4 + 4]
inc eax
mov dword [edi], eax
mov ecx, edx
mov eax, dword [edi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
pop edi
xor eax, edx
pop esi
ret
Function at 0x4218c0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ecx
push ebx
push ebp
push esi
mov dword [esp + 0xc], ecx
push edi
nop dword [eax]
mov edi, dword [ecx]
mov eax, dword [edi]
cmp eax, 0x270
jne 0x421923
lea eax, [edi + 8]
mov esi, 0x270
mov edx, dword [eax - 4]
lea eax, [eax + 4]
xor edx, dword [eax - 4]
and edx, 0x7fffffff
xor edx, dword [eax - 8]
mov ecx, edx
and cl, 1
movzx ecx, cl
neg ecx
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [eax + 0x62c]
xor ecx, edx
mov dword [eax + 0x9b8], ecx
sub esi, 1
jne 0x4218e3
mov eax, dword [edi]
jmp 0x421a05
cmp eax, 0x4e0
jb 0x421a05
mov eax, dword [edi + 0x9c4]
lea ebx, [edi + 0x9c4]
mov ebp, 0xe3
nop
mov ecx, dword [ebx + 4]
lea edx, [ebx + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx + 0x634]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub ebp, 1
jne 0x421940
mov eax, dword [edi + 0xd50]
lea ebx, [edi + 0xd50]
mov ebp, 0x18c
nop word [eax + eax]
mov ecx, eax
lea edx, [ebx + 4]
xor ecx, dword [edx]
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx - 0xd4c]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub ebp, 1
jne 0x421990
mov ecx, dword [edi + 0x1380]
xor ecx, dword [edi + 4]
and ecx, 0x7fffffff
xor ecx, dword [edi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi + 0x9c0], eax
xor eax, eax
mov dword [edi], 0
mov edx, dword [edi + eax*4 + 4]
inc eax
mov dword [edi], eax
mov ecx, edx
mov eax, dword [edi + 0x1384]
shr ecx, 0xb
and eax, ecx
mov ecx, dword [esp + 0x10]
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
cmp eax, dword [ecx + 8]
ja 0x4218d0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x445910
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x491ede
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x4bc8c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ebp - 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
lea edi, [ecx + 0x10]
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], edi
mov ecx, edi
push 0x499458
mov dword [ebp - 0x14], edi
call fcn.00416a40
lea esi, [edi + 0x18]
xorps xmm0, xmm0
mov dword [ebp - 0x18], esi
xor eax, eax
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
movups xmmword [esi + 0x18], xmm0
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], 7
mov word [esi + 0x18], ax
movups xmmword [esi + 0x30], xmm0
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], 7
mov word [esi + 0x30], ax
push 0x499458
lea ecx, [esi + 0x48]
mov byte [ebp - 4], 5
call fcn.00416a40
xor eax, eax
xorps xmm0, xmm0
movups xmmword [esi + 0x60], xmm0
mov dword [esi + 0x70], 0
xor ecx, ecx
mov dword [esi + 0x74], 7
mov word [esi + 0x60], ax
movups xmmword [esi + 0x78], xmm0
mov dword [esi + 0x88], eax
mov dword [esi + 0x8c], 7
mov word [esi + 0x78], ax
mov dword [esi + 0x90], 0xffffffff
mov dword [edi + 0xac], eax
movups xmmword [edi + 0xb0], xmm0
mov dword [edi + 0xc0], eax
mov dword [edi + 0xc4], 7
mov word [edi + 0xb0], ax
mov dword [edi + 0xc8], eax
mov dword [edi + 0xcc], eax
mov dword [edi + 0xd0], eax
mov eax, dword [ebp - 0x10]
movups xmmword [eax + 0xe8], xmm0
mov dword [eax + 0xf8], 0
mov dword [eax + 0xfc], 7
mov word [eax + 0xe8], cx
mov dword [eax + 0x100], ecx
mov dword [eax + 0x104], ecx
mov dword [eax + 0x108], ecx
mov byte [eax + 0x110], cl
mov dword [eax + 0x118], 0x1c9c380
mov dword [eax + 0x11c], ecx
mov dword [eax + 0x120], ecx
mov word [eax + 0x124], 0x100
mov dword [eax + 0x14c], ecx
mov dword [eax + 0x174], ecx
mov byte [eax + 0x178], cl
mov dword [eax + 0x17c], 0xa
mov byte [eax + 0x180], cl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x464180
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4947ae
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x4bc8c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
xor eax, eax
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edi, dword [ebp + 0xc]
push eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0x14
push edi
mov dword [ebp - 0x1c], 1
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov ecx, dword [esi + 0x10]
mov eax, dword [ebp - 0x14]
cmp eax, ecx
ja 0x464219
mov dword [esi + 0x10], eax
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x464211
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
jmp 0x464225
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.00408aa0
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x46422f
mov eax, dword [esi]
push 0
lea ecx, [ebp - 0x14]
push ecx
push eax
push 0
push 0x14
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x46433d
mov edi, dword [esi + 0x14]
cmp edi, 8
jb 0x46425e
mov ecx, dword [esi]
mov dword [ebp - 0x18], ecx
jmp 0x464263
mov dword [ebp - 0x18], esi
mov ecx, esi
lea edx, [eax + eax]
mov eax, dword [ebp - 0x18]
add eax, edx
cmp word [ecx], 0
jne 0x4642dc
add ecx, 2
cmp ecx, eax
je 0x464285
cmp word [ecx], 0
jne 0x4642b0
add ecx, 2
cmp ecx, eax
jne 0x464278
mov dword [esi + 0x10], 0
mov eax, esi
cmp edi, 8
jb 0x464295
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
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
sub eax, 2
cmp word [eax], 0
je 0x4642b0
sub eax, ecx
add eax, 2
sar eax, 1
push eax
push ecx
mov ecx, esi
call fcn.00417480
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
sub eax, 2
cmp word [eax], 0
jne 0x46433d
mov ecx, eax
sub eax, 2
cmp word [eax], 0
je 0x4642e5
mov eax, dword [ebp - 0x10]
sub edx, ecx
cmp edi, 8
mov edi, ecx
jb 0x464304
sub edi, dword [esi]
add edx, dword [esi]
mov ecx, dword [esi]
jmp 0x46430a
sub edi, esi
mov ecx, esi
add edx, esi
sar edi, 1
sub eax, edi
sar edx, 1
cmp eax, edx
cmovb edx, eax
lea ecx, [ecx + edi*2]
mov eax, dword [ebp - 0x10]
sub eax, edx
mov dword [ebp - 0x10], eax
sub eax, edi
lea eax, [eax*2 + 2]
push eax
lea eax, [ecx + edx*2]
push eax
push ecx
call fcn.0046b2f0
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov dword [esi + 0x10], eax
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