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

Disassembly:
push 8
push 0x4249c8
call fcn.00419a88
push 8
call fcn.00419a56
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x42a0e8], esi
jne 0x419ec3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x42a0e4], esi
mov al, byte [ebp + 0x10]
mov byte [0x42a0e0], al
cmp dword [ebp + 0xc], edi
jne 0x419f0d
cmp dword [0x42b508], edi
je 0x419efd
mov eax, dword [0x42b504]
sub eax, 4
mov dword [0x42b504], eax
cmp eax, dword [0x42b508]
jb 0x419efd
mov eax, dword [eax]
cmp eax, edi
je 0x419ede
call eax
jmp 0x419ede
push 0x42902c
mov eax, 0x429024
call fcn.00419e0d
pop ecx
push 0x429038
mov eax, 0x429030
call fcn.00419e0d
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x419f3e
cmp dword [ebp + 0x10], edi
jne 0x419f4c
mov dword [0x42a0e8], esi
push dword [ebp + 8]
call fcn.00419dcb
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x419f4b
push 8
call fcn.004199a1
pop ecx
ret
call fcn.00419ac3
ret

Function at 0x419f92
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4290bc]
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 + 0x429610]
je 0x419fc7
inc eax
cmp eax, 0x13
jb 0x419fb8
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x429610]
jne 0x41a0ed
mov eax, dword [0x429ef8]
cmp eax, 1
je 0x41a0c5
cmp eax, edx
jne 0x419ff7
cmp dword [0x4290b4], 1
je 0x41a0c5
cmp ecx, 0xfc
je 0x41a0ed
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 0x41a02d
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.004174a0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00419d40
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41a061
mov eax, edi
push eax
call fcn.00419d40
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x424dc0
push edi
call fcn.0041be20
add esp, 0x10
push edi
call fcn.00419d40
push dword [esi + 0x429614]
mov ebx, eax
call fcn.00419d40
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004162c0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004174a0
push edi
push ebx
call fcn.004174b0
push 0x424da0
push ebx
call fcn.004174b0
push dword [esi + 0x429614]
push ebx
call fcn.004174b0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0041d171
add esp, 0x2c
jmp 0x41a0ed
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x429614]
push dword [esi]
call fcn.00419d40
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.004175c9
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x41ba6c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.004162c0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41bb07
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x42a0a8]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x41bb07
cmp eax, 1
je 0x41bb28
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41bb07
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x41bad4
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x41bb03
xor eax, eax
inc eax
jmp 0x41bb47
cmp edi, eax
jae 0x41bb0b
xor eax, eax
jmp 0x41bb47
cmp eax, esi
jae 0x41bb12
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x42a0a8]
jmp 0x41bb2b
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41c467
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x4290bc]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x41c498
xor eax, eax
jmp 0x41c621
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x42b400]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x41c4d4
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.0041d656
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x41c5af
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x41c5ed
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x41c538
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x41c529
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x41c509
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41c578
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x41c581
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x41c4fa
jmp 0x41c583
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x41c61c
cmp dword [ebp - 0x6c], edi
je 0x41c5ed
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x41c5e2
call fcn.00417416
mov dword [eax], 9
call fcn.0041741f
mov dword [eax], esi
jmp 0x41c617
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41c5d7
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x41c583
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x41c583
push dword [ebp - 0x6c]
call fcn.00417428
pop ecx
jmp 0x41c617
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x41c605
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x41c605
xor eax, eax
jmp 0x41c61f
call fcn.00417416
mov dword [eax], 0x1c
call fcn.0041741f
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x41c61f
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.004175c9
add ebp, 0x3a0
leave
ret
Function at 0x41ce56
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 0x41ce84
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 0x41ce8b
cmp ebx, dword [eax + 4]
jae 0x41ce8b
xor eax, eax
jmp 0x41d07b
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x41ce9c
xor eax, eax
inc eax
jmp 0x41d07a
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x41ceb2
cmp ecx, edx
jae 0x41cff7
cmp dword [eax + 4], 0
je 0x41cebb
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x41cea3
cmp dword [ebp + 8], 0
je 0x41cedd
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x41cff7
cmp eax, esi
jae 0x41cff7
mov eax, dword [0x42a328]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x41cf02
cmp dword [esi*4 + 0x42a330], edi
je 0x41cffb
inc esi
cmp esi, eax
jl 0x41cef0
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41d077
cmp dword [ebp - 8], 0x1000000
jne 0x41d077
test byte [ebp - 0xc], 0xcc
je 0x41cf80
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x41d077
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x41d077
cmp word [eax + 0x18], 0x10b
jne 0x41d077
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x41d077
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x41cf80
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x41cf80
test byte [ecx + 0x27], 0x80
jne 0x41cff7
push 1
push 0x42a370
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x41ce94
mov ecx, dword [0x42a328]
test ecx, ecx
mov edx, ecx
jle 0x41cfb4
lea eax, [ecx*4 + 0x42a32c]
cmp dword [eax], edi
je 0x41cfb4
dec edx
sub eax, 4
test edx, edx
jg 0x41cfa8
test edx, edx
jne 0x41cfe5
push 0xf
pop ebx
cmp ecx, ebx
jg 0x41cfc1
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x41cfd9
lea eax, [edx*4 + 0x42a330]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x41cfc7
cmp ecx, 0x10
jge 0x41cfe5
inc ecx
mov dword [0x42a328], ecx
push 0
push 0x42a370
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x41ce94
xor eax, eax
jmp 0x41d07a
test esi, esi
jle 0x41ce94
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x42a370
call ebx
test eax, eax
jne 0x41ce94
cmp dword [esi*4 + 0x42a330], edi
je 0x41d051
mov eax, dword [0x42a328]
lea esi, [eax - 1]
test esi, esi
jl 0x41d03f
cmp dword [esi*4 + 0x42a330], edi
je 0x41d03b
dec esi
jns 0x41d02f
test esi, esi
jge 0x41d04f
cmp eax, 0x10
jge 0x41d04a
inc eax
mov dword [0x42a328], eax
lea esi, [eax - 1]
jmp 0x41d051
je 0x41d069
xor ecx, ecx
test esi, esi
jl 0x41d069
lea eax, [ecx*4 + 0x42a330]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x41d057
push 0
push 0x42a370
call ebx
jmp 0x41ce94
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41d171
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x42a374], ebx
push esi
push edi
jne 0x41d1f1
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41d22c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x42a374], eax
je 0x41d22c
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x42a378], eax
call esi
cmp dword [0x42a0a8], 2
mov dword [0x42a37c], eax
jne 0x41d1f1
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x42a384], eax
je 0x41d1f1
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x42a380], eax
mov eax, dword [0x42a380]
test eax, eax
je 0x41d236
call eax
test eax, eax
je 0x41d21d
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x42a384]
test eax, eax
je 0x41d21d
test byte [ebp - 8], 1
jne 0x41d236
cmp dword [0x42a0b4], 4
jb 0x41d230
or byte [ebp + 0x12], 0x20
jmp 0x41d255
xor eax, eax
jmp 0x41d265
or byte [ebp + 0x12], 4
jmp 0x41d255
mov eax, dword [0x42a378]
test eax, eax
je 0x41d255
call eax
mov ebx, eax
test ebx, ebx
je 0x41d255
mov eax, dword [0x42a37c]
test eax, eax
je 0x41d255
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x42a374]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x40cfbb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x40cfca
pop dword [ebp - 0x38]
mov eax, 0x40cfca
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0x1087f525
sub dword [ebp - 0x48], 0xc235afda
mov dword [ebp - 0x44], 0xc50b320d
add dword [ebp - 0x44], 0x6d281a38
mov dword [ebp - 0x40], 0x222e9bd7
sub dword [ebp - 0x40], 0xd5e257a9
mov dword [ebp - 0x3c], 0x8cce951d
sub dword [ebp - 0x3c], 0x8cce951d
lea eax, [ebp - 0x48]
push eax
mov eax, 0xa1653f24
add eax, 0x5edcf150
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0xf240d809
add dword [ebp - 0x48], 0x8231914d
mov dword [ebp - 0x44], 0x69d86fd5
sub dword [ebp - 0x44], 0x286c0e60
mov dword [ebp - 0x40], 0xf162a411
sub dword [ebp - 0x40], 0x8df337a5
mov dword [ebp - 0x3c], 0xb955905f
add dword [ebp - 0x3c], 0x46aa6fa1
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, 0xa1b40b43
add eax, 0x5e8e25e1
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x3afc3
push 0
call eax
mov ecx, 0x7e3e700d
sub ecx, 0x7e3e32dc
xor ebx, ebx
add ebx, eax
mov esi, 0x434400
add esi, dword [ebp - 0x38]
mov edi, 0x10b18fec
add edi, 0x9f7584b
mov edx, dword [esi]
add dword [ebp - 0x20], ecx
add edx, edi
xor dword [ebp - 0xc], 0x7cb32e18
mov dword [ebx], edx
xor dword [ebp - 0x34], 0x8f4a8cc8
add ebx, 0x49242779
add ebx, 0xb6dbd88b
add esi, 4
loop 0x40d0e3
add eax, 0x5732bbba
add eax, 0xa8ce2bdd
xor ebx, ebx
add ebx, eax
add eax, 0x9908f6f2
add eax, 0x66f70913
mov ecx, 0x400000
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x4053da
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0x10]
shl eax, 9
mov dword [ebp - 4], eax
mov dword [esp + 0x10], 0
lea eax, [ebp - 8]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 4]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [esp], eax
call sub.KERNEL32.dll_ReadFile
sub esp, 0x14
test eax, eax
je 0x405425
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jne 0x405425
jmp 0x40542e
mov dword [ebp - 0xc], 1
jmp 0x405444
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
add eax, dword [edx + 8]
mov dword [ecx + 8], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
leave
ret

Function at 0x4054e4
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov eax, 0x10
mov ebp, esp
push ebx
sub esp, 0x64
and esp, 0xfffffff0
call fcn.00405b14
call fcn.00405694
call sub.KERNEL32.dll_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x58]
mov dword [esp], eax
call sub.KERNEL32.dll_GetStartupInfoA
sub esp, 4
test ebx, ebx
jne 0x40551c
jmp 0x4055b8
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
or eax, edx
test al, 1
jne 0x40551b
cmp cl, 0x22
je 0x405574
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
je 0x405594
lea esi, [esi]
lea edi, [edi]
test cl, cl
je 0x405594
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
jne 0x405554
jmp 0x405594
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x22
setne al
xor edx, edx
test cl, cl
setne dl
test eax, edx
jne 0x405574
cmp cl, 0x22
je 0x4055f4
lea esi, [esi]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
jmp 0x4055b2
inc ebx
movzx eax, byte [ebx]
cmp al, 0x20
sete dl
cmp al, 9
sete al
or eax, edx
test al, 1
jne 0x4055a4
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
test byte [ebp - 0x2c], 1
mov edx, 0xa
je 0x4055d6
movzx edx, word [ebp - 0x28]
mov dword [esp + 0xc], edx
xor edx, edx
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00402a87
sub esp, 0x10
mov ebx, dword [ebp - 4]
leave
ret
inc ebx
movzx ecx, byte [ebx]
jmp 0x405594
Function at 0x420799
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x440480]
jne 0x4207a3
repz ret
jmp fcn.00425328

Function at 0x432991
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x440480]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004268db
and dword [ebp - 0x14], 0
cmp dword [0x443a44], 0
mov dword [ebp - 0x18], eax
jne 0x432a44
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x432aec
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x432aec
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x443a44], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x443a48], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x443a4c], eax
call edi
push eax
call esi
mov dword [0x443a54], eax
test eax, eax
je 0x432a44
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x443a50], eax
mov eax, dword [0x443a50]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x432a9d
cmp dword [0x443a54], ecx
je 0x432a9d
push eax
call esi
push dword [0x443a54]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x432a9d
test ebx, ebx
je 0x432a9d
call edi
test eax, eax
je 0x432a94
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x432a94
test byte [ebp - 8], 1
jne 0x432a9d
or dword [ebp + 0x10], 0x200000
jmp 0x432ad0
mov eax, dword [0x443a48]
cmp eax, dword [ebp - 0x18]
je 0x432ad0
push eax
call esi
test eax, eax
je 0x432ad0
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x432ad0
mov eax, dword [0x443a4c]
cmp eax, dword [ebp - 0x18]
je 0x432ad0
push eax
call esi
test eax, eax
je 0x432ad0
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x443a44]
call esi
test eax, eax
je 0x432aec
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x432aee
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00420799
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x3582012d
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
mov ecx, 0x6aee0d36
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x40302f
Capabilities:
Terminate process

Disassembly:
push 0x60
push 0x40fde8
call fcn.00407554
and dword [ebp - 4], 0
lea eax, [ebp - 0x70]
push eax
call dword [0x40e0a4]
mov dword [ebp - 4], 0xfffffffe
mov edi, 0x94
push edi
push 0
mov ebx, dword [0x40e0a0]
call ebx
push eax
call dword [0x40e09c]
mov esi, eax
test esi, esi
jne 0x402e9a
push 0x12
call fcn.00402dea
pop ecx
jmp 0x403024
mov dword [esi], edi
push esi
call dword [0x40e098]
push esi
push 0
test eax, eax
jne 0x402eb8
call ebx
push eax
call dword [0x40e094]
jmp 0x403024
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x28], eax
mov edi, dword [esi + 0xc]
and edi, 0x7fff
call ebx
push eax
call dword [0x40e094]
mov esi, dword [ebp - 0x20]
cmp esi, 2
je 0x402eea
or edi, 0x8000
mov ecx, dword [ebp - 0x24]
mov eax, ecx
shl eax, 8
mov edx, dword [ebp - 0x28]
add eax, edx
mov dword [0x434280], esi
mov dword [0x434288], eax
mov dword [0x43428c], ecx
mov dword [0x434290], edx
mov dword [0x434284], edi
call fcn.00402e0e
mov dword [ebp - 0x20], eax
xor ebx, ebx
inc ebx
push ebx
call fcn.004074f8
pop ecx
test eax, eax
jne 0x402f32
push 0x1c
call fcn.00402dea
pop ecx
call fcn.00404531
test eax, eax
jne 0x402f43
push 0x10
call fcn.00402dea
pop ecx
call fcn.00407455
mov dword [ebp - 4], ebx
call fcn.00407215
test eax, eax
jge 0x402f5c
push 0x1b
call fcn.00406706
pop ecx
call dword [0x40e090]
mov dword [0x435a58], eax
call fcn.004070e0
mov dword [0x433e30], eax
call fcn.00407027
test eax, eax
jge 0x402f82
push 8
call fcn.00406706
pop ecx
call fcn.00406db4
test eax, eax
jge 0x402f93
push 9
call fcn.00406706
pop ecx
push ebx
call fcn.00406822
pop ecx
test eax, eax
je 0x402fa5
push eax
call fcn.00406706
pop ecx
call fcn.00406d57
test byte [ebp - 0x44], bl
je 0x402fb5
movzx ecx, word [ebp - 0x40]
jmp 0x402fb8
push 0xa
pop ecx
push ecx
push eax
push 0
push 0x400000
call main
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], 0
jne 0x402fd5
push eax
call fcn.00406982
call fcn.004069a4
jmp 0x40300a
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x1c]
jmp 0x403029
mov eax, 0xff
call fcn.00407599
ret
call fcn.00407746
jmp 0x402e4f

Function at 0x40b0c0
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [esp + 4]
cmp word [ecx], 0x5a4d
je 0x40b0ce
sub eax, eax
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40b0cb
sub ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
push ecx
pop eax
ret

Function at 0x40b0f0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
sub edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x40b12c
mov edi, dword [esp + 0x14]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x40b122
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x40b12e
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x40b112
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x401995
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x403010]
jne 0x40199f
repz ret
jmp fcn.00401cd8