joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4528f0
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
cmp dword [ebp + 8], 0
je 0x452911
cmp dword [ebp + 0xc], 0
je 0x452911
cmp dword [ebp + 0x14], 0
je 0x452911
cmp dword [ebp + 0x18], 0
jne 0x452918
xor eax, eax
jmp 0x452a67
cmp dword [ebp + 0x1c], 0
je 0x452931
cmp dword [ebp + 0x1c], 1
je 0x452931
cmp dword [ebp + 0x1c], 2
je 0x452931
xor eax, eax
jmp 0x452a67
mov dword [ebp - 0xcc], 0
push 0xc8
push 0
lea eax, [ebp - 0xc8]
push eax
call fcn.00460cd0
add esp, 0xc
push 0xc8
lea ecx, [ebp - 0xc8]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00452620
test eax, eax
je 0x452a61
mov dword [ebp - 0xd4], 0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xd8], eax
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
mov dword [ebp - 0xd0], edx
lea eax, [ebp - 0xd4]
push eax
push 0x2001f
push 0
lea ecx, [ebp - 0xc8]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x452a61
cmp dword [ebp + 0x1c], 0
jne 0x4529fa
lea edx, [ebp - 0xd0]
push edx
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0xd8]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0xd4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4529f8
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 0xd0]
mov dword [ecx], edx
mov dword [ebp - 0xcc], 1
jmp 0x452a54
cmp dword [ebp + 0x1c], 1
jne 0x452a35
mov eax, dword [ebp - 0xd0]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0xd8]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0xd4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x452a33
mov dword [ebp - 0xcc], 1
jmp 0x452a54
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0xd4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x452a54
mov dword [ebp - 0xcc], 1
mov ecx, dword [ebp - 0xd4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xcc]
mov esp, ebp
pop ebp
ret 0x18
Function at 0x45e290
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x45e2a7
cmp dword [ebp + 0x14], 0
jne 0x45e2ab
xor eax, eax
jmp 0x45e30d
push 0
lea eax, [ebp - 4]
push eax
push 0
push 2
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x45e2d2
xor eax, eax
jmp 0x45e30d
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 1
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x45e2fe
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x45e30d
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x45e320
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
mov dword [ebp - 4], 1
cmp dword [ebp + 8], 0
jne 0x45e33e
xor eax, eax
jmp 0x45e39a
lea eax, [ebp - 8]
push eax
push 1
push 0
mov ecx, dword [ebp + 8]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x45e35d
xor eax, eax
jmp 0x45e39a
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x45e38b
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x45e39a
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x45e3a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x45e3b7
cmp dword [ebp + 0x14], 0
jne 0x45e3bb
xor eax, eax
jmp 0x45e41d
push 0
lea eax, [ebp - 4]
push eax
push 0
push 2
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x45e3e2
xor eax, eax
jmp 0x45e41d
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 3
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x45e40e
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x45e41d
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x460afe
Capabilities:
Accept command line arguments

Disassembly:
push 0x60
push 0x48b418
call fcn.0046455c
and dword [ebp - 4], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or dword [ebp - 4], 0xffffffff
mov ebx, 0x94
push ebx
push 0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x460cbf
mov dword [esi], ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push esi
test eax, eax
jne 0x460b5a
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x460cbf
mov eax, dword [esi + 0x10]
mov dword [0x4a2394], eax
mov eax, dword [esi + 4]
mov dword [0x4a23a0], eax
mov eax, dword [esi + 8]
mov dword [0x4a23a4], eax
mov eax, dword [esi + 0xc]
and eax, 0x7fff
mov dword [0x4a2398], eax
xor ebx, ebx
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [0x4a2394], 2
je 0x460b9b
or byte [0x4a2399], 0x80
mov eax, dword [0x4a23a0]
shl eax, 8
add eax, dword [0x4a23a4]
mov dword [0x4a239c], eax
call fcn.00460aa2
mov dword [ebp - 0x1c], eax
push ebx
call fcn.0046462b
pop ecx
test eax, eax
jne 0x460be2
cmp dword [0x4a2368], 1
jne 0x460bcf
call fcn.00465ae8
push 0x1c
call fcn.0046595c
push 0xff
call fcn.0046401d
pop ecx
pop ecx
mov dword [ebp - 4], 1
call fcn.00466163
test eax, eax
jge 0x460bfa
push 0x1b
call fcn.00460a4f
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4a3f7c], eax
call fcn.0046603b
mov dword [0x4a2360], eax
call fcn.00465f98
test eax, eax
jge 0x460c20
push 8
call fcn.00460a4f
pop ecx
call fcn.00465d4a
test eax, eax
jge 0x460c31
push 9
call fcn.00460a4f
pop ecx
call fcn.00464090
mov dword [ebp - 0x28], eax
cmp eax, ebx
je 0x460c44
push eax
call fcn.00460a4f
pop ecx
call fcn.00465ceb
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x460c58
movzx eax, word [ebp - 0x40]
jmp 0x460c5b
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push ebx
push 0x400000
call fcn.0040ff40
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x460c7a
push esi
call fcn.00464166
call fcn.00464194
jmp 0x460cac
or dword [ebp - 4], 0xffffffff
mov eax, esi
jmp 0x460cc4
mov eax, 0xff
call fcn.00464597
ret
Function at 0x46432e
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x46435f
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0x464366
cmp ebx, dword [ebp + 8]
jae 0x464366
xor eax, eax
jmp 0x464556
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x464377
xor eax, eax
inc eax
jmp 0x464555
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x46438d
cmp ecx, edx
jae 0x4644d2
cmp dword [eax + 4], 0
je 0x464396
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x46437e
cmp dword [ebp + 8], 0
je 0x4643b8
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4644d2
cmp eax, esi
jae 0x4644d2
mov eax, dword [0x4a23f8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4643dd
cmp dword [esi*4 + 0x4a2400], edi
je 0x4644d6
inc esi
cmp esi, eax
jl 0x4643cb
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x464552
cmp dword [ebp - 8], 0x1000000
jne 0x464552
test byte [ebp - 0xc], 0xcc
je 0x46445b
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x464552
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x464552
cmp word [eax + 0x18], 0x10b
jne 0x464552
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x464552
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x46445b
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x46445b
test byte [ecx + 0x27], 0x80
jne 0x4644d2
push 1
push 0x4a2440
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x46436f
mov ecx, dword [0x4a23f8]
test ecx, ecx
mov edx, ecx
jle 0x46448f
lea eax, [ecx*4 + 0x4a23fc]
cmp dword [eax], edi
je 0x46448f
dec edx
sub eax, 4
test edx, edx
jg 0x464483
test edx, edx
jne 0x4644c0
push 0xf
pop ebx
cmp ecx, ebx
jg 0x46449c
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4644b4
lea eax, [edx*4 + 0x4a2400]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4644a2
cmp ecx, 0x10
jge 0x4644c0
inc ecx
mov dword [0x4a23f8], ecx
push 0
push 0x4a2440
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x46436f
xor eax, eax
jmp 0x464555
test esi, esi
jle 0x46436f
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4a2440
call ebx
test eax, eax
jne 0x46436f
cmp dword [esi*4 + 0x4a2400], edi
je 0x46452c
mov eax, dword [0x4a23f8]
lea esi, [eax - 1]
test esi, esi
jl 0x46451a
cmp dword [esi*4 + 0x4a2400], edi
je 0x464516
dec esi
jns 0x46450a
test esi, esi
jge 0x46452a
cmp eax, 0x10
jge 0x464525
inc eax
mov dword [0x4a23f8], eax
lea esi, [eax - 1]
jmp 0x46452c
je 0x464544
xor ecx, ecx
test esi, esi
jl 0x464544
lea eax, [ecx*4 + 0x4a2400]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x464532
push 0
push 0x4a2440
call ebx
jmp 0x46436f
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46595c
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 4], esi
cmp ecx, dword [esi*8 + 0x491a18]
je 0x46597e
inc esi
cmp esi, 0x13
mov dword [ebp - 4], esi
jb 0x46596c
cmp esi, 0x13
je 0x465aba
mov eax, dword [0x4a2368]
cmp eax, 1
push ebx
je 0x465a89
test eax, eax
jne 0x4659a7
cmp dword [0x4919a0], 1
je 0x465a89
cmp ecx, 0xfc
je 0x465ab9
push edi
push 6
pop ecx
mov esi, str.Runtime_Error__n_nProgram:
mov edi, 0x4a2448
rep movsd dword es:[edi], dword [esi]
push 0x104
mov ebx, 0x4a2462
push ebx
movsw word es:[edi], word [esi]
push 0
mov byte [0x4a2566], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4659f5
push 5
pop ecx
mov esi, str._program_name_unknown_
mov edi, 0x4a2462
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4659fa
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x465a2d
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x465a0e
sub eax, edx
push 3
lea eax, [eax + 0x4a2427]
push 0x46f908
push eax
call fcn.0045eac0
add esp, 0xc
mov edx, 0x4a2448
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x465a35
mov eax, dword [ebp - 4]
mov eax, dword [eax*8 + 0x491a1c]
mov esi, 0x488f90
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x465a51
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x465a5d
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.004675e7
add esp, 0xc
pop edi
jmp 0x465ab9
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x465ab9
mov edx, dword [esi*8 + 0x491a1c]
mov ecx, edx
lea esi, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x465aa1
push 0
sub ecx, esi
lea esi, [ebp - 8]
push esi
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebx
pop esi
leave
ret
Function at 0x46603b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4a2870]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push edi
xor ebx, ebx
xor edi, edi
cmp eax, ebx
jne 0x466087
call esi
mov edi, eax
cmp edi, ebx
je 0x46606d
mov dword [0x4a2870], 1
jmp 0x46608c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x466082
push 2
pop eax
mov dword [0x4a2870], eax
jmp 0x466087
mov eax, dword [0x4a2870]
cmp eax, 1
jne 0x466104
cmp edi, ebx
jne 0x466098
call esi
mov edi, eax
cmp edi, ebx
je 0x46610d
cmp word [edi], bx
mov eax, edi
je 0x4660ad
inc eax
inc eax
cmp word [eax], bx
jne 0x46609f
inc eax
inc eax
cmp word [eax], bx
jne 0x46609f
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
sub eax, edi
push ebx
sar eax, 1
inc eax
push eax
push edi
push ebx
push ebx
mov dword [ebp - 0xc], eax
call esi
mov ecx, eax
cmp ecx, ebx
mov dword [ebp - 8], ecx
je 0x4660fb
call fcn.00463f53
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4660fb
push ebx
push ebx
push dword [ebp - 8]
push eax
push dword [ebp - 0xc]
push edi
push ebx
push ebx
call esi
test eax, eax
jne 0x4660f8
push dword [ebp - 4]
call fcn.004603a8
pop ecx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x46615c
cmp eax, 2
je 0x466111
cmp eax, ebx
je 0x466111
xor eax, eax
jmp 0x46615e
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x46610d
cmp byte [esi], bl
je 0x46612e
inc eax
cmp byte [eax], bl
jne 0x466124
inc eax
cmp byte [eax], bl
jne 0x466124
sub eax, esi
inc eax
mov edi, eax
mov ecx, edi
call fcn.00463f53
cmp eax, ebx
je 0x466155
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 4]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46696b
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x4a3e24]
mov eax, dword [0x4919d4]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 0x41c], edi
jae 0x466b51
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x4a3e40]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x424], ebx
je 0x466b51
and dword [ebp - 0x414], 0
and dword [ebp - 0x420], 0
cmp dword [ebp + 0x10], 0
jne 0x4669dc
xor eax, eax
jmp 0x466b65
test al, 0x20
je 0x4669ef
push 2
push 0
push 0
push ecx
call fcn.0046853f
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x466aaf
and dword [ebp - 0x40c], 0
cmp dword [ebp + 0x10], 0
mov dword [ebp - 0x410], edi
jbe 0x466b2b
mov ecx, dword [ebp - 0x410]
xor edi, edi
sub ecx, dword [ebp - 0x41c]
lea eax, [ebp - 0x408]
cmp ecx, dword [ebp + 0x10]
jae 0x466a5e
mov edx, dword [ebp - 0x410]
inc dword [ebp - 0x410]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x466a4c
inc dword [ebp - 0x420]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x424]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x466a28
mov edi, eax
lea eax, [ebp - 0x408]
sub edi, eax
push 0
lea eax, [ebp - 0x418]
push eax
push edi
lea eax, [ebp - 0x408]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x466add
mov eax, dword [ebp - 0x418]
add dword [ebp - 0x414], eax
cmp eax, edi
jl 0x466ae9
mov eax, dword [ebp - 0x410]
sub eax, dword [ebp - 0x41c]
cmp eax, dword [ebp + 0x10]
jb 0x466a14
jmp 0x466ae9
push 0
lea ecx, [ebp - 0x418]
push ecx
push dword [ebp + 0x10]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x466add
mov eax, dword [ebp - 0x418]
and dword [ebp - 0x40c], 0
mov dword [ebp - 0x414], eax
jmp 0x466ae9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp - 0x414]
test eax, eax
jne 0x466b49
cmp dword [ebp - 0x40c], eax
je 0x466b25
push 5
pop eax
cmp dword [ebp - 0x40c], eax
jne 0x466b17
mov dword [0x4a2388], 9
mov dword [0x4a238c], eax
jmp 0x466b62
push dword [ebp - 0x40c]
call fcn.00468258
pop ecx
jmp 0x466b62
mov edi, dword [ebp - 0x41c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x466b3d
cmp byte [edi], 0x1a
je 0x4669d5
mov dword [0x4a2388], 0x1c
jmp 0x466b5b
sub eax, dword [ebp - 0x420]
jmp 0x466b65
mov dword [0x4a2388], 9
and dword [0x4a238c], 0
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.00468c0c
leave
ret
Function at 0x4675e7
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4a2884], ebx
push esi
push edi
jne 0x467669
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4676a4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x48bee4
push edi
call esi
test eax, eax
mov dword [0x4a2884], eax
je 0x4676a4
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x4a2888], eax
call esi
cmp dword [0x4a2394], 2
mov dword [0x4a288c], eax
jne 0x467669
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4a2894], eax
je 0x467669
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4a2890], eax
mov eax, dword [0x4a2890]
test eax, eax
je 0x4676ae
call eax
test eax, eax
je 0x467695
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4a2894]
test eax, eax
je 0x467695
test byte [ebp - 8], 1
jne 0x4676ae
cmp dword [0x4a23a0], 4
jb 0x4676a8
or byte [ebp + 0x12], 0x20
jmp 0x4676cd
xor eax, eax
jmp 0x4676dd
or byte [ebp + 0x12], 4
jmp 0x4676cd
mov eax, dword [0x4a2888]
test eax, eax
je 0x4676cd
call eax
mov ebx, eax
test ebx, ebx
je 0x4676cd
mov eax, dword [0x4a288c]
test eax, eax
je 0x4676cd
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4a2884]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x467ea7
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
push 4
pop eax
call fcn.0045f540
mov dword [ebp - 8], esp
push 0x1c
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x467fa3
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [ebp - 0x4c]
xor esi, esi
cmp dword [0x4a2394], 2
jne 0x467f28
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, esi
je 0x467f28
push str.SetThreadStackGuarantee
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x467f28
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 4], esi
call eax
cmp eax, 1
pop ecx
jne 0x467f28
cmp dword [ebp - 4], esi
jbe 0x467f28
mov esi, dword [ebp - 4]
mov edx, dword [0x4a2394]
mov ebx, edx
dec ebx
neg ebx
sbb ebx, ebx
and ebx, 0x103
lea ecx, [edi - 1]
lea eax, [esi + edi - 1]
not ecx
inc ebx
and eax, ecx
mov dword [ebp - 4], eax
je 0x467f51
add eax, edi
mov dword [ebp - 4], eax
lea ecx, [edi + edi]
cmp eax, ecx
jae 0x467f5d
mov dword [ebp - 4], ecx
mov eax, ecx
lea esi, [edi - 1]
not esi
and esi, dword [ebp - 8]
sub esi, eax
cmp edx, 1
jne 0x467f6f
push 0x11
pop edi
mov ecx, dword [ebp - 0xc]
add edi, ecx
cmp esi, edi
jb 0x467fa3
push 4
push 0x1000
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x467fa3
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x467fa3
xor eax, eax
inc eax
jmp 0x467fa5
xor eax, eax
lea esp, [ebp - 0x5c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x468c0c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4919d4]
jne 0x468c1d
test ecx, 0xffff0000
jne 0x468c1d
ret
jmp fcn.00468c22
Function at 0x40b801
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x411a00
cmp edx, dword [eax]
je 0x40b823
add eax, 8
inc ecx
cmp eax, 0x411a90
jl 0x40b814
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x411a00]
jne 0x40b951
mov eax, dword [0x41911c]
cmp eax, 1
je 0x40b92b
test eax, eax
jne 0x40b854
cmp dword [0x411488], 1
je 0x40b92b
cmp edx, 0xfc
je 0x40b951
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40b88b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00408740
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00408910
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40b8ce
lea eax, [ebp - 0x1a4]
push eax
call fcn.00408910
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41050c
push edi
call fcn.00408fa0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00408740
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00408750
lea eax, [ebp - 0xa0]
push 0x4104ec
push eax
call fcn.00408750
push dword [esi + 0x411a04]
lea eax, [ebp - 0xa0]
push eax
call fcn.00408750
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040e2c6
add esp, 0x2c
pop edi
jmp 0x40b951
lea eax, [ebp + 8]
lea esi, [esi + 0x411a04]
push 0
push eax
push dword [esi]
call fcn.00408910
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x5d4304e
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x665d0f5e
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219