joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43a440
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43a473
push esi
call fcn.0043d550
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43a46c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43a4f9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43a4e2
mov eax, dword [esi + 8]
test eax, eax
je 0x43a497
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43a4de
cmp eax, 2
je 0x43a4e2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43a48a
cmp eax, 3
je 0x43a4bd
cmp eax, 1
jne 0x43a48a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43a48a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43a48a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043a520
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43a508
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043a520
add esp, 4
pop esi
ret

Function at 0x4591cd
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x459205
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00457281
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00457259
jmp 0x459211
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x45a8bf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x45a901
call fcn.0046036f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x45a901
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x45a8f8
xor eax, eax
jmp 0x45a909
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0045a90f
pop edi
pop esi
pop ebx
ret 4

Function at 0x46089f
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4608cd
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4608eb
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00460805
jmp 0x4608eb
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4608eb
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00460805
test edi, edi
mov eax, edi
jne 0x4608d5
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401b40
Capabilities:
Delete file
Move file

Disassembly:
push esi
mov esi, ecx
push 0x8007
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x401b30
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x401b7a
call fcn.004184a0
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x401b73
mov eax, dword [ecx]
push 1
call dword [eax + 0x20]
mov dword [esi + 0x10], 0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x401bae
push edi
call fcn.00436ea0
mov ecx, dword [esi + 0x14]
call fcn.00436a00
mov edi, dword [esi + 0x14]
test edi, edi
je 0x401ba6
mov ecx, edi
call fcn.00435820
push edi
call fcn.0049c000
add esp, 4
mov dword [esi + 0x14], 0
pop edi
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x401bce
call fcn.00415110
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x401bc7
mov edx, dword [ecx]
push 1
call dword [edx]
mov dword [esi + 0x18], 0
lea ecx, [esi + 0x30]
call fcn.004337c0
call fcn.0043d080
push 0xdc
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x4cf828
call fcn.0041d690
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x401c0b
push 4
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop esi
ret
Function at 0x402740
Capabilities:
Initialize iwebbrowser2

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a92b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x828
push ebx
push esi
push edi
xor ebx, ebx
mov esi, dword [ebp + 8]
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x832]
mov word [ebp - 0x834], bx
mov dword [ebp - 0x10], esp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push esi
push 0x4c0148
lea eax, [ebp - 0x834]
push 0x800
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
push 5
push ebx
push 0x4cf75c
push esi
push str.open
push ebx
call fcn.00439c00
add esp, 0x28
cmp eax, 0x20
jle 0x4027cd
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 4], ebx
mov dword [ebp + 8], ebx
mov word [ebp - 0x34], bx
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
push ecx
push 0x4b0068
push 0x15
push ebx
push 0x4b0028
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x402825
lea edx, [ebp - 0x34]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp + 8]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x402810
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x94]
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x402852
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov edx, dword [ebp - 0x14]
push 3
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
jbe 0x4028c8
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x24]
push eax
mov word [ebp - 0x24], bx
call edi
cmp eax, ebx
jge 0x402877
mov dword [ebp - 0x1c], eax
push esi
mov word [ebp - 0x24], 8
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
cmp eax, ebx
mov dword [ebp - 0x1c], eax
jne 0x40289c
cmp esi, ebx
je 0x40289c
mov word [ebp - 0x24], 0xa
mov dword [ebp - 0x1c], 0x8007000e
lea edx, [ebp - 0x34]
mov eax, dword [ebp + 8]
push edx
lea edx, [ebp - 0x34]
push edx
mov ecx, dword [eax]
lea edx, [ebp - 0x34]
mov byte [ebp - 4], 3
push edx
lea edx, [ebp - 0x34]
push edx
lea edx, [ebp - 0x24]
push edx
push eax
call dword [ecx + 0xd0]
lea eax, [ebp - 0x24]
push eax
call edi
jmp 0x4028ce
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [ebp - 0x34]
push ecx
call edi
mov eax, dword [ebp + 8]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x4028e4
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x402c90
Capabilities:
Accept command line arguments

Disassembly:
push 0xffffffffffffffff
push 0x4a9311
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
push esi
push edi
mov dword [esp + 0x10], ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
mov eax, dword [0x4c0080]
test esi, esi
mov dword [esp + 8], eax
je 0x402d17
mov ecx, esi
shr ecx, 0x10
jne 0x402cdf
and esi, 0xffff
lea ecx, [esp + 8]
push esi
call fcn.00404350
jmp 0x402d17
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
test edi, edi
je 0x402d17
push edi
lea ecx, [esp + 0xc]
call fcn.00404720
test eax, eax
je 0x402d17
lea ecx, [edi + edi]
lea edx, [edi + edi + 2]
cmp edx, ecx
jb 0x402d17
mov edi, dword [esp + 8]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x4c0080]
mov dword [esp + 0x228], 0
mov dword [esp + 0xc], ecx
mov edx, dword [0x4cf6e8]
lea ecx, [esp + 0x20]
push 0x100
push ecx
mov eax, dword [edx + 8]
push 0xba
push eax
mov byte [esp + 0x238], 1
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jne 0x402d5c
mov word [esp + 0x20], ax
mov edx, 0x100
sub edx, eax
cmp edx, 1
jle 0x402d8c
lea eax, [esp + 0x20]
test eax, eax
je 0x402d7b
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [esp + 0x20]
lea ecx, [esp + 0xc]
push edx
push eax
call fcn.00404780
jmp 0x402dda
push 0x1ff
lea ecx, [esp + 0x10]
mov esi, 0x200
call fcn.00404560
test eax, eax
je 0x402dcf
push esi
push eax
push 0xba
call fcn.00404b30
mov ecx, esi
sub ecx, eax
cmp ecx, 1
jg 0x402dcf
add esi, 0x100
lea ecx, [esp + 0xc]
lea edx, [esi - 1]
push edx
call fcn.00404560
test eax, eax
jne 0x402da3
push 0xffffffffffffffff
lea ecx, [esp + 0x10]
call fcn.00404620
mov eax, 0x4c0178
test eax, eax
je 0x402dee
push 0x4c0178
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x4c0178
push eax
lea ecx, [esp + 0x10]
call fcn.00404840
mov eax, dword [esp + 0xc]
push eax
mov ecx, dword [eax - 8]
push ecx
lea ecx, [esp + 0x10]
call fcn.00404840
mov eax, dword [esp + 0x10]
lea edx, [esp + 8]
push edx
mov ecx, dword [eax + 0x14]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00406260
lea ecx, [esp + 0x14]
mov byte [esp + 0x228], 2
call fcn.004063b0
lea ecx, [esp + 0x14]
mov esi, eax
mov byte [esp + 0x228], 1
call fcn.00406370
mov eax, dword [esp + 0xc]
mov ecx, dword [0x4c0084]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x402e7a
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x402e7a
mov eax, dword [esp + 0xc]
add eax, 0xfffffff4
push eax
call fcn.0049c000
add esp, 4
mov eax, dword [esp + 8]
mov edx, dword [0x4c0084]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x402ea5
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x402ea5
mov edx, dword [esp + 8]
add edx, 0xfffffff4
push edx
call fcn.0049c000
add esp, 4
mov ecx, dword [esp + 0x220]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x224
ret
Function at 0x4035d0
Capabilities:
Delete file
Move file

Disassembly:
push esi
mov esi, ecx
call fcn.0043d080
push 0xdc
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x4cf828
call fcn.0041d690
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x403608
push 4
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop esi
ret

Function at 0x403620
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x22c
push ebp
push esi
xor ebp, ebp
push edi
push ebp
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x403646
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x22c
ret
mov ecx, 0x8a
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x40367d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x22c
ret
mov edi, dword [sym.imp.MSVCRT.dll__wcsicmp]
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_wcsstr]
lea ecx, [esp + 0x34]
push 0x4c02c8
push ecx
call edi
add esp, 8
test eax, eax
je 0x4036b0
lea edx, [esp + 0x34]
push str.360Inst_
push edx
call ebx
add esp, 8
test eax, eax
je 0x4036b1
inc ebp
lea eax, [esp + 0x10]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40368a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
mov eax, ebp
pop esi
pop ebp
add esp, 0x22c
ret
Function at 0x4050f0
Capabilities:
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4a950b
push eax
mov eax, 0x12854
mov dword fs:[0], esp
call fcn.004a0d60
mov ecx, dword [esp + 0x12864]
mov eax, dword [esp + 0x12868]
push ebx
push ebp
push esi
push edi
and ecx, 0xffff
push eax
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x405227
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x405227
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
lea eax, [esi*4]
push eax
mov dword [esp + 0x14], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
lea ecx, [esp + 0x18]
mov edi, eax
call fcn.00407d40
lea edx, [esp + 0x10]
lea ecx, [esp + 0x18]
push edx
push edi
push esi
push ebp
mov dword [esp + 0x1287c], 0
call fcn.00408b60
mov esi, dword [esp + 0x1287c]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0
push 1
push 0
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
or ebp, 0xffffffff
cmp esi, ebp
jne 0x4051de
lea ecx, [esp + 0x18]
mov dword [esp + 0x1286c], ebp
call fcn.00407d90
xor eax, eax
jmp 0x40522c
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push 0
push eax
push ecx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
push edi
call fcn.0049c000
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x1286c], ebp
call fcn.00407d90
mov eax, 1
mov ecx, dword [esp + 0x12864]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x12860
ret
Function at 0x405c40
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
xor edi, edi
mov eax, dword [eax]
push eax
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x405c73
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x405c6c
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret

Function at 0x406b80
Capabilities:
Check os version

Disassembly:
sub esp, 0x140
push esi
push edi
mov ecx, 9
xor eax, eax
lea edi, [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
rep stosd dword es:[edi], eax
mov ecx, 0x47
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0x11c
push eax
call esi
test eax, eax
jne 0x406bcc
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], 0x114
push ecx
call esi
test eax, eax
je 0x406c0d
push str.GetNativeSystemInfo
push 0x4c0514
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x406c0d
lea edx, [esp + 8]
push edx
call eax
mov ax, word [esp + 8]
cmp ax, 9
je 0x406bff
cmp ax, 6
jne 0x406c0d
pop edi
mov eax, 1
pop esi
add esp, 0x140
ret
pop edi
xor eax, eax
pop esi
add esp, 0x140
ret

Function at 0x406c20
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
lea eax, [esp]
mov dword [esp], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov ecx, dword [esp + 4]
xor eax, eax
cmp ecx, 5
sete al
add esp, 0x114
ret

Function at 0x406c80
Capabilities:
Get disk size

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x224
push esi
xor esi, esi
cmp edx, esi
je 0x406d0e
push edi
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x22]
mov word [esp + 0x20], si
push esi
rep stosd dword es:[edi], eax
push esi
lea eax, [esp + 0x28]
push esi
push eax
push edx
call dword [sym.imp.MSVCRT.dll__wsplitpath]
add esp, 0x14
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
lea eax, [esp + 8]
push ecx
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
pop edi
je 0x406d0e
mov eax, dword [esp + 0x230]
mov edx, dword [esp + 4]
mov ecx, dword [esp + 8]
pop esi
mov dword [eax], edx
mov dword [eax + 4], ecx
mov eax, 1
add esp, 0x224
ret
xor eax, eax
pop esi
add esp, 0x224
ret
Function at 0x4074d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a9657
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov ecx, dword [esp + 0x34]
lea eax, [esp + 8]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x2c], 1
call fcn.00407860
mov edi, dword [esp + 0x30]
mov ecx, esi
push edi
call fcn.00407400
cmp eax, dword [esi + 0xc]
jne 0x407571
mov eax, dword [esp + 8]
mov dword [esp + 0x10], edi
test eax, eax
mov dword [esp + 0x14], eax
je 0x40753c
mov edx, dword [eax]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0xc]
lea ecx, [esi + 4]
lea edx, [esp + 0x10]
mov byte [esp + 0x24], 2
push edx
push 1
push eax
call fcn.00407980
mov eax, dword [esp + 0x14]
mov byte [esp + 0x24], 1
test eax, eax
je 0x40759b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x40759b
mov esi, dword [eax + 4]
mov ecx, dword [esp + 8]
cmp esi, ecx
je 0x40759f
mov dword [eax + 4], ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x407591
mov edx, dword [ecx]
push ecx
call dword [edx + 4]
mov ecx, dword [esp + 8]
test esi, esi
je 0x40759f
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov ecx, dword [esp + 8]
mov esi, dword [esp + 0x2c]
test ecx, ecx
mov dword [esi], ecx
je 0x4075b3
mov edx, dword [ecx]
push ecx
call dword [edx + 4]
mov ecx, dword [esp + 8]
mov dword [esp + 0xc], 1
test ecx, ecx
mov byte [esp + 0x24], 0
je 0x4075ca
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 0x10

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

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
xor ebx, ebx
push edi
mov dword [esp + 0xc], ecx
mov eax, dword [ebp]
cmp eax, ebx
je 0x407880
mov dword [ebp], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jne 0x407893
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 8
push ebx
push ebx
push 3
push ebx
push ebx
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, ebx
jne 0x4078b6
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 8
lea edx, [esp + 0x10]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp dword [esp + 0x14], ebx
jle 0x4078da
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 8
mov eax, dword [esp + 0x10]
push esi
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x407922
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x24]
push ebx
push ecx
push edx
push esi
push edi
mov dword [esp + 0x38], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push ebp
push eax
push esi
call fcn.00407730
push esi
mov ebx, eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
mov eax, ebx
pop ebp
pop ebx
add esp, 0xc
ret 8
Function at 0x4098a0
Capabilities:
Read .ini file

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0xc]
push eax
mov eax, dword [esi + 8]
push ecx
mov ecx, dword [esp + 0x10]
push edx
mov edx, dword [esi + 4]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, dword [esi + 0xc]
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
ret 4

Function at 0x409960
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x409972
pop esi
ret
mov ecx, esi
call fcn.00409010
call fcn.00406b80
test eax, eax
je 0x409989
push str.Product64
jmp 0x40998e
push str.Product32
mov ecx, esi
call fcn.0040c360
mov ecx, dword [esi + 0x1c]
call fcn.00436790
test eax, eax
jg 0x4099ad
push 0x4c0f40
mov ecx, esi
call fcn.0040c360
mov ecx, esi
call fcn.0040c540
mov eax, dword [esi + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4099c6
push eax
mov ecx, esi
call fcn.00409c90
mov eax, dword [esi + 0xc]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4099d8
push eax
mov ecx, esi
call fcn.00409f70
mov eax, dword [esi + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4099ea
push eax
mov ecx, esi
call fcn.0040a070
mov eax, dword [esi + 0x14]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4099fc
push eax
mov ecx, esi
call fcn.0040a170
mov eax, dword [esi + 0x18]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x409a0e
push eax
mov ecx, esi
call fcn.0040a290
mov eax, 1
pop esi
ret
Function at 0x409f70
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x2000
call fcn.004a0d60
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x800
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov edi, dword [esi]
test edi, edi
je 0x409fa5
mov ebp, dword [esp + 0x2010]
test ebp, ebp
je 0x409fa5
lea eax, [esp + 0xc]
test eax, eax
jne 0x409fb3
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x2000
ret 4
push ebx
push edi
lea ecx, [esp + 0x14]
push 0x1000
push ecx
push 0
push str.PageState
push ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [esp + 0x10], 0
jne 0x409fd9
xor eax, eax
jmp 0x40a031
mov ebx, dword [sym.imp.MSVCRT.dll__wcsnicmp]
push 0x20
lea edx, [esp + 0x14]
push str.Hide
push edx
call ebx
add esp, 0xc
test eax, eax
jne 0x409ffb
mov eax, 1
jmp 0x40a031
push 0x20
lea eax, [esp + 0x14]
push str.Minimized
push eax
call ebx
add esp, 0xc
test eax, eax
jne 0x40a017
mov eax, 2
jmp 0x40a031
push 0x20
lea ecx, [esp + 0x14]
push str.Smart
push ecx
call ebx
add esp, 0xc
neg eax
sbb eax, eax
and al, 0xfd
add eax, 3
mov edx, dword [esi + 0x1c]
push edi
push 0
push str.ShowCancelButton
push ebp
mov dword [edx + 0x154], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, dword [esi + 0x1c]
xor ecx, ecx
cmp eax, 1
pop ebx
sete cl
pop edi
pop esi
mov dword [edx + 0x158], ecx
mov eax, 1
pop ebp
add esp, 0x2000
ret 4

Function at 0x40a070
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x2000
call fcn.004a0d60
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x800
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov edi, dword [esi]
test edi, edi
je 0x40a0a5
mov ebp, dword [esp + 0x2010]
test ebp, ebp
je 0x40a0a5
lea eax, [esp + 0xc]
test eax, eax
jne 0x40a0b3
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x2000
ret 4
push ebx
push edi
lea ecx, [esp + 0x14]
push 0x1000
push ecx
push 0
push str.PageState
push ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [esp + 0x10], 0
jne 0x40a0d9
xor eax, eax
jmp 0x40a131
mov ebx, dword [sym.imp.MSVCRT.dll__wcsnicmp]
push 0x20
lea edx, [esp + 0x14]
push str.Hide
push edx
call ebx
add esp, 0xc
test eax, eax
jne 0x40a0fb
mov eax, 1
jmp 0x40a131
push 0x20
lea eax, [esp + 0x14]
push str.Minimized
push eax
call ebx
add esp, 0xc
test eax, eax
jne 0x40a117
mov eax, 2
jmp 0x40a131
push 0x20
lea ecx, [esp + 0x14]
push str.Smart
push ecx
call ebx
add esp, 0xc
neg eax
sbb eax, eax
and al, 0xfd
add eax, 3
mov edx, dword [esi + 0x1c]
push edi
push 0
push str.ShowCancelButton
push ebp
mov dword [edx + 0x15c], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, dword [esi + 0x1c]
xor ecx, ecx
cmp eax, 1
pop ebx
sete cl
pop edi
pop esi
mov dword [edx + 0x160], ecx
mov eax, 1
pop ebp
add esp, 0x2000
ret 4