joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100993c0
Capabilities:
Check if file exists
Get file attributes
Get hostname
Read .ini file

Disassembly:
sub esp, 0x230
mov eax, dword [0x10177024]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x206
lea eax, [esp + 0x36]
push ebx
push eax
mov edi, ecx
mov word [esp + 0x3c], bx
call sub.MSVCR80.dll_memset
xor eax, eax
add esp, 0xc
lea ecx, [esp + 0x30]
mov word [esp + 0x10], bx
mov dword [esp + 0x12], eax
mov dword [esp + 0x16], eax
mov dword [esp + 0x1a], eax
mov dword [esp + 0x1e], eax
mov dword [esp + 0x22], eax
mov dword [esp + 0x26], eax
mov dword [esp + 0x2a], eax
mov word [esp + 0x2e], ax
mov dword [esp + 0xc], 0xf
call fcn.10099520
mov esi, eax
cmp esi, ebx
jne 0x1009946a
push 0x10a
call fcn.10098890
add esp, 4
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call sub.Comn.dll_GetObjectLog
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push edi
push ebx
push str.GetAppDataPath_tszAomeiBR__MAX_PATH_
push str._s_return_code:_0x_08X___s.
push eax
call edx
add esp, 0x14
jmp 0x10099500
push str.AomeiBRcomn.ini
lea eax, [esp + 0x34]
push 0x104
push eax
call dword [sym.imp.MSVCR80.dll_wcscat_s]
add esp, 0xc
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov esi, edx
cmp esi, ebx
jne 0x100994d0
push 0x10e
call fcn.10098890
add esp, 4
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call sub.Comn.dll_GetObjectLog
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push edi
push ebx
push str.GetFileAttributes_tszAomeiBR__INVALID_FILE_ATTRIBUTES
push str._s_return_code:_0x_08X___s.
push eax
call edx
add esp, 0x14
jmp 0x10099500
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea edx, [esp + 0x30]
push edx
push 0x80
push edi
lea eax, [esp + 0x1c]
push eax
push str.MARK
push str.COMN
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [esp + 0x238]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.10130e50
add esp, 0x230
ret
Function at 0x10099520
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x10177024]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push esi
push edi
push 0x206
lea eax, [esp + 0x12]
push 0
push eax
mov edi, ecx
mov word [esp + 0x18], 0
call sub.MSVCR80.dll_memset
xor ecx, ecx
add esp, 0xc
test edi, edi
setne cl
mov esi, ecx
test esi, esi
jne 0x10099599
push 0x120
call fcn.10098890
add esp, 4
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call sub.Comn.dll_GetObjectLog
mov edx, dword [eax]
push edi
push ebx
push str.pDir_NULL
push str._s_return_code:_0x_08X___s.
push eax
mov eax, dword [edx + 0xc]
call eax
add esp, 0x14
jmp 0x10099620
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [esp + 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100995b3
sub eax, edx
xor edx, edx
sar eax, 1
cmp eax, 0x104
setl dl
mov esi, edx
test esi, esi
jne 0x10099607
push 0x12d
call fcn.10098890
add esp, 4
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call sub.Comn.dll_GetObjectLog
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push edi
push ebx
push str.l_Length
push str._s_return_code:_0x_08X___s.
push eax
call edx
add esp, 0x14
jmp 0x10099620
lea eax, [esp + 0xc]
mov edx, edi
mov ecx, eax
sub edx, ecx
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x10099611
mov ecx, dword [esp + 0x214]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.10130e50
add esp, 0x20c
ret

Function at 0x100996a0
Capabilities:
Read .ini file

Disassembly:
push ecx
mov eax, dword [0x10177024]
xor eax, esp
mov dword [esp], eax
push ebx
mov ebx, 0xb
call fcn.10099640
test eax, eax
jne 0x10099700
push esi
push edi
push 0x14f
call fcn.10098890
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call sub.Comn.dll_GetObjectLog
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push esi
push edi
push str.pConfigPath_NULL
push str._s_return_code:_0x_08X___s.
push eax
call edx
add esp, 0x14
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [esp]
xor ecx, esp
call fcn.10130e50
pop ecx
ret
push eax
push 0xb
push 0x1015322c
push 0x10153230
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, 0xb
jne 0x1009971d
mov eax, 3
mov ecx, dword [esp + 4]
pop ebx
xor ecx, esp
call fcn.10130e50
pop ecx
ret
Function at 0x10099730
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
sub esp, 0x210
mov eax, dword [0x10177024]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
xor ebx, ebx
push 0x103
lea eax, [esp + 0xd]
push ebx
push eax
mov dword [esp + 0x10], ebx
mov byte [esp + 0x14], bl
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea ecx, [esp + 0xc]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 8]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x10099780
sub eax, edx
add eax, 0xffffffff
cmp eax, ebx
jl 0x100997a5
mov cl, 0x5c
cmp byte [esp + eax + 8], cl
je 0x100997a1
sub eax, 1
jns 0x10099794
jmp 0x100997a5
mov byte [esp + eax + 8], bl
lea eax, [esp + 8]
add eax, 0xffffffff
lea esp, [esp]
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x100997b0
mov edx, dword [str.ga.ini]
mov ecx, dword [0x1015b570]
mov dword [eax], edx
lea edx, [esp + 8]
push edx
mov dword [eax + 4], ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x100997e5
push 0x10152bf8
jmp 0x10099879
push 0x103
lea eax, [esp + 0x111]
push ebx
push eax
mov byte [esp + 0x118], bl
call sub.MSVCR80.dll_memset
add esp, 0xc
cmp byte [esp + 0x218], bl
je 0x10099829
lea ecx, [esp + 8]
push ecx
push 0x104
lea edx, [esp + 0x114]
push edx
push 0x10152bf8
push str.cntest
jmp 0x10099845
lea eax, [esp + 8]
push eax
push 0x104
lea ecx, [esp + 0x114]
push ecx
push 0x10152bf8
push str.entest
push 0x1015b57c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x10c]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x10099860
sub eax, edx
je 0x100997db
lea edx, [esp + 0x10c]
push edx
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov ecx, dword [esp + 0x210]
pop ebx
xor ecx, esp
mov eax, esi
call fcn.10130e50
add esp, 0x210
ret 4
Function at 0x1009b350
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 0x1009b367
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1009b398
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x1009b394
cmp esi, eax
jae 0x1009b398
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x1009b384
cmp esi, eax
jb 0x1009b39e
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 0x1009b930
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x10149f18
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x10177024]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov eax, dword [0x10179454]
mov edx, dword [eax + 0xc]
mov ecx, 0x10179454
call edx
add eax, 0x10
mov dword [esp + 0xc], eax
lea esi, [esp + 0xc]
mov dword [esp + 0x18], 0
call fcn.1009b5b0
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 0x1009b99f
mov ecx, 0x104
mov eax, edi
call fcn.1009def0
mov eax, dword [edi]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, dword [edi]
test ecx, ecx
jne 0x1009b9b7
xor eax, eax
jmp 0x1009b9d5
mov eax, ecx
lea esi, [eax + 2]
lea esp, [esp]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x1009b9c0
sub eax, esi
sar eax, 1
js 0x1009ba7a
cmp eax, dword [ecx - 8]
jg 0x1009ba7a
push 9
mov dword [ecx - 0xc], eax
mov ecx, dword [edi]
push str.AOMEILogs
push edi
mov word [ecx + eax*2], 0
call fcn.1009da30
push 1
push 0x101520e4
push edi
call fcn.1009da30
mov esi, dword [esp + 0xc]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
test eax, eax
jne 0x1009ba16
xor ecx, ecx
jmp 0x1009ba2f
mov ecx, eax
lea ebx, [ecx + 2]
jmp 0x1009ba20
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x1009ba20
sub ecx, ebx
sar ecx, 1
push ecx
push eax
push edi
call fcn.1009da30
push 4
push str..log
push edi
call fcn.1009da30
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 0x1009ba68
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.10099ca0
int3

Function at 0x1009ba90
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 [0x101bff8c], eax
je 0x1009bad2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x40000
jbe 0x1009baee
mov eax, dword [0x101bff8c]
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 [0x101bff8c], eax
pop edi
ret
mov ecx, dword [0x101bff8c]
push 2
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
pop edi
ret
Function at 0x1009bb10
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x10149f18
mov eax, dword fs:[0]
push eax
push ecx
push ebp
push esi
mov eax, dword [0x10177024]
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 [0x101bff94], 0
mov byte [0x101bff95], 0
mov dword [0x101bff90], ebp
call fcn.1009d6b0
lea esi, [esp + 0xc]
mov dword [esp + 0x18], 0
call fcn.1009b500
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x1009bb82
mov edx, dword [esp + 0xc]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, edi
call fcn.1009ba90
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 0x1009bbaa
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 0x1009bc00
Capabilities:
Create thread

Disassembly:
cmp byte [esi + 9], 0
jne 0x1009bc4d
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 0x1009bbc0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov byte [esi + 9], 1
ret
Function at 0x1009bec0
Capabilities:
Access peb ldr_data
Initialize winhttp library

Disassembly:
push 0xffffffffffffffff
push 0x101496eb
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x10177024]
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 [0x10179454]
mov edx, dword [eax + 0xc]
mov ecx, 0x10179454
call edx
add eax, 0x10
mov dword [esi + 0x14], eax
mov dword [esp + 0x18], ebx
call fcn.1009e9d0
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 0x1009c0a0
Capabilities:
Prepare http request

Disassembly:
push 0xffffffffffffffff
push 0x101496b8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x10177024]
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 0x1009c0dd
push eax
call edi
mov dword [esi + 8], ebx
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x1009c0ea
push eax
call edi
mov dword [esi + 4], ebx
cmp dword [esi], ebx
je 0x1009c146
mov eax, dword [0x10179454]
mov edx, dword [eax + 0xc]
mov ecx, 0x10179454
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [0x10179454]
mov edx, dword [eax + 0xc]
mov ecx, 0x10179454
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.1009bd20
test al, al
jne 0x1009c15d
lea esi, [esp + 0x10]
call fcn.1009c1d0
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 0x1009c13d
xor ecx, ecx
cmp byte [esp + 0x14], bl
je 0x1009c185
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 0x1009c141
call fcn.1009c1d0
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 0x1009c210
Capabilities:
Set http header

Disassembly:
push 0xffffffffffffffff
push 0x10146568
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x10177024]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 8], 0
jne 0x1009c253
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 [0x10179454]
mov edx, dword [eax + 0xc]
mov ecx, 0x10179454
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.1009eb30
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 0x1009c2cb
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 0x1009c540
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 0x1009c598
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x1009c584
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 0x1009c584
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 0x1009c5c9
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x1009c6fb
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 0x1009c6fb
mov edx, dword [edi]
mov eax, dword [edx + 4]
push 0x2800
mov ecx, edi
call eax
test al, al
jne 0x1009c5ef
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 0x1009c602
mov dword [esi + 0x30], ebp
mov dword [esi + 0x34], ebx
cmp ebp, ebx
jbe 0x1009c69f
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 0x1009c6c0
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x1009c69f
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 0x1009c6d4
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x1009c69f
add edi, eax
cmp byte [esp + 0x34], bl
je 0x1009c68d
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 0x1009c68d
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esi + 0x30]
push edx
call eax
add esp, 8
cmp byte [esp + 0x14], bl
je 0x1009c697
mov byte [esp + 0x14], bl
cmp edi, ebp
jb 0x1009c610
cmp byte [esp + 0x30], bl
je 0x1009c6b0
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.1009eb50
mov esi, eax
call fcn.1009b700
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 0x1009c7e0
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 0x1009c891
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 0x1009c867
jg 0x1009c84d
cmp ecx, 0x7fffffff
jbe 0x1009c867
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 0x1009c88f
cmp eax, 0xffffffff
mov byte [esi + 0xc], 1
jbe 0x1009c87f
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 0x1009c980
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x1009c9b7
mov eax, dword [esi + 8]
test eax, eax
je 0x1009c9b7
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 0x1009c9b7
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 0x1009c9c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10149eb8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
mov eax, dword [0x10177024]
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.1009d420
mov esi, dword [esp + 0x2c]
push eax
add esi, 0x10
mov dword [esp + 0x28], 0
call fcn.1009d8a0
lea esi, [esp + 8]
call fcn.1009b230
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x20
ret 8