joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006ee7
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x10097b8
call fcn.01007094
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x100b53c
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x1006c9e
cmp eax, esi
jne 0x1006c91
xor esi, esi
inc esi
mov ebx, esi
jmp 0x1006ca1
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1006c78
xor esi, esi
inc esi
mov eax, dword [0x100b538]
cmp eax, esi
jne 0x1006cb4
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1006ce3
mov eax, dword [0x100b538]
test eax, eax
jne 0x1006cdd
mov dword [0x100b538], esi
push 0x10011ec
push 0x10011e0
call fcn.01006bdd
pop ecx
pop ecx
test eax, eax
je 0x1006ce3
jmp 0x1006e0b
mov dword [0x100b150], esi
mov eax, dword [0x100b538]
cmp eax, esi
jne 0x1006d07
push 0x10011dc
push 0x10011cc
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x100b538], 2
test ebx, ebx
jne 0x1006d13
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x100b540], 0
je 0x1006d37
push 0x100b540
call fcn.01007009
pop ecx
test eax, eax
je 0x1006d37
push 0
push 2
push 0
call dword [0x100b540]
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x1006d93
test al, al
je 0x1006d51
cmp dword [ebp - 0x1c], 0
jne 0x1006d93
mov al, byte [esi]
test al, al
je 0x1006d61
cmp al, 0x20
ja 0x1006d61
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1006d51
test byte [ebp - 0x3c], 1
je 0x1006d6d
movzx eax, word [ebp - 0x38]
jmp 0x1006d70
push 0xa
pop eax
push eax
push esi
push 0
push 0x1000000
call main
mov dword [0x100b14c], eax
cmp dword [0x100b140], 0
jne 0x1006de7
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp al, 0x22
jne 0x1006da2
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x1006db5
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x1006d3e
cmp dword [0x100b150], 0
jne 0x1006df6
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x100b14c]
jmp 0x1006e17
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.010070d9
ret
call fcn.01007287
jmp 0x1006c3e
Function at 0x1007995
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], 0x80000001
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
jne 0x10079b7
mov dword [ebp - 0xc], edi
lea eax, [ebp - 8]
push eax
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0100783c
mov esi, eax
cmp esi, edi
mov dword [ebp + 0xc], esi
jl 0x1007a70
mov dword [ebp + 8], edi
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
call fcn.01007433
test eax, eax
je 0x1007a6d
cmp dword [ebp - 4], edi
jne 0x1007a2d
cmp dword [ebp + 8], edi
jbe 0x1007a66
push dword [ebp + 8]
call fcn.01007499
lea ecx, [ebp - 4]
mov esi, eax
call fcn.010076a8
cmp esi, edi
je 0x1007a23
mov dword [ebp - 4], esi
jmp 0x10079d8
mov dword [ebp - 4], edi
mov esi, 0x8007000e
jmp 0x1007a70
cmp dword [ebp - 0x10], 4
je 0x1007a3a
mov esi, 0x8007000d
jmp 0x1007a70
mov ebx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x14]
push ebx
push dword [ebp - 4]
call fcn.0100758d
mov esi, eax
cmp esi, edi
jl 0x1007a70
cmp dword [ebp + 0xc], edi
je 0x1007a5b
mov dword [ebp - 4], edi
mov eax, dword [ebp + 0x18]
cmp eax, edi
je 0x1007a70
mov dword [eax], ebx
jmp 0x1007a70
mov esi, 0x8000ffff
jmp 0x1007a70
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 4]
call fcn.010076a8
lea ecx, [ebp - 0xc]
call fcn.01007655
lea ecx, [ebp - 8]
call fcn.01007655
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x14
Function at 0x1007f04
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x124], ebx
mov dword [ebp - 0x128], 1
cmp esi, ebx
jne 0x1007f48
mov edi, 0x80070057
jmp 0x100804d
cmp eax, ebx
je 0x1007f3e
lea eax, [ebp - 0x12c]
push eax
lea eax, [esi + 0x478]
push eax
call fcn.01007ead
mov edi, eax
cmp edi, ebx
jl 0x100804d
cmp dword [ebp - 0x12c], ebx
je 0x1007ffc
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1007fa3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.010074d9
mov edi, eax
jmp 0x100804d
cmp dword [ebp - 0x11c], 6
jb 0x1008039
push 0x1003d18
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea ecx, [ebp - 0x124]
mov edi, eax
call fcn.01007671
cmp edi, ebx
jne 0x1007fd4
mov dword [ebp - 0x124], ebx
jmp 0x1007f90
push 0x1003f7c
push edi
mov dword [ebp - 0x124], edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x1007f90
lea ecx, [ebp - 0x128]
push ecx
push esi
call eax
mov edi, eax
cmp edi, ebx
jl 0x100804d
jmp 0x100803f
cmp byte [esi + 0x320], bl
je 0x100803f
push ebx
lea eax, [ebp - 0x12c]
push eax
push 0x1003ec4
push 0x1003e58
push 0x80000002
call fcn.01007995
cmp eax, ebx
jge 0x1008030
cmp eax, 0x80070002
je 0x100803f
jmp 0x1007f9c
cmp dword [ebp - 0x12c], 1
jne 0x100803f
mov dword [ebp - 0x128], ebx
mov eax, dword [ebp - 0x130]
mov ecx, dword [ebp - 0x128]
mov dword [eax], ecx
lea ecx, [ebp - 0x124]
call fcn.01007671
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01006f01
leave
ret 8
Function at 0x1008101
Capabilities:
Create directory
Query environment variable
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xab0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x10040ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp + 8], 1
mov dword [ebp - 0xaa0], eax
jne 0x1008137
mov esi, 0x100409c
jmp 0x1008142
cmp dword [ebp + 8], 2
jne 0x1008142
mov esi, 0x1004090
lea eax, [ebp - 0xab0]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0xaa4]
push esi
push eax
movzx eax, word [ebp - 0xaa6]
push eax
movzx eax, word [ebp - 0xaa8]
push eax
movzx eax, word [ebp - 0xaaa]
push eax
movzx eax, word [ebp - 0xaae]
push eax
movzx eax, word [ebp - 0xab0]
push eax
push 0x1004020
lea eax, [ebp - 0xa4]
push 0x50
push eax
call fcn.010080c6
add esp, 0x28
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
mov ebx, 0x1f4
push ebx
lea eax, [ebp - 0xa94]
push eax
call fcn.010075b9
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0x105
lea eax, [ebp - 0x4a4]
push eax
push 0x1004138
call edi
xor esi, esi
push esi
push 0x80
push 4
push esi
push 1
push 6
lea eax, [ebp - 0x4a4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xa98], eax
cmp eax, 0xffffffff
jne 0x1008239
push 0x104
lea eax, [ebp - 0x6ac]
push eax
push 0x10040c0
call edi
push esi
lea eax, [ebp - 0x6ac]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
push 0x80
push 4
push esi
push 1
push 6
lea eax, [ebp - 0x4a4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xa98], eax
cmp eax, 0xffffffff
je 0x10082fb
push 2
push esi
push esi
push dword [ebp - 0xa98]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x10082ef
push esi
push esi
push ebx
lea eax, [ebp - 0x298]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0xa4]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
lea eax, [ebp - 0xa9c]
push eax
lea eax, [ebp - 0x298]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
lea eax, [ebp - 0x298]
push eax
push dword [ebp - 0xa98]
call edi
push esi
push esi
push ebx
lea eax, [ebp - 0x298]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0xa94]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
lea eax, [ebp - 0xa9c]
push eax
lea eax, [ebp - 0x298]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x298]
push eax
push dword [ebp - 0xa98]
call edi
push esi
lea eax, [ebp - 0xa9c]
push eax
push 2
push 0x10040b8
push dword [ebp - 0xa98]
call edi
push dword [ebp - 0xa98]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xaa0]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01006f01
leave
ret
Function at 0x1008541
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 8], 0
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 4]
push eax
mov ebx, 0x20019
push ebx
push 0
mov edi, str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorerWAU
push edi
push 0x80000002
call esi
test eax, eax
jne 0x100859f
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push str.Disabled
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 0
je 0x10085b8
push 0x10044f8
push 2
call fcn.01008101
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x1008606
lea eax, [ebp - 4]
push eax
push ebx
push 0
push edi
push 0x80000001
call esi
test eax, eax
jne 0x10085f7
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push str.Disabled
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 0
je 0x1008604
push 0x10044a8
jmp 0x10085aa
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1008f91
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp eax, edi
jne 0x1008fb3
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
leave
ret 0xc
push esi
cmp dword [ebp + 0xc], edi
je 0x1008fe4
lea ecx, [ebp - 4]
push ecx
push 0x20019
push edi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1008fd6
cmp dword [ebp - 4], edi
jne 0x1008fe7
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop esi
jmp 0x1008fae
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], edi
je 0x1009005
push edi
push edi
push edi
push edi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
neg esi
sbb esi, esi
inc esi
jmp 0x1009008
xor esi, esi
inc esi
cmp dword [ebp + 0xc], edi
je 0x1008fd8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1008fd8
Function at 0x100901d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], 4
mov dword [ebp - 0x10], esi
cmp eax, esi
jne 0x100904b
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10090b8
cmp dword [ebp + 0xc], esi
je 0x1009070
lea ecx, [ebp - 4]
push ecx
push 0x20019
push esi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x100906d
cmp dword [ebp - 4], esi
jne 0x1009073
push eax
jmp 0x1009041
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp edi, esi
jne 0x100909c
cmp dword [ebp - 0xc], 4
je 0x100909f
push 0xd
pop edi
mov dword [ebp - 8], esi
cmp dword [ebp + 0xc], esi
je 0x10090ad
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret 0xc
Function at 0x401ad5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x412284]
jne 0x401adf
repz ret
jmp fcn.0040320d

Function at 0x404939
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test dword [esi - 0x6b000007], esp
mov byte [ebp - 0x659], 0x97
mov byte [ebp - 0x658], 0x9b
mov byte [ebp - 0x657], 0xf8
lea eax, [ebp - 0x664]
stc
invalid
call dword [eax - 0x18]
xchg ebp, eax
hlt
invalid
call [ecx + 0x50]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00403daa
add esp, 0xc
mov dword [ebp - 0x67c], eax
and byte [ebp - 0x524], 0
and byte [ebp - 0x523], 0
mov byte [ebp - 0x522], 0x15
and byte [ebp - 0x521], 0
mov byte [ebp - 0x520], 0xa2
mov byte [ebp - 0x51f], 0x8f
mov byte [ebp - 0x51e], 0x8b
mov byte [ebp - 0x51d], 0x9a
mov byte [ebp - 0x51c], 0xac
mov byte [ebp - 0x51b], 0x98
mov byte [ebp - 0x51a], 0x8f
mov byte [ebp - 0x519], 0x8f
mov byte [ebp - 0x518], 0xea
lea eax, [ebp - 0x524]
push eax
call fcn.00403df5
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00403daa
add esp, 0xc
mov dword [ebp - 0x39c], eax
call fcn.00403de5
dec edi
mov dword [ebp - 0x38], esi
and byte [ebp - 0x514], 0
and byte [ebp - 0x513], 0
mov byte [ebp - 0x512], 0xe3
and byte [ebp - 0x511], 0
mov byte [ebp - 0x510], 0x5b
mov byte [ebp - 0x50f], 0x79
mov byte [ebp - 0x50e], 0x68
mov byte [ebp - 0x50d], 0x5a
mov byte [ebp - 0x50c], 0x75
mov byte [ebp - 0x50b], 0x70
mov byte [ebp - 0x50a], 0x79
mov byte [ebp - 0x509], 0x4f
mov byte [ebp - 0x508], 0x75
mov byte [ebp - 0x507], 0x66
mov byte [ebp - 0x506], 0x79
mov byte [ebp - 0x505], 0x1c
lea eax, [ebp - 0x514]
push eax
call fcn.00403df5
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00403daa
add esp, 0xc
mov dword [ebp - 0x33c], eax
call fcn.00403de5
invalid
Function at 0x402040
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4d9694]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
xor ecx, ecx
test edi, edi
je 0x4020e1
mov edx, dword [ebp + 0xc]
lea eax, [edx - 1]
test eax, eax
jne 0x4020e1
cmp edx, 1
jne 0x4020d0
push esi
push pe_nt_image_headers32
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.00464ad0
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
xor esi, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4020c0
mov eax, dword [ebp - 0x114]
cmp eax, 6
ja 0x4020bb
cmp eax, 6
jne 0x4020c0
cmp dword [ebp - 0x110], esi
jbe 0x4020c0
mov esi, 1
shl esi, 0xb
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ecx, eax
pop esi
mov eax, ecx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00448f14
mov esp, ebp
pop ebp
ret
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.00448f14
mov esp, ebp
pop ebp
ret

Function at 0x402470
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x101
push 0
push dword [ebp + 0xc]
mov dword [ebp - 8], 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4024e0
push esi
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push str.EulaAccepted
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x4024e0
cmp dword [ebp - 8], 0
je 0x4024e0
mov eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x402980
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
test edi, edi
je 0x402a30
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x402a30
xor esi, esi
cmp dword [edi], ebx
jle 0x402a0e
nop dword [eax]
nop dword [eax + eax]
push 0x4bb914
push dword [eax + esi*4]
call fcn.00470fad
add esp, 8
test eax, eax
je 0x4029e7
mov eax, dword [ebp + 0x10]
push str._accepteula
push dword [eax + esi*4]
call fcn.00470fad
add esp, 8
test eax, eax
je 0x4029e7
mov eax, dword [ebp + 0x10]
inc esi
xor ebx, ebx
cmp esi, dword [edi]
jl 0x4029b0
jmp 0x402a0e
mov edx, dword [edi]
mov ebx, 1
lea eax, [edx - 1]
cmp esi, eax
jge 0x402a09
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + esi*4 + 4]
mov dword [ecx + esi*4], eax
inc esi
mov edx, dword [edi]
lea eax, [edx - 1]
cmp esi, eax
jl 0x4029f8
lea eax, [edx - 1]
mov dword [edi], eax
push ebx
push dword [ebp + 8]
call fcn.00402b90
add esp, 8
mov ecx, 1
test eax, eax
cmovne ebx, ecx
xor eax, eax
pop edi
test ebx, ebx
pop esi
setne al
pop ebx
pop ebp
ret
push str.CommandLineToArgvW
push 1
push str.Shell32.dll
xor edi, edi
call fcn.00402040
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x402ad4
push 0x4ddbd8
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call esi
xor esi, esi
mov ebx, eax
cmp dword [0x4ddbd8], esi
jle 0x402ad4
push 0x4bb914
push dword [ebx + esi*4]
call fcn.00470fad
add esp, 8
test eax, eax
je 0x402aa6
push str._accepteula
push dword [ebx + esi*4]
call fcn.00470fad
add esp, 8
test eax, eax
je 0x402aa6
inc esi
xor edi, edi
cmp esi, dword [0x4ddbd8]
jl 0x402a71
jmp 0x402ad4
mov ecx, dword [0x4ddbd8]
mov edi, 1
lea eax, [ecx - 1]
cmp esi, eax
jge 0x402acd
mov eax, dword [ebx + esi*4 + 4]
mov dword [ebx + esi*4], eax
inc esi
mov ecx, dword [0x4ddbd8]
lea eax, [ecx - 1]
cmp esi, eax
jl 0x402ab8
dec ecx
mov dword [0x4ddbd8], ecx
push edi
push dword [ebp + 8]
call fcn.00402b90
add esp, 8
mov ecx, 1
test eax, eax
cmovne edi, ecx
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x402b60
Capabilities:
Terminate process

Disassembly:
push dword [0x4d90c4]
push 0x4bba84
call fcn.004031a0
push str.This_is_the_first_run_of_this_program._You_must_accept_EULA_to_continue._n
call fcn.004031a0
push str.Use__accepteula_to_accept_EULA._n_n
call fcn.004031a0
add esp, 0x10
push 1
call fcn.0047153f
int3
Function at 0x4031d0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x403267
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov ecx, dword [ebp + 0xc]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4031f3
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push 2
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x403255
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
test edi, edi
je 0x403255
push dword [ebp - 4]
push dword [ebp + 0xc]
push edi
call fcn.00464c30
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.USER32.dll_CloseClipboard]
test esi, esi
je 0x403267
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x405e50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
ret
Function at 0x406dc0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
call fcn.00405d20
mov ecx, eax
test ecx, ecx
je 0x406e7a
mov eax, dword [ecx]
push ebx
call dword [eax + 0xc]
mov ebx, 1
mov ecx, ebx
lea edx, [eax + 0x10]
mov dword [esi], edx
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
add eax, 0xffffff80
or ecx, eax
mov edi, dword [edi]
jge 0x406e08
push 0x80
mov ecx, esi
call fcn.00406440
mov edx, dword [esi]
cmp dword [edx - 8], 0x80
jl 0x406e70
push edi
push 0x80
push edx
push dword [ebp + 0x14]
mov dword [edx - 0xc], 0x80
xor ecx, ecx
mov eax, dword [esi]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
mov word [eax + 0x100], cx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edi, eax
test edi, edi
js 0x406e70
mov ecx, dword [esi]
mov eax, dword [ecx - 8]
sub ebx, dword [ecx - 4]
sub eax, edi
or ebx, eax
pop ebx
jge 0x406e58
push edi
mov ecx, esi
call fcn.00406440
mov ecx, dword [esi]
cmp edi, dword [ecx - 8]
jg 0x406e70
mov dword [ecx - 0xc], edi
xor eax, eax
mov ecx, dword [esi]
mov word [ecx + edi*2], ax
mov eax, esi
pop edi
pop esi
pop ebp
ret 0x10
push 0x80070057
call fcn.004059f0
push 0x80004005
call fcn.004059f0
int3

Function at 0x407460
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4074b9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4074b9
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4074aa
cmp esi, edx
jae 0x4074b9
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x407498
cmp esi, edx
jae 0x4074b9
cmp word [esi], 0
je 0x4074b9
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0x40e700
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, ecx
call fcn.00405d20
mov ecx, eax
test ecx, ecx
je 0x40e79c
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
push dword [ebx - 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
test edi, edi
js 0x40e792
mov edx, dword [esi]
mov ecx, 1
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, edi
or ecx, eax
jge 0x40e751
push edi
mov ecx, esi
call fcn.00406440
mov edx, dword [esi]
push edi
push edx
push dword [ebx - 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, 0xffffffff
jne 0x40e773
mov eax, dword [esi]
test eax, eax
je 0x40e777
push dword [eax - 8]
push eax
call fcn.0048cf3b
add esp, 8
test eax, eax
js 0x40e792
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x40e792
mov dword [ecx - 0xc], eax
xor edx, edx
mov ecx, dword [esi]
pop edi
mov word [ecx + eax*2], dx
mov eax, esi
pop esi
pop ebx
pop ebp
ret 4
push 0x80070057
call fcn.004059f0
push 0x80004005
call fcn.004059f0
int3