joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c310
Capabilities:
Read file via mapping

Disassembly:
mov eax, dword [0x413c4c]
push eax
push 0xa
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [0x413c78], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40c3b3
mov eax, dword [0x413b08]
test ah, 0x30
jne 0x40c34d
test ah, 1
je 0x40c352
mov eax, 1
ret
test ah, 1
jne 0x40c37f
test ah, 0x10
mov cl, 8
je 0x40c361
test byte [0x413adc], cl
jne 0x40c37f
cmp byte [0x413bf3], 2
jne 0x40c3d5
movsx edx, word [0x413bf1]
mov eax, dword [0x413afc]
shl edx, 6
test byte [edx + eax + 0x28], cl
je 0x40c3d5
mov ecx, dword [0x413c78]
push 0xa
push 0
push 0
push 6
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, dword [eax]
inc edx
mov ecx, edx
mov dword [eax], edx
cmp ecx, 2
jne 0x40c3ce
push eax
mov dword [eax], 0
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, 1
ret
mov edx, dword [0x413c78]
push 0xa
push 0
push 0
push 6
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [eax], 1
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
xor eax, eax
ret
Function at 0x40c5c0
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ebx
push ebp
mov ebp, ecx
push esi
push edi
or ecx, 0xffffffff
mov byte [ebp], 0
mov edi, dword [0x413e04]
xor eax, eax
xor esi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x10], esi
jne 0x40c5eb
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, eax
mov eax, dword [0x413e04]
push 0x3a
push eax
call fcn.0040dfb0
add esp, 8
test eax, eax
mov eax, dword [0x413e04]
jne 0x40c6f5
mov cl, byte [eax]
cmp cl, 0x5c
jne 0x40c620
cmp byte [eax + 1], cl
je 0x40c6f5
cmp cl, 0x2e
jne 0x40c630
mov cl, byte [eax + 1]
lea ebx, [eax + 1]
cmp cl, 0x5c
je 0x40c65e
push 0x4103ec
push eax
mov ebx, eax
call fcn.0040e170
add esp, 8
test eax, eax
je 0x40c65e
lea ebx, [eax + 2]
push 0x4103ec
push ebx
inc esi
call fcn.0040e170
add esp, 8
test eax, eax
jne 0x40c644
mov dword [esp + 0x10], esi
cmp byte [edi], 0x22
jne 0x40c664
inc edi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
test esi, esi
jl 0x40c6a2
push 0x5c
push ebp
call fcn.0040e220
add esp, 8
test eax, eax
je 0x40c5e3
dec esi
mov byte [eax], 0
jns 0x40c689
cmp byte [ebx], 0x5c
je 0x40c6d1
mov edi, 0x410130
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
jmp 0x40c70f
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + ebp - 1], 0x5c
je 0x40c730
mov byte [ecx + ebp], 0x5c
mov byte [ecx + ebp + 1], 0
mov ecx, dword [0x413c4c]
mov esi, 0x413e18
add ecx, 9
mov eax, 1
dec esi
mov dl, byte [ecx]
mov byte [esi + eax], dl
inc eax
dec ecx
cmp eax, 8
jl 0x40c744
mov byte [eax + 0x413e18], 0
mov edi, 0x413e18
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x40c790
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov eax, dword [0x413e00]
sub esp, 0x104
test eax, eax
push esi
jne 0x40c7ab
xor ax, ax
pop esi
add esp, 0x104
ret
lea ecx, [esp + 4]
call fcn.0040c5c0
test eax, eax
jne 0x40c7c4
mov ax, 1
pop esi
add esp, 0x104
ret
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80000002
push 4
push 0
push 3
lea eax, [esp + 0x18]
push 0xc0000000
push eax
call esi
cmp eax, 0xffffffff
mov dword [0x4103e8], eax
jne 0x40c852
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.0040e1f0
add esp, 4
call fcn.0040e1fa
cdq
mov ecx, 0x1f4
idiv ecx
cmp dx, 0xc8
jae 0x40c816
add edx, 0xc8
and edx, 0xffff
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 4]
push 0
push 0x80000002
push 4
push 0
push 3
push 0xc0000000
push edx
call esi
cmp eax, 0xffffffff
mov dword [0x4103e8], eax
jne 0x40c852
mov ax, 1
pop esi
add esp, 0x104
ret
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 4
je 0x40c872
mov ecx, 1
mov dword [0x413e28], ecx
call fcn.0040c9e0
jmp 0x40c882
mov ecx, 0x413e28
call fcn.0040c9b0
inc dword [0x413e28]
mov eax, dword [0x413e28]
mov ecx, dword [0x413e00]
cmp eax, ecx
ja 0x40c8d7
call fcn.0040c5a0
mov ecx, dword [0x413e28]
call fcn.0040c9e0
mov ecx, dword [0x4103e8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 4]
push 0
push 0x80000002
push 4
push 0
push 3
push 0xc0000000
push edx
call esi
mov dword [0x4103e8], eax
xor ax, ax
pop esi
add esp, 0x104
ret
mov eax, dword [0x4103e8]
cmp eax, 0xffffffff
je 0x40c8e8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x413c78]
push 0xa
push 0
push 0
push 6
push eax
mov dword [0x4103e8], 0xffffffff
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [eax], 0
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ax, 2
pop esi
add esp, 0x104
ret

Function at 0x40c9e0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov edx, dword [0x4103e8]
lea eax, [esp + 4]
shl ecx, 0x12
xor ecx, 0x20202020
push 0
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 8]
push 4
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [0x4103e8]
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
add esp, 8
ret

Function at 0x40ca20
Capabilities:
Delete registry key

Disassembly:
push ecx
push esi
mov esi, ecx
mov ecx, dword [0x413c6c]
lea eax, [esp + 4]
push eax
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x40ca43
mov eax, 1
pop esi
pop ecx
ret
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x413c6c]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
neg eax
sbb eax, eax
pop esi
inc eax
pop ecx
ret
Function at 0x40d1c0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
sub esp, 0x35c
lea eax, [esp + 0x54]
push edi
push 0x104
push eax
mov edi, ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40d27a
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push esi
lea edx, [esp + 0x160]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
lea edx, [esp + 8]
lea eax, [esp + 0x18]
push edx
push eax
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x17c]
push 0
lea edx, [esp + 0x7c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop esi
je 0x40d27a
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
mov dword [0x413e2c], ecx
mov ecx, dword [0x413bf4]
mov dword [0x413e34], eax
mov eax, 1
inc ecx
mov dword [0x413e38], eax
mov dword [0x413bf4], ecx
pop edi
add esp, 0x35c
ret
xor eax, eax
pop edi
add esp, 0x35c
ret

Function at 0x40d450
Capabilities:
Terminate process

Disassembly:
sub esp, 0x10
xor eax, eax
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov edi, 0x41048c
or ecx, 0xffffffff
lea ebp, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x10
mov eax, ecx
mov esi, edi
mov edi, ebp
lea ebp, [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x14]
and ecx, 3
push eax
push ebx
push 0
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x401ef0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x26c
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
mov dword [esp + 4], eax
push str.Maxthon.exe
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], eax
push 0x426c48
push ecx
mov dword [esp + 0x30], 0x44
mov dword [esp + 0x1c], eax
call fcn.0040cf40
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x76]
mov word [esp + 0x74], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x24]
add esp, 0xc
test eax, eax
pop edi
jne 0x401f57
mov eax, 0x41d59c
push eax
lea edx, [esp + 0x68]
push str._s__Uninstall
push edx
call fcn.0041296e
add esp, 0xc
lea eax, [esp]
lea ecx, [esp + 0x20]
lea edx, [esp + 0x64]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x401fb0
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x402001
mov al, byte [ecx - 1]
test al, al
je 0x401ff5
cmp al, 0xff
je 0x401ff5
dec al
mov byte [ecx - 1], al
add esp, 0x26c
ret
mov eax, dword [esp]
push esi
push 0x2710
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 8]
push edx
call esi
mov ecx, dword [esp + 0x18]
pop esi
test ecx, ecx
je 0x402001
mov al, byte [ecx - 1]
test al, al
je 0x401ff5
cmp al, 0xff
je 0x401ff5
dec al
mov byte [ecx - 1], al
add esp, 0x26c
ret
add ecx, 0xfffffffe
push ecx
call fcn.00411f90
add esp, 4
add esp, 0x26c
ret
Function at 0x402010
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x26c
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
mov dword [esp + 4], eax
push str.Maxthon.exe
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], eax
push 0x426c48
push ecx
mov dword [esp + 0x30], 0x44
mov dword [esp + 0x1c], eax
call fcn.0040cf40
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x76]
mov word [esp + 0x74], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x24]
add esp, 0xc
test eax, eax
pop edi
jne 0x402077
mov eax, 0x41d59c
push eax
lea edx, [esp + 0x68]
push str._s__UnSetDefault
push edx
call fcn.0041296e
add esp, 0xc
lea eax, [esp]
lea ecx, [esp + 0x20]
lea edx, [esp + 0x64]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4020d0
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x402121
mov al, byte [ecx - 1]
test al, al
je 0x402115
cmp al, 0xff
je 0x402115
dec al
mov byte [ecx - 1], al
add esp, 0x26c
ret
mov eax, dword [esp]
push esi
push 0x2710
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 8]
push edx
call esi
mov ecx, dword [esp + 0x18]
pop esi
test ecx, ecx
je 0x402121
mov al, byte [ecx - 1]
test al, al
je 0x402115
cmp al, 0xff
je 0x402115
dec al
mov byte [ecx - 1], al
add esp, 0x26c
ret
add ecx, 0xfffffffe
push ecx
call fcn.00411f90
add esp, 4
add esp, 0x26c
ret
Function at 0x402130
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x26c
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
mov dword [esp + 4], eax
push str.Maxthon.exe
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], eax
push 0x426c48
push ecx
mov dword [esp + 0x30], 0x44
mov dword [esp + 0x1c], eax
call fcn.0040cf40
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x76]
mov word [esp + 0x74], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov al, byte [esp + 0x280]
add esp, 0xc
test al, al
mov eax, dword [0x426c4c]
pop edi
je 0x4021b0
test eax, eax
jne 0x4021a3
mov eax, 0x41d59c
push eax
lea edx, [esp + 0x68]
push str._sModulesMxKWSkwsinst.exe__s__u__uc
push edx
jmp 0x4021c4
test eax, eax
jne 0x4021b9
mov eax, 0x41d59c
push eax
lea eax, [esp + 0x68]
push str._sModulesMxKWSkwsinst.exe__renewkws__mchnl_11__schnl_0
push eax
call fcn.0041296e
add esp, 0xc
lea ecx, [esp]
lea edx, [esp + 0x20]
lea eax, [esp + 0x64]
push ecx
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x402212
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x402263
mov al, byte [ecx - 1]
test al, al
je 0x402257
cmp al, 0xff
je 0x402257
dec al
mov byte [ecx - 1], al
add esp, 0x26c
ret
mov ecx, dword [esp]
push esi
push 0x2710
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 8]
push eax
call esi
mov ecx, dword [esp + 0x18]
pop esi
test ecx, ecx
je 0x402263
mov al, byte [ecx - 1]
test al, al
je 0x402257
cmp al, 0xff
je 0x402257
dec al
mov byte [ecx - 1], al
add esp, 0x26c
ret
add ecx, 0xfffffffe
push ecx
call fcn.00411f90
add esp, 4
add esp, 0x26c
ret
Function at 0x402410
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x210
mov eax, dword [0x426c68]
push esi
mov esi, ecx
mov ecx, 3
push 0
mov dword [0x426c0c], ecx
mov dword [esi + 0x30], ecx
push 0x4223d8
mov ecx, esi
mov dword [esi + 0x34], 0x66
mov dword [esi + 0x38], eax
call fcn.00409ed0
mov ecx, dword [esi + 0x454]
test ecx, ecx
je 0x40245e
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0x454], 0
push edi
mov ecx, esi
call fcn.00409600
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [0x426c4c]
test eax, eax
jne 0x40248a
mov eax, 0x41d59c
push eax
lea ecx, [esp + 0x14]
push str._sModulesMxKWSkwsinst.exe
push ecx
call fcn.0041296e
mov eax, dword [esi + 0x45c]
add esp, 0xc
lea edx, [esp + 8]
mov dword [esp + 0xc], 0
push 0
push edx
push 0x40c790
push str.remain_kws
push 0x4221b0
push 0
push eax
mov dword [esp + 0x24], 0x41d5a0
call dword [sym.imp.MxUI.dll_HTMLayoutVisitElements]
mov eax, dword [esp + 0xc]
mov dword [esp + 8], 0x41d5a0
push eax
mov edi, eax
call dword [sym.imp.MxUI.dll_HTMLayout_UseElement]
mov esi, eax
lea ecx, [esp + 0x10]
neg esi
sbb esi, esi
push ecx
not esi
and esi, edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
pop edi
jne 0x402509
push str.none
jmp 0x40250e
push str.block
push str.display
push esi
call dword [sym.imp.MxUI.dll_HTMLayoutSetStyleAttribute]
test esi, esi
je 0x402525
push esi
call dword [sym.imp.MxUI.dll_HTMLayout_UnuseElement]
pop esi
add esp, 0x210
ret
Function at 0x403d40
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x41b46b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2f4
push ebx
push edi
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x2e]
mov word [esp + 0x2c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
mov eax, dword [0x426c4c]
cmp eax, ebx
jne 0x403d8e
mov eax, 0x41d59c
push eax
lea eax, [esp + 0x30]
push str._sSharedAccount
push eax
call fcn.0041296e
lea ecx, [esp + 0x38]
push ecx
call fcn.0040ead0
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x3c]
add esp, 0x10
rep stosd dword es:[edi], eax
mov eax, dword [0x426c4c]
cmp eax, ebx
jne 0x403dc6
mov eax, 0x41d59c
push eax
lea edx, [esp + 0x30]
push str._s_account.ini
push edx
call fcn.0041296e
mov al, byte [esp + 0x17]
lea ecx, [esp + 0x38]
push ecx
mov byte [esp + 0x28], al
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call fcn.0041255c
add esp, 0x10
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x18]
push eax
push edx
call fcn.00409380
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x304], ebx
cmp eax, ebx
jne 0x403e1a
mov eax, 0x41d59c
push esi
push eax
push ebx
push str.COUNT
push str.ACCOUNT
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, 1
mov dword [esp + 0x2c], eax
cmp eax, esi
jl 0x403ef9
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
push esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x1a], eax
push 0x422c60
push ecx
mov word [esp + 0x20], bx
mov dword [esp + 0x26], eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, 0x31
xor eax, eax
lea edi, [esp + 0x24a]
mov word [esp + 0x248], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x30]
add esp, 0xc
cmp eax, ebx
jne 0x403e8f
mov eax, 0x41d59c
push eax
lea edx, [esp + 0x240]
push 0x64
push edx
lea eax, [esp + 0x20]
push 0x426c34
push eax
push str.ACCOUNT
call ebp
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x34]
rep stosd dword es:[edi], eax
mov eax, dword [0x426c4c]
cmp eax, ebx
jne 0x403ec6
mov eax, 0x41d59c
lea ecx, [esp + 0x23c]
lea edx, [esp + 0x34]
push ecx
push eax
push 0x422c54
push edx
call fcn.0041296e
lea eax, [esp + 0x44]
push eax
call fcn.0040ead0
mov eax, dword [esp + 0x44]
add esp, 0x14
inc esi
cmp esi, eax
jle 0x403e45
pop ebp
mov ecx, dword [esp + 0x20]
pop esi
cmp ecx, ebx
je 0x403f35
mov al, byte [ecx - 1]
cmp al, bl
je 0x403f29
cmp al, 0xff
je 0x403f29
dec al
pop edi
mov byte [ecx - 1], al
pop ebx
mov ecx, dword [esp + 0x2f4]
mov dword fs:[0], ecx
add esp, 0x300
ret
add ecx, 0xfffffffe
push ecx
call fcn.00411f90
add esp, 4
mov ecx, dword [esp + 0x2fc]
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x300
ret
Function at 0x404390
Capabilities:
Delete registry key

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0xf003f
push 0
push str.SOFTWAREMaxthon2
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4043c9
push str.SOFTWAREMaxthon2
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ecx
ret
Function at 0x404dd0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41b580
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x28], ecx
push 0x426c34
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x11], 1
mov dword [ebp - 4], ebx
call fcn.0041255c
mov edi, eax
add esp, 4
cmp edi, 0x7ffffffd
jbe 0x404e1c
call fcn.00412297
mov esi, dword [ebp + 0xc]
mov ecx, dword [esi + 4]
cmp ecx, ebx
je 0x404e45
mov al, byte [ecx - 1]
test al, al
je 0x404e45
cmp al, 0xff
je 0x404e45
cmp edi, ebx
jne 0x404e69
dec al
mov byte [ecx - 1], al
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
jmp 0x404e9d
cmp edi, ebx
jne 0x404e54
push 1
mov ecx, esi
call fcn.00409580
jmp 0x404e9d
mov eax, dword [esi + 0xc]
cmp eax, 0x1f
ja 0x404e60
cmp eax, edi
jae 0x404e71
push 1
mov ecx, esi
call fcn.00409580
push edi
mov ecx, esi
call fcn.0040a9f0
mov eax, dword [esi + 4]
mov edx, edi
mov ecx, 0x426c34
cmp edx, ebx
jbe 0x404e90
mov bx, word [ecx]
add ecx, 2
mov word [eax], bx
add eax, 2
dec edx
xor ebx, ebx
jmp 0x404e7b
mov eax, dword [esi + 4]
mov dword [esi + 8], edi
mov word [eax + edi*2], bx
lea edi, [eax + edi*2]
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x20]
push ecx
push edx
mov dword [ebp - 0x20], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
push ebx
call fcn.00412b3a
add esp, 4
mov edi, eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], edi
push edi
push ebx
xor ebx, ebx
push ebx
push eax
call sub.VERSION.dll_GetFileVersionInfoW
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0x18]
push ecx
push edx
push 0x4225f0
push edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], ebx
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov edx, dword [eax + 0xc]
mov cx, word [eax + 0xc]
shr edx, 0x10
push ecx
push edx
mov edx, dword [eax + 8]
xor ecx, ecx
mov cx, word [eax + 8]
mov eax, dword [ebp - 0x28]
shr edx, 0x10
push ecx
push edx
push str._d._d._d._d
push esi
push eax
call fcn.00404f60
add esp, 0x1c
jmp 0x404f2e
test edi, edi
je 0x404f3b
push edi
call fcn.00411f90
add esp, 4
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0x11]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4081c0
Capabilities:
Check if file exists
Extract resource via kernel32 functions
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x41ba5b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
test ecx, ecx
mov dword [esp], 0
mov dword [esp + 0x218], 0xffffffff
je 0x4081f7
lea eax, [ecx - 0x20]
jmp 0x4081f9
xor eax, eax
mov ecx, dword [esp + 0x220]
push ebx
push ebp
mov ebp, dword [eax + 4]
mov ebx, dword [ecx + 0xc]
push esi
test ebx, ebx
push edi
je 0x4083a8
cmp word [ebx], 0
je 0x4083a8
push 5
push str.file:
push ebx
call fcn.00412ce0
add esp, 0xc
test eax, eax
je 0x4083ad
push 5
push str.http:
push ebx
call fcn.00412ce0
add esp, 0xc
test eax, eax
je 0x4083ad
push 6
push str.https:
push ebx
call fcn.00412ce0
add esp, 0xc
test eax, eax
je 0x4083ad
push 4
push str.res:
push ebx
call fcn.00412ce0
add esp, 0xc
test eax, eax
jne 0x40827b
add ebx, 8
push 0x104
lea edx, [esp + 0x1c]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea ecx, [esp + 0x10]
call fcn.0040adc0
lea eax, [esp + 0x18]
push 0x2f
push eax
mov dword [esp + 0x230], 1
lea edi, [esp + 0x20]
call fcn.00412ca0
add esp, 8
test eax, eax
je 0x4082e3
lea ecx, [esp + 0x18]
lea edi, [eax + 2]
push ecx
mov word [eax], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4082e3
test al, 0x10
jne 0x4082e3
lea edx, [esp + 0x18]
push 2
push edx
lea ecx, [esp + 0x18]
call fcn.0040adf0
push 0x2e
push edi
call fcn.00412ca0
mov esi, eax
add esp, 8
test esi, esi
je 0x408319
mov word [esi], 0
add esi, 2
je 0x408319
push str.HTML
push esi
call fcn.00412c20
add esp, 8
test eax, eax
je 0x408319
mov eax, dword [esp + 0x10]
push esi
push edi
push eax
jmp 0x408321
mov ecx, dword [esp + 0x10]
push 0x17
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x408345
lea ecx, [esp + 0x10]
mov dword [esp + 0x228], 0xffffffff
call fcn.0040add0
xor eax, eax
jmp 0x4083ad
mov edx, dword [esp + 0x10]
push edi
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x408394
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x408394
mov eax, dword [esp + 0x10]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x408394
push eax
push esi
push ebx
push ebp
call dword [sym.imp.MxUI.dll_HTMLayoutDataReady]
lea ecx, [esp + 0x10]
mov dword [esp + 0x228], 0xffffffff
call fcn.0040add0
xor eax, eax
jmp 0x4083ad
lea ecx, [esp + 0x10]
mov dword [esp + 0x228], 0xffffffff
call fcn.0040add0
mov eax, 1
mov ecx, dword [esp + 0x220]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x21c
ret 4