joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1008ea4
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
push edi
mov dword [ebp - 0xc], ebx
je 0x1008f0c
push 0x3d
push esi
call fcn.01009e97
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 8], eax
je 0x1008f0c
cmp esi, eax
je 0x1008f0c
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x100b778]
sete cl
cmp eax, dword [0x100b77c]
mov dword [ebp - 4], ecx
jne 0x1008ef2
mov edi, eax
call fcn.01008e43
mov dword [0x100b778], eax
cmp eax, ebx
jne 0x1008f4b
cmp dword [ebp + 0xc], ebx
je 0x1008f14
cmp dword [0x100b780], ebx
je 0x1008f14
call fcn.01007577
test eax, eax
je 0x1008f4b
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x1009055
push 4
call fcn.01004afe
cmp eax, ebx
pop ecx
mov dword [0x100b778], eax
je 0x1008f0c
mov dword [eax], ebx
cmp dword [0x100b780], ebx
jne 0x1008f4b
push 4
call fcn.01004afe
cmp eax, ebx
pop ecx
mov dword [0x100b780], eax
je 0x1008f0c
mov dword [eax], ebx
mov edi, dword [ebp - 8]
mov ebx, dword [0x100b778]
sub edi, esi
push esi
call fcn.01008df6
mov edi, eax
test edi, edi
pop ecx
jl 0x1008fa7
cmp dword [ebx], 0
je 0x1008fa7
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.010049fc
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x1008f8c
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov esi, eax
jmp 0x1008fdd
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x1008f83
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.01009d01
test eax, eax
mov esi, dword [ebp + 8]
pop ecx
pop ecx
je 0x1008fdd
jmp 0x1008fd8
cmp dword [ebp - 4], 0
jne 0x100904e
test edi, edi
jge 0x1008fb7
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.01009d01
test eax, eax
pop ecx
pop ecx
je 0x1008f0c
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x100b778], eax
cmp dword [ebp + 0xc], 0
je 0x1009039
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1008fe8
sub eax, edx
add eax, 2
push eax
call fcn.01004afe
mov edi, eax
test edi, edi
pop ecx
je 0x1009039
mov ecx, esi
sub eax, esi
mov dl, byte [ecx]
mov byte [eax + ecx], dl
inc ecx
test dl, dl
jne 0x1009005
mov ecx, dword [ebp - 8]
add eax, ecx
and byte [eax], dl
mov ecx, dword [ebp - 4]
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x1009032
or dword [ebp - 0xc], 0xffffffff
push edi
call fcn.010049fc
pop ecx
cmp dword [ebp - 4], 0
je 0x1009046
push esi
call fcn.010049fc
pop ecx
mov eax, dword [ebp - 0xc]
jmp 0x1008f0f
push esi
call fcn.010049fc
pop ecx
xor eax, eax
jmp 0x1008f0f
Function at 0x100905c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x100cc08]
push edi
jae 0x1009223
mov eax, esi
sar eax, 5
lea ebx, [eax*4 + 0x100cc20]
mov eax, dword [ebx]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x1009223
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov edi, dword [ebp + 0xc]
mov ecx, edi
je 0x1009102
test dl, 2
jne 0x1009102
test dl, 0x48
je 0x10090cc
mov al, byte [eax + 5]
cmp al, 0xa
je 0x10090cc
dec dword [ebp + 0x10]
mov byte [edi], al
mov eax, dword [ebx]
lea ecx, [edi + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [ebx]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1009115
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x10090fd
mov dword [0x100b750], ecx
jmp 0x100922a
cmp eax, 0x6d
jne 0x1009109
xor eax, eax
jmp 0x1009237
push eax
call fcn.010083f5
pop ecx
jmp 0x1009234
mov eax, dword [ebx]
mov edx, dword [ebp - 0x10]
add dword [ebp - 0xc], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x100921e
test edx, edx
je 0x1009138
cmp byte [edi], 0xa
jne 0x1009138
or al, 4
jmp 0x100913a
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x1009218
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x1009208
cmp al, 0xd
je 0x100916e
mov byte [edi], al
inc edi
inc dword [ebp - 8]
jmp 0x10091fa
dec ecx
cmp dword [ebp - 8], ecx
jae 0x1009188
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x1009183
add dword [ebp - 8], 2
jmp 0x10091dc
mov dword [ebp - 8], eax
jmp 0x10091f6
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10091b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10091f6
cmp dword [ebp - 0x10], 0
je 0x10091f6
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x48
je 0x10091d1
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x10091dc
mov byte [edi], 0xd
mov ecx, dword [ebx]
mov byte [ecx + esi + 5], al
jmp 0x10091f9
cmp edi, dword [ebp + 0xc]
jne 0x10091e1
cmp byte [ebp - 1], 0xa
jne 0x10091e1
mov byte [edi], 0xa
jmp 0x10091f9
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.010081f5
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x10091fa
mov byte [edi], 0xd
inc edi
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x1009152
jmp 0x1009218
mov eax, dword [ebx]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x1009218
or al, 2
mov byte [esi], al
sub edi, dword [ebp + 0xc]
mov dword [ebp - 0xc], edi
mov eax, dword [ebp - 0xc]
jmp 0x1009237
and dword [0x100b750], 0
mov dword [0x100b74c], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10098c7
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.01005000
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
cmp edi, dword [0x100cc08]
jae 0x1009a03
mov eax, edi
sar eax, 5
mov eax, dword [eax*4 + 0x100cc20]
mov ecx, edi
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x1009a03
push 1
push esi
push edi
call fcn.010081f5
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x1009a0d
push 2
push esi
push edi
call fcn.010081f5
add esp, 0xc
cmp eax, 0xffffffff
je 0x1009a0d
push ebx
mov ebx, dword [ebp + 0xc]
sub ebx, eax
test ebx, ebx
jle 0x10099b0
push 0x8000
push dword [ebp + 8]
xor eax, eax
mov ecx, 0x400
lea edi, [ebp - 0x1008]
rep stosd dword es:[edi], eax
call fcn.01009efe
pop ecx
pop ecx
mov dword [ebp - 8], eax
mov edi, 0x1000
cmp ebx, edi
mov eax, edi
jge 0x1009968
mov eax, ebx
push eax
lea eax, [ebp - 0x1008]
push eax
push dword [ebp + 8]
call fcn.010071c5
add esp, 0xc
cmp eax, 0xffffffff
je 0x1009988
sub ebx, eax
test ebx, ebx
jg 0x1009960
jmp 0x100999e
cmp dword [0x100b750], 5
jne 0x100999b
mov dword [0x100b74c], 0xd
or esi, 0xffffffff
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.01009efe
mov edi, dword [ebp + 8]
pop ecx
pop ecx
jmp 0x10099f0
jge 0x10099f0
push 0
push dword [ebp + 0xc]
push edi
call fcn.010081f5
push edi
call fcn.010085e2
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 0x10099f0
mov dword [0x100b74c], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x100b750], eax
push 0
push dword [ebp - 4]
push edi
call fcn.010081f5
add esp, 0xc
mov eax, esi
pop ebx
jmp 0x1009a10
mov dword [0x100b74c], 9
or eax, 0xffffffff
pop edi
pop esi
leave
ret

Function at 0x1009c12
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.01005000
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1009c70
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x100b758]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jae 0x1009c74
xor eax, eax
jmp 0x1009cbe
cmp eax, 1
je 0x1009ca4
cmp esi, edi
jbe 0x1009c8e
push 0x4000
mov eax, esi
sub eax, edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 4
push 0x1000
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x100b758]
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
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 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
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 + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x40810b
sub esp, 0xffffff80
jmp 0x402130

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

Disassembly:
pushal
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x401ba0
Capabilities:
Check for debugger via api
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x410040]
xor eax, ebp
mov dword [ebp - 4], eax
push 4
push 0x1000
push 4
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, 0x2cc
mov ecx, eax
nop dword [eax + eax]
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub edx, 1
jne 0x401bd0
push eax
mov dword [eax], 0x10010
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
test eax, eax
je 0x401c19
cmp dword [ebp - 8], 0
je 0x401c19
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x401c2b
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call fcn.0040aa20
call fcn.0040a460
push 0x40a440
push dword fs:[0]
mov dword fs:[0], esp
push 0xbaad
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp]
mov dword fs:[0], eax
add esp, 8
call fcn.0040af80
call fcn.0040a730
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040bba7
mov esp, ebp
pop ebp
ret

Function at 0x405b30
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x410040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
mov esi, ecx
push 0xf
mov dword [ebp - 0x134], esi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x405bf5
lea eax, [ebp - 0x130]
mov dword [ebp - 0x130], 0x128
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32First]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x405bf2
mov eax, esi
lea ecx, [ebp - 0x10c]
nop dword [eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x405bb0
test dl, dl
je 0x405bac
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x405bb0
add ecx, 2
add eax, 2
test dl, dl
jne 0x405b90
xor eax, eax
jmp 0x405bb5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x405be0
push dword [ebp - 0x128]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x405bda
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call ebx
mov esi, dword [ebp - 0x134]
lea eax, [ebp - 0x130]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x405b85
push edi
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bba7
mov esp, ebp
pop ebp
ret
Function at 0x405c10
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x410040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [ebp - 0x130], 0x128
lea eax, [ebp - 0x130]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32First]
mov edx, ebx
lea ecx, [ebp - 0x10c]
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x405c74
test al, al
je 0x405c70
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x405c74
add ecx, 2
add edx, 2
test al, al
jne 0x405c54
xor eax, eax
jmp 0x405c79
sbb eax, eax
or eax, 1
test eax, eax
je 0x405cc9
mov esi, dword [sym.imp.KERNEL32.dll_Process32Next]
lea eax, [ebp - 0x130]
push eax
push edi
call esi
test eax, eax
je 0x405cdc
mov eax, ebx
lea ecx, [ebp - 0x10c]
nop dword [eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x405cc0
test dl, dl
je 0x405cbc
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x405cc0
add ecx, 2
add eax, 2
test dl, dl
jne 0x405ca0
xor eax, eax
jmp 0x405cc5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x405c83
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040bba7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bba7
mov esp, ebp
pop ebp
ret
Function at 0x406790
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x40e8f8
push 0x40bc29
mov eax, dword fs:[0]
push eax
add esp, 0xffffffbc
mov eax, dword [0x410040]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], 0
xor eax, eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x40
push 0x3000
mov edx, dword [ebp - 0x44]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x406828
xor al, al
jmp 0x4068b1
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
mov byte [ecx], 0xc3
lea edx, [ebp - 0x20]
push edx
push 0x140
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x406853
xor al, al
jmp 0x4068b1
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x24]
push 0x40689e
jmp eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0040bba7
mov esp, ebp
pop ebp
ret
Function at 0x40a730
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x40e918
push 0x40bc29
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x410040]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
or edi, 0xffffffff
mov dword [ebp - 0x124], edi
xor esi, esi
mov dword [ebp - 0x128], esi
xor ebx, ebx
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 4], ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, eax
call fcn.0040a870
mov dword [ebp - 0x130], eax
push 0x104
lea eax, [ebp - 0x120]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40a80c
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x124], edi
cmp edi, 0xffffffff
je 0x40a80c
push ebx
push ebx
push ebx
push 2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov esi, eax
mov dword [ebp - 0x128], esi
test esi, esi
je 0x40a80c
mov eax, dword [ebp - 0x130]
mov ecx, dword [eax + 0x14]
add ecx, dword [eax + 0x10]
push ecx
push ebx
push ebx
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.0040a846
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0040bba7
mov esp, ebp
pop ebp
ret
Function at 0x40a870
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40ce61
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x410040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword fs:[0x2c]
mov edx, dword [eax]
mov eax, dword [0x4104a8]
cmp eax, dword [edx + 4]
jle 0x40a941
push 0x4104a8
call fcn.0040bdf7
add esp, 4
cmp dword [0x4104a8], 0xffffffff
jne 0x40a941
mov dword [ebp - 4], 0
xor ebx, ebx
mov eax, dword [0x40dbc4]
mov dword [ebp - 0x18], eax
mov ax, word [0x40dbc8]
mov word [ebp - 0x14], ax
mov al, byte [0x40dbca]
mov byte [ebp - 0x12], al
nop dword [eax]
mov eax, 0x24924925
mul ebx
mov eax, ebx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
mov cl, al
shl cl, 3
sub cl, al
mov al, bl
shl cl, 3
sub al, cl
add al, 0x31
xor byte [ebp + ebx - 0x18], al
inc ebx
cmp ebx, 7
jl 0x40a8f0
lea eax, [ebp - 0x18]
mov ecx, 0x4104ac
push eax
call fcn.00404c70
push 0x40ced0
call fcn.0040c097
push 0x4104a8
call fcn.0040bda6
add esp, 8
mov ecx, dword [esi + 0x3c]
xor ebx, ebx
movzx eax, word [ecx + esi + 0x14]
lea edx, [ecx + esi]
add eax, 0x18
add edx, eax
movzx eax, word [ecx + esi + 6]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x10], eax
test eax, eax
je 0x40aa06
mov esi, dword [0x4104bc]
mov edi, edx
nop
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a975
sub ecx, edx
mov eax, 0x4104ac
cmp dword [0x4104c0], 0xf
cmova eax, dword [0x4104ac]
cmp esi, ecx
jne 0x40a9f6
mov edx, edi
sub esi, 4
jb 0x40a9b1
nop dword [eax]
mov ecx, dword [eax]
cmp ecx, dword [edx]
jne 0x40a9b6
add eax, 4
add edx, 4
sub esi, 4
jae 0x40a9a0
cmp esi, 0xfffffffc
je 0x40a9ea
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x40a9e3
cmp esi, 0xfffffffd
je 0x40a9ea
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x40a9e3
cmp esi, 0xfffffffe
je 0x40a9ea
mov cl, byte [eax + 2]
cmp cl, byte [edx + 2]
jne 0x40a9e3
cmp esi, 0xffffffff
je 0x40a9ea
mov al, byte [eax + 3]
cmp al, byte [edx + 3]
je 0x40a9ea
sbb eax, eax
or eax, 1
jmp 0x40a9ec
xor eax, eax
test eax, eax
je 0x40aa03
mov esi, dword [0x4104bc]
inc ebx
add edi, 0x28
cmp ebx, dword [ebp - 0x10]
jl 0x40a970
mov edx, dword [ebp - 0x18]
lea eax, [ebx + ebx*4]
lea eax, [edx + eax*8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c78c
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40c7cb
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40c7cb
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40c7cb
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40c7cb
cmp dword [ecx + 0x74], 0xe
jbe 0x40c7cb
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41a004]
jne 0x40100a
repz ret
jmp fcn.00401561

Function at 0x407095
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00404781
and dword [ebp - 4], 0
cmp dword [0x41c17c], 0
mov ebx, eax
jne 0x407146
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4071f7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4071f7
push eax
call fcn.0040470f
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x41c17c], eax
call esi
push eax
call fcn.0040470f
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41c180], eax
call esi
push eax
call fcn.0040470f
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x41c184], eax
call esi
push eax
call fcn.0040470f
pop ecx
mov dword [0x41c18c], eax
test eax, eax
je 0x407146
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040470f
pop ecx
mov dword [0x41c188], eax
mov eax, dword [0x41c188]
cmp eax, ebx
je 0x40719e
cmp dword [0x41c18c], ebx
je 0x40719e
push eax
call fcn.0040478a
push dword [0x41c18c]
mov esi, eax
call fcn.0040478a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40719e
test edi, edi
je 0x40719e
call esi
test eax, eax
je 0x407195
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x407195
test byte [ebp - 0xc], 1
jne 0x40719e
or dword [ebp + 0x10], 0x200000
jmp 0x4071d7
mov eax, dword [0x41c180]
cmp eax, ebx
je 0x4071d7
push eax
call fcn.0040478a
pop ecx
test eax, eax
je 0x4071d7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4071d7
mov eax, dword [0x41c184]
cmp eax, ebx
je 0x4071d7
push eax
call fcn.0040478a
pop ecx
test eax, eax
je 0x4071d7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41c17c]
call fcn.0040478a
pop ecx
test eax, eax
je 0x4071f7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4071f9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret