joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407860
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
mov esi, ecx
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
jne 0x4078aa
test edi, edi
je 0x4078aa
cmp byte [ebp + 0x18], 0
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [esi + 4]
jne 0x4078b5
push 0
push 0
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x4078c6
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push 2
push 0
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x4078aa
mov ecx, dword [esi + 4]
push 0
lea eax, [esp + 0x10]
push eax
push edi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
pop edi
test eax, eax
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret 0x14

Function at 0x4078f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
mov esi, ecx
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x407934
test edi, edi
je 0x407934
cmp byte [ebp + 0x10], al
je 0x40793f
push 2
xor ecx, ecx
push ecx
push ecx
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x407967
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp byte [ebp + 0x1c], 0
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
mov eax, dword [esi + 4]
jne 0x407956
push 0
push 0
push ecx
push edx
jmp 0x407929
push 2
push 0
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x407934
mov edx, dword [esi + 4]
push 0
lea ecx, [esp + 0x10]
push ecx
push edi
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
test eax, eax
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x409c40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x409c64
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
test al, 0x10
mov esi, dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
je 0x409ca2
lea eax, [esp + 8]
push eax
push str.S_1_1_0
mov dword [esp + 0x10], 0
call sub.ADVAPI32.dll_ConvertStringSidToSidW
mov ecx, dword [esp + 8]
push 0
push 0
push 0
push ecx
push 1
push 1
push edi
call esi
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
push 3
push 1
push 0x10000000
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
push str.Everyone
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_BuildExplicitAccessWithNameW]
lea ecx, [esp + 0xc]
push ecx
push 0
lea edx, [esp + 0x18]
push edx
push 1
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
jne 0x409c5a
push eax
mov eax, dword [esp + 0x10]
push eax
push 0
push 0
push 4
push 1
push edi
call esi
test eax, eax
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x40a1e0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x427040]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
push 0x206
lea eax, [esp + 0xa]
push 0
push eax
mov word [esp + 0x10], 0
call fcn.00413e90
xor ecx, ecx
add esp, 0xc
test edi, edi
setne cl
mov esi, ecx
test esi, esi
jne 0x40a23f
push 0x29
call fcn.0040a100
add esp, 4
mov eax, esi
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0041288d
add esp, 0x20c
ret
lea edx, [esp + 4]
push edx
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [esp + 4]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a260
sub eax, edx
xor ecx, ecx
sar eax, 1
cmp eax, 0x104
setl cl
mov esi, ecx
test esi, esi
jne 0x40a2a1
push 0x2d
call fcn.0040a100
add esp, 4
mov eax, esi
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0041288d
add esp, 0x20c
ret
lea eax, [esp + 4]
mov edx, edi
mov ecx, eax
sub edx, ecx
jmp 0x40a2b0
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40a2b0
mov ecx, dword [esp + 0x20c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0041288d
add esp, 0x20c
ret
Function at 0x40a420
Capabilities:
Check if file exists
Get file attributes
Get hostname
Read .ini file

Disassembly:
sub esp, 0x230
mov eax, dword [0x427040]
xor eax, esp
mov dword [esp + 0x22c], eax
push esi
push edi
push 0x206
lea eax, [esp + 0x32]
push 0
push eax
mov word [esp + 0x38], 0
call fcn.00413e90
xor eax, eax
add esp, 0xc
lea edi, [esp + 0x2c]
mov word [esp + 0xc], 0
mov dword [esp + 0xe], eax
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 word [esp + 0x2a], ax
mov dword [esp + 8], 0xf
call fcn.0040a1e0
mov esi, eax
test esi, esi
jne 0x40a49e
push 0x54
call fcn.0040a100
add esp, 4
jmp 0x40a50a
push str.AomeiBRcomn.ini
lea ecx, [esp + 0x30]
push 0x104
push ecx
call fcn.004137f9
add esp, 0xc
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov esi, ecx
test esi, esi
jne 0x40a4da
push 0x5a
call fcn.0040a100
add esp, 4
jmp 0x40a50a
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea ecx, [esp + 0x2c]
push ecx
push 0x100
push ebx
lea edx, [esp + 0x18]
push edx
push str.MARK
push str.COMN
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [esp + 0x234]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.0041288d
add esp, 0x230
ret

Function at 0x40a530
Capabilities:
Get file version info

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0xc]
test ebp, ebp
jne 0x40a544
mov eax, 0x422d4b
pop ebp
pop ecx
ret 4
mov eax, 1
test byte [0x4292bc], al
jne 0x40a57f
or dword [0x4292bc], eax
push 0x420940
mov dword [0x4292b8], 0xf
mov dword [0x4292b4], 0
mov byte [0x4292a4], 0
call fcn.004133c1
add esp, 4
push edi
push 0
push ebp
mov dword [esp + 0x18], 0x34
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
je 0x40a637
push esi
jmp 0x40a5a0
push edi
call fcn.004127a5
mov esi, eax
add esp, 4
test esi, esi
je 0x40a5a0
push esi
push edi
push 0
push ebp
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40a611
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0x4231f4
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40a611
mov eax, dword [esp + 0xc]
movzx ecx, word [eax + 0x16]
test cx, cx
movzx edx, word [eax + 0x10]
movzx eax, word [eax + 0x12]
jne 0x40a5fd
push edx
push eax
push str._d._d
push esi
call fcn.0041377e
add esp, 0x10
jmp 0x40a611
movzx ecx, cx
push ecx
push edx
push eax
push str._d._d._d
push esi
call fcn.0041377e
add esp, 0x14
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40a616
sub eax, edx
push eax
push esi
mov ecx, 0x4292a0
call fcn.00401af0
push esi
call fcn.004127aa
add esp, 4
pop esi
cmp dword [0x4292b8], 0x10
mov eax, dword [0x4292a4]
pop edi
jae 0x40a64b
mov eax, 0x4292a4
pop ebp
pop ecx
ret 4
Function at 0x40af80
Capabilities:
Acquire debug privileges

Disassembly:
push 0xffffffffffffffff
push 0x41ffee
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x427040]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x2c]
mov dword [ebx], vtable.RegistryControl.0
xor edi, edi
mov ebp, 7
mov dword [ebx + 0x228], ebp
mov dword [ebx + 0x224], edi
mov word [ebx + 0x214], di
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x34], esp
mov dword [esp + 0x40], edi
push 0x10
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], edi
push str.SeDebugPrivilege
mov word [esi + 4], di
call fcn.004053a0
call fcn.0040d570
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x34], esp
push 0x10
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], edi
push 0x4232c0
mov word [esi + 4], di
call fcn.004053a0
call fcn.0040d570
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x34], esp
push 0x13
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], edi
push str.SeSecurityPrivilege
mov word [esi + 4], di
call fcn.004053a0
call fcn.0040d570
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x34], esp
push 0x18
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], edi
push str.SeTakeOwnershipPrivilege
mov word [esi + 4], di
call fcn.004053a0
call fcn.0040d570
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x34], esp
push 0x17
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], edi
push str.SeManageVolumePrivilege
mov word [esi + 4], di
call fcn.004053a0
call fcn.0040d570
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x34], esp
push 0x12
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], edi
push str.SeRestorePrivilege
mov word [esi + 4], di
call fcn.004053a0
call fcn.0040d570
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x34], esp
push 0x11
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], edi
push str.SeBackupPrivilege
mov word [esi + 4], di
call fcn.004053a0
call fcn.0040d570
sub esp, 0x1c
mov dword [esp + 0x34], esp
mov esi, esp
push 0x15
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], edi
push str.SeLoadDriverPrivilege
mov word [esi + 4], di
call fcn.004053a0
call fcn.0040d570
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x34], esp
push 0x1c
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], edi
push str.SeSystemEnvironmentPrivilege
mov word [esi + 4], di
call fcn.004053a0
call fcn.0040d570
mov eax, ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
Function at 0x40b4d0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41ffc0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x427040]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
cmp byte [ebp + 0xc], 0
je 0x40b663
xor edi, edi
mov dword [esp + 0x18], vtable.MemoryControl.0
mov dword [esp + 0x1c], edi
mov dword [esp + 0x40], edi
mov eax, dword [esi]
mov edx, dword [eax + 0x20]
lea ecx, [esp + 0x10]
push ecx
push edi
mov ecx, esi
mov dword [esp + 0x18], edi
call edx
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
call fcn.0040a6a0
mov ebx, eax
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x40b558
mov ecx, dword [esp + 0x20]
push ecx
push edi
push eax
call fcn.00413e90
add esp, 0xc
mov edx, dword [esi]
mov edx, dword [edx + 0x20]
lea eax, [esp + 0x10]
push eax
push ebx
mov ecx, esi
call edx
test al, al
jne 0x40b593
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x40b57c
push eax
call fcn.004133d3
add esp, 4
xor al, al
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov byte [esp + 0x40], 1
mov eax, dword [esp + 0x10]
push eax
lea edx, [esp + 0x28]
mov ecx, ebx
call fcn.00405e00
add esp, 4
xor ebx, ebx
lea esp, [esp]
mov esi, dword [esp + 0x28]
test esi, esi
je 0x40b62d
mov ecx, dword [esp + 0x2c]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x40b60d
cmp dword [ebx + esi + 0x18], 8
jb 0x40b5f2
mov esi, dword [ebx + esi + 4]
jmp 0x40b5f6
lea esi, [ebx + esi + 4]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 4]
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
add edi, 1
add ebx, 0x1c
jmp 0x40b5c0
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x2c]
push eax
mov eax, esi
call fcn.00406eb0
mov ecx, dword [esp + 0x2c]
add esp, 4
push ecx
call fcn.004127aa
add esp, 4
mov eax, dword [esp + 0x1c]
xor ecx, ecx
cmp eax, ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ecx
je 0x40b64c
push eax
call fcn.004133d3
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp + 8]
mov eax, dword [esi + 4]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x40b64c
cmp eax, 2
je 0x40b64c
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40db30
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 0x40db47
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40db78
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x40db74
cmp esi, eax
jae 0x40db78
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x40db64
cmp esi, eax
jb 0x40db7e
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 0x40e110
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x41f9d8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x427040]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov eax, dword [0x4281ac]
mov edx, dword [eax + 0xc]
mov ecx, 0x4281ac
call edx
add eax, 0x10
mov dword [esp + 0xc], eax
lea esi, [esp + 0xc]
mov dword [esp + 0x18], 0
call fcn.0040dd90
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 0x40e17f
mov ecx, 0x104
mov eax, edi
call fcn.00410ba0
mov eax, dword [edi]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, dword [edi]
test ecx, ecx
jne 0x40e197
xor eax, eax
jmp 0x40e1b5
mov eax, ecx
lea esi, [eax + 2]
lea esp, [esp]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40e1a0
sub eax, esi
sar eax, 1
js 0x40e25a
cmp eax, dword [ecx - 8]
jg 0x40e25a
push 9
mov dword [ecx - 0xc], eax
mov ecx, dword [edi]
push str.AOMEILogs
push edi
mov word [ecx + eax*2], 0
call fcn.004106b0
push 1
push 0x423050
push edi
call fcn.004106b0
mov esi, dword [esp + 0xc]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
test eax, eax
jne 0x40e1f6
xor ecx, ecx
jmp 0x40e20f
mov ecx, eax
lea ebx, [ecx + 2]
jmp 0x40e200
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x40e200
sub ecx, ebx
sar ecx, 1
push ecx
push eax
push edi
call fcn.004106b0
push 4
push str..log
push edi
call fcn.004106b0
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 0x40e248
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.0040a730
int3

Function at 0x40e270
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 [0x428e0c], eax
je 0x40e2b2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x40000
jbe 0x40e2ce
mov eax, dword [0x428e0c]
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 [0x428e0c], eax
pop edi
ret
mov ecx, dword [0x428e0c]
push 2
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
pop edi
ret
Function at 0x40e2f0
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x41fd10
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
mov eax, dword [0x427040]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
lea eax, [esp + 0x10]
xor ebx, ebx
or ebp, 0xffffffff
push eax
mov ecx, edi
mov byte [0x428e14], bl
mov byte [0x428e15], bl
mov dword [0x428e10], ebp
call fcn.00410320
lea esi, [esp + 0x10]
mov dword [esp + 0x20], ebx
call fcn.0040dce0
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x40e361
mov edx, dword [esp + 0x10]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, edi
call fcn.0040e270
mov eax, dword [0x4281ac]
mov edx, dword [eax + 0xc]
mov ecx, 0x4281ac
mov dword [0x428e30], 0x42353c
mov dword [0x428e34], 0x42354c
mov dword [0x428e38], 0x423564
mov word [0x428e3c], 2
mov word [0x428e3e], 6
mov word [0x428e40], 4
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
lea esi, [esp + 0x14]
mov byte [esp + 0x20], 1
call fcn.0040dd90
push 9
push str..show_log
mov eax, esi
push eax
call fcn.004106b0
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40e3ea
mov byte [0x428e14], 1
lea eax, [esi - 0x10]
mov byte [esp + 0x20], bl
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e409
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x20], ebp
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x40e42a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x40e480
Capabilities:
Create thread

Disassembly:
cmp byte [esi + 9], 0
push ebp
mov ebp, dword [esp + 8]
jne 0x40e4d2
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 0x40e440
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov byte [esi + 9], 1
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x40e566
movzx ecx, word [esi + ebp*2 + 0x30]
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
push ecx
push eax
mov dword [esp + 0x18], 0
call edi
mov eax, dword [esi + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteConsoleW]
push 0
lea edx, [esp + 0x14]
push edx
push 3
push 0x42358c
push eax
call ebx
movzx ecx, word [esi + ebp*2 + 0x30]
mov edx, dword [esi + 4]
or ecx, 8
push ecx
push edx
call edi
mov ecx, dword [esp + 0x14]
push 0
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esi + 4]
push edx
push eax
call ebx
movzx ecx, word [esi + ebp*2 + 0x30]
mov edx, dword [esi + 4]
push ecx
push edx
call edi
mov edi, dword [esp + 0x18]
push 0
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esi + 4]
push eax
push edi
push ecx
call ebx
pop edi
pop ebx
pop ebp
ret 0xc
Function at 0x40e7b0
Capabilities:
Access peb ldr_data
Initialize winhttp library

Disassembly:
push 0xffffffffffffffff
push 0x420586
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x427040]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
xor ebx, ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov eax, dword [0x4281ac]
mov edx, dword [eax + 0xc]
mov ecx, 0x4281ac
call edx
add eax, 0x10
mov dword [esi + 0x14], eax
mov dword [esp + 0x1c], ebx
call fcn.00411710
mov dword [esi + 0x1c], eax
mov cl, 1
mov byte [eax + 0x19], cl
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
mov byte [esp + 0x1c], cl
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]
cmp eax, ebx
mov dword [esi], eax
jne 0x40e882
push str.Failed_to_initialize_WinINet
push 2
push 0x9d
push str.CHttpUtil::CHttpUtil
call fcn.00411890
mov ecx, eax
call fcn.0040dee0
add esp, 0x10
mov ecx, dword [esi]
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
push 4
lea eax, [esp + 0x28]
push eax
push 3
mov ebx, 0x36ee80
push ecx
mov dword [esp + 0x34], ebx
call edi
mov eax, dword [esi]
push 4
lea edx, [esp + 0x28]
push edx
push 5
push eax
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esi]
push 4
lea ecx, [esp + 0x28]
push ecx
push 6
push edx
mov dword [esp + 0x34], ebx
call edi
mov ecx, dword [esi]
push 4
lea eax, [esp + 0x28]
push eax
push 6
push ecx
mov dword [esp + 0x34], ebx
call edi
mov eax, dword [esi]
push 4
lea edx, [esp + 0x28]
push edx
push 4
push eax
mov dword [esp + 0x34], 2
call edi
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4