joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e710
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x440080]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], 0x488bc1b5
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
sub eax, 0xc8cdf048
je 0x40e808
jmp 0x40e74c
mov eax, dword [ebp - 0x24]
sub eax, 0x129ca4b5
je 0x40e8cf
jmp 0x40e75f
mov eax, dword [ebp - 0x24]
sub eax, 0x21941e94
je 0x40e8b1
jmp 0x40e772
mov eax, dword [ebp - 0x24]
sub eax, 0x488bc1b5
je 0x40e79d
jmp 0x40e785
mov eax, dword [ebp - 0x24]
sub eax, 0x771017eb
je 0x40e8bd
jmp 0x40e798
jmp 0x40e914
mov ecx, dword [0x441584]
mov eax, dword [0x441580]
xor esi, esi
sub esi, 1
mov edx, ecx
add edx, esi
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete bl
cmp eax, 0xa
setl dh
mov al, bl
xor al, 0xff
mov ah, dh
xor ah, 0xff
mov cl, 1
xor cl, 0
mov dl, al
and dl, 0
and bl, cl
mov ch, ah
and ch, 0
and dh, cl
or dl, bl
or ch, dh
xor dl, ch
or al, ah
xor al, 0xff
or cl, 0
and al, cl
or dl, al
mov eax, 0x129ca4b5
mov ecx, 0xc8cdf048
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x18], eax
jmp 0x40e914
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
push eax
mov edx, esp
mov dword [ebp - 0x14], ecx
mov dword [edx], eax
pop eax
push eax
mov eax, eax
xor eax, 0x85
nop
mov ecx, dword [ebp - 0x14]
mov edi, dword [edx]
not byte [edi]
pop eax
push eax
mov eax, eax
xor eax, 0x85
nop
add byte [edi], 0x64
sub byte [edi], 0x88
pop eax
push eax
mov eax, eax
xor eax, 0x85
nop
imul byte [edi]
inc edi
loop 0x40e825
mov ecx, dword [0x441584]
mov eax, dword [0x441580]
xor esi, esi
sub esi, 1
mov edx, ecx
add edx, esi
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete bl
cmp eax, 0xa
setl dh
mov al, bl
xor al, 0xff
mov ah, dh
xor ah, 0xff
mov cl, 1
xor cl, 0
mov dl, al
and dl, 0
and bl, cl
mov ch, ah
and ch, 0
and dh, cl
or dl, bl
or ch, dh
xor dl, ch
or al, ah
xor al, 0xff
or cl, 0
and al, cl
or dl, al
mov eax, 0x129ca4b5
mov ecx, 0x21941e94
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x18], eax
jmp 0x40e914
mov dword [ebp - 0x18], 0x771017eb
jmp 0x40e914
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00429290
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
push eax
mov edx, esp
mov dword [ebp - 0x14], ecx
mov dword [edx], eax
pop eax
push eax
mov eax, eax
xor eax, 0x85
nop
mov ecx, dword [ebp - 0x14]
mov edi, dword [edx]
not byte [edi]
pop eax
push eax
mov eax, eax
xor eax, 0x85
nop
add byte [edi], 0x64
sub byte [edi], 0x88
pop eax
push eax
mov eax, eax
xor eax, 0x85
nop
imul byte [edi]
inc edi
loop 0x40e8ec
mov dword [ebp - 0x18], 0xc8cdf048
jmp 0x40e736
Function at 0x429b5b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x429b9a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x429b9a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x429b9a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x429b9a
cmp dword [ecx + 0x74], 0xe
jbe 0x429b9a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4312fb
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x431398
push ebx
push esi
call fcn.004312c4
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00431258
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x431345
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x431397
push edi
push eax
call fcn.0042fd90
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x431365
call fcn.0042fdde
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x431396
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00431258
add esp, 0x20
test eax, eax
jne 0x431384
push edi
call fcn.0042fdde
jmp 0x43138c
push ebx
call fcn.0042fdde
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4325a7
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43b0e0
push 0x43b0d8
push str.FlsAlloc
push 0x1f
call fcn.00432466
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4325db
push dword [ebp + 8]
mov ecx, esi
call dword [0x43814c]
call esi
jmp 0x4325e1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x432625
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43b0f0
push 0x43b0e8
push str.FlsGetValue
push 0x21
call fcn.00432466
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43265c
push dword [ebp + 8]
mov ecx, esi
call dword [0x43814c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x432664
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43b0f8
push 0x43b0f0
push str.FlsSetValue
push 0x22
call fcn.00432466
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43269e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x43814c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x437970
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43799d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43799d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x435510
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.S2C1
lea edi, [esi - 0x30000]
push edi
jmp 0x43552a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x435531
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x435520
mov eax, 1
add ebx, ebx
jne 0x435543
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x435538
jne 0x435554
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x435538
xor ecx, ecx
sub eax, 3
jb 0x435568
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4355da
mov ebp, eax
add ebx, ebx
jne 0x435573
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x435580
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4355a4
inc ecx
add ebx, ebx
jne 0x435590
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x435585
jne 0x4355a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x435585
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4355c4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4355b5
jmp 0x435526
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4355c4
add edi, ecx
jmp 0x435526
pop esi
mov edi, esi
mov ecx, 0x233
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4355e2
cmp byte [edi], 6
jne 0x4355e2
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 0x4355e7
lea edi, [esi + 0x33000]
mov eax, dword [edi]
or eax, eax
je 0x43565f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3870c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x387c0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x435614
mov ecx, edi
jns 0x435643
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 + 0x387c4]
or eax, eax
je 0x435659
mov dword [ebx], eax
add ebx, 4
jmp 0x435631
call dword [esi + 0x387d4]
mov ebp, dword [esi + 0x387c8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
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 0x435693
sub esp, 0xffffff80
jmp 0x4033fd
Function at 0x10001000
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push esi
push esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x10013334
mov dword [ebp - 4], 0x123
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
nop
xor dword [ebp - 4], 0x3e80f31
push dword [ebp - 4]
push str.af_08x
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
pop esi
leave
ret
Function at 0x100014af
Capabilities:
Check mutex on windows

Disassembly:
push 0x1001ba18
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
mov dword [0x1001b164], eax
jne 0x100014e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x100014d8
mov al, 1
ret
mov eax, dword [0x1001b164]
test eax, eax
je 0x100014e8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
ret

Function at 0x100014eb
Capabilities:
Copy file

Disassembly:
push ebp
lea ebp, [esp - 0x6b4]
sub esp, 0x734
mov eax, dword [0x1001b0f8]
push esi
push edi
mov esi, 0x420
push esi
mov dword [ebp + 0x6b0], eax
xor edi, edi
lea eax, [ebp - 0x7c]
push edi
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp + 0x4a8]
push eax
call fcn.10001000
add esp, 0x10
lea eax, [ebp + 0x4a8]
push eax
push esi
push edi
push 4
push edi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x80], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x100015c8
push ebx
push edi
push edi
push edi
push 0xf001f
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
cmp ebx, edi
je 0x100015be
push esi
lea eax, [ebp - 0x7c]
push ebx
push eax
call sub.msvcrt.dll_memcpy
lea eax, [ebp + 0x3a4]
push eax
lea eax, [ebp + 0x8c]
push eax
call fcn.10001087
lea eax, [ebp + 0x5ac]
push eax
push 0x1001b3f8
call fcn.10001087
add esp, 0x1c
push edi
lea eax, [ebp + 0x5ac]
push eax
lea eax, [ebp + 0x3a4]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
xor ecx, ecx
inc ecx
cmp eax, ecx
jne 0x100015b7
mov dword [0x1001bc48], ecx
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov ecx, dword [ebp + 0x6b0]
pop edi
pop esi
call fcn.100112e6
add ebp, 0x6b4
leave
ret
Function at 0x1000235b
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x1001b0f8]
push esi
push edi
xor esi, esi
push esi
push 2
mov dword [ebp - 4], eax
mov dword [ebp - 0x12c], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
lea eax, [ebp - 0x12c]
push eax
push edi
call sub.KERNEL32.dll_Process32First
jmp 0x100023b4
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
jne 0x100023ba
lea eax, [ebp - 0x12c]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x10002393
jmp 0x100023bd
xor esi, esi
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
call fcn.100112e6
leave
ret

Function at 0x1000244e
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0xdc]
sub esp, 0x15c
mov eax, dword [0x1001b0f8]
push esi
push edi
mov dword [ebp + 0xd8], eax
push 0x10
xor eax, eax
pop ecx
push dword [ebp + 0xe4]
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
xor esi, esi
mov dword [ebp - 0x3c], esi
lea edi, [ebp - 0x38]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x2c]
push str.rundll32___s___a
push eax
mov dword [ebp - 0x80], 0x44
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp dword [ebp - 0x38], esi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x100024c6
push dword [ebp - 0x38]
call edi
cmp dword [ebp - 0x3c], esi
je 0x100024d0
push dword [ebp - 0x3c]
call edi
mov ecx, dword [ebp + 0xd8]
pop edi
pop esi
call fcn.100112e6
add ebp, 0xdc
leave
ret

Function at 0x100024e5
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
xor esi, esi
push 0xff
push 0xffffffffffffffff
push esi
push dword [ebp + 8]
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
sub eax, esi
je 0x1000252c
dec eax
jne 0x100024f5
jmp 0x1000251b
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push esi
push esi
lea eax, [ebp - 0x1c]
push esi
push eax
call edi
test eax, eax
jne 0x10002511
jmp 0x100024f5
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
pop edi
inc eax
pop esi
leave
ret
Function at 0x10002561
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1001b0f8]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
sub eax, ebx
push esi
push edi
je 0x10002643
dec eax
jne 0x100026cc
mov eax, dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [0x1001b6d4], eax
mov edi, 0x104
push edi
lea eax, [ebp - 0x108]
push eax
push ebx
call esi
push edi
mov edi, 0x1001b3f8
push edi
push dword [0x1001b6d4]
call esi
push dword [0x1001b6d4]
call fcn.1000b335
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
pop ecx
lea eax, [ebp - 0x108]
push eax
mov dword [ebp + 0xc], ebx
call esi
test eax, eax
jle 0x10002601
mov ebx, dword [ebp + 0xc]
lea ebx, [ebp + ebx - 0x108]
movsx eax, byte [ebx]
push eax
call sub.msvcrt.dll_tolower
inc dword [ebp + 0xc]
mov byte [ebx], al
pop ecx
lea eax, [ebp - 0x108]
push eax
call esi
cmp dword [ebp + 0xc], eax
jl 0x100025d8
xor ebx, ebx
lea eax, [ebp - 0x108]
push str.explorer.exe
push eax
call sub.msvcrt.dll_strstr
test eax, eax
pop ecx
pop ecx
je 0x100026cc
push edi
mov dword [ebp + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea eax, [ebp + 0xc]
push eax
push ebx
push ebx
push 0x100022ec
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x1001bb9c], eax
jmp 0x100026cc
push 0x104
lea eax, [ebp - 0x108]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x108]
push str.explorer.exe
push eax
call sub.msvcrt.dll_strstr
test eax, eax
pop ecx
pop ecx
je 0x100026cc
mov eax, dword [0x1001bb98]
cmp eax, ebx
je 0x10002683
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov dword [0x1001bb98], ebx
mov eax, dword [0x1001bb9c]
cmp eax, ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x100026a2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [0x1001bb9c]
call esi
mov eax, dword [0x1001bba0]
cmp eax, ebx
je 0x100026b4
push eax
call esi
mov dword [0x1001bba0], ebx
mov ecx, dword [0x1001bb88]
cmp ecx, ebx
je 0x100026cc
mov esi, ecx
call fcn.1000ced3
push esi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
call fcn.100112e6
leave
ret 0xc
Function at 0x10002898
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push str.SoftwareMicrosoft_rdfa
call fcn.1000ac52
add esp, 0xc
test eax, eax
jne 0x10002930
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
lea eax, [ebp - 4]
push eax
mov edi, 0x1001bc70
push edi
lea eax, [ebp - 0x10]
push eax
push 0
push 0x10013584
push dword [ebp - 8]
mov dword [ebp - 4], 0xfa
call esi
test eax, eax
je 0x100028f4
push 0x100133e8
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 4]
push eax
mov edi, 0x1001bc84
push edi
lea eax, [ebp - 0x10]
push eax
push 0
push 0x10013580
push dword [ebp - 8]
mov dword [ebp - 4], 0xfa
call esi
test eax, eax
je 0x10002925
push 0x100133e8
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp - 8]
call fcn.1000ac47
pop ecx
pop edi
pop esi
leave
ret

Function at 0x10002932
Capabilities:
Set registry value

Disassembly:
push ecx
cmp dword [esp + 8], 0
push ebx
push ebp
push esi
push edi
mov edi, 0x1001bc70
mov esi, 0x1001bc84
je 0x10002966
push dword [esp + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
mov ebp, 0x10013588
push ebp
push edi
call ebx
push dword [esp + 0x2c]
push ebp
push esi
call ebx
add esp, 0x18
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push eax
xor ebp, ebp
push str.SoftwareMicrosoft_rdfa
mov dword [esp + 0x1c], ebp
call fcn.1000ac52
add esp, 0xc
test eax, eax
jne 0x100029c5
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
call ebx
inc eax
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 3
push ebp
push 0x10013584
push dword [esp + 0x2c]
call edi
push esi
call ebx
inc eax
push eax
push esi
push 3
push ebp
push 0x10013580
push dword [esp + 0x2c]
call edi
push dword [esp + 0x18]
call fcn.1000ac8b
pop ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x10002a85
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor eax, eax
push eax
push eax
push eax
push eax
lea ecx, [ebp - 4]
push ecx
push eax
push eax
push 0x10013334
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov esi, eax
nop
xor dword [ebp - 4], 0x3e80f31
push dword [ebp - 4]
push str._08x
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov eax, esi
pop esi
leave
ret
Function at 0x10002b9e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1001b0f8]
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
mov dword [ebp - 4], eax
jne 0x10002bbe
xor eax, eax
jmp 0x10002c31
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.10002ac7
test eax, eax
pop ecx
je 0x10002c2e
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10002c2e
cmp dword [ebp + 0x10], ebx
mov dword [ebp + 8], ebx
je 0x10002c04
jle 0x10002c10
cmp dword [ebp + 0x10], 2
jg 0x10002c10
push 2
jmp 0x10002c05
push ebx
push ebx
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp + 8]
push eax
push 0xd
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
mov byte [edi + 0xd], bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x10002c30
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.100112e6
leave
ret

Function at 0x10002cad
Capabilities:
Encode data using xor

Disassembly:
xor ecx, ecx
cmp dword [esp + 0xc], ecx
jle 0x10002cc8
mov eax, dword [esp + 4]
mov dl, byte [esp + 8]
add eax, ecx
xor byte [eax], dl
inc ecx
cmp ecx, dword [esp + 0xc]
jl 0x10002cb5
ret

Function at 0x10002d99
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
push eax
push eax
push eax
push eax
lea ecx, [ebp - 4]
push ecx
push eax
push eax
push 0x10013334
mov dword [ebp - 4], 0xfdec
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x10002dc7
nop
xor dword [ebp - 4], 0x1221
push dword [ebp - 4]
push str._08x
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
leave
ret

Function at 0x10002ddd
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
push eax
push eax
push eax
push eax
lea ecx, [ebp - 4]
push ecx
push eax
push eax
push 0x10013334
mov dword [ebp - 4], 0xfdec
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x10002e0b
nop
xor dword [ebp - 4], 0xbfa1
push dword [ebp - 4]
push str._08x
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [ebp + 8]
add esp, 0xc
leave
ret

Function at 0x10002e24
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
push eax
push eax
push eax
push eax
lea ecx, [ebp - 4]
push ecx
push eax
push eax
push 0x10013334
mov dword [ebp - 4], 0xfdec
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x10002e52
nop
xor dword [ebp - 4], 0xd644
push dword [ebp - 4]
push str._08x
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [ebp + 8]
add esp, 0xc
leave
ret
Function at 0x100030f5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x1001b0f8]
push ebx
push esi
xor ebx, ebx
push str.setupapi.dll
mov dword [ebp + 0x2a4], eax
mov byte [ebp - 0x75], bl
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, ebx
je 0x100031e8
push edi
push str.IsUserAdmin
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
lea eax, [ebp - 0x74]
push eax
call fcn.10002d99
lea eax, [ebp + 0x90]
mov dword [esp], str.SOFTWAREMicrosoft_
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x7c]
push eax
push 0x20019
lea eax, [ebp + 0x90]
push ebx
push eax
call edi
neg eax
sbb eax, eax
neg eax
add eax, 0x80000001
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
pop edi
jne 0x100031e1
mov eax, pe_nt_image_headers32
push eax
mov dword [ebp - 0x80], eax
lea eax, [ebp + 0x194]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0x194]
push eax
push ebx
push ebx
push 0x1001359c
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp + 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
setg byte [ebp - 0x75]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp + 0x2a4]
mov al, byte [ebp - 0x75]
pop esi
pop ebx
call fcn.100112e6
add ebp, 0x2a8
leave
ret

Function at 0x10003200
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x52c
mov eax, dword [0x1001b0f8]
push ebx
push esi
push edi
mov esi, 0x420
push esi
mov dword [ebp - 4], eax
xor edi, edi
lea eax, [ebp - 0x528]
push edi
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x108]
push eax
call fcn.10002a85
add esp, 0x10
lea eax, [ebp - 0x108]
push eax
push esi
push edi
push 4
push edi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push edi
push edi
push edi
push 0xf001f
push eax
mov dword [ebp - 0x52c], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
cmp ebx, edi
je 0x1000327f
push esi
lea eax, [ebp - 0x528]
push ebx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x52c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
pop edi
pop esi
pop ebx
je 0x100032a3
mov al, 1
jmp 0x100032a8
call fcn.100030f5
mov ecx, dword [ebp - 4]
call fcn.100112e6
leave
ret