joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40602b
Capabilities:
Set environment variable

Disassembly:
push 0x224
mov eax, 0x4f80ac
call fcn.004e336a
xor ebx, ebx
xor eax, eax
mov dword [ebp - 4], ebx
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
call fcn.004db6f0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
push str.ComSpec
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push str.allow
lea ecx, [ebp - 0x224]
call fcn.004061c1
push str.plugin_policy
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 1
call fcn.004061c1
mov byte [ebp - 4], 2
lea edx, [ebp - 0x224]
mov ecx, dword [ebp + 0xc]
push edx
lea edx, [ebp - 0x230]
push edx
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov esi, vtable.CefStringBase_struct_CefStringTraitsUTF16_.0
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x230], esi
call fcn.0040632e
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x224], esi
call fcn.0040632e
push str.plugins_pepflashplayer32_25_0_0_171.dll
lea ecx, [ebp - 0x230]
call fcn.004061c1
push str.__ppapi_flash_path
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 3
call fcn.004061c1
mov byte [ebp - 4], 4
lea edx, [ebp - 0x230]
mov ecx, dword [ebp + 0xc]
push edx
lea edx, [ebp - 0x224]
push edx
mov eax, dword [ecx]
call dword [eax + 0x3c]
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x224], esi
call fcn.0040632e
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x230], esi
call fcn.0040632e
push str.25.0.0.171
lea ecx, [ebp - 0x230]
call fcn.004061c1
push str.__ppapi_flash_version
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 5
call fcn.004061c1
mov byte [ebp - 4], 6
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
lea edx, [ebp - 0x230]
push edx
lea edx, [ebp - 0x224]
push edx
call dword [eax + 0x3c]
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x224], esi
call fcn.0040632e
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x230], esi
call fcn.0040632e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00405200
call fcn.004e3319
ret 8
Function at 0x40b4f7
Capabilities:
Create directory

Disassembly:
push 0x28
mov eax, 0x4f8ad4
call fcn.004e3337
xor esi, esi
mov dword [ebp - 0x18], esi
cmp dword [0x5482ec], esi
je 0x40b522
mov ecx, dword [ebp + 8]
push 0x5482ec
call fcn.00405280
jmp 0x40b683
mov eax, dword [0x542750]
mov dword [ebp - 0x10], eax
push str.cache
mov ebx, 0x547b18
mov dword [ebp - 4], esi
push ebx
mov edi, 0x50de04
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.0040301c
add esp, 0x10
push esi
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
call esi
push 0x50edc8
push ebx
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.0040301c
add esp, 0x10
xor ebx, ebx
push ebx
push dword [ebp - 0x10]
call esi
push dword [ebp - 0x10]
lea ecx, [ebp - 0x34]
call fcn.0040b68e
push ecx
mov eax, esp
mov byte [ebp - 4], 1
push ebx
mov dword [eax], ebx
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004c2ac0
add esp, 0x10
mov byte [ebp - 4], 2
mov esi, dword [eax]
test esi, esi
je 0x40b5af
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
add ecx, 4
add ecx, esi
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [0x5482ec]
mov dword [0x5482ec], esi
test ecx, ecx
je 0x40b5cf
mov eax, dword [ecx + 4]
add ecx, 4
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00405200
mov esi, vtable.CefStringBase_struct_CefStringTraitsUTF16_.0
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], esi
call fcn.0040632e
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
push str.http
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.004061c1
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x28]
call fcn.00406241
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], esi
call fcn.0040632e
push str.https
lea ecx, [ebp - 0x34]
call fcn.004061c1
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x28]
call fcn.00406241
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], esi
call fcn.0040632e
mov ecx, dword [0x5482ec]
lea edx, [ebp - 0x28]
push ecx
mov eax, esp
push edx
mov dword [eax], ebx
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp + 8]
push 0x5482ec
call fcn.00405280
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.004063fa
lea ecx, [ebp - 0x10]
call fcn.00403030
mov eax, dword [ebp + 8]
call fcn.004e3305
ret 4
Function at 0x40d2a7
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocStringLen
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
xorps xmm0, xmm0
movlpd qword [ebp - 8], xmm0
cmp ebx, 0xffffffff
je 0x40d304
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40d2f1
cmp esi, esi
je 0x40d2fb
cmp dword [ebp - 4], esi
je 0x40d2fb
or edi, esi
or esi, dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40d30a
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov eax, edi
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40dbdf
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x1c]
sub eax, dword [edi + 0x18]
push 0x68
pop ecx
cdq
idiv ecx
xor ecx, ecx
mov dword [ebp - 4], eax
test eax, eax
jle 0x40dc2b
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [edi + 0x18]
mov edx, ebx
cmp dword [edx], eax
je 0x40dc1d
inc ecx
add edx, 0x68
cmp ecx, dword [ebp - 4]
jl 0x40dc0e
jmp 0x40dc2a
mov al, byte [ebp + 0xc]
xor esi, esi
imul ecx, ecx, 0x68
inc esi
mov byte [ecx + ebx + 4], al
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
je 0x40dc4c
push 0
push 0
push dword [ebp + 8]
push 0x40db18
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x40e39d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 8]
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi], eax
test eax, eax
je 0x40e454
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.XL_Init
push eax
call esi
push str.XL_UnInit
push dword [edi]
mov dword [edi + 4], eax
call esi
push str.XL_CreateTask
push dword [edi]
mov dword [edi + 8], eax
call esi
push str.XL_DeleteTask
push dword [edi]
mov dword [edi + 0xc], eax
call esi
push str.XL_StartTask
push dword [edi]
mov dword [edi + 0x10], eax
call esi
push str.XL_StopTask
push dword [edi]
mov dword [edi + 0x14], eax
call esi
push str.XL_QueryTaskInfo
push dword [edi]
mov dword [edi + 0x18], eax
call esi
push str.XL_QueryTaskInfoEx
push dword [edi]
mov dword [edi + 0x1c], eax
call esi
push str.XL_SetProxy
push dword [edi]
mov dword [edi + 0x20], eax
call esi
push str.XL_SetSpeedLimit
push dword [edi]
mov dword [edi + 0x28], eax
call esi
push str.XL_DelTempFile
push dword [edi]
mov dword [edi + 0x24], eax
call esi
push str.XL_SetUserAgent
push dword [edi]
mov dword [edi + 0x2c], eax
call esi
mov dword [edi + 0x30], eax
mov eax, edi
pop edi
pop esi
pop ebp
ret 4
push 0x53d6e4
lea eax, [ebp + 8]
mov dword [ebp + 8], str.can_not_load_xldl.dll
push eax
call fcn.004dfb9b
int3
Function at 0x40e587
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push str.xldl.dll
mov esi, ecx
push str.MiniTP
push 0x547f70
push 0x50f084
lea ebx, [esi + 8]
push ebx
call fcn.0040301c
add esp, 0x14
cmp dword [0x549268], 0
jne 0x40e6a6
xor ecx, ecx
mov dword [0x549268], 1
cmp dword [esi + 0x2c], ecx
jne 0x40e6a6
mov eax, dword [ebx]
cmp dword [eax - 8], ecx
je 0x40e6a6
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push str.m_hDownWrapperSingletonEvent
push ecx
push ecx
push ecx
call edi
mov dword [esi + 4], eax
test eax, eax
je 0x40e606
push str.hStartDownWrapperSingletonEvent
xor eax, eax
push eax
push eax
push eax
call edi
mov ebx, eax
test ebx, ebx
jne 0x40e61e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.create_start_event_failed_errno:_d_n
call fcn.004d7758
pop ecx
pop ecx
jmp 0x40e6a5
lea eax, [esi + 8]
lea edi, [esi + 0xc]
push eax
mov ecx, edi
call fcn.00402a9f
push 0x5c
push dword [edi]
call fcn.004d73be
mov edx, eax
pop ecx
pop ecx
test edx, edx
je 0x40e668
sub edx, dword [edi]
sar edx, 1
cmp edx, 0xffffffff
je 0x40e668
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax - 8]
sub eax, edx
dec eax
push eax
lea eax, [edx + 1]
push eax
call fcn.0040fb7e
push str.Sounddownload_complete.wav
mov ecx, edi
call fcn.00402a02
jmp 0x40e66f
mov ecx, edi
call fcn.00404f1e
lea eax, [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push ebx
push 0x40e89c
push eax
push eax
call fcn.004d7807
mov eax, dword [ebp - 4]
add esp, 0x18
mov dword [esi], eax
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410022
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa18
mov eax, dword [0x5415b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
cmp dword [edi], esi
jne 0x4100ea
lea eax, [ebp - 0xa10]
push eax
push 0x20019
push esi
push dword [edi + 0x10]
push dword [edi + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x410169
push 0x7fe
mov word [ebp - 0xa0c], ax
xor ebx, ebx
lea eax, [ebp - 0xa0a]
inc ebx
push esi
push eax
mov dword [ebp - 0xa14], ebx
call fcn.004db6f0
add esp, 0xc
mov dword [ebp - 0xa18], 0x800
lea eax, [ebp - 0xa18]
push eax
lea eax, [ebp - 0xa0c]
push eax
lea eax, [ebp - 0xa14]
push eax
push esi
push dword [edi + 0x14]
push dword [ebp - 0xa10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4100dc
cmp word [ebp - 0xa0c], si
je 0x4100dc
lea eax, [ebp - 0xa0c]
push esi
push eax
call fcn.004d7cad
cmp eax, 0xffffffff
pop ecx
pop ecx
cmovne esi, ebx
push dword [ebp - 0xa10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x410169
xor ebx, ebx
inc ebx
cmp dword [edi], ebx
jne 0x410169
push esi
push 0x10
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x50f2c8
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004d7d61
push dword [edi + 0x1c]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004d7d61
add esp, 0x18
lea eax, [ebp - 0x20c]
cmp dword [edi + 4], esi
je 0x410141
push 0x50f1d0
jmp 0x410146
push str..url
push 0x104
push eax
call fcn.004d7d61
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004d7cad
cmp eax, 0xffffffff
pop ecx
pop ecx
cmovne esi, ebx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d5e2a
mov esp, ebp
pop ebp
ret 4
Function at 0x410875
Capabilities:
Create process on windows

Disassembly:
push 0x5c
mov eax, 0x4f95fd
call fcn.004e3337
push 0x50f28c
lea ecx, [ebp - 0x10]
call fcn.00410a8a
push dword [ebp + 8]
xor ebx, ebx
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.00402a02
push 0x50f290
lea ecx, [ebp - 0x10]
call fcn.00402a02
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.00402a02
push 0x44
pop esi
push esi
lea eax, [ebp - 0x68]
push ebx
push eax
call fcn.004db6f0
xor eax, eax
mov dword [ebp - 0x68], esi
lea edi, [ebp - 0x20]
add esp, 0xc
stosd dword es:[edi], eax
lea ecx, [ebp - 0x10]
push 0x104
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00402b10
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x68]
push ecx
push ebx
push ebx
push 0x8000020
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push ecx
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.00402cbc
test esi, esi
je 0x410924
push 0xffffffffffffffff
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1c]
call esi
lea ecx, [ebp - 0x10]
call fcn.00403030
xor eax, eax
inc eax
call fcn.004e3305
ret 8
Function at 0x410ada
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x5415b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x418], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x428], eax
xor edi, edi
mov eax, dword [ebp + 0x10]
inc edi
mov dword [ebp - 0x420], eax
mov esi, edx
lea eax, [ebp - 0x418]
mov dword [ebp - 0x424], ecx
push eax
push 0x50a9c4
push edi
push 0
push 0x50a9d4
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ecx, dword [ebp - 0x418]
test ecx, ecx
je 0x410c53
test esi, esi
je 0x410bb1
mov eax, dword [ecx]
push esi
push ecx
call dword [eax + 0x50]
xor eax, eax
push 0x40e
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.004db6f0
lea ecx, [ebp - 0x414]
add esp, 0xc
sub ecx, esi
movzx eax, word [esi]
mov word [ecx + esi], ax
lea esi, [esi + 2]
test ax, ax
jne 0x410b70
lea eax, [ebp - 0x414]
push 0x5c
push eax
call fcn.004d73be
pop ecx
pop ecx
test eax, eax
je 0x410bab
xor ecx, ecx
lea edx, [ebp - 0x414]
mov word [eax], cx
mov eax, dword [ebp - 0x418]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov ecx, dword [ebp - 0x418]
test ebx, ebx
je 0x410bc2
mov eax, dword [ecx]
push ebx
push ecx
call dword [eax + 0x2c]
mov ecx, dword [ebp - 0x418]
mov edx, dword [ebp - 0x420]
test edx, edx
je 0x410bd9
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0x1c]
mov ecx, dword [ebp - 0x418]
mov edx, dword [ebp - 0x428]
test edx, edx
je 0x410bf2
mov eax, dword [ecx]
push 0
push edx
push ecx
call dword [eax + 0x44]
mov ecx, dword [ebp - 0x418]
and dword [ebp - 0x41c], 0
lea edx, [ebp - 0x41c]
mov eax, dword [ecx]
push edx
push 0x50a9b4
push ecx
call dword [eax]
mov ecx, dword [ebp - 0x41c]
test ecx, ecx
je 0x410c3a
mov eax, dword [ecx]
push edi
push dword [ebp - 0x424]
push ecx
call dword [eax + 0x18]
mov edx, dword [ebp - 0x41c]
mov edi, eax
test edx, edx
je 0x410c3a
mov ecx, dword [edx]
push edx
call dword [ecx + 8]
and dword [ebp - 0x41c], 0
mov ecx, dword [ebp - 0x418]
test ecx, ecx
je 0x410c4a
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
xor eax, eax
test edi, edi
sete al
jmp 0x410c55
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d5e2a
mov esp, ebp
pop ebp
ret
Function at 0x413bcc
Capabilities:
Create pipe
Read file on windows
Write file on windows
Write pipe

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
push 0
mov dword [esp + 0x20], edi
call dword [sym.imp.ole32.dll_CoInitialize]
lea ebx, [edi + 0x8090]
lea eax, [edi + 0x14]
mov dword [esp + 0x14], ebx
push 4
mov edi, ebx
mov dword [esp + 0x1c], eax
mov esi, eax
pop ebx
push 0
push 1
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0xc8
mov dword [edi], eax
mov dword [esi - 4], eax
mov eax, 0x1000
push eax
push eax
push 4
push 6
push 0x40000003
push str..pipe6wanGameapi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
lea ecx, [esi - 0x14]
mov dword [esi], eax
push ecx
push eax
call fcn.00413955
xor ecx, ecx
mov dword [esi + 0x200c], eax
test eax, eax
lea edi, [edi + 4]
lea esi, [esi + 0x2024]
sete cl
mov dword [esi - 0x1c], ecx
dec ebx
jne 0x413bfe
push 0xffffffffffffffff
push ebx
mov ebx, dword [esp + 0x1c]
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edi, dword [esp + 0x1c]
jmp 0x413cd8
imul esi, eax, 0x2024
add esi, edi
cmp dword [esi + 0x2020], 0
je 0x413d3b
push 0
lea eax, [esp + 0x14]
push eax
push esi
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov ecx, dword [esi + 0x201c]
sub ecx, 0
je 0x413d31
dec ecx
je 0x413d1a
dec ecx
jne 0x413d3b
test eax, eax
je 0x413cc0
mov eax, dword [esp + 0x10]
cmp eax, dword [esi + 0x2018]
je 0x413d31
push dword [esp + 0x14]
mov ecx, edi
call fcn.0041391e
push 0xffffffffffffffff
push 0
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp dword [edi + 0x80a0], 0
mov dword [esp + 0x14], eax
je 0x413c71
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
push 4
pop esi
push dword [eax]
call edi
push dword [ebx]
call edi
mov eax, dword [esp + 0x18]
lea ebx, [ebx + 4]
add eax, 0x2024
mov dword [esp + 0x18], eax
dec esi
jne 0x413cf2
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x413cc0
cmp dword [esp + 0x10], 0
je 0x413cc0
mov dword [esi + 0x201c], 2
jmp 0x413d3b
mov dword [esi + 0x201c], 1
mov eax, dword [esi + 0x201c]
dec eax
je 0x413d89
dec eax
jne 0x413ccb
push esi
mov ecx, edi
call fcn.00413991
push 0
lea eax, [esp + 0x14]
push eax
push dword [esi + 0x2018]
lea eax, [esi + 0x18]
push eax
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x413dc7
mov ecx, dword [esp + 0x10]
cmp ecx, dword [esi + 0x2018]
jne 0x413dc7
mov dword [esi + 0x201c], 1
jmp 0x413dbb
push 0
lea eax, [esp + 0x14]
push eax
push 0x1000
lea eax, [esi + 0x18]
push eax
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x413dc7
cmp dword [esp + 0x10], 0
je 0x413dc7
mov dword [esi + 0x201c], 2
and dword [esi + 0x2020], 0
jmp 0x413ccb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esp + 0x1c], 0
jne 0x413cc0
cmp eax, 0x3e5
jne 0x413cc0
mov dword [esi + 0x2020], 1
jmp 0x413ccb
Function at 0x413e46
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x5415b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x414]
push edi
push 0x208
push 0
push eax
mov edi, ecx
call fcn.004db6f0
push esi
lea eax, [edi + 4]
push eax
lea eax, [ebp - 0x414]
push 0x50de04
push eax
call fcn.004d8050
add esp, 0x1c
lea eax, [ebp - 0x418]
push eax
push 0x20006
push 0
lea eax, [ebp - 0x414]
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x413ece
push 0x50e6f0
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 0x418]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor eax, eax
test esi, esi
pop edi
sete al
xor ecx, ebp
pop esi
call fcn.004d5e2a
mov esp, ebp
pop ebp
ret 4

Function at 0x413ee7
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x5415b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x41c], eax
mov edi, ecx
xor eax, eax
push 0x208
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.004db6f0
push esi
lea eax, [edi + 4]
push eax
lea eax, [ebp - 0x414]
push 0x50de04
push eax
call fcn.004d8050
add esp, 0x1c
lea eax, [ebp - 0x418]
xor ecx, ecx
push ecx
push eax
push ecx
push 0x20006
push ecx
push ecx
push ecx
lea eax, [ebp - 0x414]
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x413fa3
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x413f68
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push ebx
push 1
push esi
push dword [ebp - 0x41c]
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x418]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor eax, eax
test esi, esi
pop edi
sete al
xor ecx, ebp
pop esi
pop ebx
call fcn.004d5e2a
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4158b9
Capabilities:
Read .ini file

Disassembly:
push 0xc
mov eax, 0x4fa09b
call fcn.004e3337
mov edi, ecx
mov eax, dword [0x542750]
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push 0x547b18
push str._sUser.ini
push eax
call fcn.0040301c
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
add esp, 0xc
push dword [ebp - 0x10]
push 0
push str.nottips
push 0x50f804
call esi
push dword [ebp - 0x10]
mov dword [edi + 0xf4], eax
push 1
push str.minitotray
push 0x50f824
call esi
mov dword [edi + 0xf8], eax
mov ecx, edi
test eax, eax
je 0x41592a
call fcn.00415a5a
jmp 0x41592f
call fcn.00415ae5
mov eax, dword [0x542750]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00430217
mov byte [ebp - 4], 2
push dword [eax]
lea eax, [ebp - 0x14]
push 0x50f82c
push eax
call fcn.0040301c
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00403030
mov eax, dword [edi + 0x28]
lea ecx, [edi + 0x28]
mov esi, 0x50f838
push esi
call dword [eax + 0x20]
test eax, eax
je 0x415994
mov eax, dword [edi + 0x28]
lea ecx, [edi + 0x28]
push esi
call dword [eax + 0x20]
push 0
push dword [ebp - 0x14]
mov ecx, eax
mov edx, dword [eax]
push 0x50f854
call dword [edx + 0x34]
lea ecx, [ebp - 0x14]
call fcn.00403030
lea ecx, [ebp - 0x10]
call fcn.00403030
call fcn.004e3305
ret

Function at 0x415b91
Capabilities:
Read .ini file

Disassembly:
push 4
mov eax, 0x4f7c9b
call fcn.004e3337
mov eax, dword [0x542750]
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push 0x547b18
push str._sUser.ini
push eax
call fcn.0040301c
add esp, 0xc
push dword [ebp - 0x10]
push 1
push str.minitotray
push 0x50f824
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.00403030
mov eax, esi
call fcn.004e3305
ret
Function at 0x41c020
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5415b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
push str.filename_edit
lea ecx, [esi + 0x28]
mov eax, dword [ecx]
call dword [eax + 0x20]
mov edi, eax
xor ebx, ebx
test edi, edi
je 0x41c0ac
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push ebx
push eax
call fcn.004db6f0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push dword [edi + 0x6c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x41c089
sub ecx, edx
sar ecx, 1
je 0x41c0ac
lea eax, [ebp - 0x20c]
push eax
lea ecx, [esi + 0xf4]
call fcn.004028a2
push ebx
push 1
push 0x10
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d5e2a
mov esp, ebp
pop ebp
ret