joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100239b0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, ecx
call fcn.10023cd0
mov edi, eax
test edi, edi
jne 0x100239cc
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100239e7
test al, 1
je 0x100239e7
xor eax, 1
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
jl 0x100239fd
jg 0x100239f6
test ebx, ebx
je 0x100239fd
mov eax, str.abc
jmp 0x10023a02
mov eax, str.wbc
push 0x40
push eax
push edi
call fcn.101399dc
add esp, 0xc
mov dword [esi + 0x450], eax
test eax, eax
je 0x10023a55
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jl 0x10023a55
jg 0x10023a25
test ebx, ebx
je 0x10023a55
push ecx
push ebx
push eax
call fcn.1013a1f6
add esp, 4
push eax
call fcn.1013cdeb
add esp, 0xc
test eax, eax
je 0x10023a55
push dword [esi + 0x450]
call fcn.10139d04
add esp, 4
mov dword [esi + 0x450], 0
cmp dword [esi + 0x450], 0
pop edi
pop esi
setne al
pop ebx
pop ebp
ret 0xc

Function at 0x10023a70
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x458]
or eax, dword [esi + 0x45c]
je 0x10023b72
call fcn.10023cd0
mov edi, eax
test edi, edi
je 0x10023b72
mov edx, dword [esi + 0x458]
mov ecx, dword [esi + 0x45c]
add edx, 0xb6109100
push 0
push 0x989680
adc ecx, 2
push ecx
push edx
call fcn.101102f0
push 0
push 0x80
push 3
push 0
push 2
mov dword [esp + 0x24], eax
mov eax, edx
push 0x40000000
sar eax, 0x1f
push edi
mov dword [esp + 0x30], edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10023b30
lea eax, [esp + 0x10]
push eax
push eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x10023b15
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetFileTime___failed_with_error__lu._n
call fcn.10020f40
add esp, 8
push ebx
mov dword [esi + 0x458], 0
mov dword [esi + 0x45c], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esi + 0x27f], 0
je 0x10023b40
mov byte [esi + 0x27f], 0
push 8
lea eax, [esi + 0x278]
push 0
push eax
call fcn.1013daf4
add esp, 0xc
test eax, eax
je 0x10023b72
test al, al
js 0x10023b72
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10023b72
xor eax, 1
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100253b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016e3a8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x101c6270]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x100254eb
cmp byte [ebx + 0x3e], 0
je 0x100254eb
mov eax, dword [ebx]
push 0xffff
call dword [eax + 0xc]
movzx eax, ax
mov ecx, 0xffff
cmp cx, ax
sete al
test al, al
je 0x10025414
xor al, al
jmp 0x100254ed
push 0
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.10025200
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
nop
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
lea esi, [ebp - 0x28]
cmovae edi, edx
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x10025483
sub eax, 1
je 0x10025487
sub eax, 2
je 0x100254dd
lea ecx, [ebp - 0x28]
xor bl, bl
call fcn.1000d980
mov al, bl
jmp 0x100254ed
mov byte [ebx + 0x3e], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x100254bf
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.10139c36
add esp, 0x10
cmp esi, eax
jne 0x10025475
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
cmp byte [ebx + 0x3e], 0
je 0x100254dd
test esi, esi
jne 0x10025440
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.1000d840
jmp 0x10025439
lea ecx, [ebp - 0x28]
mov bl, 1
call fcn.1000d980
mov al, bl
jmp 0x100254ed
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.1010f54f
mov esp, ebp
pop ebp
ret

Function at 0x100268e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ecx + 0x10018]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.10139c36
add esp, 0x10
xor edx, edx
pop ebp
ret 8

Function at 0x10026a00
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10026a22
test al, 1
je 0x10026a22
xor eax, 1
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esi + 0x14], 0
jl 0x10026a37
jg 0x10026a30
cmp dword [esi + 0x10], 0
jbe 0x10026a37
mov eax, str.abc
jmp 0x10026a3c
mov eax, str.wbc
push 0x40
push eax
push edi
call fcn.101399dc
add esp, 0xc
mov dword [esi + 0x10018], eax
test eax, eax
je 0x10026a76
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
test edx, edx
jl 0x10026a76
jg 0x10026a62
test ecx, ecx
je 0x10026a76
push edx
push ecx
push eax
call fcn.1013a1f6
add esp, 4
push eax
call fcn.1013cdeb
add esp, 0xc
cmp dword [esi + 0x10018], 0
pop edi
setne al
pop esi
ret
Function at 0x100272f0
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
lea eax, [ebp - 4]
push esi
push 0
push eax
mov esi, ecx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x1002731b
mov eax, dword [ebp - 4]
add eax, 0x26000000
mov dword [esi + 4], eax
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 0x14
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x14], 2
push eax
push 0x4b
push 0
mov dword [ebp - 0x28], 0x14
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], 0
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
test eax, eax
jne 0x10027371
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10027386
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x30], 8
lea eax, [esi + 0x1c]
jb 0x10027391
mov eax, dword [eax]
push 0
push 1
push eax
call dword [sym.imp.WININET.dll_InternetCheckConnectionW]
test eax, eax
je 0x10027361
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10027fa0
Capabilities:
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016e598
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x101c6270]
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 esi, ecx
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionW]
lea eax, [ebp - 0x2c]
push 4
push eax
push 0x67
push 0
mov dword [ebp - 0x2c], 8
call edi
push 4
lea eax, [ebp - 0x2c]
push eax
push 0x4a
push 0
call edi
push 4
lea eax, [ebp - 0x2c]
push eax
push 0x49
push 0
call edi
push 0
push 0
push 0
push 0
push str.WinINet_1.0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ecx, eax
mov dword [esi + 0x38], ecx
test ecx, ecx
jne 0x1002802a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
xor al, al
jmp 0x10028196
movzx eax, word [esi + 0x30f0]
push 0
push 0
push 3
push 0
push 0
push eax
push dword [esi + 0x30e8]
push ecx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esi + 0x3c], eax
test eax, eax
je 0x1002801a
mov edx, dword [esi + 0x3104]
mov eax, 0x4480300
mov ebx, eax
mov dword [ebp - 0x18], 0
or ebx, 0x800000
mov dword [ebp - 0x14], 7
cmp dword [esi + 0x30e4], 4
mov ecx, edx
cmovne ebx, eax
xor eax, eax
mov word [ebp - 0x28], ax
lea eax, [ecx + 2]
mov dword [ebp - 0x30], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10028090
sub ecx, dword [ebp - 0x30]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.10004470
mov dword [ebp - 4], 0
mov edx, dword [esi + 0x310c]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x30], eax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100280c0
sub ecx, dword [ebp - 0x30]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.1000b3c0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push ebx
push 0
push 0
push 0
push eax
push str.HEAD
push dword [esi + 0x3c]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [esi + 0x40], eax
test eax, eax
jne 0x10028111
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
xor bl, bl
jmp 0x1002817f
push 4
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], 0x400000
push ecx
push 0xc
push eax
mov dword [ebp - 0x38], 4
call edi
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
push 0xc
push dword [esi + 0x40]
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
push 4
lea eax, [esi + 0x30c8]
push eax
push 2
push dword [esi + 0x40]
call edi
push 4
lea eax, [esi + 0x30cc]
push eax
push 6
push dword [esi + 0x40]
call edi
push 4
lea eax, [esi + 0x30d0]
push eax
push 5
push dword [esi + 0x40]
call edi
push 4
lea eax, [esi + 0x30d4]
push eax
push 3
push dword [esi + 0x40]
call edi
mov bl, 1
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x10028194
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.10004630
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.1010f54f
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100299e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016e3a8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x101c6270]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x10029b0f
cmp byte [ebx + 0x3d], 0
je 0x10029b0f
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x10029a39
xor al, al
jmp 0x10029b11
push 0
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.10025200
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
lea esi, [ebp - 0x28]
cmovae edi, edx
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x10029aa7
sub eax, 1
je 0x10029aab
sub eax, 2
je 0x10029b01
lea ecx, [ebp - 0x28]
xor bl, bl
call fcn.1000d980
mov al, bl
jmp 0x10029b11
mov byte [ebx + 0x3d], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x10029ae3
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.10139c36
add esp, 0x10
cmp esi, eax
jne 0x10029a99
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
cmp byte [ebx + 0x3d], 0
je 0x10029b01
test esi, esi
jne 0x10029a64
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.1000d840
jmp 0x10029a5e
lea ecx, [ebp - 0x28]
mov bl, 1
call fcn.1000d980
mov al, bl
jmp 0x10029b11
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.1010f54f
mov esp, ebp
pop ebp
ret

Function at 0x10029ef0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016cb50
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x101c6270]
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_char__struct_std::char_traits_char__.0
call fcn.1010f668
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.1011148a
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 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
Function at 0x1002d7d0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016edc0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x101c6270]
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 esi, edx
mov ebx, ecx
lea eax, [ebp - 0x40]
push eax
call fcn.1002caa0
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 0x10
mov edi, dword [esi + 0x10]
jb 0x1002d81a
mov esi, dword [esi]
xor eax, eax
mov edx, 0x811c9dc5
test edi, edi
je 0x1002d836
movzx ecx, byte [esi + eax]
inc eax
xor ecx, edx
imul edx, ecx, 0x1000193
cmp eax, edi
jb 0x1002d825
lea ecx, [ebp - 0x28]
call fcn.1002c850
mov esi, eax
push ecx
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.10033790
push esi
mov ecx, eax
call fcn.10032690
lea ecx, [ebp - 0x28]
call fcn.1000d980
lea ecx, [ebp - 0x40]
call fcn.1000d980
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.1010f54f
mov esp, ebp
pop ebp
ret

Function at 0x10038fd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov ebx, ecx
push edi
mov edi, dword [eax]
mov eax, dword [eax + 4]
mov edx, dword [esi + 4]
mov ecx, dword [esi]
push edx
push ecx
push eax
push edi
push dword [ebx + 0x1c]
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
call dword [sym.imp.KERNEL32.dll_LockFile]
cmp eax, 1
je 0x10039014
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 4]
push 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebx + 0x1c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x10039009
mov esi, dword [esi]
mov edi, dword [ebp + 0xc]
mov dword [ebp + 8], 0
nop dword [eax + eax]
push 0
lea eax, [ebp + 8]
push eax
push esi
push edi
push dword [ebx + 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
add edi, dword [ebp + 8]
sub esi, dword [ebp + 8]
jne 0x10039040
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 4]
push dword [ebp - 0x10]
push dword [ebx + 0x1c]
call dword [sym.imp.KERNEL32.dll_UnlockFile]
pop edi
cmp eax, 1
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10039190
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x101c6270]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x1c]
lea edx, [edi + 4]
call fcn.1002d080
cmp dword [esp + 0x30], 8
lea eax, [esp + 0x1c]
push 0
cmovae eax, dword [esp + 0x20]
push 0x80
push 1
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10039211
push 2
lea eax, [esp + 0x14]
push eax
push dword [edi + 0x24]
push dword [edi + 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x10039211
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x10039211
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
jmp 0x10039213
xor bl, bl
mov ecx, dword [esp + 0x30]
cmp ecx, 8
jb 0x1003922b
inc ecx
push ecx
push dword [esp + 0x20]
lea ecx, [esp + 0x24]
call fcn.10004630
mov ecx, dword [esp + 0x34]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1010f54f
mov esp, ebp
pop ebp
ret
Function at 0x10042260
Capabilities:
Access peb ldr_data

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10170fd3
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
mov eax, dword [0x101c6270]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], edi
mov esi, dword [ebx + 8]
mov dword [ebp - 0x38], edi
mov dword [ebp - 4], 0
push 2
push edi
call fcn.101156f0
add edi, 0x30
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov eax, dword [ebp - 0x30]
mov dword [eax + 0x58], 0
mov dword [eax + 0x5c], 0xf
mov byte [eax + 0x48], 0
push 0x48
mov byte [ebp - 4], 4
call fcn.1010f668
add esp, 0xc
mov dword [ebp - 0x34], eax
lea ecx, [ebx + 0xc]
mov byte [ebp - 4], 5
push ecx
lea ecx, [ebx + 0x2c]
push ecx
lea ecx, [ebx + 0x14]
push ecx
mov ecx, eax
call fcn.10041a80
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x30]
push str.download_tracker.cpp
push 0x2dda48
push 0x2dda49
mov dword [ecx + 0x60], eax
call fcn.100581c0
mov eax, dword [ebp - 0x30]
lea edx, [ebx + 0x2c]
add esp, 0xc
mov dword [esi + 0x98], eax
lea ecx, [eax + 0x48]
cmp ecx, edx
je 0x1004234c
push 0xffffffffffffffff
push 0
mov eax, edx
push eax
call fcn.1000d420
push str..info
lea eax, [ebx + 0x2c]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.10032720
mov esi, eax
add esp, 0xc
cmp edi, esi
je 0x1004238f
mov ecx, edi
call fcn.1000d980
movups xmm0, xmmword [esi]
movups xmmword [edi], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
lea ecx, [ebp - 0x2c]
call fcn.1000d980
lea ecx, [ebx + 0x14]
call fcn.1000d980
lea ecx, [ebx + 0x2c]
call fcn.1000d980
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1010f54f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x3c
Function at 0x100467f0
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017144d
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x101c6270]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
push str.Performing_SendRequest_...
push 1
call fcn.100566d0
add esp, 8
push 0
push 0
push 0
push 0
push 0
push 0
push dword [esi]
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x1004688e
push 0x12
push 0x1017e4dc
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.10004470
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.10047c30
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x1004688a
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.10004630
xor al, al
jmp 0x100468e6
push 0
push dword [esi]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x100468e4
push 0x16
push 0x1017e504
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.10004470
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 1
push eax
mov ecx, edi
call fcn.10047c30
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x1004688a
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.10004630
xor al, al
jmp 0x100468e6
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1010f54f
mov esp, ebp
pop ebp
ret 4

Function at 0x10046a10
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101714a7
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x101c6270]
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 esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push str.Performing_GetHTTPStatusCode_...
push 1
call fcn.100566d0
add esp, 8
mov dword [edi], 0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 4
push 0
push eax
lea eax, [ebp - 0x2c]
push eax
push 0
push 0x20000013
push dword [esi]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov esi, eax
test esi, esi
je 0x10046a9e
push dword [ebp - 0x2c]
push str.Received_HTTP_status:_lu
push 1
call fcn.100566d0
mov eax, dword [ebp - 0x2c]
add esp, 0xc
mov dword [edi], eax
jmp 0x10046ae8
push 0x13
xor eax, eax
mov dword [ebp - 0x18], 0
push 0x1017e8a4
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.10004470
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
mov ecx, ebx
call fcn.10047c30
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x10046ae8
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.10004630
xor eax, eax
cmp esi, 1
sete al
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.1010f54f
mov esp, ebp
pop ebp
ret 8
Function at 0x1004f090
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10171e48
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x101c6270]
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, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
cmp dword [edi + 0x14], 8
jb 0x1004f0cb
mov eax, dword [edi]
jmp 0x1004f0cd
mov eax, edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1004f0f3
test esi, esi
je 0x1004f0ec
mov dword [esi], 0
call fcn.10127920
mov dword [esi + 4], eax
mov al, 1
jmp 0x1004f186
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [ebp - 0x64], 0
call fcn.10127920
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x6c]
push edi
push eax
call fcn.100508f0
add esp, 0xc
cmp dword [ebp - 0x6c], 3
sete al
test al, al
je 0x1004f137
test esi, esi
je 0x1004f184
mov dword [esi], 0
call fcn.10127920
jmp 0x1004f181
test esi, esi
jne 0x1004f17a
push str.boost::filesystem::create_directory
lea ecx, [ebp - 0x28]
call fcn.1000d5f0
mov dword [ebp - 4], esi
call fcn.10127920
push eax
push ebx
lea ecx, [ebp - 0x74]
call fcn.1003c870
lea ecx, [ebp - 0x5c]
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x28]
push edi
push eax
call fcn.1004e690
push 0x101b64e0
lea eax, [ebp - 0x5c]
push eax
call fcn.1012b92c
call fcn.10127920
mov dword [esi], ebx
mov dword [esi + 4], eax
xor al, al
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.1010f54f
mov esp, ebp
pop ebp
ret