joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401050
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x429008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x423bd0
push 0x84
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
lea ecx, [ebp - 8]
mov dword [ebp - 8], esi
call fcn.00402255
push str.net451
lea ecx, [ebp - 8]
call fcn.00401e44
test eax, eax
jne 0x40109e
inc esi
jmp 0x401130
push str.net452
lea ecx, [ebp - 8]
call fcn.00401e44
test eax, eax
jne 0x4010b3
push 2
jmp 0x40112f
push 0x423bfc
lea ecx, [ebp - 8]
call fcn.00401e44
test eax, eax
jne 0x4010c8
push 3
jmp 0x40112f
push str.net461
lea ecx, [ebp - 8]
call fcn.00401e44
test eax, eax
jne 0x4010dd
push 4
jmp 0x40112f
push str.net462
lea ecx, [ebp - 8]
call fcn.00401e44
test eax, eax
jne 0x4010f2
push 5
jmp 0x40112f
push 0x423c28
lea ecx, [ebp - 8]
call fcn.00401e44
test eax, eax
jne 0x401107
push 6
jmp 0x40112f
push str.net471
lea ecx, [ebp - 8]
call fcn.00401e44
test eax, eax
jne 0x40111c
push 7
jmp 0x40112f
push str.net472
lea ecx, [ebp - 8]
call fcn.00401e44
test eax, eax
jne 0x401130
push 8
pop esi
lea ecx, [ebp - 8]
call fcn.00401e7b
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040a35c
leave
ret
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
add eax, reloc.msvcrt.dll_setvbuf
nop
sub eax, 0x403d15
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x6962c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x390000
lea edi, [esi - 0x23f000]
push edi
jmp 0x6962da
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x6962e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6962d0
mov eax, 1
add ebx, ebx
jne 0x6962f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x696304
jne 0x696323
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x696323
dec eax
add ebx, ebx
jne 0x696310
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x6962e8
add ebx, ebx
jne 0x69631f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x696375
xor ecx, ecx
sub eax, 3
jb 0x69633b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x6963aa
sar eax, 1
mov ebp, eax
jmp 0x696346
add ebx, ebx
jne 0x696346
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x696314
inc ecx
add ebx, ebx
jne 0x696354
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x696314
add ebx, ebx
jne 0x696361
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x696356
jne 0x696372
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x696356
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x696394
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x696386
jmp 0x6962d6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x696394
add edi, ecx
jmp 0x6962d6
pop esi
mov edi, esi
mov ecx, 0x3ea9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x6963b2
cmp byte [edi], 0x11
jne 0x6963b2
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 0x6963b7
lea edi, [esi + 0x28f000]
mov eax, dword [edi]
or eax, eax
je 0x69642f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x453728]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x4538a4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x6963e4
mov ecx, edi
jns 0x696413
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 + 0x4538a8]
or eax, eax
je 0x696429
mov dword [ebx], eax
add ebx, 4
jmp 0x696401
call dword [esi + 0x4538b8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x696460
cmp al, 0xef
ja 0x696453
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x696435
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x696442
mov ebp, dword [esi + 0x4538ac]
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 0x696494
sub esp, 0xffffff80
jmp 0x42800a
Function at 0x407350
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x40735f
pop dword [ebp - 0x2c]
mov eax, 0xe6686b31
sub eax, 0xe627f7d2
sub dword [ebp - 0x2c], eax
push 0x40
push 0x1000
push 0x39aa6
push 0
mov eax, 0x1e1dd97a
sub eax, 0x1ddb8762
add eax, dword [ebp - 0x2c]
call dword [eax]
mov ecx, 0x37a5
mov esi, eax
mov edx, 0xe2ad06c7
sub edx, 0xe269b2c7
add edx, dword [ebp - 0x2c]
mov edi, 0xb76a3066
add edi, 0xff48c130
add dword [ebp - 0x24], 0x3e08773d
mov ebx, dword [edx]
sub dword [ebp - 0xc], ecx
sub ebx, edi
mov dword [esi], ebx
xor dword [ebp - 0xc], esi
add esi, 4
add edx, 4
loop 0x4073b8
add eax, 0x7c74ab3f
add eax, 0x838c2628
mov ebx, eax
add eax, 0x3eb84f92
add eax, 0xc147b073
mov ecx, 0xb2308845
sub ecx, 0xb1f08845
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret

Function at 0x407875
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42f180]
jne 0x40787f
repz ret
jmp fcn.0040bbd7

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219

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

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x433072
mov ebx, 0x40de38
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x173a678f
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
loop 0x433060
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
je 0x4330d2
nop
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x7b347a37
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x401450
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x401479
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [eax + 0x3c]
add ebx, eax
cmp dword [ebx], 0x4550
je 0x401499
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebx + 0x50]
mov eax, dword [ebx + 0x34]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 4
push 0x3000
push edx
push eax
call esi
mov edi, eax
test edi, edi
jne 0x4014dd
mov ecx, dword [ebx + 0x50]
push 4
push 0x3000
push ecx
push eax
call esi
mov edi, eax
test edi, edi
jne 0x4014dd
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
nop
nop
nop
nop
nop
nop
nop
push 0x24
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
xor eax, eax
cmp esi, eax
jne 0x401523
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
nop
nop
nop
nop
nop
nop
nop
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 4
mov dword [esi + 4], edi
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0x401400
mov dword [esi + 0x18], 0x401420
mov dword [esi + 0x1c], 0x401440
mov dword [esi + 0x20], eax
mov edx, dword [ebx + 0x54]
push 0x1000
push edx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebx + 0x54]
mov edx, dword [ebp + 8]
push ecx
push edx
push eax
mov dword [ebp - 4], eax
call fcn.0040d5f0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
add eax, dword [ebp - 4]
push esi
push ebx
mov dword [esi], eax
push ecx
mov dword [eax + 0x34], edi
call section..text
add esp, 0x18
nop
nop
nop
nop
nop
nop
nop
mov eax, edi
sub eax, dword [ebx + 0x34]
je 0x40159c
push eax
mov eax, esi
call fcn.004011e0
add esp, 4
call fcn.00401270
test eax, eax
je 0x4015db
mov ebx, esi
call fcn.004010c0
mov eax, esi
call fcn.004011a0
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esi]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x4015f0
push 0
push 1
add eax, edi
push edi
call eax
test eax, eax
jne 0x4015e9
push 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.004016e0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x10], 1
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401b30
Capabilities:
Compress data via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 8], eax
test eax, eax
jne 0x401b5b
push str.Load_dll_error__n
call fcn.00406a4b
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret
push ebx
push esi
push edi
push str.RtlDecompressBuffer
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
jne 0x401b7d
push str.Load_function_error__n
call fcn.00406a4b
add esp, 4
mov edi, 0x1000
push edi
mov dword [ebp - 4], 0
call fcn.0040705f
mov esi, eax
add esp, 4
test esi, esi
je 0x401bde
push edi
push 0
push esi
call fcn.0040d570
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
add esp, 0xc
lea eax, [ebp - 4]
push eax
push ecx
push edx
push edi
push esi
push 2
call ebx
mov eax, dword [ebp - 4]
cmp edi, eax
jae 0x401bee
test esi, esi
je 0x401bcd
push esi
call fcn.00406cdc
mov eax, dword [ebp - 4]
add esp, 4
push eax
mov edi, eax
call fcn.0040705f
mov esi, eax
add esp, 4
test esi, esi
jne 0x401b98
push str.new_memory_error__n
call fcn.00406a4b
mov eax, dword [ebp - 4]
add esp, 4
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov dword [ecx], esi
mov dword [edx], eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401c10
Capabilities:
Encode data using xor
Encrypt data using xxtea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
mov edi, dword [ebp + 8]
cmp edi, 1
jle 0x401d0d
mov eax, 0x34
cdq
idiv edi
movzx edx, byte [esi + edi - 1]
add eax, 6
mov dword [ebp - 0xc], eax
xor ecx, ecx
lea esp, [esp]
sub ecx, 0x61c88647
mov eax, ecx
shr eax, 2
and eax, 3
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
lea eax, [edi - 1]
xor ecx, ecx
test eax, eax
je 0x401cb3
lea ecx, [ecx]
movzx eax, byte [ecx + esi + 1]
lea edi, [eax*4]
mov dword [ebp - 0x10], eax
shr eax, 3
mov ebx, edx
shr ebx, 5
xor edi, ebx
mov ebx, edx
shl ebx, 4
xor eax, ebx
mov ebx, dword [ebp + 0xc]
add edi, eax
mov eax, ecx
and eax, 3
xor eax, dword [ebp - 8]
inc ecx
mov ebx, dword [ebx + eax*4]
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 4]
xor ebx, edx
movzx edx, byte [ecx + esi - 1]
add eax, ebx
xor eax, edi
add eax, edx
mov byte [ecx + esi - 1], al
movzx edx, al
mov eax, dword [ebp + 8]
dec eax
cmp ecx, eax
jb 0x401c60
movzx eax, byte [esi]
lea ebx, [eax*4]
mov edi, edx
shr edi, 5
xor ebx, edi
mov dword [ebp - 0x10], eax
shr eax, 3
mov edi, edx
shl edi, 4
xor eax, edi
add ebx, eax
mov eax, dword [ebp + 0xc]
and ecx, 3
xor ecx, dword [ebp - 8]
mov edi, dword [eax + ecx*4]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor edi, edx
xor eax, ecx
add eax, edi
mov edi, dword [ebp + 8]
movzx edx, byte [esi + edi - 1]
xor eax, ebx
add eax, edx
dec dword [ebp - 0xc]
mov byte [esi + edi - 1], al
movzx edx, al
jne 0x401c40
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
cmp edi, 0xffffffff
jge 0x401df4
neg edi
mov eax, 0x34
cdq
mov ebx, edi
idiv ebx
mov dword [ebp + 8], ebx
add eax, 6
mov ecx, eax
imul ecx, ecx, 0x9e3779b9
mov dword [ebp - 0xc], eax
movzx eax, byte [esi]
mov dword [ebp - 4], ecx
jmp 0x401d43
mov ebx, dword [ebp + 8]
shr ecx, 2
and ecx, 3
lea edi, [ebx - 1]
mov dword [ebp - 8], ecx
test edi, edi
je 0x401da1
movzx ecx, byte [edi + esi - 1]
mov ebx, ecx
shr ebx, 5
lea edx, [eax*4]
xor edx, ebx
mov ebx, eax
xor eax, dword [ebp - 4]
shr ebx, 3
shl ecx, 4
xor ebx, ecx
add edx, ebx
mov ebx, dword [ebp + 0xc]
mov ecx, edi
and ecx, 3
xor ecx, dword [ebp - 8]
mov ebx, dword [ebx + ecx*4]
movzx ecx, byte [edi + esi - 1]
xor ebx, ecx
add ebx, eax
movzx eax, byte [edi + esi]
xor edx, ebx
sub eax, edx
dec edi
mov byte [edi + esi + 1], al
movzx eax, al
jne 0x401d53
mov ebx, dword [ebp + 8]
movzx ecx, byte [esi + ebx - 1]
mov bl, cl
shl bl, 4
mov edx, eax
shr edx, 3
xor dl, bl
mov dword [ebp - 0x10], ecx
shr ecx, 5
mov bl, al
add bl, bl
add bl, bl
xor cl, bl
mov bl, byte [ebp - 4]
add dl, cl
mov ecx, dword [ebp + 0xc]
and edi, 3
xor edi, dword [ebp - 8]
xor bl, al
mov cl, byte [ecx + edi*4]
xor cl, byte [ebp - 0x10]
add cl, bl
xor dl, cl
mov ecx, dword [ebp - 4]
sub byte [esi], dl
movzx eax, byte [esi]
add ecx, 0x61c88647
dec dword [ebp - 0xc]
mov dword [ebp - 4], ecx
jne 0x401d40
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404250
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416f08
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x41f29c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 0x44], 0
je 0x4043e1
cmp byte [ebx + 0x49], 0
je 0x4043e1
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x4043d5
lea esi, [ebp - 0x2c]
call fcn.00403e00
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x4042c3
lea edx, [ebp - 0x2c]
mov eax, edx
mov ecx, dword [ebx + 0x44]
mov esi, dword [ecx]
lea edi, [ebp - 0x30]
push edi
mov edi, dword [ebp - 0x1c]
add edi, edx
push edi
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x4042fc
dec eax
je 0x404300
sub eax, 2
lea ecx, [ebp - 0x2c]
je 0x4043dc
call fcn.00402cd0
xor al, al
jmp 0x4043e3
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x404310
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x40433d
cmp edi, 0x10
jae 0x40431f
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x54]
push ecx
push esi
push 1
push eax
call fcn.00406eb3
add esp, 0x10
cmp esi, eax
jne 0x4043cd
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x4043d9
test esi, esi
jne 0x4042b7
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x4043fe
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x4043fe
cmp edi, esi
jae 0x4043b6
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.00404a10
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x4042b7
mov ecx, eax
cmp edi, 0x10
jae 0x404392
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x4043ad
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x4042b1
test esi, esi
jne 0x404388
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x4043c5
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x4042b1
lea ecx, [ebp - 0x2c]
call fcn.00402cd0
xor al, al
jmp 0x4043e3
lea ecx, [ebp - 0x2c]
call fcn.00402cd0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040542d
mov esp, ebp
pop ebp
ret
push str.string_too_long
call fcn.00415280
int3
Function at 0x404770
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416e8b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x41f29c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004153d4
push 4
mov dword [ebp - 4], 0
call fcn.0040705f
mov edi, eax
add esp, 4
test edi, edi
je 0x4047ec
call fcn.004151cf
mov dword [edi], eax
call fcn.00414f8e
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00415395
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4047e2
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.004153bd
jmp 0x4047ee
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40542d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41f29c]
jne 0x405437
repz ret
jmp fcn.00407273
Function at 0x41266e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41f29c]
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.00407d96
and dword [ebp - 0x14], 0
cmp dword [0x467120], 0
mov dword [ebp - 0x18], eax
jne 0x412721
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4127c9
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4127c9
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x467120], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x467124], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x467128], eax
call edi
push eax
call esi
mov dword [0x467130], eax
test eax, eax
je 0x412721
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x46712c], eax
mov eax, dword [0x46712c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41277a
cmp dword [0x467130], ecx
je 0x41277a
push eax
call esi
push dword [0x467130]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41277a
test ebx, ebx
je 0x41277a
call edi
test eax, eax
je 0x412771
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x412771
test byte [ebp - 8], 1
jne 0x41277a
or dword [ebp + 0x10], 0x200000
jmp 0x4127ad
mov eax, dword [0x467124]
cmp eax, dword [ebp - 0x18]
je 0x4127ad
push eax
call esi
test eax, eax
je 0x4127ad
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4127ad
mov eax, dword [0x467128]
cmp eax, dword [ebp - 0x18]
je 0x4127ad
push eax
call esi
test eax, eax
je 0x4127ad
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x467120]
call esi
test eax, eax
je 0x4127c9
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4127cb
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040542d
leave
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..reloc
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
je 0x42e072
nop
nop
nop
nop
nop
mov ebx, 0x407ef8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x3e2123a3
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x42e060
mov eax, section..rsrc
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x42e0d2
nop
nop
mov ebx, 0x42cd70
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
mov esi, 0xcb564a9
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219