joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44e560
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e8c18
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x649474]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov eax, dword [ebx]
push 8
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebx]
mov edx, dword [eax + 4]
lea eax, [edx - 0x18]
mov dword [edx + ebx - 4], eax
mov eax, dword [ebx]
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov edi, dword [eax + 4]
add edi, ebx
mov dword [edi + 0x30], 0
mov dword [edi + 8], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0x201
mov dword [edi + 0x18], 6
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0xc], 0
call fcn.00482b1b
add esp, 4
mov esi, eax
push 1
mov dword [ebp - 4], 2
call fcn.00467e12
mov dword [esi + 4], eax
add esp, 4
mov eax, dword [ebp + 8]
mov dword [edi + 0x30], esi
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], 0
mov esi, dword [esi + 4]
mov ecx, esi
mov dword [ebp - 0x18], esi
mov eax, dword [esi]
call dword [eax + 4]
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 3
push eax
call fcn.00408031
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
mov edx, dword [edx + 0x20]
call edx
mov byte [ebp - 4], 1
mov ecx, esi
mov edx, dword [esi]
mov byte [ebp + 0xb], al
call dword [edx + 8]
test eax, eax
je 0x44e67e
mov ecx, dword [eax]
push 1
mov edx, dword [ecx]
mov ecx, eax
call edx
cmp dword [edi + 0x38], 0
mov al, byte [ebp + 0xb]
mov byte [edi + 0x40], al
jne 0x44e69d
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x10]
and eax, 0x13
or eax, 4
mov dword [edi + 0xc], eax
and ecx, eax
jne 0x44e6e6
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + 4]
mov dword [ebx + eax + 0x10], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + ebx + 0xc], eax
mov eax, dword [ebx]
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ecx + ebx - 4], eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x44e6f2
mov esi, str.ios_base::badbit_set
jmp 0x44e702
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.0040822f
add esp, 8
lea ecx, [ebp - 0x30]
push eax
push esi
call fcn.00408158
push 0x6460ec
lea eax, [ebp - 0x30]
push eax
call fcn.00485ea4
int3
Function at 0x451710
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
xor ecx, ecx
test esi, esi
je 0x45173b
mov edx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x451724
pop edi
mov eax, edx
pop esi
pop ebp
ret
mov eax, dword [ebp + 8]
pop esi
pop ebp
ret

Function at 0x4535c0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
movzx eax, byte [edx]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edx + 1]
xor ecx, eax
movzx eax, byte [edx + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 4]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 5]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 6]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 7]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
pop ebp
ret 4
Function at 0x454ff0
Capabilities:
Access peb ldr_data

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e919d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x30
mov eax, dword [0x649474]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], ecx
mov eax, dword [ebx + 8]
mov edi, dword [ebx + 0xc]
mov dword [ebp - 0x38], eax
mov eax, dword fs:[0x30]
mov dword [ebp - 0x30], 0
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0xc]
cmp dword [esi + 0x18], 0
je 0x4550b6
movzx ecx, word [esi + 0x2c]
mov eax, dword [esi + 0x30]
shr ecx, 1
cmp dword [edi + 0x10], 0
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], ecx
je 0x45507f
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x455072
mov eax, dword [edi]
push eax
lea ecx, [ebp - 0x40]
call fcn.004553f0
test eax, eax
jne 0x4550a3
mov eax, dword [esi + 0x18]
mov ecx, dword [ebp - 0x34]
push dword [ebp - 0x38]
cdq
mov dword [ecx + 0x68], eax
mov dword [ecx + 0x6c], edx
call fcn.00455170
mov edx, eax
mov dword [ebp - 0x30], edx
test edx, edx
jne 0x455143
jmp 0x4550a6
mov edx, dword [ebp - 0x30]
mov esi, dword [esi]
cmp dword [esi + 0x18], 0
jne 0x455053
test edx, edx
jne 0x455143
call fcn.0044be60
push 0x40
mov esi, eax
call fcn.00482b1b
movups xmm0, xmmword [str.Failed_to_find_export_address_from_requested_dll]
add esp, 4
mov dword [ebp - 0x1c], 0x30
mov dword [ebp - 0x18], 0x3f
movups xmmword [eax], xmm0
mov dword [ebp - 0x2c], eax
movups xmm0, xmmword [0x63a1b4]
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [0x63a1c4]
movups xmmword [eax + 0x20], xmm0
mov byte [eax + 0x30], 0
push 2
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.0044bc30
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x455140
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x455136
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x455165
push edx
push ecx
call fcn.00482b0d
add esp, 8
mov edx, dword [ebp - 0x30]
mov eax, edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004828de
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
call fcn.004a24c4
int3
Function at 0x457c70
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x58
push esi
push edi
xorps xmm0, xmm0
mov dword [esp + 0x50], 0
lea eax, [esp + 0x30]
movaps xmmword [esp + 0x30], xmm0
push eax
movaps xmmword [esp + 0x44], xmm0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp + 8]
mov edx, ecx
mov edi, dword [ebp + 0x10]
add edx, edi
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], esi
adc dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
test eax, eax
jl 0x457cd7
jg 0x457cc1
test edi, edi
je 0x457cd7
cmp esi, dword [esp + 0xc]
ja 0x457ccd
jb 0x457ce3
cmp ecx, edx
jb 0x457ce3
xor eax, eax
xor edx, edx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp esi, dword [esp + 0xc]
jb 0x457ccd
ja 0x457ce3
cmp ecx, edx
jbe 0x457ccd
push 0x1c
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x457ccd
cmp dword [esp + 0x24], 0x10000
jne 0x457d55
mov edi, dword [esp + 0x14]
xor ecx, ecx
mov esi, dword [esp + 0x4c]
mov eax, edi
dec esi
cdq
and esi, eax
and ecx, edx
or esi, ecx
je 0x457d39
mov esi, dword [esp + 0x4c]
mov ecx, edi
xor edx, edx
mov eax, ecx
div esi
test edx, edx
je 0x457d29
sub edi, edx
add edi, esi
push 0x40
sub ecx, edi
add ecx, dword [esp + 0x24]
push 0x3000
push ecx
jmp 0x457d44
push 0x40
push 0x3000
push dword [esp + 0x3c]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
cdq
mov ecx, eax
or eax, edx
jne 0x457d97
mov edi, dword [ebp + 0x10]
cmp dword [ebp + 0x14], 0
jl 0x457d7c
jg 0x457d61
test edi, edi
je 0x457d7c
mov eax, dword [esp + 0x14]
xor esi, esi
mov ecx, dword [esp + 0x20]
cdq
add ecx, eax
mov eax, dword [ebp + 0x14]
adc esi, edx
mov edx, dword [esp + 0x10]
jmp 0x457cb7
mov eax, dword [esp + 0x14]
cdq
mov ecx, eax
mov esi, edx
mov eax, dword [ebp + 0x14]
add ecx, 0xffffffff
mov edx, dword [esp + 0x10]
adc esi, 0xffffffff
jmp 0x457cb7
pop edi
mov eax, ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x45c7c0
Capabilities:
Create thread

Disassembly:
sub esp, 8
push esi
push 0x4f0480
push 0x64
call fcn.0048367c
mov esi, eax
add esp, 8
test esi, esi
je 0x45c924
push 0x63
lea ecx, [esi + 1]
push 0
push ecx
call fcn.004857d0
lea eax, [esi + 4]
mov byte [esi], 1
push 2
push eax
call fcn.0046cb38
lea eax, [esi + 0x34]
push eax
call fcn.0046cdda
xorps xmm0, xmm0
mov dword [0x69c730], esi
add esp, 0x18
movq qword [esi + 0x5c], xmm0
cmp dword [esp + 0x18], 0
mov esi, dword [esp + 0x10]
je 0x45c83e
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x45c833
cmp byte [eax], 0
je 0x45c833
push eax
push esi
call fcn.0045d430
jmp 0x45c83b
push 0
push esi
call fcn.0045d3a0
add esp, 8
call sub.KERNEL32.dll_GetCurrentProcessId
push 0x677040
mov dword [0x69c52c], eax
call fcn.0046cb59
add esp, 4
test eax, eax
jne 0x45c933
mov eax, dword [esp + 0x14]
test eax, eax
je 0x45c876
movups xmm0, xmmword [eax]
movups xmmword [0x6980e4], xmm0
movq xmm0, qword [eax + 0x10]
jmp 0x45c880
xorps xmm0, xmm0
movups xmmword [0x6980e4], xmm0
movq qword [0x6980f4], xmm0
xorps xmm0, xmm0
push 0x677040
movups xmmword [0x6980fc], xmm0
movq qword [0x69810c], xmm0
call fcn.0046cbce
add esp, 4
cmp dword [0x6980e0], 0
jne 0x45c92e
push esi
call fcn.00464a40
mov dword [0x6980e0], eax
mov dword [eax + 8], 0x458990
mov eax, dword [0x6980e0]
mov dword [eax + 0xc], 0x4589a0
mov al, 1
mov esi, dword [0x69c730]
xchg byte [esi], al
push 4
call fcn.00482b1b
add esp, 8
test eax, eax
je 0x45c8ea
mov dword [eax], esi
jmp 0x45c8ec
xor eax, eax
lea ecx, [esp + 8]
push ecx
push 0
push eax
push 0x459160
push 0
push 0
call fcn.004aae03
mov ecx, eax
add esp, 0x18
mov dword [esp + 4], ecx
test ecx, ecx
je 0x45c93e
cmp dword [esi + 0x60], 0
jne 0x45c939
mov eax, dword [esp + 8]
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
pop esi
add esp, 8
ret
mov dword [0x69c730], 0
pop esi
add esp, 8
ret
push eax
call fcn.004684e3
call fcn.004a8416
push 6
mov dword [esp + 0xc], 0
call fcn.00468510
int3
Function at 0x45d430
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xa94
mov eax, dword [0x649474]
xor eax, esp
mov dword [esp + 0xa90], eax
mov eax, dword [esp + 0xa98]
lea ecx, [esp + 0x48]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
mov edi, dword [esp + 0xaa4]
push 0x20
push ecx
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call esi
push 0x20
lea eax, [esp + 0x14]
push eax
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call esi
lea eax, [esp + 8]
push eax
push 0x20019
push 0
push str.SoftwareValveSteam
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x45d4aa
push str.Error_opening_Steam_key_n
jmp 0x45d561
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x208
push eax
lea eax, [esp + 0x94]
push eax
push 0
push 0
push str.SteamExe
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x45d55c
mov ecx, dword [esp + 0xc]
cmp ecx, 1
jb 0x45d55c
shr ecx, 1
mov eax, esi
je 0x45d50c
lea edx, [esi + 0x5c]
cmp word [esp + eax*2 + 0x90], 0x2f
jne 0x45d507
mov word [esp + eax*2 + 0x90], dx
inc eax
cmp eax, ecx
jb 0x45d4f4
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x94]
push eax
push str.__s__steam:__rungameid__s
lea eax, [esp + 0x2a4]
push 0x800
push eax
call fcn.0045d220
lea eax, [esp + 0x2ac]
push eax
lea eax, [esp + 0x68]
push eax
call fcn.0045cf50
add esp, 0x1c
pop edi
pop esi
mov ecx, dword [esp + 0xa90]
xor ecx, esp
call fcn.004828de
add esp, 0xa94
ret
push str.Error_reading_SteamExe_key_n
push 2
call fcn.00490a9b
add esp, 4
push eax
call fcn.0045d590
mov ecx, dword [esp + 0xaa0]
add esp, 8
pop edi
pop esi
xor ecx, esp
call fcn.004828de
add esp, 0xa94
ret
Function at 0x45d650
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x34
mov eax, dword [0x649474]
xor eax, esp
mov dword [esp + 0x30], eax
movups xmm0, xmmword [str._pipediscord_ipc_0]
mov eax, dword [0x4ed8b8]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileW]
push esi
push edi
push 0
push 0
mov dword [esp + 0x40], eax
mov esi, ecx
mov ax, word [0x4ed8bc]
push 3
movups xmmword [esp + 0x1c], xmm0
push 0
movups xmm0, xmmword [0x4ed8a0]
mov word [esp + 0x4c], ax
mov eax, 0x30
push 0
mov word [esp + 0x4e], ax
lea eax, [esp + 0x24]
movups xmmword [esp + 0x34], xmm0
push 0xc0000000
movq xmm0, qword [0x4ed8b0]
push eax
movq qword [esp + 0x4c], xmm0
call ebp
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x45d728
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
call edi
cmp eax, 2
jne 0x45d6f3
mov ax, word [esp + 0x3a]
cmp ax, 0x39
jae 0x45d740
inc ax
mov word [esp + 0x3a], ax
jmp 0x45d70a
cmp eax, 0xe7
jne 0x45d740
push 0x2710
lea eax, [esp + 0x14]
push eax
call ebx
test eax, eax
je 0x45d740
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
lea eax, [esp + 0x28]
push eax
call ebp
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x45d6d8
pop edi
mov byte [esi], 1
mov al, 1
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004828de
add esp, 0x34
ret
mov ecx, dword [esp + 0x40]
xor al, al
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004828de
add esp, 0x34
ret

Function at 0x45d800
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x45d80f
mov al, 1
pop esi
ret 8
test ecx, ecx
je 0x45d846
mov ecx, dword [ecx + 4]
cmp ecx, 0xffffffff
je 0x45d846
mov eax, dword [esp + 8]
test eax, eax
je 0x45d846
push 0
lea edx, [esp + 0x10]
mov dword [esp + 0x10], 0
push edx
push esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x45d846
cmp dword [esp + 0xc], esi
je 0x45d809
xor al, al
pop esi
ret 8

Function at 0x4ccc55
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004cc84d

Function at 0x4ccc60
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004cc9d7

Function at 0x4cdca5
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004cd678

Function at 0x4d7229
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004d70fd
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

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

Function at 0x7ff598
Capabilities:
Encode data using xor

Disassembly:
jmp 0x7ff5a2
pushal
call 0x7ff5a8
pop ebp
sub ebp, 0x10
sub ebp, 0x3ff598
jmp 0x7ff5be
mov eax, 0x3ff598
add eax, ebp
add eax, 0x4c
mov ecx, 0x5f9
mov edx, 0x93965bb7
xor byte [eax], dl
inc eax
dec ecx
jne 0x7ff5d5
jmp 0x7ff5e8
cmp al, 0x7a
cmp al, 0x3e
mov esi, dword [edi + 0x7636b7b7]
dec edi
mov bh, 0xb7
mov bh, 0xb4
jp 0x7ff608
mov cl, 0xb7
mov bh, 0xb7
or eax, 0xb7b7b79f
inc eax
push ebp
mov ah, 0x7f
cmp al, 0x36
mov ebx, 0xb4b7b7b7
jb 0x7ff649
rcl dword [ebx - 0x6c4cc1b5], cl
cmp dl, bl
xchg ebx, eax
dec ebx
mov bl, 0x93
ffreep st(7)
sbb eax, 0x90dfb7b9
cld
xchg byte [edi - 0x206c644a], dh
push eax
dec ch
and ebx, dword [edi - 0x4e]
mov bh, 0xb7
mov bh, 0x5e
cdq
mov bh, 0xb7
mov bh, 0xe2
cmp al, 0x5b
cmp al, 0x32
mov edi, 0x3cb7b7b7
and bh, byte [ebx + 0x3cb7b7b7]
cmp ah, byte [edi + 0x76b7b7b7]
cmpsd dword [esi], dword es:[edi]
mov bh, 0xb7
mov bh, 0x76
pop esi
mov ch, 0x86
mov ch, 0x34
jne 0x7ff608
invalid
Function at 0x4b18b0
Capabilities:
Clear file content

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push 1
push esi
push esi
push edi
push esi
pop ebx
mov dword [ebp - 8], esi
call fcn.004ae92b
push edx
pop ecx
mov dword [ebp - 0x18], eax
and eax, ecx
add esp, 0x10
mov dword [ebp - 0x14], ecx
cmp eax, 0xffffffff
je 0x4b1938
push 2
push esi
push esi
push edi
call fcn.004ae92b
mov ecx, eax
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x4b1938
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
sub esi, ecx
sbb eax, edx
mov dword [ebp - 4], eax
js 0x4b19cf
jg 0x4b1912
test esi, esi
je 0x4b19cf
push 0x1000
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0xc], eax
or eax, eax
jne 0x4b1944
call fcn.004a93f4
mov dword [eax], 0xc
call fcn.004a93f4
mov eax, dword [eax]
pop edi
pop esi
pop ebx
leave
ret
push 0x8000
push edi
call fcn.004b1a8e
pop ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
pop ecx
test eax, eax
jl 0x4b196c
jg 0x4b1965
cmp esi, 0x1000
jb 0x4b196c
mov eax, 0x1000
jmp 0x4b196e
mov eax, esi
push eax
push dword [ebp - 0xc]
push edi
call fcn.004add38
add esp, 0xc
cmp eax, 0xffffffff
je 0x4b1995
cdq
sub esi, eax
mov eax, dword [ebp - 4]
sbb eax, edx
mov dword [ebp - 4], eax
js 0x4b19b0
jg 0x4b1957
test esi, esi
je 0x4b19b0
jmp 0x4b1957
call fcn.004a93c0
cmp dword [eax], 5
jne 0x4b19aa
call fcn.004a93f4
mov dword [eax], 0xd
or ebx, 0xffffffff
or dword [ebp - 8], ebx
push dword [ebp - 0x10]
push edi
call fcn.004b1a8e
pop ecx
pop ecx
push dword [ebp - 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4b1a35
or eax, eax
jg 0x4b1a41
jl 0x4b19d9
test esi, esi
jae 0x4b1a41
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.004ae92b
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x4b1938
push edi
call fcn.004b14ba
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb eax, eax
neg eax
dec eax
cdq
push eax
pop ebx
mov eax, edx
push ebx
pop ecx
and ecx, eax
mov dword [ebp - 8], eax
cmp ecx, 0xffffffff
jne 0x4b1a41
call fcn.004a93f4
mov dword [eax], 0xd
call fcn.004a93c0
push eax
pop esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
and ebx, dword [ebp - 8]
cmp ebx, 0xffffffff
je 0x4b1938
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push edi
call fcn.004ae92b
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x4b1938
xor eax, eax
jmp 0x4b193f

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

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

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404120
test esi, esi
jne 0x402ac2
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404210
jmp 0x402ae0
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029a0
mov edi, eax
test esi, esi
je 0x402ae0
cmp dword [ebx], 0
je 0x402ae0
dec esi
jmp 0x402ac9
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4031bc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x47c020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403254
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403234
xor eax, eax
push ebp
push 0x40322d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403270
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403234
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x47c020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x47c020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403f20
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47e04c], 0
je 0x403f81
cmp word [0x47e220], 0xd7b2
jne 0x403f49
cmp dword [0x47e228], 0
jbe 0x403f49
mov eax, 0x47e21c
call dword [0x47e238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x47c06c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403fa8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x47c030], 0
jne 0x403f9d
push 0
push 0x47c064
push 0x47c06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4040d4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402764
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x47e04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x40409c
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc