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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4297c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x206
mov edi, ecx
lea ecx, [ebp - 0x20a]
xor eax, eax
push ebx
push ecx
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x214], ebx
mov word [ebp - 0x20c], ax
call fcn.004123b0
mov edx, dword [edi + 8]
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
add esp, 0xc
push 2
push ebx
push 0xffffffffffffff96
push edx
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x218], ebx
call esi
mov edx, dword [edi + 8]
push ebx
lea eax, [ebp - 0x210]
push eax
push 0x6a
lea ecx, [ebp - 0x20c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x210], 0x6a
jne 0x406207
mov edx, str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
lea ecx, [ebp - 0x20c]
lea ebx, [ebx]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x4060b6
cmp ax, bx
je 0x4060b2
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x4060b6
add ecx, 4
add edx, 4
cmp ax, bx
jne 0x406090
xor eax, eax
jmp 0x4060bb
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x406207
mov eax, dword [edi + 8]
push 1
push ebx
push 0xffffffffffffff92
push eax
call esi
mov eax, dword [edi + 8]
push ebx
lea ecx, [ebp - 0x210]
push ecx
push 4
lea edx, [ebp - 0x224]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x224]
mov edx, dword [ebp - 0x210]
mov eax, dword [edi + 8]
push 1
add ecx, edx
push ebx
neg ecx
push ecx
push eax
call esi
mov eax, dword [edi + 8]
push ebx
lea ecx, [ebp - 0x210]
push ecx
push 4
lea edx, [ebp - 0x214]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x220], ebx
cmp dword [ebp - 0x214], ebx
jbe 0x4061bd
lea esi, [edi + 0x5cfe0]
jmp 0x406140
mov edx, dword [edi + 8]
push 0
lea ecx, [ebp - 0x210]
push ecx
push 0x20
lea ebx, [esi - 8]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
xor eax, eax
add dword [esi], ecx
mov ecx, dword [esi + 8]
mov dword [ebx], eax
adc dword [esi + 4], edx
sub ecx, dword [esi]
mov edx, dword [esi + 0xc]
sbb edx, dword [esi + 4]
add ecx, 1
adc edx, eax
add dword [ebp - 0x21c], ecx
mov dword [esi - 4], eax
mov dword [esi + 0x10], eax
adc dword [ebp - 0x218], edx
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x228]
push eax
lea ecx, [edi + 0x26fc]
mov dword [ebp - 0x228], ebx
call fcn.00405e30
mov eax, dword [ebp - 0x220]
inc eax
add esi, 0x20
mov dword [ebp - 0x220], eax
cmp eax, dword [ebp - 0x214]
jb 0x406140
mov ecx, dword [edi + 0x5d120]
sub ecx, dword [ebp - 0x21c]
mov edx, dword [edi + 0x5d124]
sbb edx, dword [ebp - 0x218]
mov eax, ecx
mov dword [edi + 0x5d138], ecx
mov ecx, edx
mov dword [edi + 0x5d130], eax
mov dword [edi + 0x5d13c], edx
mov dword [edi + 0x5d134], ecx
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004125d9
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.004125d9
mov esp, ebp
pop ebp
ret
Function at 0x4074d0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4297c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 8], ebx
je 0x4074fe
pop esi
lea eax, [ebx + 1]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004125d9
mov esp, ebp
pop ebp
ret
push edi
lea edi, [esi + 0x5d140]
push edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.SHLWAPI.dll_PathGetDriveNumberW]
add eax, 0x41
mov word [ebp - 0xc], ax
push ebx
mov eax, 0x3a
mov word [ebp - 0xa], ax
mov ecx, 0x5c
push ebx
lea eax, [ebp - 0x14]
mov word [ebp - 8], cx
push eax
lea ecx, [ebp - 0xc]
xor edx, edx
push ecx
mov word [ebp - 6], dx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x407698
mov eax, dword [esi + 0x5d120]
mov ecx, dword [esi + 0x5d124]
cmp eax, 0xffffffff
jne 0x40755e
cmp ecx, eax
je 0x40758b
mov edx, dword [ebp - 0x10]
cmp edx, ecx
ja 0x40758b
jb 0x40756e
mov ecx, dword [ebp - 0x14]
cmp ecx, eax
ja 0x40758b
pop edi
mov dword [esi + 0x2470], 2
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004125d9
mov esp, ebp
pop ebp
ret
push ebx
push 0x20
push 4
push ebx
push 1
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
je 0x407682
cmp dword [esi + 0x2714], ebx
je 0x40766c
lea edi, [esi + 0x26fc]
mov ecx, edi
call fcn.00403f50
mov ecx, esi
call fcn.00405ff0
test eax, eax
jne 0x40766c
cmp dword [esi + 0x2468], ebx
ja 0x4075e5
mov dword [esi + 0x2468], 5
mov eax, 0xa
cmp dword [esi + 0x2468], eax
jbe 0x4075f8
mov dword [esi + 0x2468], eax
mov edx, dword [esi + 0x5d120]
mov eax, dword [esi + 0x5d124]
add edx, 0xffffffff
mov dword [esi + 0x5cfe8], edx
lea ecx, [esi + 0x5cfd8]
lea edx, [ebp - 0x1c]
adc eax, 0xffffffff
mov dword [ebp - 0x1c], ecx
push edx
mov ecx, edi
mov dword [esi + 0x5cfe0], ebx
mov dword [esi + 0x5cfe4], ebx
mov dword [esi + 0x5cfec], eax
call fcn.00405e30
mov eax, dword [esi + 0x5d120]
mov edx, dword [esi + 0x5d124]
mov cl, 0x20
call fcn.004135a0
mov ecx, dword [esi + 0x5d120]
mov edx, dword [esi + 8]
push ebx
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004125d9
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x2470], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x2474], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.004125d9
mov esp, ebp
pop ebp
ret
Function at 0x4076b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x20]
cmp dword [eax + 4], 1
push esi
push edi
mov edi, dword [ebx + 0x805c]
mov esi, ecx
mov dword [ebp + 8], edi
jne 0x4076d7
mov ecx, dword [ebx]
mov dword [ebp + 8], ecx
mov edi, ecx
cmp dword [esi + 0x2714], 0
je 0x407794
mov ecx, esi
call fcn.00401b10
mov edi, dword [ebx + 0x8040]
mov ecx, dword [edi + 8]
add ecx, dword [edi + 0x18]
mov eax, dword [edi + 0xc]
adc eax, dword [edi + 0x1c]
push 0
mov edx, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push ecx
mov ecx, dword [esi + 8]
push ecx
sar edx, 0x1f
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x407729
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4077df
mov eax, dword [ebp + 8]
push 0
lea edx, [ebp - 4]
push edx
mov edx, dword [esi + 8]
push eax
lea ecx, [ebx + 0x40]
push ecx
push edx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4077df
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jne 0x4077df
add dword [edi + 0x18], eax
mov ecx, 0
adc dword [edi + 0x1c], ecx
mov eax, dword [ebp - 4]
add dword [esi + 0x5d130], eax
push eax
push ebx
adc dword [esi + 0x5d134], ecx
mov ecx, esi
call fcn.00406220
mov ecx, esi
call fcn.00402b10
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [esi + 8]
push 0
lea eax, [ebp + 8]
push eax
push edi
lea ecx, [ebx + 0x40]
push ecx
push edx
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4077df
mov eax, dword [ebp + 8]
cmp eax, edi
jne 0x4077df
add dword [esi + 0x5d130], eax
push eax
push ebx
adc dword [esi + 0x5d134], 0
mov ecx, esi
call fcn.00406220
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4077f0
Capabilities:
Send data

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x26f4]
sub eax, dword [edi + 0x26f0]
sar eax, 2
cmp ebx, eax
jb 0x407813
call fcn.004127f9
mov ecx, dword [edi + 0x26f0]
mov esi, dword [ecx + ebx*4]
mov edx, dword [esi + 0x20]
mov dword [esi + 0x28], 2
cmp dword [edx + 4], 1
je 0x407895
cmp dword [edi + 0x2480], 0
je 0x407870
mov eax, dword [esi + 0xc]
push eax
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov edx, dword [edi + 0x2484]
mov eax, dword [edi + 0x2480]
lea ecx, [ebp + 8]
push ecx
mov ecx, dword [esi + 0x1c]
push edx
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x40787c
mov edx, dword [esi + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4078c5
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 4
cmp dword [esi], 0
jne 0x4078b0
mov eax, dword [esi + 4]
test eax, eax
je 0x4078b0
pop edi
mov dword [esi + 0x18], eax
pop esi
mov eax, 1
pop ebx
pop ebp
ret 4
push 1
push ebx
mov ecx, edi
mov dword [esi + 0x28], 0
call fcn.004073b0
test eax, eax
jne 0x407870
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 4
Function at 0x408230
Capabilities:
Send data

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x26f4]
sub eax, dword [edi + 0x26f0]
sar eax, 2
cmp ebx, eax
jb 0x408253
call fcn.004127f9
mov ecx, dword [edi + 0x26f0]
mov esi, dword [ecx + ebx*4]
mov edx, dword [esi + 0x20]
mov dword [esi + 0x28], 6
cmp dword [edx + 4], 1
je 0x4082d9
cmp dword [edi + 0x2480], 0
je 0x408311
mov eax, dword [esi + 0xc]
push eax
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov edx, dword [edi + 0x2484]
mov eax, dword [edi + 0x2480]
lea ecx, [ebp + 8]
push ecx
mov ecx, dword [esi + 0x1c]
push edx
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x4082c0
mov edx, dword [esi + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x3e5
sete cl
pop edi
pop esi
pop ebx
mov eax, ecx
pop ebp
ret 4
cmp dword [esi], 0
jne 0x4082f4
mov eax, dword [esi + 4]
test eax, eax
je 0x4082f4
pop edi
mov dword [esi + 0x18], eax
pop esi
mov eax, 1
pop ebx
pop ebp
ret 4
push 1
push ebx
mov ecx, edi
mov dword [esi + 0x28], 4
call fcn.004073b0
test eax, eax
jne 0x408311
push ebx
mov ecx, edi
call fcn.004042e0
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 4
Function at 0x408bf0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0
je 0x408c04
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0x5d550]
push str.MetalinkFile
push eax
call fcn.00412343
add esp, 8
test eax, eax
je 0x408c52
xor ecx, ecx
mov word [eax], cx
mov ecx, str.MetalinkFile
push edi
lea edi, [ecx + 2]
lea ebx, [ebx]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x408c30
sub ecx, edi
sar ecx, 1
lea edx, [eax + ecx*2]
push edx
call fcn.0041261b
add esp, 4
mov dword [esi + 0x2694], eax
pop edi
mov ecx, esi
call fcn.00402d60
test eax, eax
je 0x408bfd
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x2464], eax
test eax, eax
je 0x408ca1
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x408b40
push 0
push 0
mov dword [ebp - 4], 0
mov dword [esi + 0x5d118], 8
call fcn.004137b9
add esp, 0x18
mov dword [esi + 0xc], eax
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x409810
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
push edi
xor edi, edi
cmp ecx, edi
je 0x409829
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov eax, dword [esi + 8]
mov dword [esi + 4], edi
cmp eax, edi
je 0x409847
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 8], edi
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
push ecx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x409935
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x409935
mov eax, dword [ebp + 0x10]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x409935
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi + 8], eax
test eax, eax
je 0x409935
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x409924
push ebx
push edi
push eax
call fcn.00412870
mov edx, dword [esi + 8]
add esp, 0xc
lea ecx, [ebp + 0x10]
push ecx
xor edi, edi
push edi
push edx
mov dword [ebp + 0x10], edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x40991a
mov eax, dword [ebp + 0x10]
push edi
push eax
call fcn.00409660
mov dword [esi + 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
add esp, 8
push eax
call edx
mov eax, dword [esi + 4]
cmp eax, edi
je 0x40991a
mov ecx, dword [eax + 8]
mov dword [eax + 8], edi
cmp ecx, edi
jne 0x409908
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret 0xc
mov ecx, dword [esi + 4]
cmp ecx, edi
je 0x409917
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [esi + 4], edi
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 8], 0
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 0xc

Function at 0x4099b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push esi
push edi
mov edi, ecx
mov ecx, eax
shr ecx, 0x10
movzx edx, ax
push ecx
push edx
mov ecx, edi
xor esi, esi
call fcn.00409160
test al, al
je 0x409a0d
push 1
push esi
push esi
push str.http:__hd.browser.360.cn_gamesecond
push 0x4228c4
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edx, dword [edi + 4]
mov ecx, 0x20
cmp ecx, eax
sbb esi, esi
push edx
neg esi
mov dword [edi + 0x378], 1
call dword [sym.imp.USER32.dll_DestroyWindow]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
pop edi
mov eax, esi
pop esi
pop ebp
ret 0x10
Function at 0x40a170
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
lea edx, [ebp + 0x10]
push edx
mov edx, dword [ebp + 8]
push esi
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0xc]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40a1e2
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x40a1b1
cmp eax, 2
jne 0x40a1cc
mov eax, dword [ebp + 0x10]
test esi, esi
je 0x40a1dc
test eax, eax
je 0x40a1d7
test al, 1
jne 0x40a1cc
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x40a1dc
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x40a670
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x54]
mov ecx, eax
and ecx, 0xc
push edi
mov bl, 1
cmp cl, 0xc
jne 0x40a6cc
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_GetDlgCtrlID]
push eax
mov dword [ebp - 0xc], eax
call edi
mov edx, dword [esi + 4]
push edx
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0xfffffffe
call edi
mov edi, eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_GetParent]
lea ecx, [ebp - 0xc]
push ecx
push edi
push 0x4e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
shr eax, 2
test al, 1
je 0x40a706
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edi, eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_GetParent]
mov ecx, dword [esi + 4]
push ecx
movzx edx, di
push edx
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x28]
push 1
push 0
push 0
push eax
push 0x4228c4
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
seta bl
test bl, bl
je 0x40a739
mov ecx, dword [esi + 4]
or byte [esi + 0x58], 2
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ce20
Capabilities:
Check if file exists
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x4297c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.004123b0
mov ebx, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
add esp, 0xc
push 0
push 0x1a
lea edx, [ebp - 0x20c]
push edx
push 0
call ebx
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40ce72
mov ecx, 8
mov esi, str.360se360se.ini
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x20c]
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40cf9d
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x61a]
push edx
mov word [ebp - 0x61c], cx
call fcn.004123b0
push 1
push 0x422d24
lea eax, [ebp - 0x61c]
push 0x103
push eax
call fcn.0041246a
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
add esp, 0x1c
lea ecx, [ebp - 0x20c]
push ecx
push 0
push str.IE6Mode
push str.option
call esi
test eax, eax
jne 0x40cf20
lea edx, [ebp - 0x20c]
push edx
push eax
push str.NotJoinPrivate
push str.Option
call esi
neg eax
pop edi
sbb eax, eax
pop esi
inc eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004125d9
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x412]
push ecx
mov word [ebp - 0x414], ax
call fcn.004123b0
add esp, 0xc
push 0
push 0x1a
lea edx, [ebp - 0x414]
push edx
push 0
call ebx
lea edi, [ebp - 0x414]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40cf56
lea eax, [ebp - 0x414]
push eax
push 0
push str.NotJoinPrivate
mov ecx, 0xa
mov esi, 0x422cac
push str.Option
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
neg eax
pop edi
sbb eax, eax
pop esi
inc eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004125d9
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.004125d9
mov esp, ebp
pop ebp
ret

Function at 0x40d960
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test esi, esi
jne 0x40d979
lea eax, [esi + 0xd]
pop esi
mov esp, ebp
pop ebp
ret 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
xor edi, edi
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x40d983
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
push edi
push eax
mov eax, dword [edx]
push 7
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x40dfd0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x4297c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, ecx
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
lea esi, [ebp - 0x210]
push esi
xor edi, edi
or eax, 0x2001f
push eax
push edi
push edx
push ecx
mov dword [ebp - 0x218], edx
mov dword [ebp - 0x20c], edi
mov dword [ebp - 0x208], edi
mov dword [ebp - 0x210], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0x20c]
mov esi, eax
cmp esi, edi
jne 0x40e051
xor eax, eax
cmp ecx, edi
je 0x40e039
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x210]
mov dword [ebp - 0x208], edi
mov esi, eax
mov dword [ebp - 0x20c], ecx
cmp eax, edi
je 0x40e05f
cmp ecx, edi
je 0x40e120
push ecx
jmp 0x40e11a
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x220]
push eax
push edi
push edi
push edi
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0x204]
push eax
push edi
push ecx
mov dword [ebp - 0x214], 0x100
call esi
test eax, eax
jne 0x40e0e0
nop
lea ecx, [ebp - 0x204]
push ecx
lea ecx, [ebp - 0x20c]
call fcn.0040dfd0
mov dword [ebp - 0x210], eax
cmp eax, edi
jne 0x40e135
lea edx, [ebp - 0x220]
push edx
mov edx, dword [ebp - 0x20c]
push edi
push edi
push edi
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x204]
push ecx
push edi
push edx
mov dword [ebp - 0x214], 0x100
call esi
test eax, eax
je 0x40e090
mov eax, dword [ebp - 0x20c]
cmp eax, edi
je 0x40e0f7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x20c], edi
mov eax, dword [ebp - 0x218]
mov ecx, dword [ebx]
push eax
push ecx
mov dword [ebp - 0x208], edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [ebp - 0x20c]
cmp eax, edi
je 0x40e120
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004125d9
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0x20c]
cmp ecx, edi
je 0x40e122
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004125d9
mov esp, ebp
pop ebp
ret 4
Function at 0x40fe00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4297c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edx, edx
push 2
push edx
push eax
mov dword [ebp - 0x40c], edx
mov dword [ebp - 0x410], ecx
mov dword [ebp - 0x414], edx
mov dword [ebp - 0x408], edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40fe55
call fcn.0040d7c0
mov esi, eax
jmp 0x40ff34
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x40fe6e
call fcn.0040d7c0
jmp 0x40ff2b
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x40fe86
call fcn.0040d7c0
jmp 0x40ff2b
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x40fed3
lea eax, [ebp - 0x404]
cmp dword [ebp - 0x408], eax
je 0x40feb0
lea ecx, [ebp - 0x408]
call fcn.0040a1f0
lea ecx, [ebp - 0x40c]
call fcn.0040df40
pop edi
pop esi
mov eax, 0x8007000e
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004125d9
mov esp, ebp
pop ebp
ret 0x10
push eax
lea ecx, [ebp - 0x408]
call fcn.0040e740
mov eax, dword [ebp - 0x408]
test eax, eax
jne 0x40fef0
mov esi, 0x8007000e
jmp 0x40ff2d
push esi
push eax
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x40ff09
call fcn.0040d7c0
jmp 0x40ff2b
mov edx, dword [ebp - 0x408]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x408]
push eax
push ecx
lea ecx, [ebp - 0x414]
call fcn.0040f8a0
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp - 0x404]
cmp dword [ebp - 0x408], edx
je 0x40ff50
lea ecx, [ebp - 0x408]
call fcn.0040a1f0
lea ecx, [ecx]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004125d9
mov esp, ebp
pop ebp
ret 0x10