joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401a60
Capabilities:
Allocate or change rwx memory
Enumerate pe sections
Execute shellcode via indirect call

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, 0x74
sub esp, 0x124c
mov eax, dword [esp + 0x1260]
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 4]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
push 0x1000
lea ecx, [esp + 0x244]
push ecx
push edx
push eax
call fcn.004014f0
lea ecx, [esp + 0x250]
add ecx, dword [esp + 0x28c]
mov word [esp + 0x3d], bx
movzx eax, word [ecx + 0x14]
mov dword [esp + 0x39], 0x7865742e
add esp, 0x10
cmp word [ecx + 6], 0
lea ebp, [ecx + eax + 0x18]
je 0x401b10
mov eax, dword [sym.imp.msvcrt.dll__stricmp]
xor esi, esi
mov dword [esp + 0xc], ecx
lea edi, [esp + 0x29]
mov ebx, esi
mov dword [esp + 8], eax
jmp 0x401af2
mov eax, dword [esp + 0xc]
add ebx, 1
add ebp, 0x28
movzx eax, word [eax + 6]
cmp ebx, eax
jge 0x401b10
sub esp, 8
push edi
push ebp
mov eax, dword [esp + 0x18]
call eax
add esp, 0x10
test eax, eax
jne 0x401ae0
mov dword [esp + 0xc], ebp
mov ebx, ebp
jmp 0x401b1a
mov dword [esp + 0xc], 0
xor ebx, ebx
sub esp, 4
push 0x104
lea eax, [esp + 0x40]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
sub esp, 4
push 0x40d060
lea esi, [esp + 0x148]
push esi
call sub.msvcrt.dll_strcpy
mov dword [esp + 0x3f], 0x77786474
mov dword [esp + 0x43], 0x6578652e
mov byte [esp + 0x47], 0
pop eax
pop edx
lea eax, [esp + 0x37]
push eax
push esi
call sub.msvcrt.dll_strcat
add esp, 0xc
push 1
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
pop ecx
test eax, eax
je 0x401c53
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx edx, word [ecx + 0x14]
cmp word [ecx + 6], 0
lea ebp, [ecx + edx + 0x18]
je 0x408860
mov esi, dword [sym.imp.msvcrt.dll__stricmp]
xor edx, edx
mov dword [esp + 0x1c], ebx
lea edi, [esp + 0x29]
mov dword [esp + 0x18], eax
mov ebx, ecx
mov dword [esp + 8], esi
mov esi, ebp
mov ebp, edx
jmp 0x401bd2
movzx eax, word [ebx + 6]
add ebp, 1
add esi, 0x28
cmp ebp, eax
jge 0x401c6b
sub esp, 8
push edi
push esi
mov eax, dword [esp + 0x18]
call eax
add esp, 0x10
test eax, eax
jne 0x401bc0
mov edx, dword [esi + 8]
mov ebp, esi
mov esi, dword [esi + 0x10]
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
cmp edx, esi
cmovae esi, edx
add eax, dword [ebp + 0xc]
sub esp, 0xc
push 0x40
mov edi, eax
push 0x1000
push edx
push 0
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
add esp, 0xc
mov ebp, eax
push esi
sub ebp, 0x400000
push edi
push eax
mov edi, dword [esp + 0x1c]
push edi
call fcn.00401570
add esp, 0x10
mov dword [ebx + 0xc], ebp
push 0x28
push ebx
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x248]
sub eax, edx
mov edx, dword [esp + 0x1c]
add edx, eax
push edx
push edi
call fcn.00401570
add esp, 0x10
sub esp, 0xc
push str.Debuggee_was_created._r_n
call fcn.00408830
add esp, 0x125c
pop ebx
pop esi
pop edi
pop ebp
ret
jmp 0x408860
mov eax, dword [8]
ud2
Function at 0x401f80
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.00408050
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.00408050
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x401fe0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x40d1ac]
test esi, esi
jle 0x402100
mov eax, dword [0x40d1b0]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x402014
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x402097
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x402000
mov dword [esp], ebx
call fcn.004029d0
mov edi, eax
test eax, eax
je 0x402127
mov eax, dword [0x40d1b0]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00402b10
mov edx, dword [0x40d1b0]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x402107
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x402090
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x4020a0
add dword [0x40d1ac], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x40d1b0]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x402090
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00401f80
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x40201e
mov eax, dword [0x40d1b0]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00401f80
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00401f80
lea esi, [esi]
nop
Function at 0x402640
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x40d1c8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x40d1c0]
sub esp, 4
test ebx, ebx
je 0x402695
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40268e
test esi, esi
je 0x40268e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402670
mov dword [esp], 0x40d1c8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4029d0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x4029f5
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x402a00
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x4029f5
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x402a48
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x402a3e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x402a4a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x402a30
xor eax, eax
pop ebx
pop esi
ret
Function at 0x4a21d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x72000]
push edi
or ebp, 0xffffffff
jmp 0x4a21f2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4a21f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4a21e8
mov eax, 1
add ebx, ebx
jne 0x4a220b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4a221c
jne 0x4a222c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4a222c
dec eax
add ebx, ebx
jne 0x4a2228
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4a2200
xor ecx, ecx
sub eax, 3
jb 0x4a2244
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4a22b6
sar eax, 1
mov ebp, eax
jmp 0x4a224f
add ebx, ebx
jne 0x4a224f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4a225c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4a2280
inc ecx
add ebx, ebx
jne 0x4a226c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4a2261
jne 0x4a227d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4a2261
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4a22a0
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4a2291
jmp 0x4a21ee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4a22a0
add edi, ecx
jmp 0x4a21ee
pop esi
mov edi, esi
mov ecx, 0xdc2
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4a22be
cmp byte [edi], 6
jne 0x4a22be
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 eax, ebx
loop 0x4a22c3
lea edi, [esi + 0xa0000]
mov eax, dword [edi]
or eax, eax
je 0x4a2332
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xa2218]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xa227c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4a22f0
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xa2280]
or eax, eax
je 0x4a232c
mov dword [ebx], eax
add ebx, 4
jmp 0x4a230d
call dword [esi + 0xa2284]
popal
jmp 0x41b0b8

Function at 0x432000
Capabilities:
Encode data using base64
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x432030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43201e
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x431002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
nop
mov ecx, 0x11c3643e
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43104e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x431024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42f3f8
nop
mov ecx, 0x71ed2aee
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x431084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x40a15c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov word [ebp + 0xc], ax
mov ebx, 0x19826993
mov eax, ebx
mul ebx
mov dword [ebp - 0x10], eax
mov ebx, eax
xor esi, esi
mov eax, ebx
mul ebx
mov dword [ebp - 0x14], eax
mov ebx, eax
mov word [ebp - 0xc], 0
jmp 0x40a272
mov eax, ebx
xor eax, ebx
mov ebx, eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.00405066
pop ecx
mov edx, eax
mov byte [ebp - 1], dl
cmp byte [ebp - 1], 0
jne 0x40a1b3
mov byte [ebp - 2], 0
jmp 0x40a1dd
call fcn.0040ddd8
mov dword [ebp - 0x18], eax
mov eax, 0x7fff
mov edi, 7
movzx edx, byte [ebp - 1]
mov ecx, edi
sub ecx, edx
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x18]
cdq
idiv ecx
mov edx, eax
mov byte [ebp - 2], dl
mov eax, dword [ebp + 8]
mov al, byte [esi + eax]
cmp al, 0x70
jb 0x40a1fc
cmp al, 0x7f
ja 0x40a1fc
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, dword [ebp + 8]
movzx eax, byte [esi + eax]
cmp eax, 0xe2
jne 0x40a21b
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 8
push 0x90
lea eax, [ebp - 0xa]
push eax
call fcn.0040ddc0
movzx eax, byte [ebp - 1]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
lea eax, [ebp - 0xa]
movzx edx, byte [ebp - 2]
add eax, edx
push eax
call fcn.0040ddb4
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 6
lea eax, [ebp - 0xa]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.0040ddb4
add esp, 0x24
mov eax, ebx
add eax, ebx
mov ebx, eax
add esi, 6
inc word [ebp - 0xc]
movzx eax, word [ebp + 0xc]
dec eax
cmp esi, eax
jb 0x40a190
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
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
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

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

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

Function at 0x4045c0
Capabilities:
Encode data using xor

Disassembly:
loopne 0x404617
pop es
nop
and al, 0x4d
in al, dx
adc eax, 0x571c9261
loopne 0x404623
pop eax
dec esi
and eax, dword [eax]
invalid
in al, dx
xchg ebp, eax
dec ebp
clc
hlt
invalid
Function at 0x431003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
nop
nop
mov ecx, 0x334f6a6a
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x431024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x6f803b25
nop
nop
nop
test eax, eax
nop
je 0x431084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x401200
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
ror ebx, 0xca
sub edi, 0x6b
not esi
or edi, 0x8c
add esi, 0xb5
bswap eax
add esi, 0xe4
mov edx, 0x9e
mov edx, 0x6b
imul eax
not esi
and esi, 0xfb
bswap edi
imul esi
mov edx, 0xa3
bswap edi
dec esi
inc edx
or eax, 0x97
rcl edx, 0xd3
imul edi
imul eax
bswap esi
or edx, 0xb2
inc esi
and edx, 0xd5
rcr eax, 0x32
add eax, 4
rcl edi, 0x4c
inc edi
neg edx
or ebx, 0xb
not esi
or eax, 0x75
sbb edi, 0xa5
imul ebx
mov ebx, 0x27
inc eax
not edx
sub edx, 0xaa
sbb esi, 0xce
sbb ebx, 0x66
and esi, 0x39
neg edx
rol edi, 0x89
mov eax, 0x64
imul ebx
rol ebx, 0xc6
neg esi
sub edi, 0xcf
xor ecx, ecx
xor edi, edi
imul ebx
imul edi
not ebx
sub eax, 0x65
or edx, 0xd7
bswap edx
and eax, 0x82
not eax
imul eax
ror edx, 0xf4
rcl edx, 0xf
not edx
neg esi
ror edi, 0xe1
sub esi, 0x37
mov edi, 0x2e
sub edx, 0xd5
ror edi, 0x1b
rcr eax, 0xc8
mov eax, 0x19
not esi
sub edx, 0x3e
rcl edi, 0xc3
imul edx
sub eax, 0xe0
rcr ebx, 0x3b
not eax
or ebx, 0x43
bswap ebx
sbb edi, 0xbc
dec ebx
and edx, 0x55
rcl edi, 0xa1
imul eax
imul ebx
rcr edi, 0xe7
add ebx, 1
rcr eax, 0x95
bswap eax
and edx, 0xfb
rcl esi, 0x26
imul eax
bswap edi
bswap edi
imul edi
imul edx
not eax
not esi
add eax, 0x9d
rcl edi, 6
mov ecx, dword [ebp + 0xc]
mov ebx, 0xed
bswap esi
imul edx
inc edi
neg ebx
imul edi
rcl ebx, 0xf4
or esi, 0xe4
neg eax
inc esi
and eax, 0x79
imul esi
sub ebx, 0xd7
rcr esi, 0xd6
or edi, 0x2e
neg edx
inc edx
neg ebx
not edi
bswap edx
neg edi
bswap edi
or ebx, 0x3b
dec edi
or eax, 0x17
dec edx
dec esi
bswap edi
or eax, 1
sbb edx, 0xcf
rcr esi, 0xa6
sub esi, 0xc4
inc esi
imul edi
and eax, 0xab
not ebx
not edx
neg esi
rol esi, 0x83
rcr esi, 0xc4
bswap esi
inc eax
imul eax
and ebx, 9
sbb edx, 0xe
sbb eax, 0xf5
sbb esi, 0x28
mov ebx, 0x79
add esi, 0x27
rol ebx, 1
mov edi, dword [ebp + 8]
xor esi, ebx
xor eax, eax
xor ebx, esi
not byte [edi]
xor esi, esi
mov eax, esi
xor ebx, eax
mov ebx, eax
xor eax, eax
xor esi, eax
xor eax, esi
xor eax, ebx
mov esi, esi
add byte [edi], 0x37
xor ebx, esi
mov esi, esi
mov eax, esi
xor ebx, ebx
xor esi, esi
mov esi, esi
mov eax, ebx
xor eax, esi
xor esi, ebx
sub byte [edi], 0x75
xor ebx, ebx
xor eax, eax
xor eax, eax
xor ebx, ebx
xor esi, ebx
mov esi, ebx
mov ebx, eax
mov eax, esi
mov esi, esi
imul byte [edi]
inc edi
loop 0x4013d5
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4060e3
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.00404fce
and dword [ebp - 4], 0
cmp dword [0x483660], 0
mov ebx, eax
jne 0x406194
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406245
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x406245
push eax
call fcn.00404f5c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x483660], eax
call esi
push eax
call fcn.00404f5c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x483664], eax
call esi
push eax
call fcn.00404f5c
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x483668], eax
call esi
push eax
call fcn.00404f5c
pop ecx
mov dword [0x483670], eax
test eax, eax
je 0x406194
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404f5c
pop ecx
mov dword [0x48366c], eax
mov eax, dword [0x48366c]
cmp eax, ebx
je 0x4061ec
cmp dword [0x483670], ebx
je 0x4061ec
push eax
call fcn.00404fd7
push dword [0x483670]
mov esi, eax
call fcn.00404fd7
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4061ec
test edi, edi
je 0x4061ec
call esi
test eax, eax
je 0x4061e3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4061e3
test byte [ebp - 0xc], 1
jne 0x4061ec
or dword [ebp + 0x10], 0x200000
jmp 0x406225
mov eax, dword [0x483664]
cmp eax, ebx
je 0x406225
push eax
call fcn.00404fd7
pop ecx
test eax, eax
je 0x406225
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x406225
mov eax, dword [0x483668]
cmp eax, ebx
je 0x406225
push eax
call fcn.00404fd7
pop ecx
test eax, eax
je 0x406225
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x483660]
call fcn.00404fd7
pop ecx
test eax, eax
je 0x406245
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x406247
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x407f4e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x482e08]
jne 0x407f58
repz ret
jmp fcn.00409675
Function at 0x4026e0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x402772
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x402764
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x40275c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x402725
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408f6c
nop
nop
mov ecx, 0x7fc51f70
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e3d0
nop
nop
mov ecx, 0x24194d4b
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
jmp 0x401219