joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10025f20
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x100260ed
pushal
mov esi, section.UPX1
lea edi, [esi - 0x17000]
push edi
jmp 0x10025f4a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10025f51
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10025f40
mov eax, 1
add ebx, ebx
jne 0x10025f63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10025f58
jne 0x10025f74
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10025f58
xor ecx, ecx
sub eax, 3
jb 0x10025f88
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x10025ffa
mov ebp, eax
add ebx, ebx
jne 0x10025f93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x10025fa0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x10025fc4
inc ecx
add ebx, ebx
jne 0x10025fb0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x10025fa5
jne 0x10025fc1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10025fa5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x10025fe4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x10025fd5
jmp 0x10025f46
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x10025fe4
add edi, ecx
jmp 0x10025f46
pop esi
mov edi, esi
mov ecx, 0x6bc
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x10026002
cmp byte [edi], 0xa
jne 0x10026002
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x10026007
lea edi, [esi + 0x22000]
mov eax, dword [edi]
or eax, eax
je 0x1002607f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x26350]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x263dc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x10026034
mov ecx, edi
jns 0x10026063
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x263e0]
or eax, eax
je 0x10026079
mov dword [ebx], eax
add ebx, 4
jmp 0x10026051
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x100260b0
cmp al, 0xef
ja 0x100260a3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x10026085
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x10026092
mov ebp, dword [esi + 0x263e4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x100260e4
sub esp, 0xffffff80
jmp 0x10004a39
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x433072
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0xc0315eb
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x433060
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4330d2
mov ebx, 0x4304d8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x1ffe2922
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x401060
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
mov ecx, 0x27
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
mov dword [esi], 0
push eax
mov dword [ebx], 0
mov dword [esp + 0x14], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x4010ae
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x20]
dec eax
je 0x4011f2
dec eax
jne case.default.0x4010d0
mov eax, dword [esp + 0x14]
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x4010d0
jmp dword [eax*4 + 0x401288]
mov ecx, dword [esp + 0x20]
xor eax, eax
cmp ecx, 2
mov dword [esi], 0x40
sete al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x20]
xor eax, eax
cmp ecx, 2
mov dword [esi], 0x41
sete al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x18]
sub eax, 0
je 0x4011a7
dec eax
je 0x40114f
dec eax
jne case.default.0x4010d0
mov cl, byte [esp + 0xaa]
dec cl
neg cl
sbb ecx, ecx
and ecx, 0x10
add ecx, 0x60
mov dword [esi], ecx
call fcn.00401030
mov ecx, dword [esp + 0x20]
mov dword [ebx], eax
xor eax, eax
cmp ecx, 2
sete al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movsx eax, byte [esp + 0x31]
sub eax, 0x31
je 0x40118e
dec eax
je 0x401175
mov ecx, dword [esp + 0x20]
xor eax, eax
cmp ecx, 2
mov dword [esi], 0x60
sete al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x20]
xor eax, eax
cmp ecx, 2
mov dword [esi], 0x62
sete al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x20]
xor eax, eax
cmp ecx, 2
mov dword [esi], 0x61
sete al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x20]
xor eax, eax
cmp ecx, 2
mov dword [esi], 0x50
sete al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dl, byte [esp + 0xaa]
dec dl
neg dl
sbb edx, edx
and edx, 0x10
add edx, 0x80
mov dword [esi], edx
call fcn.00401030
mov ecx, dword [esp + 0x20]
mov dword [ebx], eax
xor eax, eax
cmp ecx, 2
sete al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x14], 4
jne case.default.0x4010d0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x401248
cmp eax, 0xa
je 0x401224
cmp eax, 0x5a
jne case.default.0x4010d0
mov ecx, dword [esp + 0x20]
xor eax, eax
cmp ecx, 2
mov dword [esi], 0x30
sete al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dl, byte [esp + 0x25]
mov ecx, dword [esp + 0x20]
xor eax, eax
cmp dl, 0x41
sete al
add eax, 0x20
mov dword [esi], eax
xor eax, eax
cmp ecx, 2
sete al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [esp + 0x25]
cmp al, 0x42
jl 0x40126d
cmp al, 0x43
jg 0x40126d
mov ecx, dword [esp + 0x20]
xor eax, eax
cmp ecx, 2
mov dword [esi], 0x11
sete al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi], 0x10
mov ecx, dword [esp + 0x20]
pop edi
xor eax, eax
cmp ecx, 2
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4012a0
Capabilities:
Delete registry key
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x30
push ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push esi
push edi
lea eax, [esp + 0x10]
push eax
push 0x20006
push 0
push str.SYSTEMCurrentControlSetControlKeyboard_Layouts
push 0x80000002
xor bl, bl
call ebp
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x10]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
push ecx
push 3
push 0
push str.Keyboard_LayoutPreload
push 0x80000001
call ebp
mov edi, 1
lea esp, [esp]
push edi
lea edx, [esp + 0x1c]
push 0x408690
push edx
call fcn.00401f28
add esp, 0xc
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x24]
push ecx
push 0
push 0
lea edx, [esp + 0x28]
push edx
push eax
mov dword [esp + 0x2c], 0x1e
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test bl, bl
mov esi, eax
jne 0x40135b
test esi, esi
jne 0x4013ab
mov ecx, dword [esp + 0x44]
push ecx
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x401392
mov bl, 1
jmp 0x401392
lea eax, [edi - 1]
push eax
lea ecx, [esp + 0x1c]
push 0x408690
push ecx
call fcn.00401f28
add esp, 0xc
test esi, esi
jne 0x40139b
mov edx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x24]
push eax
push 1
push esi
lea ecx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
inc edi
jne 0x401300
jmp 0x4013ab
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call edi
lea eax, [esp + 0x10]
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000001
call ebp
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push str.LIUNT
push ecx
call esi
mov edx, dword [esp + 0x10]
push str.LIU95
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x30
ret

Function at 0x401400
Capabilities:
Delete registry key

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [esp + 8]
mov edx, dword [esp]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop ecx
ret
Function at 0x401440
Capabilities:
Delete file
Set file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x104
push eax
push 0x40a748
lea ecx, [esp + 8]
push str._s_s
push ecx
call fcn.00401f28
add esp, 0x10
push 0x80
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x401494
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 2
neg eax
sbb eax, eax
add esp, 0x104
ret
mov eax, 1
add esp, 0x104
ret

Function at 0x401500
Capabilities:
Create process on windows
Get common file path

Disassembly:
sub esp, 0x208
push esi
push edi
push 0x104
lea eax, [esp + 0x110]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 8]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edi, [esp + 8]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401532
mov edx, dword [str.unliu.bat]
mov eax, dword [0x408788]
mov cx, word [0x40878c]
mov dword [edi], edx
lea edx, [esp + 8]
mov dword [edi + 4], eax
push 0x408780
push edx
mov word [edi + 8], cx
call fcn.00402032
mov esi, eax
add esp, 8
test esi, esi
jne 0x401576
pop edi
pop esi
add esp, 0x208
ret
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x110]
push ecx
mov edx, ecx
push edx
mov eax, ecx
push eax
push str._echo_off_n_n:killself_nattrib__a__r__s__h___s__ndel___s__nif_exist___s__goto_killself_n_ndel___s__n
push esi
call fcn.00401fd6
push esi
call fcn.00401f80
add esp, 0x1c
push 0
push 0
push 0
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
mov eax, 1
pop esi
add esp, 0x208
ret
Function at 0x40317b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x40a8b4], esi
push edi
jne 0x40319b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x40a8b0], esi
mov byte [0x40a8ac], al
jne 0x403201
mov ecx, dword [0x40bde8]
test ecx, ecx
je 0x4031e2
mov eax, dword [0x40bde4]
sub eax, 4
cmp eax, ecx
jmp 0x4031db
mov eax, dword [eax]
test eax, eax
je 0x4031cd
call eax
mov eax, dword [0x40bde4]
sub eax, 4
cmp eax, dword [0x40bde8]
mov dword [0x40bde4], eax
jae 0x4031c5
mov eax, 0x40a024
mov esi, 0x40a02c
cmp eax, esi
mov edi, eax
jae 0x403201
mov eax, dword [edi]
test eax, eax
je 0x4031fa
call eax
add edi, 4
cmp edi, esi
jb 0x4031f2
mov eax, 0x40a030
mov esi, 0x40a034
cmp eax, esi
mov edi, eax
jae 0x403220
mov eax, dword [edi]
test eax, eax
je 0x403219
call eax
add edi, 4
cmp edi, esi
jb 0x403211
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x40323a
push dword [ebp + 8]
mov dword [0x40a8b4], 1
call fcn.004030e1
pop ebp
ret

Function at 0x40332d
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x40a0c4]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x40a0c8]
je 0x403362
inc eax
cmp eax, 0x13
jb 0x403353
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x40a0c8]
jne 0x403488
mov eax, dword [0x40a85c]
cmp eax, 1
je 0x403460
cmp eax, edx
jne 0x403392
cmp dword [0x40a0b8], 1
je 0x403460
cmp ecx, 0xfc
je 0x403488
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4033c8
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00405870
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00404280
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4033fc
mov eax, edi
push eax
call fcn.00404280
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x408d40
push edi
call fcn.00405970
add esp, 0x10
push edi
call fcn.00404280
push dword [esi + 0x40a0cc]
mov ebx, eax
call fcn.00404280
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00403ea0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00405870
push edi
push ebx
call fcn.00405880
push 0x408d20
push ebx
call fcn.00405880
push dword [esi + 0x40a0cc]
push ebx
call fcn.00405880
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00405772
add esp, 0x2c
jmp 0x403488
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x40a0cc]
push dword [esi]
call fcn.00404280
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]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0040331f
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x403f69
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x40bccc]
mov eax, dword [0x40a0c4]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x40412f
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x40bce0]
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 - 0x80], ebx
je 0x40412f
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x403fd3
xor eax, eax
jmp 0x404143
test al, 0x20
je 0x403fe4
push 2
push edi
push edi
push ecx
call fcn.00406517
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4040b9
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x404100
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x404046
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x404037
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x404019
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x404086
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x404092
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x40400d
jmp 0x404094
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x40412a
cmp dword [ebp + 0x3a4], edi
je 0x404100
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x4040f2
mov dword [0x40a86c], eax
jmp 0x404136
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4040e4
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x404094
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x404094
push dword [ebp + 0x3a4]
call fcn.00404fb8
pop ecx
jmp 0x404140
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x404118
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x403fcc
mov dword [0x40a868], 0x1c
mov dword [0x40a86c], edi
jmp 0x404140
sub eax, dword [ebp - 0x7c]
jmp 0x404143
and dword [0x40a86c], 0
mov dword [0x40a868], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.0040331f
add ebp, 0x39c
leave
ret
Function at 0x405772
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40a9d8], ebx
push esi
push edi
jne 0x4057f2
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40582d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40948c
push edi
call esi
test eax, eax
mov dword [0x40a9d8], eax
je 0x40582d
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x40a9dc], eax
call esi
cmp dword [0x40a874], 2
mov dword [0x40a9e0], eax
jne 0x4057f2
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40a9e8], eax
je 0x4057f2
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x40a9e4], eax
mov eax, dword [0x40a9e4]
test eax, eax
je 0x405837
call eax
test eax, eax
je 0x40581e
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40a9e8]
test eax, eax
je 0x40581e
test byte [ebp - 8], 1
jne 0x405837
cmp dword [0x40a880], 4
jb 0x405831
or byte [ebp + 0x12], 0x20
jmp 0x405856
xor eax, eax
jmp 0x405866
or byte [ebp + 0x12], 4
jmp 0x405856
mov eax, dword [0x40a9dc]
test eax, eax
je 0x405856
call eax
mov ebx, eax
test ebx, ebx
je 0x405856
mov eax, dword [0x40a9e0]
test eax, eax
je 0x405856
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40a9d8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4062ee
Capabilities:
Parse pe header

Disassembly:
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 0x40631c
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x406323
cmp ebx, dword [eax + 4]
jae 0x406323
xor eax, eax
jmp 0x406513
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x406334
xor eax, eax
inc eax
jmp 0x406512
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40634a
cmp ecx, edx
jae 0x40648f
cmp dword [eax + 4], 0
je 0x406353
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40633b
cmp dword [ebp + 8], 0
je 0x406375
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40648f
cmp eax, esi
jae 0x40648f
mov eax, dword [0x40a9f0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40639a
cmp dword [esi*4 + 0x40a9f8], edi
je 0x406493
inc esi
cmp esi, eax
jl 0x406388
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40650f
cmp dword [ebp - 8], 0x1000000
jne 0x40650f
test byte [ebp - 0xc], 0xcc
je 0x406418
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40650f
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40650f
cmp word [eax + 0x18], 0x10b
jne 0x40650f
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40650f
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x406418
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x406418
test byte [ecx + 0x27], 0x80
jne 0x40648f
push 1
push 0x40aa38
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x40632c
mov ecx, dword [0x40a9f0]
test ecx, ecx
mov edx, ecx
jle 0x40644c
lea eax, [ecx*4 + 0x40a9f4]
cmp dword [eax], edi
je 0x40644c
dec edx
sub eax, 4
test edx, edx
jg 0x406440
test edx, edx
jne 0x40647d
push 0xf
pop ebx
cmp ecx, ebx
jg 0x406459
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x406471
lea eax, [edx*4 + 0x40a9f8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40645f
cmp ecx, 0x10
jge 0x40647d
inc ecx
mov dword [0x40a9f0], ecx
push 0
push 0x40aa38
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40632c
xor eax, eax
jmp 0x406512
test esi, esi
jle 0x40632c
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x40aa38
call ebx
test eax, eax
jne 0x40632c
cmp dword [esi*4 + 0x40a9f8], edi
je 0x4064e9
mov eax, dword [0x40a9f0]
lea esi, [eax - 1]
test esi, esi
jl 0x4064d7
cmp dword [esi*4 + 0x40a9f8], edi
je 0x4064d3
dec esi
jns 0x4064c7
test esi, esi
jge 0x4064e7
cmp eax, 0x10
jge 0x4064e2
inc eax
mov dword [0x40a9f0], eax
lea esi, [eax - 1]
jmp 0x4064e9
je 0x406501
xor ecx, ecx
test esi, esi
jl 0x406501
lea eax, [ecx*4 + 0x40a9f8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4064ef
push 0
push 0x40aa38
call ebx
jmp 0x40632c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4069ed
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00403ea0
mov eax, dword [0x40a0c4]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0x40bccc]
mov dword [ebp - 4], eax
jae 0x406b30
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x40bce0]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x406b30
push 1
push esi
push ebx
call fcn.00403edd
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0x1008], eax
je 0x406b3a
push 2
push esi
push ebx
call fcn.00403edd
add esp, 0xc
cmp eax, 0xffffffff
je 0x406b3a
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x406ada
push 0x1000
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00407450
push 0x8000
push ebx
call fcn.004074b0
add esp, 0x14
mov dword [ebp + 8], eax
mov eax, 0x1000
cmp edi, eax
jge 0x406a99
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push ebx
call fcn.00403f69
add esp, 0xc
cmp eax, 0xffffffff
je 0x406ab7
sub edi, eax
test edi, edi
jg 0x406a8e
jmp 0x406acd
cmp dword [0x40a86c], 5
jne 0x406aca
mov dword [0x40a868], 0xd
or esi, 0xffffffff
push dword [ebp + 8]
push ebx
call fcn.004074b0
pop ecx
pop ecx
jmp 0x406b1a
jge 0x406b1a
push 0
push dword [ebp + 0xc]
push ebx
call fcn.00403edd
push ebx
call fcn.004051a5
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, 0xffffffff
jne 0x406b1a
mov dword [0x40a868], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x40a86c], eax
push 0
push dword [ebp - 0x1008]
push ebx
call fcn.00403edd
add esp, 0xc
mov eax, esi
pop edi
jmp 0x406b3d
mov dword [0x40a868], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0040331f
leave
ret