joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4defb0
Capabilities:
Get file version info

Disassembly:
push 0x21c
mov eax, 0x5a8b58
call fcn.00576e00
mov dword [ebp - 0x21c], edx
mov esi, ecx
and dword [ebp - 4], 0
cmp dword [esi + 0x10], 0
je 0x4df01c
cmp dword [esi + 0x14], 8
jb 0x4defdb
mov eax, dword [esi]
jmp 0x4defdd
mov eax, esi
lea ecx, [ebp - 0x220]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
je 0x4df01c
push ebx
call fcn.0055b3bf
mov edi, eax
pop ecx
test edi, edi
je 0x4df01c
cmp dword [esi + 0x14], 8
jb 0x4df006
mov esi, dword [esi]
push edi
push ebx
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x4df036
push edi
call fcn.00571d79
pop ecx
xor bl, bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
push 0
push 1
call fcn.0047997f
mov al, bl
call fcn.00576daf
ret
and dword [ebp - 0x218], 0
lea eax, [ebp - 0x228]
mov esi, dword [sym.imp.VERSION.dll_VerQueryValueW]
push eax
lea eax, [ebp - 0x218]
push eax
push 0x64f85c
push edi
call esi
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00572db0
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
mov ecx, dword [ebp - 0x218]
cmovae eax, dword [ebp + 8]
push eax
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
lea eax, [ebp - 0x210]
push 0x64f8b4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
and dword [ebp - 0x214], 0
lea eax, [ebp - 0x224]
add esp, 0x20
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
push edi
call esi
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
je 0x4df0ec
mov esi, dword [ebp - 0x214]
test esi, esi
je 0x4df0ec
push esi
call fcn.004752da
pop ecx
mov ecx, dword [ebp - 0x21c]
push eax
push esi
call fcn.0047989e
push edi
call fcn.00571d79
pop ecx
jmp 0x4df01e

Function at 0x4df0f8
Capabilities:
Get common file path
Get program files directory
Get startup folder

Disassembly:
push 0x214
mov eax, 0x59fb54
call fcn.00576e00
mov esi, ecx
xor ecx, ecx
mov dword [ebp - 4], ecx
xor eax, eax
mov dword [ebp - 0x21c], ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ecx
mov dword [ebp - 0x220], esi
mov word [esi], ax
mov dword [ebp - 4], ecx
lea eax, [ebp - 0x218]
push eax
push ecx
push ecx
push 0x26
push ecx
mov dword [ebp - 0x21c], 1
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x4df168
lea eax, [ebp - 0x218]
push eax
call fcn.004752da
pop ecx
push eax
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.0047989e
mov eax, esi
call fcn.00576daf
ret
Function at 0x4dfc65
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
mov ebx, ecx
lea ecx, [ebp - 8]
push edi
push ecx
lea eax, [ebx + 0x28]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov edi, eax
test edi, edi
je 0x4dfd85
push esi
lea esi, [edi + 1]
push esi
call fcn.0055b3bf
push esi
push 0
push eax
mov dword [ebx], eax
call fcn.00572db0
add esp, 0x10
lea eax, [ebx + 0x28]
push dword [ebx]
push edi
push dword [ebp - 8]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x4dfd82
and dword [ebp - 4], 0
cmp dword [ebx], 0
je 0x4dfd82
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x64fc18
push dword [ebx]
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x4dfd82
mov esi, dword [ebp - 4]
lea edi, [ebp - 0x40]
push 0xd
pop ecx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x38]
mov eax, ecx
shr eax, 0x10
mov word [ebx + 8], ax
mov word [ebx + 0xa], cx
mov ecx, dword [ebp - 0x34]
mov eax, ecx
shr eax, 0x10
mov word [ebx + 0xc], ax
mov word [ebx + 0xe], cx
mov ecx, dword [ebp - 0x30]
mov eax, ecx
shr eax, 0x10
mov word [ebx + 0x10], ax
mov word [ebx + 0x12], cx
mov ecx, dword [ebp - 0x2c]
mov eax, ecx
shr eax, 0x10
mov word [ebx + 0x14], ax
mov eax, dword [ebp - 0x24]
mov word [ebx + 0x16], cx
mov ecx, ebx
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 0x20]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0x20], eax
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0x24], eax
lea eax, [ebx + 0x230]
push eax
push str.CompanyName
call fcn.004dfd8b
lea eax, [ebx + 0x640]
mov ecx, ebx
push eax
push str.FileDescription
call fcn.004dfd8b
lea eax, [ebx + 0x438]
mov ecx, ebx
push eax
push str.ProductName
call fcn.004dfd8b
xor eax, eax
inc eax
jmp 0x4dfd84
xor eax, eax
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4dfe44
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [0x6a19b8]
cmp esi, 0x1c00
jle 0x4dfe7d
push edi
xor esi, esi
lea eax, [ebp - 4]
push esi
push eax
mov edi, 0x6ab0e8
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [0x6a19b8], esi
pop edi
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [esi + 0x6ab0e8]
push eax
call fcn.005752ea
add esp, 0xc
add dword [0x6a19b8], eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4e0218
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
push ebx
push esi
push edi
lea eax, [esp + 0x34]
mov dword [esp + 0x10], ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [esp + 0x38]
xor edx, edx
mov eax, 0x40000000
xor ebx, ebx
div edi
xor esi, esi
inc ebx
shl eax, 2
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], esi
test eax, eax
je 0x4e02b2
push 0x1c
lea eax, [esp + 0x1c]
push eax
mov eax, esi
imul eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
xor edx, edx
test eax, eax
je 0x4e02a3
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4e02a3
div edi
add esi, eax
cmp dword [esp + 0x28], 0x1000
jne 0x4e02ac
mov edx, dword [esp + 0x1c]
cmp edx, dword [esp + 0xc]
jbe 0x4e02ac
mov ecx, dword [esp + 0x10]
push ebx
mov dword [esp + 0x10], edx
call fcn.004dff16
pop ecx
test al, al
je 0x4e02ac
inc ebx
jmp 0x4e02ac
mov eax, 0x10000
div edi
add esi, eax
cmp esi, dword [esp + 0x14]
jb 0x4e0254
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4e0779
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3bc
mov eax, dword [0x694240]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x398]
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push dword [ebp - 0x394]
lea ecx, [ebp - 0x68]
push dword [ebp - 0x398]
call fcn.004dfe9e
lea eax, [ebp - 0x68]
push eax
push str.Error_occurred_at__s._r_n
push esi
call fcn.004dfe44
push 0x208
lea eax, [ebp - 0x370]
push 0
push eax
call fcn.00572db0
add esp, 0x20
lea eax, [ebp - 0x370]
push 0x206
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4e07ff
push 0x64ff14
lea eax, [ebp - 0x370]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x370]
push eax
push str._s__r_n
push esi
call fcn.004dfe44
add esp, 0xc
lea ecx, [ebp - 0x168]
call fcn.004e02b9
test eax, eax
je 0x4e083a
lea eax, [ebp - 0x168]
push eax
push str.Operating_system:___s_r_n
push esi
call fcn.004dfe44
add esp, 0xc
jmp 0x4e0847
push str.Operating_system:__Could_not_Determine_r_n
push esi
call fcn.004dfe44
pop ecx
pop ecx
lea eax, [ebp - 0x3bc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push dword [ebp - 0x3a4]
push dword [ebp - 0x3a8]
push str._d_processor_s___type__d._r_n
push esi
call fcn.004dfe44
add esp, 0x10
mov dword [ebp - 0x390], 0x20
lea eax, [ebp - 0x390]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
push dword [ebp - 0x38c]
push str._d___memory_in_use._r_n
push esi
call fcn.004dfe44
mov eax, dword [ebp - 0x388]
add eax, 0xfffff
shr eax, 0x14
push eax
push str._d_MBytes_physical_memory._r_n
push esi
call fcn.004dfe44
mov eax, dword [ebp - 0x384]
add eax, 0xfffff
shr eax, 0x14
push eax
push str._d_MBytes_physical_memory_free._r_n
push esi
call fcn.004dfe44
mov eax, dword [ebp - 0x380]
add eax, 0xfffff
shr eax, 0x14
push eax
push str._d_MBytes_paging_file._r_n
push esi
call fcn.004dfe44
mov eax, dword [ebp - 0x37c]
add eax, 0xfffff
shr eax, 0x14
push eax
push str._d_MBytes_paging_file_free._r_n
push esi
call fcn.004dfe44
mov eax, dword [ebp - 0x378]
add eax, 0xfffff
shr eax, 0x14
push eax
push str._d_MBytes_user_address_space._r_n
push esi
call fcn.004dfe44
mov eax, dword [ebp - 0x374]
add esp, 0x48
add eax, 0xfffff
shr eax, 0x14
push eax
push str._d_MBytes_user_address_space_free._r_n
push esi
call fcn.004dfe44
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
pop esi
call fcn.005712ac
mov esp, ebp
pop ebp
ret
Function at 0x4e10c6
Capabilities:
Create process memory minidump
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x694240]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x697670], 0
push esi
push edi
push ebx
mov ebx, dword [ebp + 8]
je 0x4e129d
mov eax, dword [ebx]
mov byte [0x697670], 0
mov esi, dword [eax]
call fcn.004e12e4
lea eax, [ebp - 0x31c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x310]
push eax
movzx eax, word [ebp - 0x312]
push eax
movzx eax, word [ebp - 0x314]
push eax
movzx eax, word [ebp - 0x316]
push eax
movzx eax, word [ebp - 0x31a]
push eax
movzx eax, word [ebp - 0x31c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.P_d_T_d_D_04ld__02ld__02ld_T_02ld__02ld__02ld
lea eax, [ebp - 0x208]
push 0x100
push eax
call fcn.005753c9
lea eax, [ebp - 0x208]
push eax
push 0x6aafe0
push str._sCRASH_DUMP__s.dmp
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.005753c9
add esp, 0x40
push 2
pop ecx
cmp eax, ecx
jle 0x4e11a7
mov dl, byte [ebp + ecx - 0x108]
cmp dl, 0x2f
je 0x4e119a
cmp dl, 0x3a
jne 0x4e11a2
mov byte [ebp + ecx - 0x108], 0x5f
inc ecx
cmp ecx, eax
jl 0x4e1189
mov edx, ebx
lea ecx, [ebp - 0x30c]
call fcn.004e0d51
lea eax, [ebp - 0x30c]
mov edi, 0x6a57e0
push eax
lea eax, [ebp - 0x108]
push eax
push esi
push str._n_n_nApplication_Fatal_Error_n_nException_code_is_0x_08X_nCrash_dump_file:__s_nCrash_report_file_:_s_n
push 0x5800
push edi
call fcn.005753c9
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x18
push edi
call esi
push edi
call fcn.0057548a
pop ecx
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
push 0xc0000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4e12b3
call fcn.004acd93
test al, al
mov ecx, 0x71b66
mov esi, 0x61d24
cmovne esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push 0
mov dword [ebp - 0x328], eax
lea eax, [ebp - 0x328]
push eax
push esi
push edi
mov dword [ebp - 0x324], ebx
mov dword [ebp - 0x320], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
mov ebx, dword [sym.imp.dbghelp.dll_MiniDumpWriteDump]
push eax
call ebx
test eax, eax
jne 0x4e1294
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80070057
jne 0x4e1294
push 0
push 0
lea eax, [ebp - 0x328]
push eax
push 4
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call esi
push eax
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4e12dc
mov ecx, dword [ebp - 4]
xor eax, eax
pop ebx
pop edi
xor ecx, ebp
inc eax
pop esi
call fcn.005712ac
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_creating_dump_file__err_d
push 0x5800
mov edi, 0x6a57e0
push edi
call fcn.005753c9
add esp, 0x10
push edi
call esi
push edi
call fcn.0057548a
pop ecx
push 1
call fcn.005756f3
int3
Function at 0x4e27d6
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a91ff
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x694240]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x694240]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov dword [esp + 0x18], edx
mov ebx, ecx
sub esp, 0x18
mov ecx, esp
mov dword [esp + 0x2c], esp
push ebx
call fcn.00480cdf
xor edi, edi
mov dword [esp + 0x70], edi
or dword [esp + 0x70], 0xffffffff
call fcn.004e23ef
push 0x38
mov dword [esp + 0x30], eax
call fcn.00572090
mov esi, eax
add esp, 0x1c
mov dword [esp + 0x24], esi
mov dword [esp + 0x58], 1
push 7
pop ecx
test esi, esi
je 0x4e2876
xor eax, eax
mov dword [esi + 0x14], ecx
mov dword [esi + 0x10], edi
mov word [esi], ax
mov byte [esp + 0x58], 2
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x28], edi
mov word [esi + 0x18], ax
mov byte [esp + 0x58], 1
jmp 0x4e2878
mov esi, edi
or dword [esp + 0x58], 0xffffffff
mov eax, dword [esp + 0x14]
mov dword [esi + 0x34], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], eax
cmp esi, ebx
je 0x4e2899
push 0xffffffffffffffff
push edi
push ebx
mov ecx, esi
call fcn.0047980b
mov eax, dword [esp + 0x18]
lea ecx, [esi + 0x18]
cmp ecx, eax
je 0x4e28ad
push 0xffffffffffffffff
push edi
push eax
call fcn.0047980b
call fcn.004e16fa
sub esp, 0x20
mov dword [esp + 0x3c], 0x4e248a
mov ebx, esp
mov dword [esp + 0x44], esp
lea eax, [esp + 0x3c]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x40], esi
push eax
mov dword [ebx], edi
call fcn.0047f070
pop ecx
test al, al
jne 0x4e28fc
lea ecx, [ebx + 8]
test ecx, ecx
je 0x4e28f0
mov eax, dword [esp + 0x3c]
mov dword [ecx], eax
mov eax, dword [esp + 0x40]
mov dword [ecx + 4], eax
mov eax, 0x666060
or eax, 1
mov dword [ebx], eax
jmp 0x4e28fe
mov dword [ebx], edi
mov dword [esp + 0x78], 5
lea eax, [esp + 0x50]
push eax
call fcn.004e297f
mov byte [esp + 0x78], 6
push 1
mov byte [esp + 0x7c], 7
mov edx, eax
lea ecx, [esp + 0x4c]
call fcn.004dcb25
add esp, 0x24
mov byte [esp + 0x58], 9
lea ecx, [esp + 0x30]
push edi
push 1
call fcn.0047997f
cmp dword [esp + 0x28], 0
jne 0x4e2949
call fcn.004e17dd
jmp 0x4e294d
mov edi, dword [esp + 0x14]
or dword [esp + 0x58], 0xffffffff
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x4e295f
call fcn.004760d0
mov eax, edi
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.005712ac
mov esp, ebp
pop ebp
ret
Function at 0x4e39d3
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0x214
mov eax, 0x59fb54
call fcn.00576e00
mov edi, ecx
xor esi, esi
mov dword [ebp - 4], esi
xor eax, eax
mov dword [ebp - 0x21c], esi
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], esi
mov dword [ebp - 0x220], edi
mov word [edi], ax
mov dword [ebp - 4], esi
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push esi
push eax
mov dword [ebp - 0x21c], 1
call fcn.00572db0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push esi
push esi
push 0x1c
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
lea eax, [ebp - 0x218]
push eax
call fcn.004752da
pop ecx
push eax
lea eax, [ebp - 0x218]
mov ecx, edi
push eax
call fcn.0047989e
test esi, esi
jns 0x4e3a76
mov esi, 0x651a0c
push esi
call fcn.004752da
pop ecx
push eax
push esi
mov ecx, edi
call fcn.0047989e
mov eax, edi
call fcn.00576daf
ret

Function at 0x4e5e75
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x30], 0
je 0x4e5f75
lea edi, [esi + 0x18]
cmp dword [edi + 0x14], 0x10
jb 0x4e5e97
mov ecx, dword [edi]
jmp 0x4e5e99
mov ecx, edi
cmp dword [esi + 0x14], 0x10
jb 0x4e5ea3
mov eax, dword [esi]
jmp 0x4e5ea5
mov eax, esi
mov ebx, dword [ebp + 8]
push ecx
push eax
push 0x65a384
push str.___s_r_nContent_Disposition:_form_data__name__s___filename__s__r_n_r_n
push ebx
call fcn.005720e1
mov ecx, dword [esi + 0x28]
add esp, 0x14
mov esi, dword [esi + 0x10]
add esi, 0x5c
add esi, ecx
cmp dword [edi + 0x14], 0x10
mov dword [ebp - 0x10], esi
jb 0x4e5ed3
mov edi, dword [edi]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
test edi, edi
je 0x4e5faa
cmp edi, 0xffffffff
je 0x4e5faa
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
mov dword [ebp - 0xc], eax
lea eax, [esi + ebx]
xor ebx, ebx
mov dword [ebp - 8], eax
push ebx
push ecx
push 0x400
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4e5f5b
mov esi, dword [ebp - 8]
cmp dword [ebp - 4], 0
jbe 0x4e5f58
cmp ebx, dword [ebp - 0xc]
ja 0x4e5f58
add ebx, dword [ebp - 4]
lea eax, [ebp - 4]
push 0
push eax
push 0x400
lea eax, [ebx + esi]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4e5f30
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
add esi, ebx
mov ecx, 0xa0d
push edi
mov word [esi + eax], cx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 2
jmp 0x4e5faa
lea eax, [esi + 0x18]
cmp dword [eax + 0x14], 0x10
jb 0x4e5f80
mov eax, dword [eax]
cmp dword [esi + 0x14], 0x10
jb 0x4e5f88
mov ecx, dword [esi]
push eax
push ecx
push 0x65a384
push str.___s_r_nContent_Disposition:_form_data__name__s__r_n_r_n_s_r_n
push dword [ebp + 8]
call fcn.005720e1
mov ecx, dword [esi + 0x28]
add esp, 0x14
mov esi, dword [esi + 0x10]
add esi, 0x51
add esi, ecx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4e71e5
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, ecx
xor ecx, ecx
mov dword [ebp - 4], ecx
cmp dword [ebx + 0x98], ecx
jbe 0x4e726d
mov eax, dword [ebx + 0x94]
push esi
mov esi, dword [eax]
cmp esi, eax
je 0x4e726c
push edi
mov eax, dword [esi + 8]
cmp byte [eax + 0x30], 0
je 0x4e7257
add eax, 0x18
cmp dword [eax + 0x14], 0x10
jb 0x4e721c
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
add eax, 0x1800
push edi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
jmp 0x4e725c
mov eax, 0x2000
mov esi, dword [esi]
add ecx, eax
mov dword [ebp - 4], ecx
cmp esi, dword [ebx + 0x94]
jne 0x4e7208
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4e7ac5
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 0xffffffffffffffff
push 0x5a9fa3
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2018
call fcn.00581640
mov eax, dword [0x694240]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x2020], edi
mov eax, dword [ebp + 8]
mov byte [ebp - 0x2015], 1
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [0x6a19c4], esi
je 0x4e7be9
cmp dword [edi + 4], esi
je 0x4e7be9
push esi
push 0x80
push 2
push esi
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x201c], esi
test ebx, ebx
je 0x4e7bb5
xor eax, eax
mov word [ebp - 0x2014], ax
push 0x1ffe
push esi
lea eax, [ebp - 0x2012]
push eax
call fcn.00572db0
add esp, 0xc
lea eax, [ebp - 0x201c]
push eax
push 0x2000
lea eax, [ebp - 0x2014]
push eax
push dword [edi + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4e7bae
cmp dword [ebp - 0x201c], esi
jbe 0x4e7bae
push esi
lea eax, [ebp - 0x201c]
push eax
push dword [ebp - 0x201c]
lea eax, [ebp - 0x2014]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x4e7b68
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
push dword [edi + 8]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [edi + 8], esi
mov al, byte [ebp - 0x2015]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005712ac
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 0x2024], str.connection_failed
push 0x6914e8
lea eax, [ebp - 0x2024]
push eax
call fcn.00572d44
mov edx, dword [ebp - 0x2020]
lea ecx, [edx + 0xc]
cmp dword [ecx + 0x14], 0x10
jb 0x4e7c15
mov ecx, dword [ecx]
push dword [ebp - 0x2028]
xor esi, esi
push esi
push dword [edx + 0x70]
movzx eax, word [edx + 0x6c]
push eax
push ecx
mov ecx, edx
call fcn.004e619d
push esi
push esi
jmp 0x4e7bff
Function at 0x4ea9c8
Capabilities:
Get common file path

Disassembly:
push 0x244
mov eax, 0x5aa825
call fcn.00576e00
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x250], ebx
call fcn.004db565
test al, al
je 0x4eaa22
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4eaac3
push str.Wow64DisableWow64FsRedirection
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4eaac3
lea ecx, [ebp - 0x250]
push ecx
call eax
test eax, eax
je 0x4eaac3
cmp dword [esi], ebx
jne 0x4eaa3d
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [esi], eax
test eax, eax
je 0x4eaac3
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4eaac3
lea eax, [ebp - 0x24c]
push eax
call fcn.004eab79
mov edi, eax
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x234]
push eax
call fcn.004eaacb
mov byte [ebp - 4], 1
cmp dword [edi + 0x14], 8
jb 0x4eaa7c
mov edi, dword [edi]
cmp dword [eax + 0x14], 8
jb 0x4eaa84
mov eax, dword [eax]
push edi
lea ecx, [ebp - 0x21c]
push ecx
push eax
lea eax, [esi + 8]
push 0x104
push eax
call fcn.005721f6
add esp, 0x14
mov byte [ebp - 4], bl
push ebx
push 1
lea ecx, [ebp - 0x234]
call fcn.0047997f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24c]
push ebx
push 1
call fcn.0047997f
mov bl, 1
mov al, bl
call fcn.00576daf
ret

Function at 0x4eacd2
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x694240]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x4ead18
cmp dword [ebp - 0x24], esi
je 0x4ead13
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4eacea
xor eax, eax
inc eax
jmp 0x4ead1a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.005712ac
mov esp, ebp
pop ebp
ret 8

Function at 0x4eae4c
Capabilities:
Stop service

Disassembly:
push 0x3c
mov eax, 0x5aa88a
call fcn.00576e00
mov edi, ecx
lea eax, [ebp - 0x2c]
xor esi, esi
push eax
call fcn.004eab79
mov dword [ebp - 4], esi
cmp dword [eax + 0x14], 8
jb 0x4eae70
mov eax, dword [eax]
push 0xf01ff
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
or dword [ebp - 4], 0xffffffff
xor eax, eax
lea ecx, [ebp - 0x2c]
push esi
inc eax
push eax
call fcn.0047997f
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
test edi, edi
jne 0x4eaea9
cmp eax, 0x424
jne 0x4eaed9
xor esi, esi
inc esi
jmp 0x4eaed9
lea eax, [ebp - 0x48]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x4eaec3
call ebx
cmp eax, 0x426
jne 0x4eaed2
xor ebx, ebx
inc ebx
push ebx
push edi
call fcn.004eacd2
test eax, eax
cmovne esi, ebx
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
call fcn.00576daf
ret