joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42dd3b
Capabilities:
Get disk size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x4310b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov esi, edx
mov dword [ebp - 0x224], eax
mov edi, ecx
call fcn.00404e03
mov ecx, 0x104
xor eax, eax
push ecx
push eax
mov dword [ebp - 0x18], eax
xor ebx, ebx
lea eax, [ebp - 0x220]
mov dword [ebp - 0x10], ecx
inc ebx
push eax
mov byte [ebp - 0x14], bl
call sub.msvcrt.dll_memset
xor eax, eax
lea ecx, [ebp - 0x220]
add esp, 0xc
cmp byte [ebp - 0x14], al
sete al
dec eax
and eax, 0x7ee3
add eax, 0x104
push eax
call fcn.0040d300
test eax, eax
js 0x42de8b
push esi
lea ecx, [ebp - 0x220]
call fcn.0040f229
mov eax, dword [ebp - 0x18]
mov ecx, eax
test eax, eax
jne 0x42ddcb
lea ecx, [ebp - 0x220]
xor ebx, ebx
cmp word [ecx], bx
je 0x42ddf2
cmp word [ecx + 2], 0x3a
jne 0x42ddf2
cmp word [ecx + 4], bx
jne 0x42ddf2
push 0x40263c
lea ecx, [ebp - 0x220]
call fcn.004121c1
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x230], ebx
test eax, eax
jne 0x42de08
lea eax, [ebp - 0x220]
lea ecx, [ebp - 0x238]
push ecx
lea ecx, [ebp - 0x240]
push ecx
lea ecx, [ebp - 0x230]
push ecx
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetDiskFreeSpaceExW]
push 6
pop edx
mov ecx, edi
call fcn.0042b577
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x42de3b
lea eax, [ebp - 0x220]
push dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x230]
push eax
push 0xe
call fcn.0042e914
mov esi, dword [ebp - 0x18]
test esi, esi
jne 0x42de5c
lea esi, [ebp - 0x220]
push dword [ebp - 0x224]
mov ebx, 0x44bf00
push 0x40432c
push 0x104
push ebx
call fcn.00409041
push esi
push ebx
push 2
push 0x2379
push edi
call fcn.0042b807
add esp, 0x24
mov ebx, eax
mov ecx, dword [ebp - 0x18]
and dword [ebp - 0x18], 0
test ecx, ecx
je 0x42de9e
push ecx
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417b90
leave
ret 8
Function at 0x42ed37
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
mov ebx, ecx
xor esi, esi
push esi
mov edi, edx
mov dword [ebp - 8], ebx
call dword [sym.imp.api_ms_win_core_winrt_l1_1_0.dll_RoInitialize]
test eax, eax
js 0x42ee2e
mov dword [ebp - 4], esi
call dword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_0.dll_GetConsoleWindow]
lea ecx, [ebp - 4]
mov dword [ebp - 0xc], eax
call fcn.0042eefa
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp + 0x14]
push eax
lea edx, [ebp - 0xc]
lea ecx, [ebp - 4]
call fcn.0042ec13
test eax, eax
js 0x42ee20
call fcn.00407608
push 0x38
lea eax, [ebp - 0x44]
mov dword [ebp - 0x48], 0x3c
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x44], 0x8008140
test bl, 0x10
je 0x42edbb
mov dword [ebp - 0x44], 0x8000140
call dword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_0.dll_GetConsoleWindow]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x38], edi
call dword [sym.imp.ext_ms_win_shell_shell32_l1_2_0.dll_ShellExecuteExW]
mov esi, eax
test esi, esi
je 0x42edf9
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp - 0x10]
mov dword [ecx], eax
jmp 0x42ee20
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x42ee0c
mov dword [0x439820], 8
jmp 0x42ee20
mov dword [0x439820], 2
cmp eax, 0x20
je 0x42ee20
mov dword [0x439820], eax
lea ecx, [ebp - 4]
call fcn.0042eefa
call dword [sym.imp.api_ms_win_core_winrt_l1_1_0.dll_RoUninitialize]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x1c
Function at 0x42fbc6
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x4310b4]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x220]
push ebx
push esi
push edi
mov edi, 0x104
xor ebx, ebx
push edi
push 0
inc ebx
mov dword [ebp - 0x10], edi
push eax
mov esi, ecx
mov byte [ebp - 0x14], bl
call sub.msvcrt.dll_memset
xor eax, eax
lea ecx, [ebp - 0x220]
add esp, 0xc
cmp byte [ebp - 0x14], al
sete al
dec eax
and eax, 0x7ee3
add eax, edi
push eax
call fcn.0040d300
test eax, eax
js 0x42fc5f
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x42fc31
lea eax, [ebp - 0x220]
push dword [ebp - 0x10]
push eax
push esi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetVolumePathNameW]
test eax, eax
je 0x42fc5d
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x42fc4d
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetDriveTypeW]
test eax, eax
je 0x42fc5d
cmp eax, 4
jne 0x42fc5f
xor ebx, ebx
mov eax, dword [ebp - 0x18]
and dword [ebp - 0x18], 0
test eax, eax
je 0x42fc72
push eax
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417b90
leave
ret
Function at 0x4036c0
Capabilities:
Terminate process

Disassembly:
jmp 0x454c89
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x454c9a
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405a8d
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x4037f1
Capabilities:
Query environment variable

Disassembly:
jmp 0x49e7e2
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49e7f3
pop esi
ret
push ebx
push edi
push esi
call fcn.0049e6c9
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004040cf
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49e81b
push ebx
push esi
push edi
call fcn.0040586c
add esp, 0xc
push 0
call fcn.00406410
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x405939
Capabilities:
Parse pe header

Disassembly:
jmp 0x443a3f
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x443a7e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x443a7e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x443a7e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x443a7e
cmp dword [ecx + 0x74], 0xe
jbe 0x443a7e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4962bf
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401dde
mov eax, dword [0x4d2034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00406005
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x496301
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x49645d
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00406163
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4d5ea8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00403314
mov ecx, dword [esi*4 + 0x4d5ea8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x496456
cmp eax, dword [edi + ecx + 0x24]
jne 0x496456
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x496456
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403314
add esp, 0x14
test edx, edx
jl 0x496456
jg 0x4963cc
test eax, eax
jb 0x496456
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x496456
jl 0x4963e6
cmp dword [ebp - 0x1008], eax
ja 0x496456
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x496404
test ebx, ebx
je 0x49643d
cmp ecx, edi
jae 0x49643d
mov al, byte [ecx]
cmp al, 0xd
jne 0x49641e
lea eax, [edi - 1]
cmp ecx, eax
jae 0x49642a
cmp byte [ecx + 1], 0xa
jne 0x49642a
inc ecx
jmp 0x49642a
movzx eax, al
movsx eax, byte [eax + 0x4d2370]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x496404
cmp edx, ebx
jne 0x496404
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x49645b
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004030f3
leave
ret
Function at 0x496b9c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4d5ea8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x496bdc
cmp byte [ebx], 0xa
jne 0x496bdc
or byte [eax + edi + 0x28], 4
jmp 0x496be1
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x496cdf
mov al, byte [edx]
cmp al, 0x1a
je 0x496cc1
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x496c10
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x496c35
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x496c3f
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x496bf2
jmp 0x496cdf
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x496cbc
cmp dword [ebp - 0xc], 0
je 0x496cbc
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4d5ea8]
test byte [eax + edi + 0x28], 0x48
je 0x496c96
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x496c81
mov byte [esi], dl
jmp 0x496c92
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4d5ea8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x496cdf
cmp byte [ebp - 1], 0xa
jne 0x496ca5
cmp esi, ebx
jne 0x496ca5
mov byte [esi], 0xa
jmp 0x496cde
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040196f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x496cdf
mov byte [esi], 0xd
jmp 0x496cde
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4d5ea8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x496cdb
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x496cdf
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x496d3b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4d5ea8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x496d7e
cmp word [esi], dx
jne 0x496d7e
or byte [edi + eax + 0x28], 4
jmp 0x496d83
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x496ed6
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x496eb6
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x496dc5
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x496dfb
cmp eax, edx
jae 0x496e07
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x496d9d
jmp 0x496ed6
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x496eb2
cmp dword [ebp - 0x14], 0
je 0x496eb2
mov eax, dword [ebx*4 + 0x4d5ea8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x496e8a
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x496e53
mov word [esi], cx
jmp 0x496e86
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4d5ea8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4d5ea8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4d5ea8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x496ed6
pop ebx
cmp word [ebp - 4], bx
jne 0x496e9b
cmp esi, dword [ebp + 0xc]
jne 0x496e9b
mov word [esi], bx
jmp 0x496ed3
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040196f
add esp, 0x10
cmp word [ebp - 4], bx
je 0x496ed6
push 0xd
jmp 0x496ecf
mov ecx, dword [ebx*4 + 0x4d5ea8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x496ecd
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x496ed6
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x49cd81
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4d2034]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x49cdcc
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0049d243
test al, al
jne 0x49cdc6
sub edx, 2
cmp edx, edi
jne 0x49cdac
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x49cdee
lea eax, [edi + 2]
cmp edx, eax
je 0x49cdee
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0049c97a
add esp, 0x10
jmp 0x49cee8
push esi
lea ecx, [ebp - 0x255]
call fcn.0049d243
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x49ce31
push dword [ebp - 0x25c]
jmp 0x49cdde
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x49ce6e
cmp word [ebp - 0x226], 0
je 0x49ce8f
cmp word [ebp - 0x226], ax
jne 0x49ce6e
cmp word [ebp - 0x224], 0
je 0x49ce8f
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0049c97a
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x49cedb
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x49ce48
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x49cec3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x49cee8
push 0x49c362
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004056a0
add esp, 0x10
jmp 0x49ceb8
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004030f3
leave
ret

Function at 0x8ccba4
Capabilities:
Encode data using xor

Disassembly:
push 0x8cc92e
pop ebx
sub esi, esi
add eax, 0x7b21f158
call fcn.008ccbdb
add esi, esi
xor dword [edi], ebx
add eax, esi
and eax, esi
inc edi
add esi, 0x2c0c4bc3
and esi, eax
cmp edi, edx
jne fcn.008ccba4
add eax, 0x28fa770d
and eax, eax
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x407ef8
nop
nop
mov ecx, 0xde0244e
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
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
cmp eax, ebx
jne 0x42e024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x637c5b90
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x42e084
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x4086fb
Capabilities:
Create process on windows

Disassembly:
push ebp
mov edx, 0x12
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x408701
call fcn.00417c90
mov edx, dword [esp + 0x50]
lea ecx, [esp]
call fcn.0040b000
mov edx, dword [esp + 0x54]
lea ecx, [esp + 4]
call fcn.0040b000
mov edx, dword [esp + 0x58]
lea ecx, [esp + 8]
call fcn.0040b000
lea ebp, [esp + 0xc]
mov dword [ebp], 0x3c
mov eax, str.runas
push eax
pop eax
mov dword [ebp + 0xc], eax
mov eax, dword [esp + 4]
push eax
pop eax
mov dword [ebp + 0x14], eax
mov eax, dword [esp]
push eax
pop eax
mov dword [ebp + 0x10], eax
mov eax, dword [esp + 8]
push eax
pop eax
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x1c], 1
lea eax, [esp + 0xc]
push eax
call sub.SHELL32.DLL_ShellExecuteExA
jmp 0x40877d
push dword [esp + 4]
call fcn.00417cf0
push dword [esp]
call fcn.00417cf0
push dword [esp + 8]
call fcn.00417cf0
add esp, 0x48
pop ebp
ret 0xc

Function at 0x40879e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00417c90
push dword [esp + 0x28]
call fcn.0040b1b0
mov edx, dword [esp + 0x20]
lea ecx, [esp]
call fcn.0040b000
mov edx, dword [esp + 0x24]
lea ecx, [esp + 4]
call fcn.0040b000
mov dword [esp + 8], 0
push edx
call fcn.00417af0
pop edx
push eax
push edx
call fcn.00417af0
pop edx
push eax
push 0xff
call fcn.0040c0e0
lea eax, [esp + 0x10]
push eax
call fcn.00417b60
mov dword [esp + 0x10], 0xff
lea eax, [esp + 8]
push eax
push 0x20019
push 0
push dword [esp + 0xc]
push dword [esp + 0x2c]
call sub.ADVAPI32.DLL_RegOpenKeyExA
and eax, eax
je 0x408831
mov edx, str.Error_Opening_Key
lea ecx, [esp + 0xc]
call fcn.0040b008
jmp 0x408898
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push eax
push 0
push 0
push dword [esp + 0x14]
push dword [esp + 0x1c]
call sub.ADVAPI32.DLL_RegQueryValueExA
and eax, eax
je 0x408866
mov edx, str.Error_Reading_Key
lea ecx, [esp + 0xc]
call fcn.0040b008
jmp 0x40888f
push edx
call fcn.00417af0
pop edx
push eax
push edx
call fcn.00417af0
pop edx
push eax
mov ebx, dword [esp + 0x18]
dec ebx
push ebx
push dword [esp + 0x18]
call fcn.0040b810
lea eax, [esp + 0x10]
push eax
call fcn.00417b60
push dword [esp + 8]
call sub.ADVAPI32.DLL_RegCloseKey
mov edx, dword [esp + 0xc]
push edx
call fcn.00417af0
pop edx
push eax
push edx
call fcn.00417bf0
pop eax
push eax
call fcn.0040b140
pop edx
add eax, edx
jmp 0x4088be
push dword [esp + 0xc]
call fcn.00417cf0
push dword [esp]
call fcn.00417cf0
push dword [esp + 4]
call fcn.00417cf0
add esp, 0x14
pop ebx
ret 0xc
Function at 0x4088df
Capabilities:
Get storage device properties

Disassembly:
push ebp
push ebx
mov edx, 0x10
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x4088e6
call fcn.00417c90
mov edx, dword [esp + 0x4c]
lea ecx, [esp]
call fcn.0040b000
push dword [esp]
mov edx, 0x447021
pop ecx
call fcn.0040b180
je 0x40891e
xor eax, eax
movsx eax, al
jmp 0x408a5e
push 0
push 0
push 3
push 0
push 3
push 0
push dword [esp + 0x18]
call sub.KERNEL32.dll_CreateFileA
mov dword [esp + 4], eax
mov ebx, dword [esp + 4]
cmp ebx, 0xffffffff
je 0x408a52
lea ebp, [esp + 0x10]
mov dword [ebp], 8
mov dword [ebp + 4], 0
mov dword [esp + 8], 0
push 0
lea eax, [esp + 0xc]
push eax
push 0xc
lea eax, [esp + 0x28]
push eax
push 0xc
lea eax, [esp + 0x24]
push eax
push 0x2d1400
push dword [esp + 0x20]
call sub.KERNEL32.dll_DeviceIoControl
and eax, eax
je 0x4089b0
mov ebx, dword [esp + 8]
cmp ebx, 0xc
jne 0x4089b0
mov eax, 1
jmp 0x4089b2
xor eax, eax
and eax, eax
je 0x4089cf
lea ebp, [esp + 0x1c]
movsx ebx, byte [ebp + 8]
cmp ebx, 1
jne 0x4089cf
movsx ebx, byte [esp + 0xc]
inc ebx
push ebx
pop eax
mov byte [esp + 0xc], al
lea ebp, [esp + 0x28]
mov dword [ebp], 7
mov dword [ebp + 4], 0
mov dword [esp + 8], 0
push 0
lea eax, [esp + 0xc]
push eax
push 0xc
lea eax, [esp + 0x40]
push eax
push 0xc
lea eax, [esp + 0x3c]
push eax
push 0x2d1400
push dword [esp + 0x20]
call sub.KERNEL32.dll_DeviceIoControl
and eax, eax
je 0x408a29
mov ebx, dword [esp + 8]
cmp ebx, 0xc
jne 0x408a29
mov eax, 1
jmp 0x408a2b
xor eax, eax
and eax, eax
je 0x408a49
lea ebp, [esp + 0x34]
movsx ebx, byte [ebp + 8]
and ebx, ebx
jne 0x408a49
movsx ebx, byte [esp + 0xc]
add ebx, 2
push ebx
pop eax
mov byte [esp + 0xc], al
push dword [esp + 4]
call sub.KERNEL32.dll_CloseHandle
movsx eax, byte [esp + 0xc]
movsx eax, al
jmp 0x408a5e
push dword [esp]
call fcn.00417cf0
add esp, 0x40
pop ebx
pop ebp
ret 4