joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000dc61
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1000dbdd
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1000ddd0
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1000ddd0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1000dd85
jg 0x1000dcbd
test eax, eax
je 0x1000dd7b
push 1
push 0x1000
call fcn.10008a88
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1000dce0
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1000dd72
push 0x8000
push ebx
call fcn.1000db0e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1000dd09
jg 0x1000dd04
cmp ecx, 0x1000
jb 0x1000dd09
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1000c128
add esp, 0x10
cmp eax, 0xffffffff
je 0x1000dd4e
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1000dd04
jl 0x1000dd35
test ecx, ecx
jne 0x1000dcf6
push dword [ebp - 0xc]
push ebx
call fcn.1000db0e
push esi
call fcn.10007ca4
add esp, 0xc
xor ebx, ebx
jmp 0x1000ddde
cmp byte [edi + 0x24], 0
je 0x1000dd65
cmp dword [edi + 0x20], 5
jne 0x1000dd65
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1000dd70
mov ebx, dword [edi + 0x18]
jmp 0x1000dd72
xor ebx, ebx
push esi
call fcn.10007ca4
pop ecx
jmp 0x1000ddde
test ecx, ecx
jg 0x1000dd47
jl 0x1000dd85
test eax, eax
jae 0x1000dd47
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100069df
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1000dda5
cmp byte [edi + 0x1c], 0
je 0x1000dd47
jmp 0x1000ddd6
push ebx
call fcn.1000af34
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1000dd47
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1000ddde
cmp byte [edi + 0x1c], 0
je 0x1000dddb
mov ebx, dword [edi + 0x18]
jmp 0x1000ddde
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.100069df
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000fe80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000fead
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000fead
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x432003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x43200c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x432030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219

Function at 0x419b00
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0xa56218a8
sbb eax, 0xa054bd
xlatb
and al, 0x53
xor ah, dh
fcomp qword [edi + 0xb8270fd]
cmc
sub eax, 0x3d0774e4
sbb byte [edi + 0x17], bl
aaa
xor ecx, edx
jecxz 0x419b1c
jl 0x419b5b
mov dword [0x7e9c2ec7], eax
inc edi
out 0xd0, eax
mov edi, dword [esi]
sbb esi, dword [edx]
int 0xcf
rcl byte [eax]
fiadd dword [ebp + 0x12]
jecxz 0x419b69
sbb al, byte [eax + eax + 0x74000000]
stc
test byte [eax], al
add byte [eax], al
add byte [ecx + edi*8 - 0x43], dh
je 0x419afb
mov ebp, 0x7731d031
add dword [eax], eax
invalid
jp 0x419b0c
je 0x419afb
mov ebp, 0x7731d031
add dword [eax], eax
call 0xab419b88
jae 0x419b16
add byte [ebx + 0x26000673], ch
add byte [esi], ah
add eax, 0x31a8d00
add byte [ecx], ch
cdq
sub byte [0x45157ab7], 0x2e
loopne 0x419abf
add eax, dword [eax]
sub dword [ecx + 0x7ab72d82], ebx
mov bh, 0x7a
adc eax, 0x9ce02e45
int 0x9e
fimul dword [ebp - 0x7d]
shr byte [edx - 0x675b92], 0xf3
ja 0x419b81
leave
inc edi
hlt
jge 0x419bb6
outsd dx, dword [esi]
dec eax
mov bl, dh
xor esi, ebp
aas
wait
sbb ebx, ebx
std
clc
into
ret 0xab06
salc
adc eax, 0xe3fec155
mov dword [0x7160e872], eax
and dword gs:[eax], ebx
lea ebp, [edx]
lea eax, [eax]
cmpsd dword [esi], dword es:[edi]
std
mov ebp, 0x4b70e31b
dec edi
sbb ch, cl
mov eax, 0xdabfde48
hlt
int 0xf8
scasb al, byte es:[edi]
xor ebx, dword [ebx + 0x54]
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
nop
nop
nop
mov ebx, dword [eax]
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
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x401000
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x664
mov eax, dword [0x40d004]
xor eax, esp
mov dword [esp + 0x660], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
push 0x40ba1c
push esi
mov dword [esp + 0x14], eax
or edi, 0xffffffff
call fcn.004018f7
xor ebx, ebx
add esp, 8
cmp eax, ebx
jne 0x401050
push 0x40ba24
push esi
call fcn.004018f7
add esp, 8
cmp eax, ebx
je 0x40105e
add eax, 6
push eax
call fcn.00401958
add esp, 4
mov edi, eax
lea ecx, [esp + 0x460]
push ecx
call fcn.00401220
add esp, 4
test eax, eax
jne 0x40108b
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x660]
xor ecx, esp
call fcn.004018e8
mov esp, ebp
pop ebp
ret 0x10
lea edx, [esp + 0x460]
push edx
lea eax, [esp + 0x44]
push 0x104
push eax
mov dword [esp + 0x3c], vtable.CListener.0
mov dword [esp + 0x48], ebx
mov dword [esp + 0x254], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x25c], 0xffffffff
mov dword [esp + 0x258], ebx
call fcn.00401ae8
add esp, 0xc
push 0x208
lea ecx, [esp + 0x25c]
push ebx
push ecx
mov dword [esp + 0x25c], edi
call fcn.00406160
add esp, 0xc
push str.kyoceramita_kmpop_10_
lea edx, [esp + 0x25c]
push 0x104
push edx
call fcn.00401ae8
add esp, 0xc
lea eax, [esp + 0x460]
push eax
lea ecx, [esp + 0x25c]
push 0x104
push ecx
call fcn.0040197a
add esp, 0xc
lea edx, [esp + 0x258]
push 0x5c
push edx
call fcn.004019f7
add esp, 8
test eax, eax
je 0x40116b
lea eax, [esp + 0x258]
push 0x5c
push eax
call fcn.004019f7
add esp, 8
cmp eax, ebx
je 0x40116b
mov edi, edi
lea ecx, [esp + 0x258]
push 0x5c
push ecx
mov word [eax], 0x5f
call fcn.004019f7
add esp, 8
cmp eax, ebx
jne 0x401150
lea edx, [esp + 0x258]
push edx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x401072
mov esi, dword [esp + 0xc]
mov eax, esi
call fcn.00401330
mov eax, esi
lea esi, [esp + 0x30]
call fcn.004013c0
test eax, eax
je 0x401072
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push ebx
push ebx
push ebx
lea eax, [esp + 0x20]
push eax
call esi
test eax, eax
je 0x4011ef
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
nop
lea ecx, [esp + 0x14]
push ecx
call edi
lea edx, [esp + 0x14]
push edx
call ebx
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
call esi
test eax, eax
jne 0x4011d0
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x66c]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004018e8
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4013c0
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push eax
push 0
push 0
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push str.KMPOPUPMGR
push str.KMPOPUPMGR
push 0
mov dword [esi + 4], eax
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
mov dword [esi + 0xc], eax
jne 0x4013fe
pop ecx
ret
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x218], eax
lea eax, [esp]
push eax
push 0
push esi
push 0x401590
push 0
push 0
mov dword [esp + 0x18], 0x66
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
mov eax, dword [esi + 0x220]
test eax, eax
jle 0x401458
mov ecx, dword [esi + 0xc]
imul eax, eax, 0x3e8
push 0
push eax
push 0x65
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [esi + 0x224], eax
mov eax, 1
pop ecx
ret

Function at 0x401750
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x674
mov eax, dword [0x40d004]
xor eax, esp
mov dword [esp + 0x670], eax
push esi
mov esi, ecx
test esi, esi
je 0x4018cb
cmp dword [esp + 0x67c], 0
jbe 0x4018cb
cmp dword [esi], 0x67c
je 0x4017a2
mov eax, 2
pop esi
mov ecx, dword [esp + 0x670]
xor ecx, esp
call fcn.004018e8
add esp, 0x674
ret 4
push 0x104
lea eax, [esp + 0x10]
push 0
push eax
call fcn.00406160
push 0x12c
lea ecx, [esp + 0x42c]
push 0
push ecx
call fcn.00406160
push 0x104
lea edx, [esp + 0x230]
push 0
push edx
call fcn.00406160
push 0x103
lea eax, [esi + 0x14]
push eax
lea ecx, [esp + 0x38]
push 0x104
push ecx
call fcn.00401a1d
push 0x12b
lea edx, [esi + 0x21c]
push edx
lea eax, [esp + 0x458]
push 0x12c
push eax
call fcn.00401a1d
add esp, 0x44
push 0x103
lea ecx, [esi + 0x474]
push ecx
lea edx, [esp + 0x21c]
push 0x104
push edx
call fcn.00401a1d
add esp, 0x10
mov dword [edi + 0x21c], 1
mov eax, dword [esi + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x424]
push edx
push 0
mov dword [esp + 0x14], 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
push 0x80
push 3
push 0
push 1
mov dword [esp + 0x1c], eax
push 0x40000000
lea eax, [esp + 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4018a7
push 0
lea ecx, [esp + 8]
push ecx
push 4
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x21c], 0
xor eax, eax
pop esi
mov ecx, dword [esp + 0x670]
xor ecx, esp
call fcn.004018e8
add esp, 0x674
ret 4
mov ecx, dword [esp + 0x674]
pop esi
xor ecx, esp
mov eax, 1
call fcn.004018e8
add esp, 0x674
ret 4
Function at 0x402806
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], esi
cmp edi, dword [esi*8 + 0x40d188]
je 0x40282c
inc esi
cmp esi, 0x17
mov dword [ebp - 4], esi
jb 0x40281a
cmp esi, 0x17
jae 0x402986
push 3
call fcn.00405aa4
cmp eax, 1
pop ecx
je 0x402950
push 3
call fcn.00405aa4
test eax, eax
pop ecx
jne 0x40285f
cmp dword [section..data], 1
je 0x402950
cmp edi, 0xfc
je 0x402986
push str.Runtime_Error__n_nProgram:
mov edi, 0x314
push edi
mov esi, 0x40e078
push esi
call fcn.00405365
add esp, 0xc
test eax, eax
je 0x402895
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004021d5
add esp, 0x14
mov byte [0x40e195], bl
push 0x104
mov ebx, 0x40e091
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4028d8
push str._program_name_unknown_
push 0x2fb
push ebx
call fcn.00405365
add esp, 0xc
test eax, eax
je 0x4028d8
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004021d5
add esp, 0x14
push ebx
push edi
push esi
call fcn.00405a30
add esp, 0xc
xor ebx, ebx
test eax, eax
je 0x4028f6
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004021d5
add esp, 0x14
push 0x40a7a0
push edi
push esi
call fcn.00405a30
add esp, 0xc
test eax, eax
je 0x402916
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004021d5
add esp, 0x14
mov eax, dword [ebp - 4]
push dword [eax*8 + 0x40d18c]
push edi
push esi
call fcn.00405a30
add esp, 0xc
test eax, eax
je 0x40293b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004021d5
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push esi
call fcn.00405890
add esp, 0xc
jmp 0x402986
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
cmp edi, ebx
je 0x402986
cmp edi, 0xffffffff
je 0x402986
mov edx, dword [esi*8 + 0x40d18c]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40296f
push ebx
lea eax, [ebp - 8]
push eax
sub ecx, esi
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402ed7
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x40e59c]
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp eax, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov dword [ebp - 4], ebx
jne 0x402f26
call edi
mov esi, eax
cmp esi, ebx
je 0x402f0c
mov dword [0x40e59c], 1
jmp 0x402f2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x402f21
push 2
pop eax
mov dword [0x40e59c], eax
jmp 0x402f26
mov eax, dword [0x40e59c]
cmp eax, 1
jne 0x402f86
cmp esi, ebx
jne 0x402f3e
call edi
mov esi, eax
cmp esi, ebx
jne 0x402f3e
xor eax, eax
jmp 0x403055
cmp word [esi], bx
mov eax, esi
je 0x402f53
inc eax
inc eax
cmp word [eax], bx
jne 0x402f45
inc eax
inc eax
cmp word [eax], bx
jne 0x402f45
sub eax, esi
inc eax
inc eax
push eax
mov dword [ebp - 4], eax
call fcn.0040232a
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x402f77
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x403055
push dword [ebp - 4]
push esi
push edi
call fcn.00405c50
add esp, 0xc
jmp 0x402f69
cmp eax, 2
je 0x402f8f
cmp eax, ebx
jne 0x402f37
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x402f37
cmp byte [esi], bl
je 0x402fd0
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x402f37
add dword [ebp - 4], eax
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402fbc
sub eax, edi
lea esi, [esi + eax + 1]
cmp byte [esi], bl
jne 0x402fa2
mov esi, dword [ebp - 8]
inc dword [ebp - 4]
push 2
push dword [ebp - 4]
call fcn.00405c0d
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], edi
jne 0x402ff4
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x402f37
mov eax, dword [ebp - 8]
cmp byte [eax], bl
je 0x403046
mov ecx, dword [ebp - 4]
mov eax, edi
sub eax, dword [ebp - 0xc]
sar eax, 1
sub ecx, eax
push ecx
push edi
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x40305a
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x40301e
sub eax, ecx
lea esi, [esi + eax + 1]
mov eax, edi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x403030
sub eax, ecx
sar eax, 1
cmp byte [esi], bl
lea edi, [edi + eax*2 + 2]
jne 0x402ffb
push dword [ebp - 8]
mov word [edi], bx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
push dword [ebp - 0xc]
call fcn.0040242b
pop ecx
push dword [ebp - 8]
jmp 0x402fe9
Function at 0x403068
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x40e5a0]
test eax, eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x4030ac
call esi
test eax, eax
je 0x403091
mov dword [0x40e5a0], 1
jmp 0x4030b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4030a8
mov dword [0x40e5a0], 2
jmp 0x4030ba
xor eax, eax
jmp 0x403110
cmp eax, 1
jne 0x4030b5
call esi
jmp 0x403110
cmp eax, 2
jne 0x4030a8
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
push eax
push 1
push 0
mov dword [ebp - 8], eax
call esi
mov edi, eax
test edi, edi
je 0x40310d
push 2
push edi
call fcn.00405c0d
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 4], eax
je 0x40310d
push edi
push eax
push 0xffffffffffffffff
push dword [ebp - 8]
push 1
push 0
call esi
test eax, eax
je 0x403104
mov eax, dword [ebp - 4]
jmp 0x40310f
push dword [ebp - 4]
call fcn.0040242b
pop ecx
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x405490
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x4054a3
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40549f
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x4054c0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x4054ff
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x4054f5
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x405501
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x4054e5
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x405890
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004033b3
xor ebx, ebx
cmp dword [0x40e7ac], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x405967
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x4058d2
xor eax, eax
jmp 0x405a2b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4058cb
push eax
call fcn.0040334d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40e7ac], eax
call esi
push eax
call fcn.0040334d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40e7b0], eax
call esi
push eax
call fcn.0040334d
mov dword [0x40e7b4], eax
lea eax, [ebp - 8]
push eax
call fcn.004025b6
test eax, eax
pop ecx
pop ecx
je 0x405935
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004021d5
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x405967
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040334d
cmp eax, ebx
pop ecx
mov dword [0x40e7bc], eax
je 0x405967
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040334d
pop ecx
mov dword [0x40e7b8], eax
mov eax, dword [0x40e7b8]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x4059e0
cmp dword [0x40e7bc], esi
je 0x4059e0
push eax
call fcn.004033bc
pop ecx
call eax
cmp eax, ebx
je 0x4059ad
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x40e7bc]
call fcn.004033bc
pop ecx
call eax
test eax, eax
je 0x4059ad
test byte [ebp - 0x18], 1
jne 0x4059e0
lea eax, [ebp - 0xc]
push eax
call fcn.004025f2
test eax, eax
pop ecx
je 0x4059c8
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004021d5
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x4059d7
or dword [ebp + 0x10], 0x200000
jmp 0x405a11
or dword [ebp + 0x10], 0x40000
jmp 0x405a11
mov eax, dword [0x40e7b0]
cmp eax, esi
je 0x405a11
push eax
call fcn.004033bc
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x405a11
mov eax, dword [0x40e7b4]
cmp eax, esi
je 0x405a11
push dword [ebp - 4]
push eax
call fcn.004033bc
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x40e7ac]
call fcn.004033bc
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407987
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x40d004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0xc]
xor edi, edi
push eax
mov dword [ebp - 0xc], edi
call fcn.004025b6
test eax, eax
pop ecx
je 0x4079bc
push edi
push edi
push edi
push edi
push edi
call fcn.004021d5
add esp, 0x14
push 4
pop eax
call fcn.00407e00
mov dword [ebp - 0x14], esp
push 0x1c
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x407aca
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x58]
dec esi
neg esi
sbb esi, esi
and esi, 0x103
inc esi
cmp dword [ebp - 0xc], 2
mov dword [ebp - 8], edi
jne 0x407a43
push str.kernel32.dll
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, edi
je 0x407a43
push str.SetThreadStackGuarantee
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x407a43
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 0x10], edi
call eax
cmp eax, 1
jne 0x407a43
mov eax, dword [ebp - 0x10]
cmp eax, edi
jbe 0x407a43
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea edi, [ebx - 1]
push edi
push dword [ebp - 8]
call fcn.00407960
add esp, 0xc
test eax, eax
jl 0x407aca
not edi
and dword [ebp - 8], edi
je 0x407a75
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp - 8]
call fcn.00407960
add esp, 0xc
test eax, eax
jl 0x407aca
lea eax, [ebx + ebx]
cmp dword [ebp - 8], eax
jae 0x407a80
mov dword [ebp - 8], eax
lea edi, [ebx - 1]
not edi
and edi, dword [ebp - 0x14]
sub edi, dword [ebp - 8]
cmp dword [ebp - 0xc], 1
jne 0x407a94
push 0x11
pop ebx
mov eax, dword [ebp - 0x18]
add ebx, eax
cmp edi, ebx
jb 0x407aca
push 4
push 0x1000
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x407aca
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x407aca
xor eax, eax
inc eax
jmp 0x407acc
xor eax, eax
lea esp, [ebp - 0x68]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004018e8
leave
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x432030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219