joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43fe97
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46b5d8
push str.AdvApi32.dll
call fcn.0040385b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x43feda
push str.SystemFunction040
push dword [0x46b5d8]
call edi
push str.SystemFunction041
push dword [0x46b5d8]
mov dword [0x46b5e0], eax
call edi
mov dword [0x46b5e4], eax
jmp 0x43fedf
mov eax, dword [0x46b5e4]
cmp dword [0x46b5e0], 0
je 0x43fef0
test eax, eax
jne 0x43ff97
push 0x46b5dc
push str.Crypt32.dll
call fcn.0040385b
mov esi, eax
test esi, esi
js 0x43ffa1
push str.CryptProtectMemory
push dword [0x46b5dc]
call edi
cmp dword [0x46b5e0], 0
mov dword [0x46b5e8], eax
jne 0x43ff55
test eax, eax
jne 0x43ff55
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x43ff3f
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x43ff46
mov esi, 0x80004005
push esi
push 0x28
push str.cryputil.cpp
call fcn.00403858
jmp 0x43ffa1
push str.CryptUnprotectMemory
push dword [0x46b5dc]
call edi
cmp dword [0x46b5e4], 0
mov dword [0x46b5ec], eax
jne 0x43ff97
test eax, eax
jne 0x43ff97
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x43ff8b
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x43ff92
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x43ff49
mov dword [0x46b5f0], 1
pop edi
mov eax, esi
pop esi
ret
Function at 0x4404df
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x46a008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [str.unknown]
mov eax, 0x104
push edi
push eax
mov dword [ebp - 0x424], eax
xor ebx, ebx
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x420], ebx
push eax
push ebx
mov dword [ebp - 0x41c], ebx
mov dword [ebp - 0x418], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, 0x208
test eax, eax
jne 0x440543
push edi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0042f8b0
add esp, 0xc
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00444c19
test eax, eax
jns 0x44056d
mov dword [ebp - 0x420], ebx
mov dword [ebp - 0x41c], ebx
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x440593
lea eax, [ebp - 0x414]
mov byte [eax], bl
inc eax
sub edi, 1
jne 0x44058b
push ebx
lea eax, [ebp - 0x418]
push eax
call fcn.0044886d
push dword [ebp - 0x418]
push str._Logging_started:__ls_
push 2
pop edi
push edi
call fcn.0044090d
mov ecx, dword [ebp - 0x41c]
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
mov ecx, dword [ebp - 0x420]
movzx eax, cx
push eax
shr ecx, 0x10
lea eax, [ebp - 0x20c]
push ecx
push eax
push str.Executable:__ls_v_d._d._d._d
push edi
call fcn.0044090d
lea eax, [ebp - 0x414]
push eax
push str.Computer__:__ls
push edi
call fcn.0044090d
mov eax, dword [0x46a778]
add esp, 0x34
sub eax, ebx
je 0x440634
sub eax, 1
je 0x44062c
sub eax, 1
je 0x440624
sub eax, 1
je 0x44061c
sub eax, 1
jne 0x44063a
mov esi, dword [str.debug]
jmp 0x44063a
mov esi, dword [str.verbose]
jmp 0x44063a
mov esi, dword [str.standard]
jmp 0x44063a
mov esi, dword [str.warning]
jmp 0x44063a
mov esi, dword [str.none]
push esi
push str.____logging_level:__hs____
push edi
call fcn.0044090d
add esp, 0xc
cmp dword [ebp - 0x418], 0
pop edi
pop esi
pop ebx
je 0x440660
push dword [ebp - 0x418]
call fcn.004026e8
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0042dfc6
mov esp, ebp
pop ebp
ret

Function at 0x44094b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor esi, esi
xor edi, edi
and dword [ebp - 4], esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [0x46a774]
mov dword [ebp + 8], eax
cmp ecx, 0xffffffff
jne 0x440987
push edi
push ebx
push 0x46b5f8
call fcn.00402400
mov esi, eax
test esi, esi
js 0x4409de
xor esi, esi
jmp 0x4409de
test eax, eax
je 0x4409de
push 0
lea edx, [ebp - 4]
sub eax, edi
push edx
push eax
lea eax, [edi + ebx]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4409bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4409ba
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4409ce
add edi, dword [ebp - 4]
mov eax, dword [ebp + 8]
cmp edi, eax
jae 0x4409de
mov ecx, dword [0x46a774]
jmp 0x44098b
push esi
push 0x310
push str.logutil.cpp
call fcn.00403858
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x440b22
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x58]
push 0x44
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0042f8b0
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x440b54
mov eax, 0x44b534
push eax
push dword [ebp + 8]
lea eax, [ebp - 4]
push str.__ls___ls
push eax
call fcn.00401f9d
mov esi, eax
add esp, 0x10
test esi, esi
js 0x440bd7
mov cx, word [ebp + 0x10]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x58], 0x44
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 4]
mov word [ebp - 0x28], cx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x440bcc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x440bb3
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x440bba
mov esi, 0x80004005
push esi
push 0x9e
push str.procutil.cpp
call fcn.00403858
jmp 0x440bd7
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x14], ebx
mov dword [eax], ecx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], ebx
je 0x440bea
push dword [ebp - 0x10]
call edi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x14], ebx
je 0x440bf7
push dword [ebp - 0x14]
call edi
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 4], ebx
je 0x440c04
push dword [ebp - 4]
call fcn.004026e8
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x443c2f
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x46a008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x14]
xor ebx, ebx
mov word [ebp - 8], 0x500
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
call fcn.00443dc1
cmp dword [ebp - 0x14], ebx
je 0x443c6b
mov dword [esi], 1
jmp 0x443c9f
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [esi], eax
test eax, eax
je 0x443c9f
push esi
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x443c9f
mov dword [esi], ebx
cmp dword [ebp - 0x10], 0
pop esi
pop ebx
je 0x443caf
push dword [ebp - 0x10]
call fcn.004026e8
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0042dfc6
mov esp, ebp
pop ebp
ret 4
Function at 0x443cc1
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x46a008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x120]
push edi
mov edi, dword [ebp + 0xc]
mov ebx, 0x11c
push ebx
push 0
push eax
call fcn.0042f8b0
mov eax, dword [0x46b6d4]
add esp, 0xc
test eax, eax
jne 0x443da5
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
movzx ecx, word [ebp - 0xc]
movzx eax, word [ebp - 0xa]
shl ecx, 0x10
or ecx, eax
cmp dword [ebp - 0x11c], 4
mov dword [0x46b6d8], ecx
jne 0x443d35
xor eax, eax
inc eax
jmp 0x443da0
cmp dword [ebp - 0x11c], 5
jne 0x443d66
mov ecx, dword [ebp - 0x118]
test ecx, ecx
jne 0x443d4c
push 2
jmp 0x443d9f
cmp ecx, 1
jne 0x443d55
push 3
jmp 0x443d9f
xor eax, eax
cmp ecx, 2
setne al
dec eax
and eax, 0xfffffffb
add eax, 9
jmp 0x443da0
cmp dword [ebp - 0x11c], 6
jne 0x443d9d
cmp dword [ebp - 0x118], 0
jne 0x443d86
xor eax, eax
cmp byte [ebp - 6], 1
setne al
add eax, 5
jmp 0x443da0
cmp dword [ebp - 0x118], 1
jne 0x443d9d
xor eax, eax
cmp byte [ebp - 6], 1
setne al
add eax, 7
jmp 0x443da0
push 9
pop eax
mov dword [0x46b6d4], eax
mov ecx, dword [ebp - 4]
mov dword [esi], eax
xor ecx, ebp
mov eax, dword [0x46b6d8]
mov dword [edi], eax
pop edi
pop esi
pop ebx
call fcn.0042dfc6
mov esp, ebp
pop ebp
ret 8
Function at 0x44408a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.0044a1d0
mov eax, dword [0x46a008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
xor esi, esi
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
xor ecx, ecx
mov dword [ebp - 0x1018], eax
mov dword [ebp - 0x1010], ecx
cmp dword [ebp + 0x10], 0
jne 0x4440d8
cmp dword [ebp + 0x14], 0
jne 0x4440d8
mov eax, 0x1000
jmp 0x444103
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
sub eax, edi
sbb edx, ecx
test edx, edx
jb 0x4440fd
ja 0x4440ef
cmp eax, 0x1000
jbe 0x4440fd
and dword [ebp - 0x1008], 0
mov eax, 0x1000
jmp 0x444103
mov dword [ebp - 0x1008], edx
push 0
lea ecx, [ebp - 0x1008]
mov dword [ebp - 0x1008], eax
push ecx
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp - 0x1014]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x444183
mov eax, dword [ebp - 0x1008]
test eax, eax
je 0x444153
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp - 0x1018]
call fcn.00444fe7
mov esi, eax
test esi, esi
js 0x4441b1
mov eax, dword [ebp - 0x1008]
mov ecx, dword [ebp - 0x1010]
add edi, eax
adc ecx, 0
mov dword [ebp - 0x1010], ecx
cmp ecx, dword [ebp + 0x14]
ja 0x444178
jb 0x444170
cmp edi, dword [ebp + 0x10]
jae 0x444178
test eax, eax
jne 0x4440c5
test ebx, ebx
je 0x4441b1
mov dword [ebx], edi
mov dword [ebx + 4], ecx
jmp 0x4441b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x44419a
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4441a1
mov esi, 0x80004005
push esi
push 0x40f
push str.fileutil.cpp
call fcn.00403858
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042dfc6
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4441c6
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
xor eax, eax
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
test ebx, ebx
sete al
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4442a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x44420c
cmp eax, 0x50
je 0x444204
cmp eax, 0xb7
jne 0x44420c
xor esi, esi
inc esi
jmp 0x4442a6
cmp eax, 3
jne 0x444295
movzx ecx, word [edi]
mov ebx, esi
mov eax, edi
test cx, cx
je 0x44428e
push 0x5c
pop edx
cmp cx, dx
jne 0x44422b
mov ebx, eax
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x444224
test ebx, ebx
je 0x44428e
push esi
xor eax, eax
push edi
mov word [ebx], ax
call fcn.004040a1
mov esi, eax
push 0x5c
pop eax
mov word [ebx], ax
test esi, esi
js 0x4442a6
push dword [ebp + 0x10]
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4442a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x44427a
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x4442a6
push esi
push 0x454
push str.fileutil.cpp
call fcn.00403858
jmp 0x4442a6
mov esi, 0x80070003
jmp 0x4442a6
test eax, eax
jg 0x44429d
mov esi, eax
jmp 0x4442a6
movzx esi, ax
or esi, 0x80070000
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x444300
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 4]
push esi
push eax
push dword [ebp + 8]
xor esi, esi
call fcn.004445ed
test eax, eax
je 0x444389
test byte [ebp - 4], 7
push ebx
mov ebx, 0x80070000
je 0x444356
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x444356
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x44434c
movzx esi, si
or esi, ebx
test esi, esi
jns 0x444356
push esi
push 0x5c4
jmp 0x44437e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x444388
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x444376
movzx esi, si
or esi, ebx
test esi, esi
jns 0x444388
push esi
push 0x5ca
push str.fileutil.cpp
call fcn.00403858
pop ebx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x444392
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
push esi
xor esi, esi
cmp dword [ebp + 0x10], ebx
setne bl
cmp dword [ebp + 0x14], esi
je 0x4443a9
or ebx, 2
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4444a1
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp dword [ebp + 0x10], esi
jne 0x4443e1
cmp edi, 0x50
je 0x4443d9
cmp edi, 0xb7
jne 0x4443e1
xor esi, esi
inc esi
jmp 0x4444a0
cmp edi, 2
jne 0x4443fa
push esi
push dword [ebp + 8]
call fcn.004445ed
test eax, eax
je 0x444497
push 3
pop edi
cmp edi, 3
jne 0x44448f
mov edi, dword [ebp + 0xc]
mov ecx, esi
mov eax, edi
movzx edx, word [edi]
test dx, dx
je 0x444488
mov dword [ebp + 0xc], 0x5c
cmp dx, word [ebp + 0xc]
jne 0x444421
mov ecx, eax
add eax, 2
movzx edx, word [eax]
test dx, dx
jne 0x444419
mov dword [ebp + 0x10], ecx
test ecx, ecx
je 0x444488
push esi
xor eax, eax
push edi
mov word [ecx], ax
call fcn.004040a1
mov ecx, dword [ebp + 0xc]
mov esi, eax
mov eax, dword [ebp + 0x10]
mov word [eax], cx
test esi, esi
js 0x4444a0
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4444a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x444474
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x4444a0
push esi
push 0x4d4
push str.fileutil.cpp
call fcn.00403858
jmp 0x4444a0
mov esi, 0x80070003
jmp 0x4444a0
test edi, edi
jg 0x444497
mov esi, edi
jmp 0x4444a0
movzx esi, di
or esi, 0x80070000
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x444c19
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor eax, eax
push esi
push edi
mov esi, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x444c74
call ebx
mov esi, eax
test esi, esi
jle 0x444c5d
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x444c74
push esi
push 0x115
push str.fileutil.cpp
call fcn.00403858
jmp 0x444d18
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
jne 0x444c90
mov esi, 0x8007000e
push esi
push 0x119
jmp 0x444c65
push edi
push dword [ebp - 0xc]
push dword [ebp - 4]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x444cca
call ebx
mov esi, eax
test esi, esi
jle 0x444cb6
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x444cca
push esi
push 0x11d
push str.fileutil.cpp
call fcn.00403858
jmp 0x444d11
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x44b7a0
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x444cfe
call ebx
mov esi, eax
test esi, esi
jle 0x444cf4
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x444cfe
push esi
push 0x122
jmp 0x444cbe
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [edx + 8]
mov dword [eax], ecx
mov ecx, dword [ebp + 0x10]
mov edx, dword [edx + 0xc]
mov dword [ecx], edx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x444fe7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
and dword [ebp - 4], esi
push edi
xor edi, edi
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x10]
sub eax, edi
push eax
lea eax, [edi + ebx]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x44502e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x44502c
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x445038
add edi, dword [ebp - 4]
cmp edi, dword [ebp + 0x10]
jb 0x444ff8
jmp 0x445048
push esi
push 0x3ef
push str.fileutil.cpp
call fcn.00403858
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x445f52
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0x14]
xor eax, eax
push esi
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
push dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push str._ls.R
push edi
call fcn.00401f9d
mov esi, eax
add esp, 0xc
test esi, esi
js 0x44605e
push 0
push 0x80
push 4
push 0
push 4
push 0xc0000000
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x445fdc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x445fc0
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x445fc7
mov esi, 0x80004005
push esi
push 0xc1
push str.dlutil.cpp
call fcn.00403858
jmp 0x44605e
mov ecx, dword [ebp - 4]
push 0
lea eax, [ebp - 8]
push eax
push 8
pop eax
sub eax, ecx
push eax
lea eax, [ecx + ebx]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x446024
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 8]
cmp dword [ebp - 8], 0
mov dword [ebp - 4], ecx
je 0x44600e
cmp ecx, 8
jb 0x445fdf
cmp ecx, 8
je 0x44601a
and dword [ebx], 0
and dword [ebx + 4], 0
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
or edi, 0xffffffff
jmp 0x446052
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x44603b
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x446042
mov esi, 0x80004005
push esi
push 0xc8
push str.dlutil.cpp
call fcn.00403858
cmp edi, 0xffffffff
je 0x44605e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4464ed
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push esi
push edi
mov edi, dword [ebp + 0x10]
push 0
push 0
push dword [edi + 4]
push dword [edi]
push dword [ebp + 0xc]
call fcn.00444aba
mov esi, eax
test esi, esi
js 0x446643
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x446614
cmp dword [ebp - 4], 0
je 0x446642
xor ebx, ebx
and dword [ebp + 0x10], ebx
push 0
lea eax, [ebp + 0x10]
push eax
mov eax, dword [ebp - 4]
sub eax, ebx
push eax
mov eax, dword [ebp + 0x20]
add eax, ebx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4465ee
add ebx, dword [ebp + 0x10]
cmp dword [ebp + 0x10], 0
je 0x446572
cmp ebx, dword [ebp - 4]
jb 0x446541
add dword [edi], ebx
push 0
pop eax
adc dword [edi + 4], eax
cmp dword [ebp + 0x14], 0xffffffff
je 0x4465bc
push eax
push eax
push eax
push eax
push dword [ebp + 0x14]
mov ebx, eax
mov dword [ebp - 8], eax
call fcn.00444aba
test eax, eax
js 0x4465bc
push 0
lea eax, [ebp - 8]
push eax
push 8
pop eax
sub eax, ebx
push eax
lea eax, [edi + ebx*8]
push eax
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
add ebx, dword [ebp - 8]
cmp dword [ebp - 8], 0
je 0x4465bc
cmp ebx, 8
jb 0x446595
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x4465e2
cmp dword [eax], 0
je 0x4465e2
push dword [ebp + 0xc]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [edi + 4]
push dword [edi]
push eax
call fcn.00445e2e
mov esi, eax
test esi, esi
js 0x446642
cmp dword [ebp - 4], 0
jne 0x446517
jmp 0x446642
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x446605
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x44660c
mov esi, 0x80004005
push esi
push 0x1a6
jmp 0x446638
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x44662b
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x446632
mov esi, 0x80004005
push esi
push 0x19a
push str.dlutil.cpp
call fcn.00403858
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x24
Function at 0x44664d
Capabilities:
Create http request
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
or dword [ebp - 0xc], 0xffffffff
xor eax, eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push eax
push dword [ebx]
mov dword [ebp - 8], eax
mov edi, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 8]
push eax
call fcn.0040221f
mov esi, eax
test esi, esi
js 0x4467b5
xor eax, eax
push eax
push eax
push eax
push eax
push str.Burn
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
test edi, edi
jne 0x4466dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4466c0
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4466c7
mov esi, 0x80004005
push esi
push 0x84
push str.dlutil.cpp
call fcn.00403858
jmp 0x4467b5
lea eax, [ebp - 4]
push eax
push 0x78
push str.DownloadTimeout
push str.WiXBurn
call fcn.0044599e
mov eax, dword [ebp - 4]
test eax, eax
je 0x446728
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
imul eax, eax, 0x3e8
push 4
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 2
push edi
call esi
push 4
lea eax, [ebp - 4]
push eax
push 6
push edi
call esi
push 4
lea eax, [ebp - 4]
push eax
push 5
push edi
call esi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0x1c]
lea eax, [ebp - 8]
push dword [ebx + 8]
push dword [ebx + 4]
push eax
push edi
call fcn.00445ea7
mov esi, eax
test esi, esi
js 0x4467b5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x14]
call fcn.00445f52
push dword [ebp + 0x1c]
lea eax, [ebp - 8]
push dword [ebp + 0x18]
push dword [ebp - 0xc]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 0x14]
push dword [ebx + 8]
push dword [ebx + 4]
push eax
push edi
call fcn.00445c02
mov esi, eax
test esi, esi
js 0x4467a6
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4467a6
xor ecx, ecx
cmp word [eax], cx
je 0x4467a6
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0xc], 0xffffffff
je 0x4467b5
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4467c2
push eax
call fcn.004026e8
test edi, edi
je 0x4467cd
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 8], 0
je 0x4467db
push dword [ebp - 8]
call fcn.004026e8
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x448b99
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
mov dword [ebp - 4], 4
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0x20000005
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x448beb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x448bda
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x448beb
push esi
push 0x18
push str.inetutil.cpp
call fcn.00403858
jmp 0x448bf7
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
and dword [edx + 4], 0
mov dword [edx], ecx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8