joyce8/EMBER2024-capa huggingface dataset:
Function at 0x681814c0
Capabilities:
Set registry value

Disassembly:
push edi
mov edi, ecx
push esi
mov esi, edx
push ebx
sub esp, 0x40
lea edx, [esp + 0x3c]
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 2
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
sub esp, 0x24
mov ebx, eax
test eax, eax
je 0x68181535
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
add esp, 0x40
pop ebx
pop esi
pop edi
ret
xor eax, eax
mov dword [esp + 0x14], 4
mov dword [esp + 8], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 4
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
sub esp, 0x18
mov ebx, eax
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
jmp 0x6818151c

Function at 0x68181740
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.681822d0
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.681822d0
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 0x681817a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x68203064]
test esi, esi
jle 0x681818c0
mov eax, dword [0x68203068]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x681817d4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x68181857
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x681817c0
mov dword [esp], ebx
call fcn.68181fa0
mov edi, eax
test eax, eax
je 0x681818e7
mov eax, dword [0x68203068]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.681820e0
mov edx, dword [0x68203068]
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 0x681818c7
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x68181850
lea edx, [eax - 0x40]
and edx, 0xffffffbf
jne 0x68181860
add dword [0x68203064], 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 [0x68203068]
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 0x68181850
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.68181740
lea esi, cs:[esi]
nop
xor esi, esi
jmp 0x681817de
mov eax, dword [0x68203068]
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.68181740
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.68181740
lea esi, cs:[esi]
nop

Function at 0x68181c10
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x68203074
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x6820306c]
sub esp, 4
test ebx, ebx
je 0x68181c65
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
mov esi, eax
sub esp, 4
call edi
test esi, esi
je 0x68181c5e
test eax, eax
jne 0x68181c5e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x68181c40
mov dword [esp], 0x68203074
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x68181fa0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x68180000], 0x5a4d
jne 0x68181fc5
mov ecx, dword [0x6818003c]
cmp dword [ecx + 0x68180000], 0x4550
lea edx, [ecx + 0x68180000]
je 0x68181fd0
ret
cmp word [ecx + 0x68180018], 0x10b
jne 0x68181fc5
push esi
push ebx
mov ebx, dword [esp + 0xc]
movzx eax, word [ecx + 0x68180014]
movzx esi, word [ecx + 0x68180006]
sub ebx, 0x68180000
lea eax, [edx + eax + 0x18]
test si, si
je 0x68182018
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x6818200e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x6818201a
add ecx, 1
add eax, 0x28
cmp esi, ecx
jne 0x68182000
xor eax, eax
pop ebx
pop esi
ret
Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
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 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
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 + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x40810b
sub esp, 0xffffff80
jmp 0x402130

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

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

Disassembly:
pushal
mov esi, section.NOS1
lea edi, [esi - 0x34000]
push edi
or ebp, 0xffffffff
jmp 0x45a1b2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x45a1b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x45a1a8
mov eax, 1
add ebx, ebx
jne 0x45a1cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x45a1dc
jne 0x45a1ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x45a1ec
dec eax
add ebx, ebx
jne 0x45a1e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x45a1c0
xor ecx, ecx
sub eax, 3
jb 0x45a204
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x45a276
sar eax, 1
mov ebp, eax
jmp 0x45a20f
add ebx, ebx
jne 0x45a20f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x45a21c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x45a240
inc ecx
add ebx, ebx
jne 0x45a22c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x45a221
jne 0x45a23d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x45a221
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x45a260
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x45a251
jmp 0x45a1ae
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x45a260
add edi, ecx
jmp 0x45a1ae
pop esi
mov edi, esi
mov ecx, 0x19a5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x45a27e
cmp byte [edi], 0x17
jne 0x45a27e
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 0x45a283
lea edi, [esi + 0x58000]
mov eax, dword [edi]
or eax, eax
je 0x45a2fb
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5a914]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5a9a0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x45a2b0
mov ecx, edi
jns 0x45a2df
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 + 0x5a9a4]
or eax, eax
je 0x45a2f5
mov dword [ebx], eax
add ebx, 4
jmp 0x45a2cd
call dword [esi + 0x5a9a8]
popal
jmp 0x42b36d
Function at 0x1004b65
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
jbe 0x1004b8f
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
movzx dx, byte [eax + 1]
xor ebx, ebx
mov bh, byte [eax]
xor edx, ebx
mov word [ecx], dx
inc ecx
inc ecx
inc eax
inc eax
dec esi
jne 0x1004b79
pop ebx
pop esi
pop ebp
ret 0xc

Function at 0x1004b99
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0x18], ebx
jne 0x1004bb1
xor eax, eax
inc eax
jmp 0x1004c3f
cmp dword [ebp + 0xc], 0xfde9
mov dword [ebp - 4], ebx
je 0x1004bc3
lea eax, [ebp - 0xc]
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push edi
push dword [ebp - 4]
push ebx
push ebx
push ebx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call esi
mov edi, eax
cmp edi, ebx
je 0x1004c00
lea eax, [edi + 1]
push eax
push pe_nt_image_headers32
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x1004c04
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1004c3d
push dword [ebp - 4]
push ebx
push edi
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call esi
mov esi, eax
cmp esi, ebx
je 0x1004c32
push ebx
lea eax, [ebp - 0x10]
push eax
push edi
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x1000ba10
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x1000ba50
mov edx, dword [esp + 8]
cmp edx, 0x40
jb 0x1000ba50
cmp word [ecx], 0x5a4d
jne 0x1000ba50
mov eax, dword [ecx + 0x3c]
test eax, eax
jl 0x1000ba50
cmp eax, edx
ja 0x1000ba50
sub edx, eax
cmp edx, 4
jb 0x1000ba50
add eax, ecx
test eax, eax
je 0x1000ba50
mov edx, dword [eax]
xor ecx, ecx
cmp edx, 0x4550
sete cl
mov eax, ecx
ret
xor eax, eax
ret

Function at 0x1000bc60
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x1000bcb0
mov ebp, dword [esp + 0x14]
test ebp, ebp
je 0x1000bcb0
push esi
mov esi, dword [esp + 0x14]
or eax, 0xffffffff
xor ecx, ecx
test esi, esi
jle 0x1000bca2
push ebx
xor edx, edx
mov ebx, eax
mov dl, byte [ecx + edi]
and ebx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x102252a8]
xor eax, edx
inc ecx
cmp ecx, esi
jl 0x1000bc81
pop ebx
pop esi
mov dword [ebp], eax
pop edi
mov eax, 1
pop ebp
ret 0xc
pop edi
xor eax, eax
pop ebp
ret 0xc

Function at 0x1000f370
Capabilities:
Create process on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x54
test edx, edx
jne 0x1000f381
xor al, al
add esp, 0x54
ret
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov word [esp + 0x44], ax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
lea ecx, [esp + 4]
mov dword [esp + 0xc], eax
push ecx
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push 0
mov dword [esp + 0x3c], 0x44
mov dword [esp + 0x68], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
jne 0x1000f3de
xor al, al
add esp, 0x54
ret
cmp byte [esp + 0x5c], 1
jne 0x1000f402
mov eax, dword [esp + 0x64]
test eax, eax
jne 0x1000f3f6
mov ecx, dword [esp]
push 0xffffffffffffffff
push ecx
jmp 0x1000f3fc
mov edx, dword [esp]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
mov esi, dword [esp + 0x64]
test esi, esi
je 0x1000f425
mov ecx, dword [esp + 4]
lea eax, [esp + 0x5c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x1000f425
mov edx, dword [esp + 0x5c]
mov dword [esi], edx
mov eax, dword [esp + 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 8]
push ecx
call esi
mov al, 1
pop esi
add esp, 0x54
ret
Function at 0x1000fab0
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x40
push esi
mov esi, dword [esp + 0x48]
push edi
mov edi, dword [esp + 0x50]
mov eax, dword [esi]
push 0
push 0
push edi
mov ecx, esi
call dword [eax + 8]
lea ecx, [esp + 8]
push ecx
push edi
push esi
call fcn.1000fb20
add esp, 0xc
cmp word [esp + 8], 0x5a4d
je 0x1000fae9
pop edi
xor eax, eax
pop esi
add esp, 0x40
ret
mov eax, dword [esp + 0x44]
mov edx, dword [esi]
push 0
push eax
push edi
mov ecx, esi
call dword [edx + 8]
mov edx, dword [esi]
lea eax, [esp + 0x4c]
push 4
push eax
push edi
mov ecx, esi
call dword [edx + 0xc]
mov ecx, dword [esp + 0x4c]
xor eax, eax
cmp ecx, 0x4550
pop edi
sete al
pop esi
add esp, 0x40
ret
Function at 0x10013db0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push esi
push 0
push 1
push eax
push ecx
push edx
mov dword [esp + 0x18], 0
call fcn.10013b20
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x10013dde
pop esi
pop ecx
ret
movsx eax, word [esp + 0x20]
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x1c]
push edx
push 0
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push esi
je 0x10013e11
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
pop ecx
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
pop ecx
ret

Function at 0x10013e20
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push esi
push 1
push 2
push eax
push ecx
push edx
call fcn.10013b20
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x10013e44
pop esi
ret
movsx eax, word [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push edi
push eax
push ecx
push 1
push 0
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
pop edi
pop esi
sete al
ret

Function at 0x10013e80
Capabilities:
Delete registry value

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push esi
push 0
push 2
push eax
push ecx
push edx
call fcn.10013b20
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x10013ea4
pop esi
ret
mov eax, dword [esp + 0x14]
push edi
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
pop edi
pop esi
sete al
ret
Function at 0x10023d30
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, 0x1018
call fcn.102244a0
mov eax, dword [esp + 0x1028]
push ebx
push ebp
push esi
test eax, eax
push edi
mov byte [esp + 0x10], 0x45
mov byte [esp + 0x11], 0x41
mov byte [esp + 0x12], 0x30
mov byte [esp + 0x13], 0x36
mov byte [esp + 0x14], 0x6b
mov byte [esp + 0x15], 0x43
mov byte [esp + 0x16], 0xca
mov byte [esp + 0x17], 0x52
mov byte [esp + 0x18], 0xaf
mov byte [esp + 0x19], 0xad
mov byte [esp + 0x1a], 0
mov byte [esp + 0x1b], 0
mov byte [esp + 0x1c], 0xe6
mov byte [esp + 0x1d], 0xfb
mov byte [esp + 0x1e], 0x25
mov byte [esp + 0x1f], 0x78
mov byte [esp + 0x20], 0xc8
mov byte [esp + 0x21], 0xe2
mov byte [esp + 0x22], 0x13
mov byte [esp + 0x23], 0xf9
je 0x10023e9a
mov ebp, dword [esp + 0x103c]
test ebp, ebp
je 0x10023e9a
mov ebx, dword [esp + 0x1034]
mov dword [eax], 0
mov eax, dword [esp + 0x1030]
add eax, 0xffffffb0
mov dword [esp + 0x24], eax
cmp ebx, dword [esp + 0x24]
jge 0x10023e9a
mov esi, dword [esp + 0x102c]
mov edx, dword [ebp]
push 0
push ebx
push esi
mov ecx, ebp
call dword [edx + 8]
cmp eax, ebx
jne 0x10023e9a
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x28]
push 0x1000
rep stosd dword es:[edi], eax
mov eax, dword [ebp]
lea ecx, [esp + 0x2c]
push ecx
push esi
mov ecx, ebp
call dword [eax + 0xc]
mov esi, eax
cmp esi, 0xa00
jl 0x10023e9a
lea edx, [esp + 0x10]
push 4
push edx
lea eax, [esp + 0x30]
push esi
push eax
call fcn.100241a0
add esp, 0x10
cmp eax, 0xffffffff
je 0x10023e67
lea ecx, [esp + 0x14]
push 0x10
push ecx
lea edx, [esp + 0x30]
push esi
push edx
mov edi, eax
call fcn.100241a0
add esp, 0x10
cmp eax, 0xffffffff
je 0x10023e67
sub eax, edi
cmp eax, 0x14
je 0x10023e72
add ebx, 0x1000
jmp 0x10023ddb
mov ecx, dword [esp + 0x1034]
lea eax, [edi + ebx - 0x14]
cmp eax, ecx
jl 0x10023e9a
mov ecx, dword [esp + 0x1038]
pop edi
pop esi
pop ebp
mov dword [ecx], eax
mov eax, 1
pop ebx
add esp, 0x1018
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1018
ret

Function at 0x100247b0
Capabilities:
Terminate process

Disassembly:
push ecx
mov eax, dword [esp + 8]
push esi
push eax
push 1
push 0x1f0fff
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x100247d5
pop esi
pop ecx
ret
lea ecx, [esp + 4]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [esp + 4]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
pop ecx
ret
Function at 0x10025070
Capabilities:
Get system information on windows

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x158
test eax, eax
push esi
jne 0x10025089
xor al, al
pop esi
add esp, 0x158
ret
mov byte [eax], 0
mov eax, dword [esp + 0x160]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x100250b1
xor al, al
pop esi
add esp, 0x158
ret
push ebx
push edi
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
mov ecx, 7
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
cmp ebx, eax
ja 0x10025187
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
lea edx, [esp + 0x10]
push 0x1c
push edx
push ebx
push esi
call ebp
test eax, eax
je 0x10025178
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x54], eax
mov dword [esp + 0x60], ecx
add ebx, eax
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x64]
mov dword [esp + 0x5c], edx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x50]
lea edx, [esp + 0x64]
push 0x104
push edx
push eax
push esi
call fcn.100251a0
lea ecx, [esp + 0x60]
push ecx
push esi
call fcn.100252f0
add esp, 0x18
cmp al, 1
jne 0x1002517c
lea edi, [esp + 0x64]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jg 0x1002517c
mov edx, dword [esp + 0x170]
mov byte [edx], 1
jmp 0x1002517c
add ebx, dword [esp + 0x48]
cmp ebx, dword [esp + 0x38]
jbe 0x100250ed
pop ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov al, 1
pop esi
add esp, 0x158
ret
Function at 0x100251a0
Capabilities:
Get disk information

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0xc00
test ecx, ecx
push esi
push edi
je 0x100252db
mov eax, dword [esp + 0xc10]
test eax, eax
je 0x100252db
mov edx, dword [esp + 0xc14]
test edx, edx
je 0x100252db
lea edx, [esp + 0x408]
push 0x400
push edx
push eax
push ecx
call sub.PSAPI.DLL_GetMappedFileNameA
test eax, eax
je 0x100252db
lea eax, [esp + 0x808]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
je 0x100252db
mov al, byte [esp + 0x808]
push ebx
test al, al
push ebp
lea esi, [esp + 0x810]
je 0x10025291
mov ebp, dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
mov ebx, dword [sym.imp.MSVCRT.dll__mbsnbicmp]
lea ecx, [esp + 0x10]
push 0x400
push ecx
push esi
mov byte [esi + 2], 0
call ebp
test eax, eax
je 0x10025279
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x410]
push ecx
push edx
push eax
call ebx
add esp, 0xc
test eax, eax
jne 0x10025279
lea edi, [esp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x410], 0x5c
je 0x10025291
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [esi + ecx + 2]
lea esi, [esi + ecx + 2]
test al, al
jne 0x10025229
mov al, byte [esi]
pop ebp
test al, al
pop ebx
je 0x100252db
lea edi, [esp + 8]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0xc18]
repne scasb al, byte es:[edi]
not ecx
mov eax, dword [esp + 0xc14]
dec ecx
lea ecx, [esp + ecx + 0x408]
push ecx
push esi
push str._s_s
push edx
push eax
call fcn.10012700
add esp, 0x14
test eax, eax
pop edi
pop esi
setge al
add esp, 0xc00
ret
pop edi
xor al, al
pop esi
add esp, 0xc00
ret

Function at 0x100252f0
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
push esi
push edi
mov edi, dword [esp + 0x30]
test edi, edi
je 0x1002534a
mov esi, dword [esp + 0x34]
test esi, esi
je 0x1002534a
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esi]
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x34]
push 2
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x1002534a
push 2
lea ecx, [esp + 0x34]
push 0x102331f4
push ecx
call dword [sym.imp.MSVCRT.dll__strnicmp]
add esp, 0xc
test eax, eax
pop edi
pop esi
sete al
add esp, 0x24
ret
pop edi
xor al, al
pop esi
add esp, 0x24
ret