joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1009b170
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x1009b187
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1009b1b8
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x1009b1b4
cmp esi, eax
jae 0x1009b1b8
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x1009b1a4
cmp esi, eax
jb 0x1009b1be
pop esi
pop edi
xor eax, eax
pop ebp
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x1009b750
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x10143f28
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x10170024]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov eax, dword [0x10172444]
mov edx, dword [eax + 0xc]
mov ecx, 0x10172444
call edx
add eax, 0x10
mov dword [esp + 0xc], eax
lea esi, [esp + 0xc]
mov dword [esp + 0x18], 0
call fcn.1009b3d0
mov eax, dword [edi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x104
or eax, ecx
jge 0x1009b7bf
mov ecx, 0x104
mov eax, edi
call fcn.1009dd20
mov eax, dword [edi]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, dword [edi]
test ecx, ecx
jne 0x1009b7d7
xor eax, eax
jmp 0x1009b7f5
mov eax, ecx
lea esi, [eax + 2]
lea esp, [esp]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x1009b7e0
sub eax, esi
sar eax, 1
js 0x1009b89a
cmp eax, dword [ecx - 8]
jg 0x1009b89a
push 9
mov dword [ecx - 0xc], eax
mov ecx, dword [edi]
push str.AOMEILogs
push edi
mov word [ecx + eax*2], 0
call fcn.1009d870
push 1
push 0x1014bdb4
push edi
call fcn.1009d870
mov esi, dword [esp + 0xc]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
test eax, eax
jne 0x1009b836
xor ecx, ecx
jmp 0x1009b84f
mov ecx, eax
lea ebx, [ecx + 2]
jmp 0x1009b840
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x1009b840
sub ecx, ebx
sar ecx, 1
push ecx
push eax
push edi
call fcn.1009d870
push 4
push str..log
push edi
call fcn.1009d870
lea eax, [esi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1009b888
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret
push 0x80070057
call fcn.10099b30
int3

Function at 0x1009b8b0
Capabilities:
Get file size

Disassembly:
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x80
push 3
push 0
push 1
push 0x40000000
push esi
call edi
cmp eax, 0xffffffff
mov dword [0x10186f60], eax
je 0x1009b8f2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x40000
jbe 0x1009b90e
mov eax, dword [0x10186f60]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push esi
call edi
mov dword [0x10186f60], eax
pop edi
ret
mov ecx, dword [0x10186f60]
push 2
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
pop edi
ret
Function at 0x1009b930
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x10143f28
mov eax, dword fs:[0]
push eax
push ecx
push ebp
push esi
mov eax, dword [0x10170024]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
or ebp, 0xffffffff
push eax
mov ecx, edi
mov byte [0x10186f68], 0
mov byte [0x10186f69], 0
mov dword [0x10186f64], ebp
call fcn.1009d4f0
lea esi, [esp + 0xc]
mov dword [esp + 0x18], 0
call fcn.1009b320
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x1009b9a2
mov edx, dword [esp + 0xc]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, edi
call fcn.1009b8b0
mov dword [esp + 0x18], ebp
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x1009b9ca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
add esp, 0x10
ret

Function at 0x1009ba20
Capabilities:
Create thread

Disassembly:
cmp byte [esi + 9], 0
jne 0x1009ba6d
call dword [sym.imp.KERNEL32.dll_AllocConsole]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_GetSystemMenu]
push 0
push 0xf060
push eax
call dword [sym.imp.USER32.dll_DeleteMenu]
push 0
push 0
push 0
push 0x1009b9e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov byte [esi + 9], 1
ret
Function at 0x1009bd00
Capabilities:
Access peb ldr_data
Initialize winhttp library

Disassembly:
push 0xffffffffffffffff
push 0x1014372b
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x10170024]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20]
xor ebx, ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov eax, dword [0x10172444]
mov edx, dword [eax + 0xc]
mov ecx, 0x10172444
call edx
add eax, 0x10
mov dword [esi + 0x14], eax
mov dword [esp + 0x18], ebx
call fcn.1009e800
mov dword [esi + 0x1c], eax
mov byte [eax + 0x19], 1
mov eax, dword [esi + 0x1c]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x1c]
mov dword [eax], eax
mov eax, dword [esi + 0x1c]
mov dword [eax + 8], eax
mov dword [esi + 0x20], ebx
push ebx
mov byte [esi + 0x24], bl
mov dword [esi + 0x28], ebx
push ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
push ebx
xor eax, eax
push ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x10], eax
push str.MultCloud_for_Windows
mov dword [esi + 0xc], 8
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
push 4
lea ecx, [esp + 0x24]
push ecx
push 3
mov ebx, 0x36ee80
push eax
mov dword [esi], eax
mov dword [esp + 0x30], ebx
call edi
mov eax, dword [esi]
push 4
lea edx, [esp + 0x24]
push edx
push 5
push eax
mov dword [esp + 0x30], ebx
call edi
mov edx, dword [esi]
push 4
lea ecx, [esp + 0x24]
push ecx
push 6
push edx
mov dword [esp + 0x30], ebx
call edi
mov ecx, dword [esi]
push 4
lea eax, [esp + 0x24]
push eax
push 6
push ecx
mov dword [esp + 0x30], ebx
call edi
push 4
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x28], 2
push 4
mov eax, dword [esi]
push eax
call edi
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x1009bee0
Capabilities:
Prepare http request

Disassembly:
push 0xffffffffffffffff
push 0x101436f8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x10170024]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor ebx, ebx
cmp eax, ebx
je 0x1009bf1d
push eax
call edi
mov dword [esi + 8], ebx
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x1009bf2a
push eax
call edi
mov dword [esi + 4], ebx
cmp dword [esi], ebx
je 0x1009bf86
mov eax, dword [0x10172444]
mov edx, dword [eax + 0xc]
mov ecx, 0x10172444
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [0x10172444]
mov edx, dword [eax + 0xc]
mov ecx, 0x10172444
mov byte [esp + 0x14], bl
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
mov word [esp + 0x1c], bx
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x34]
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x30], ebx
call fcn.1009bb60
test al, al
jne 0x1009bf9d
lea esi, [esp + 0x10]
call fcn.1009c010
xor al, al
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x20
ret 4
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [esi]
push ebx
push ecx
push edx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
cmp eax, ebx
mov dword [esi + 4], eax
je 0x1009bf7d
xor ecx, ecx
cmp byte [esp + 0x14], bl
je 0x1009bfc5
mov ecx, 0x800000
push ecx
mov ecx, dword [esp + 0x24]
push ebx
push ebx
push ebx
push ecx
push str.POST
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
cmp eax, ebx
mov dword [esi + 8], eax
lea esi, [esp + 0x10]
je 0x1009bf81
call fcn.1009c010
mov al, 1
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x20
ret 4

Function at 0x1009c050
Capabilities:
Set http header

Disassembly:
push 0xffffffffffffffff
push 0x10140528
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x10170024]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 8], 0
jne 0x1009c093
xor al, al
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 8
mov eax, dword [0x10172444]
mov edx, dword [eax + 0xc]
mov ecx, 0x10172444
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push eax
push ecx
push str._s:__s
lea edi, [esp + 0x1c]
mov dword [esp + 0x28], 0
call fcn.1009e970
mov esi, dword [esp + 0x1c]
mov edx, dword [ebx + 8]
add esp, 0xc
push 0xa0000000
push 0xffffffffffffffff
push esi
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
lea eax, [esi - 0x10]
setne bl
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1009c10b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 8
Function at 0x1009c380
Capabilities:
Receive http response
Send data
Send http request

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2c]
mov ebp, dword [edi + 4]
xor ebx, ebx
cmp ebp, ebx
mov esi, eax
jne 0x1009c3d8
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x1009c3c4
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
mov dword [esi + 0x10], ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
setne al
cmp al, bl
mov byte [esi + 0x24], bl
je 0x1009c3c4
mov eax, dword [esi + 8]
push ebx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov eax, dword [esp + 0x28]
mov dword [eax], 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
cmp byte [esp + 0x30], bl
je 0x1009c409
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x1009c53b
push ebx
push ebp
push ebx
push ebx
push ebx
push ebx
push eax
mov dword [esi + 0x10], ebp
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
setne al
cmp al, bl
mov byte [esi + 0x24], bl
je 0x1009c53b
mov edx, dword [edi]
mov eax, dword [edx + 4]
push 0x2800
mov ecx, edi
call eax
test al, al
jne 0x1009c42f
mov eax, dword [esp + 0x28]
mov dword [eax], 2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
xor edi, edi
cmp byte [esp + 0x34], bl
mov byte [esp + 0x14], 1
je 0x1009c442
mov dword [esi + 0x30], ebp
mov dword [esi + 0x34], ebx
cmp ebp, ebx
jbe 0x1009c4df
lea ebx, [ebx]
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx]
mov edx, dword [edx + 8]
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
call edx
test al, al
je 0x1009c500
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x1009c4df
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push eax
mov eax, dword [esi + 8]
push edx
push eax
mov dword [esp + 0x30], ebx
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
test eax, eax
je 0x1009c514
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x1009c4df
add edi, eax
cmp byte [esp + 0x34], bl
je 0x1009c4cd
xor eax, eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x28]
cmp eax, ebx
mov dword [esi + 0x48], edi
mov dword [esi + 0x38], edi
je 0x1009c4cd
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esi + 0x30]
push edx
call eax
add esp, 8
cmp byte [esp + 0x14], bl
je 0x1009c4d7
mov byte [esp + 0x14], bl
cmp edi, ebp
jb 0x1009c450
cmp byte [esp + 0x30], bl
je 0x1009c4f0
mov eax, dword [esi + 8]
push ebx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov eax, dword [esp + 0x28]
mov dword [eax], ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
mov eax, dword [esp + 0x28]
mov dword [eax], 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.InternetWriteFile:_error:_d
push 2
push 0x1df
push str.CHttpUtil::SendWithStream
call fcn.1009e990
mov esi, eax
call fcn.1009b520
add esp, 0x14
mov eax, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov dword [eax], 5
pop ebx
add esp, 0x14
ret 0x10
Function at 0x1009c620
Capabilities:
Get file size

Disassembly:
sub esp, 8
push ebx
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi], vtable.FileInStream.0
mov byte [esi + 0xc], bl
mov dword [esi + 0x10], 0xffffffff
mov dword [esi + 0x14], ebx
push eax
mov dword [esi + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 0x10], eax
je 0x1009c6d1
push ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileSize]
lea ecx, [esp + 0xc]
push ecx
push eax
mov dword [esp + 0x14], ebx
call edi
mov edx, dword [esp + 0xc]
xor ecx, ecx
xor ebp, ebp
or ecx, eax
or edx, ebp
mov dword [esp + 0x10], edx
jl 0x1009c6a7
jg 0x1009c68d
cmp ecx, 0x7fffffff
jbe 0x1009c6a7
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebp
mov dword [esi + 0x10], 0xffffffff
mov eax, esi
pop ebx
add esp, 8
ret
mov ecx, dword [esi + 0x10]
push ebx
push ecx
call edi
cmp eax, 1
jb 0x1009c6cf
cmp eax, 0xffffffff
mov byte [esi + 0xc], 1
jbe 0x1009c6bf
or eax, 0xffffffff
mov edx, dword [esi + 0x10]
push ebx
push ebx
push ebx
push edx
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
pop edi
pop ebp
mov eax, esi
pop ebx
add esp, 8
ret

Function at 0x1009c7c0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x1009c7f7
mov eax, dword [esi + 8]
test eax, eax
je 0x1009c7f7
mov edx, dword [esp + 0xc]
push 0
push edx
push eax
mov eax, dword [esi + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1009c7f7
mov ecx, dword [esi + 0x14]
mov edx, dword [esp + 8]
mov dword [edx], ecx
mov al, 1
pop esi
ret 8
xor al, al
pop esi
ret 8

Function at 0x1009c800
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10143ec8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
mov eax, dword [0x10170024]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x38]
call fcn.1009d260
mov esi, dword [esp + 0x2c]
push eax
add esi, 0x10
mov dword [esp + 0x28], 0
call fcn.1009d6e0
lea esi, [esp + 8]
call fcn.1009b050
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x20
ret 8
Function at 0x1009cb40
Capabilities:
Receive http response

Disassembly:
push 0xffffffffffffffff
push 0x101452b0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10170024]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov eax, dword [0x10172444]
mov edx, dword [eax + 0xc]
mov ecx, 0x10172444
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], 0
mov eax, dword [0x10172444]
mov edx, dword [eax + 0xc]
mov ecx, 0x10172444
call edx
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
mov ebx, dword [esp + 0x2c]
add ebx, 0x10
mov byte [esp + 0x24], 1
mov esi, dword [ebx + 4]
cmp esi, dword [ebx + 8]
jbe 0x1009cbb5
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebp, dword [ebx + 8]
cmp dword [ebx + 4], ebp
jbe 0x1009cbc3
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
test ebx, ebx
je 0x1009cbcb
cmp ebx, ebx
je 0x1009cbd1
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, ebp
je 0x1009cc5b
test ebx, ebx
mov ebp, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
jne 0x1009cbe5
call ebp
cmp esi, dword [ebx + 8]
jb 0x1009cbec
call ebp
cmp dword [esi], 0
jne 0x1009cc4c
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
je 0x1009cc0c
push 1
push 0x101556ac
lea ecx, [esp + 0x1c]
push ecx
call fcn.1009d870
cmp esi, dword [ebx + 8]
jb 0x1009cc13
call ebp
cmp esi, dword [ebx + 8]
mov edi, dword [esi + 8]
jb 0x1009cc23
call ebp
mov ebp, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [esi + 4]
push edi
push edx
push 0x101556b0
lea edi, [esp + 0x24]
call fcn.1009e970
mov edi, dword [esp + 0x24]
mov eax, dword [edi - 0xc]
add esp, 0xc
push eax
push edi
lea ecx, [esp + 0x1c]
push ecx
call fcn.1009d870
cmp esi, dword [ebx + 8]
jb 0x1009cc53
call ebp
add esi, 0x14
jmp 0x1009cbb5
mov ebx, dword [esp + 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
mov edx, dword [esp + 0x34]
jne 0x1009cc85
push eax
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov esi, dword [esp + 0x30]
mov dword [esi], 0
jmp 0x1009cc96
mov ecx, dword [esp + 0x30]
push 1
push ecx
push edx
call fcn.1009c1e0
mov esi, dword [esp + 0x30]
lea eax, [edi - 0x10]
mov byte [esp + 0x24], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1009ccb7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1009ccdb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0xc
Function at 0x1009cd00
Capabilities:
Check if file exists
Get file size

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
xor eax, eax
cmp byte [ebp + 0xc], al
push esi
push edi
mov dword [ebp + 0x30], eax
mov dword [ebp + 0x34], eax
je 0x1009cded
mov esi, dword [ebp + 0x14]
cmp esi, dword [ebp + 0x18]
lea ebx, [ebp + 0x10]
jbe 0x1009cd30
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
lea ebx, [ebx]
mov edi, dword [ebp + 0x18]
cmp dword [ebp + 0x14], edi
jbe 0x1009cd3e
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
test ebx, ebx
je 0x1009cd49
lea eax, [ebp + 0x10]
cmp ebx, eax
je 0x1009cd4f
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, edi
je 0x1009cded
test ebx, ebx
mov edi, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
jne 0x1009cd63
call edi
cmp esi, dword [ebx + 8]
jb 0x1009cd6a
call edi
cmp dword [esi], 1
jne 0x1009cdd5
cmp esi, dword [ebx + 8]
jb 0x1009cd76
call edi
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1009cde4
cmp esi, dword [ebx + 8]
jb 0x1009cd8b
call edi
mov eax, dword [esi + 8]
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x1009cde4
lea ecx, [esp + 0x14]
push ecx
push eax
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x14]
xor edx, edx
xor edi, edi
or edx, eax
or ecx, edi
add dword [ebp + 0x30], edx
mov edi, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
adc dword [ebp + 0x34], ecx
cmp esi, dword [ebx + 8]
jb 0x1009cddc
call edi
add esi, 0x14
jmp 0x1009cd30
xor al, al
pop edi
pop esi
pop ebp
pop ebx
ret 4
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 4
Function at 0x1009d260
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x101436cc
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10170024]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, edx
mov esi, dword [esp + 0x2c]
lea eax, [esi + 4]
push eax
mov ecx, edi
mov dword [esi], 0
call fcn.1009d4f0
lea ecx, [esi + 8]
push ecx
mov ecx, ebx
mov dword [esp + 0x28], 0
call fcn.1009d4f0
mov byte [esp + 0x24], 1
mov edx, dword [0x10172444]
mov eax, dword [edx + 0xc]
mov ecx, 0x10172444
lea ebp, [esi + 0xc]
call eax
add eax, 0x10
mov dword [ebp], eax
mov byte [esp + 0x24], 2
mov edx, dword [0x10172444]
mov eax, dword [edx + 0xc]
mov ecx, 0x10172444
call eax
add eax, 0x10
mov dword [esi + 0x10], eax
mov byte [esp + 0x24], 3
mov ecx, dword [esp + 0x30]
mov byte [ecx], 1
mov edx, dword [0x10172444]
mov eax, dword [edx + 0xc]
mov ecx, 0x10172444
call eax
add eax, 0x10
mov dword [esp + 0x30], eax
mov byte [esp + 0x24], 4
mov edx, dword [0x10172444]
mov eax, dword [edx + 0xc]
mov ecx, 0x10172444
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x18]
push ecx
lea eax, [esp + 0x18]
mov ecx, edi
mov byte [esp + 0x28], 5
call fcn.1009b260
mov edx, dword [esp + 0x18]
push edx
push str.Content_Disposition:_form_data__name__s_
lea edi, [esp + 0x3c]
call fcn.1009e950
lea eax, [esp + 0x24]
push eax
mov eax, ebp
mov ecx, ebx
call fcn.1009b260
add esp, 0x10
push 4
push str._r_n_r_n
mov ecx, edi
push ecx
call fcn.1009d400
mov ebx, dword [esp + 0x30]
test ebx, ebx
jne 0x1009d37f
xor eax, eax
jmp 0x1009d38f
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1009d384
sub eax, edx
mov edi, eax
push ebx
lea eax, [esi + 0x10]
call fcn.1009e2d0
mov byte [esp + 0x24], 4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1009d3bf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [esp + 0x24], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1009d3e0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8