joyce8/EMBER2024-capa huggingface dataset:
Function at 0x29aaef50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x29b284ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x34]
push ebx
push ebp
push edi
xor edi, edi
mov dword [esi], edi
mov dword [esi + 4], edi
mov ecx, dword [eax + 0x70]
xor ebx, ebx
cmp ecx, 7
mov dword [esp + 0x14], 0xd
mov dword [esp + 0xc], ebx
jne 0x29aaef95
mov eax, dword [eax + 0x78]
mov dword [esp + 0x40], eax
jmp 0x29aaef99
mov dword [esp + 0x40], edi
mov eax, dword [esp + 0x44]
cmp dword [eax], 6
jne 0x29aaf065
mov edx, dword [eax + 8]
mov eax, dword [edx + 0xc]
xor ebp, ebp
cmp eax, edi
jle 0x29aaf065
jmp 0x29aaefc0
xor edi, edi
lea ebx, [ebx]
lea eax, [esp + 0x14]
mov ecx, ebp
call fcn.29aaf160
cmp dword [eax], 7
jne 0x29aaf049
push 0x48
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, edi
mov dword [esp + 0x34], edi
je 0x29aaf001
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x1c]
push ecx
push edx
mov edi, eax
call fcn.29aaec20
mov ebx, dword [esp + 0xc]
mov edi, eax
mov dword [esp + 0x34], 0xffffffff
mov eax, dword [edi + 0x40]
test eax, eax
je 0x29aaf039
cmp dword [esi + 4], ebx
jl 0x29aaf02c
mov eax, dword [esi]
add ebx, 0x10
push 4
push ebx
push eax
mov dword [esp + 0x18], ebx
call fcn.29ad18b8
add esp, 0xc
mov dword [esi], eax
mov ecx, dword [esi + 4]
mov edx, dword [esi]
mov dword [edx + ecx*4], edi
inc dword [esi + 4]
jmp 0x29aaf049
mov eax, edi
call fcn.29aaeec0
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
lea ecx, [esp + 0x14]
call fcn.29ae1cf0
mov eax, dword [esp + 0x44]
mov edx, dword [eax + 8]
mov eax, dword [edx + 0xc]
inc ebp
cmp ebp, eax
jl 0x29aaefb8
mov ecx, dword [esp + 0x2c]
pop edi
pop ebp
mov eax, esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x2c
ret 0xc
Function at 0x29ab2260
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x14]
push edi
xor eax, eax
jmp 0x29ab2270
mov byte [eax + esi], al
inc eax
cmp eax, 0x100
jl 0x29ab2270
xor dl, dl
xor edi, edi
lea ecx, [esi + 1]
mov dword [esp + 0x10], 0x40
lea ebx, [ebx]
movzx eax, dl
mov dl, byte [ecx - 1]
mov dword [esp + 0xc], eax
movzx eax, byte [eax + ebp]
mov byte [esp + 0xb], dl
movzx edx, dl
add eax, edi
add eax, edx
and eax, 0x800000ff
jns 0x29ab22b7
dec eax
or eax, 0xffffff00
inc eax
mov dl, byte [esp + 0xb]
movzx edi, al
mov al, byte [edi + esi]
mov byte [ecx - 1], al
mov eax, dword [esp + 0xc]
inc eax
mov byte [edi + esi], dl
cdq
idiv ebx
movzx eax, dl
mov dl, byte [ecx]
mov dword [esp + 0xc], eax
movzx eax, byte [eax + ebp]
mov byte [esp + 0xb], dl
movzx edx, dl
add eax, edi
add eax, edx
and eax, 0x800000ff
jns 0x29ab22f5
dec eax
or eax, 0xffffff00
inc eax
mov dl, byte [esp + 0xb]
movzx edi, al
mov al, byte [edi + esi]
mov byte [ecx], al
mov eax, dword [esp + 0xc]
inc eax
mov byte [edi + esi], dl
cdq
idiv ebx
movzx eax, dl
mov dl, byte [ecx + 1]
mov dword [esp + 0xc], eax
movzx eax, byte [eax + ebp]
mov byte [esp + 0xb], dl
movzx edx, dl
add eax, edi
add eax, edx
and eax, 0x800000ff
jns 0x29ab2333
dec eax
or eax, 0xffffff00
inc eax
mov dl, byte [esp + 0xb]
movzx edi, al
mov al, byte [edi + esi]
mov byte [ecx + 1], al
mov eax, dword [esp + 0xc]
inc eax
mov byte [edi + esi], dl
cdq
idiv ebx
movzx eax, dl
mov dl, byte [ecx + 2]
mov dword [esp + 0xc], eax
movzx eax, byte [eax + ebp]
mov byte [esp + 0xb], dl
movzx edx, dl
add eax, edi
add eax, edx
and eax, 0x800000ff
jns 0x29ab2372
dec eax
or eax, 0xffffff00
inc eax
mov dl, byte [esp + 0xb]
movzx edi, al
mov al, byte [edi + esi]
mov byte [ecx + 2], al
mov eax, dword [esp + 0xc]
inc eax
mov byte [edi + esi], dl
cdq
idiv ebx
mov eax, dword [esp + 0x10]
add ecx, 4
dec eax
mov dword [esp + 0x10], eax
jne 0x29ab2290
pop edi
pop ebp
add esp, 0xc
ret
Function at 0x29ab32d0
Capabilities:
Read file on windows

Disassembly:
push esi
push 0x29b48308
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x29ab32e8
pop esi
ret
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_fseek]
push edi
push 2
push 0
push esi
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push esi
mov edi, eax
call ebx
push edi
call fcn.29ad17eb
push esi
push edi
mov ebx, eax
push 1
push ebx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x30
cmp eax, edi
je 0x29ab3337
push ebx
call fcn.29ad18fe
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 8
pop edi
pop ebx
xor eax, eax
pop esi
ret
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ecx], edi
pop edi
mov eax, ebx
pop ebx
pop esi
ret
Function at 0x29aba1e0
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x29b26a66
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push str.HOME
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
push 8
mov esi, eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test esi, esi
mov dword [esp + 4], eax
je 0x29aba23d
test eax, eax
mov dword [esp + 0x10], 0
je 0x29aba264
push eax
mov eax, esi
call fcn.29ad1a50
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
test eax, eax
mov dword [esp + 0x10], 1
je 0x29aba264
push eax
mov eax, 0x29b4ebfc
call fcn.29ad1a50
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov ecx, dword [esp + 8]
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x29aba460
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x29b26f3b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
push 0
push str.TEMP
mov edi, ecx
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
push eax
call dword [sym.imp.MSVCRT.dll__tempnam]
mov esi, eax
add esp, 8
test esi, esi
je 0x29aba516
push 8
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 8], eax
test eax, eax
mov dword [esp + 0x14], 0
je 0x29aba4be
push eax
mov eax, esi
call fcn.29ad1a50
jmp 0x29aba4c0
xor eax, eax
mov dword [esp + 0x14], 0xffffffff
push esi
mov dword [edi], eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
test ebx, ebx
je 0x29aba4e2
mov eax, dword [edi]
push eax
mov eax, ebx
call fcn.29ad1be0
mov ecx, dword [edi]
mov edx, dword [esp + 0x20]
mov eax, dword [ecx + 4]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ecx, dword [esp + 0x24]
add esp, 8
test eax, eax
mov dword [ecx], eax
jne 0x29aba529
mov edi, dword [edi]
test edi, edi
je 0x29aba516
mov eax, edi
call fcn.29ad1b30
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov ecx, dword [esp + 0xc]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x29ac13d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x29b26f3b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
xor edi, edi
push 8
mov dword [esi], 0x29b4f278
mov dword [esi + 0xa0], edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 4], eax
cmp eax, edi
mov dword [esp + 0x10], edi
je 0x29ac1417
push eax
mov eax, dword [esp + 0x1c]
call fcn.29ad1a50
jmp 0x29ac1419
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x10], ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0xc], eax
mov dword [esi + 0x24], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov eax, esi
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
Function at 0x29ac7c30
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x29b272c8
push eax
mov dword fs:[0], esp
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov ecx, 1
mov eax, edi
call fcn.29ac77b0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x14], 0
mov dword [edi], 0x29b4fbc8
mov dword [edi + 0x40], 0xd
mov dword [edi + 0x80], 0xd
mov dword [edi + 8], eax
mov eax, dword [esp + 0x28]
mov dword [edi + 0xc], ecx
fld qword [edx]
fstp qword [edi + 0x10]
lea esi, [edi + 0x40]
fld qword [edx + 8]
lea ebp, [edi + 0x80]
fstp qword [edi + 0x18]
fld qword [edx + 0x10]
fstp qword [edi + 0x20]
fld qword [edx + 0x18]
fstp qword [edi + 0x28]
fld qword [esp + 0x30]
fstp qword [edi + 0x30]
fld qword [esp + 0x38]
fstp qword [edi + 0x38]
call fcn.29ae1c10
fld qword [ebx]
mov eax, dword [esp + 0x2c]
fstp qword [edi + 0x50]
mov esi, ebp
fld qword [ebx + 8]
fstp qword [edi + 0x58]
fld qword [ebx + 0x10]
fstp qword [edi + 0x60]
fld qword [ebx + 0x18]
fstp qword [edi + 0x68]
fld qword [ebx + 0x20]
fstp qword [edi + 0x70]
fld qword [ebx + 0x28]
fstp qword [edi + 0x78]
call fcn.29ae1c10
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0xc
ret 0x24
Function at 0x29ace320
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov ecx, dword [edx + 4]
mov edx, dword [edx]
xor eax, eax
test edx, edx
jle 0x29ace34b
push esi
push edi
mov esi, edx
nop
xor edx, edx
mov dl, byte [ecx]
mov edi, eax
shl edi, 4
add edi, eax
and edx, 0xff
add edx, edi
inc ecx
dec esi
mov eax, edx
jne 0x29ace330
pop edi
pop esi
mov ecx, dword [esp + 4]
xor edx, edx
div dword [ecx + 4]
mov eax, edx
ret 4

Function at 0x29ace360
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
xor ecx, ecx
mov cl, byte [edx]
xor eax, eax
test cl, cl
je 0x29ace389
push esi
jmp 0x29ace370
mov esi, eax
shl esi, 4
and ecx, 0xff
add esi, eax
add ecx, esi
inc edx
mov eax, ecx
mov cl, byte [edx]
test cl, cl
jne 0x29ace370
pop esi
mov ecx, dword [esp + 4]
xor edx, edx
div dword [ecx + 4]
mov eax, edx
ret 4

Function at 0x29ad17eb
Capabilities:
Terminate process

Disassembly:
cmp dword [esp + 4], 0
jne 0x29ad17f5
xor eax, eax
ret
push dword [esp + 4]
call dword [sym.imp.MSVCRT.dll_malloc]
pop ecx
test eax, eax
jne 0x29ad17f4
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push str.Out_of_memory_n
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
pop ecx
pop ecx
push 1
call dword [sym.imp.MSVCRT.dll_exit]
int3

Function at 0x29ad1823
Capabilities:
Terminate process

Disassembly:
cmp dword [esp + 4], 0
jne 0x29ad1839
test eax, eax
je 0x29ad1836
push eax
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
xor eax, eax
ret
test eax, eax
push dword [esp + 4]
je 0x29ad184b
push eax
call dword [sym.imp.MSVCRT.dll_realloc]
pop ecx
jmp 0x29ad1851
call dword [sym.imp.MSVCRT.dll_malloc]
test eax, eax
pop ecx
jne 0x29ad1838
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push str.Out_of_memory_n
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
pop ecx
pop ecx
push 1
call dword [sym.imp.MSVCRT.dll_exit]
int3

Function at 0x29ad1875
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
imul ecx, dword [ebp + 0xc]
cmp dword [ebp + 0xc], 0
je 0x29ad1899
mov eax, ecx
cdq
idiv dword [ebp + 0xc]
cmp eax, dword [ebp + 8]
jne 0x29ad1899
push ecx
call fcn.29ad17eb
pop ecx
pop ebp
ret
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push 0x29b52584
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
pop ecx
pop ecx
push 1
call dword [sym.imp.MSVCRT.dll_exit]
int3

Function at 0x29ad18b8
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
imul ecx, dword [ebp + 0x10]
cmp dword [ebp + 0x10], 0
je 0x29ad18df
mov eax, ecx
cdq
idiv dword [ebp + 0x10]
cmp eax, dword [ebp + 0xc]
jne 0x29ad18df
mov eax, dword [ebp + 8]
push ecx
call fcn.29ad1823
pop ecx
pop ebp
ret
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push 0x29b52584
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
pop ecx
pop ecx
push 1
call dword [sym.imp.MSVCRT.dll_exit]
int3
Function at 0x29ae7a60
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esi + 0x134]
mov edx, dword [esi + 0x138]
sub eax, esi
sub eax, 0x30
add edx, eax
mov eax, dword [esi + 0x28]
test eax, eax
push ebx
push edi
lea edi, [esi + 0x30]
mov dword [esi + 0x138], edx
mov dword [esi + 0x134], edi
mov dword [esi + 0x130], edi
je 0x29ae7abb
mov ecx, dword [esi + 0x2c]
mov ebx, dword [esi + 0x24]
add ecx, ebx
cmp edx, ecx
jae 0x29ae7ae5
test eax, eax
je 0x29ae7abb
mov ecx, dword [esi + 0x2c]
push ebp
mov eax, ebx
lea ebp, [edx + 0x100]
lea ebx, [eax + ecx]
cmp ebp, ebx
pop ebp
jbe 0x29ae7abb
sub eax, edx
add eax, ecx
jmp 0x29ae7ac0
mov eax, 0x100
mov edx, dword [esi + 0x20]
push edx
push eax
push 1
push edi
call dword [sym.imp.MSVCRT.dll_fread]
mov ecx, dword [esi + 0x130]
lea eax, [eax + esi + 0x30]
add esp, 0x10
cmp ecx, eax
mov dword [esi + 0x134], eax
jb 0x29ae7aea
pop edi
xor eax, eax
pop ebx
ret
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x29ae7b0c
cmp edi, eax
jae 0x29ae7b0c
mov al, byte [edi]
mov ecx, dword [esi + 8]
call fcn.29ab1cb0
mov byte [edi], al
mov eax, dword [esi + 0x134]
inc edi
cmp edi, eax
jb 0x29ae7af5
pop edi
mov eax, 1
pop ebx
ret

Function at 0x29ae88f0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get ntdll base address

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x29b26978
push eax
mov dword fs:[0], esp
push esi
mov esi, dword [esp + 0x14]
push edi
mov eax, esi
call fcn.29ae72a0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
xor edi, edi
cmp edx, 1
mov dword [esp + 0x10], edi
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x24]
mov dword [esi], 0x29b56a90
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], edx
jge 0x29ae8942
mov dword [esi + 0x18], 1
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov dword [esi + 0x1c], ecx
mov ecx, dword [esi + 0x18]
add ecx, 4
push 2
push ecx
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], eax
call fcn.29ad1875
mov edx, dword [esi + 0x18]
add edx, 3
push 2
push edx
mov dword [esi + 0x3c], eax
call fcn.29ad1875
mov edx, dword [esi + 0xc]
xor ecx, ecx
add esp, 0x10
cmp edx, edi
setl cl
mov dword [esi + 0x44], eax
mov dword [esi + 0x28], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x2c], ecx
mov word [eax], di
mov ax, word [esi + 0x18]
mov edx, dword [esi + 0x3c]
mov word [edx + 4], ax
mov ecx, dword [esi + 0x3c]
mov ax, word [ecx + 4]
mov edx, dword [esi + 0x44]
mov ecx, dword [esp + 8]
mov word [edx + 2], ax
mov dword [esi + 0x48], 1
mov dword [esi + 0x50], 0xffffffff
pop edi
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 0x1c
Function at 0x29aef370
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
fld qword [0x29b596b0]
push 0xffffffffffffffff
push 0x29b26fdb
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
fstp qword [edi + 0x28]
push ebx
xor ebx, ebx
cmp eax, ebx
push ebp
push esi
mov dword [edi], eax
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], ebx
mov dword [edi + 0x30], ebx
mov dword [edi + 0x34], ebx
mov dword [edi + 0x38], ebx
jne 0x29aef3d6
lea esi, [edi + 0x3c]
mov ebp, 4
push 0x14
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, ebx
je 0x29aef3cc
call fcn.29aed820
jmp 0x29aef3ce
xor eax, eax
mov dword [esi], eax
add esi, 4
dec ebp
jne 0x29aef3b7
push 0x10
mov dword [edi + 0x4c], ebx
mov dword [edi + 0x50], ebx
mov dword [edi + 0x60], ebx
mov dword [edi + 0x64], ebx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebx
mov dword [esp + 0x14], ebx
je 0x29aef401
mov esi, eax
call fcn.29ace3a0
jmp 0x29aef403
xor eax, eax
fld qword [0x29b596b0]
mov ecx, dword [esp + 0xc]
fstp qword [edi + 0x78]
pop esi
fld qword [0x29b596b0]
mov dword [edi + 0x68], eax
mov dword [edi + 0x80], ebx
fstp qword [edi + 0x70]
pop ebp
mov eax, edi
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 4
Function at 0x406306
Capabilities:
Create directory

Disassembly:
push esi
xor esi, esi
push esi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x406320
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
pop esi
ret 4

Function at 0x406326
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
push 4
pop eax
mov word [ebp - 0x1e], ax
mov eax, 0x4096cc
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
mov word [ebp - 0x20], 1
mov dword [ebp - 0x10], 0x4096bc
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x406394
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40639e
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
je 0x406398
xor eax, eax
jmp 0x40639e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esp, ebp
pop ebp
ret 4
Function at 0x40668c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
lea eax, [ebp - 0x23c]
push esi
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor ecx, ecx
cmp eax, esi
pop esi
cmova eax, ecx
test eax, eax
je 0x4066c5
cmp word [ebp + eax*2 - 0x23e], 0x5c
mov ecx, 0x4092c8
jne 0x4066ca
mov ecx, 0x4092ca
push dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x23c]
lea eax, [ecx + eax*2]
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esp, ebp
pop ebp
ret 4

Function at 0x40672d
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x406750
push dword [esp + 8]
push dword [esp + 8]
call fcn.004067f8
pop ecx
pop ecx
inc dword [0x42add0]
ret 8

Function at 0x4067f8
Capabilities:
Get file size

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
mov ebx, 0x400
mov dword [0x427e50], 0x55004e
mov ebp, 0x427e50
mov dword [0x427e54], 0x4c
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test esi, esi
je 0x40684f
push 1
push 0
push esi
call fcn.00406e22
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebp
push esi
call edi
test eax, eax
je 0x406933
cmp eax, ebx
jg 0x406933
push ebx
mov esi, 0x427650
push esi
push dword [esp + 0x20]
call edi
test eax, eax
je 0x406933
cmp eax, ebx
jg 0x406933
push esi
push ebp
push str._ls_ls_r_n
push 0x427250
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [0x42ad18]
add esp, 0x10
mov ebp, eax
push dword [ecx + 0x128]
push esi
call fcn.004063a4
push 4
push 0xc0000000
push esi
call fcn.00406e22
mov ebx, eax
mov dword [esp + 0x10], ebx
cmp ebx, 0xffffffff
je 0x406933
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea ecx, [ebp + 0xa]
add ecx, esi
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x40692c
push esi
push edi
push ebx
call fcn.00406e4f
test eax, eax
je 0x40692c
push str._Rename__r_n
push edi
call fcn.00407047
test eax, eax
jne 0x406939
push str._Rename__r_n
lea eax, [edi + esi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esi, 0xa
mov ecx, esi
push ebp
push 0x427250
lea eax, [ecx + edi]
push eax
call fcn.00406bb7
xor eax, eax
push eax
push eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esi + ebp]
push eax
push edi
push ebx
call fcn.00406f16
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0x409840
add eax, 0xa
push eax
call fcn.00407047
mov ecx, eax
test ecx, ecx
je 0x4068fd
lea edx, [edi + esi]
lea eax, [edx + ebp]
cmp edx, ecx
jbe 0x40696d
sub eax, edx
mov dword [esp + 0x1c], eax
mov ebx, eax
mov al, byte [edx]
mov byte [ebx + edx], al
dec edx
cmp edx, ecx
ja 0x40695f
mov ebx, dword [esp + 0x10]
sub ecx, edi
inc ecx
jmp 0x4068ff
Function at 0x406e80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
lea eax, [ebp - 4]
mov dword [ebp - 8], 0x800
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004067ca
mov edi, dword [ebp + 0x14]
test eax, eax
jne 0x406ef2
push esi
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp + 0x18]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
mov word [edi + 0x7fe], ax
pop esi
jne 0x406ef2
cmp dword [ebp + 0x18], 1
je 0x406ef7
cmp dword [ebp + 0x18], 2
je 0x406ef7
xor eax, eax
mov word [edi], ax
pop edi
mov esp, ebp
pop ebp
ret 0x14

Function at 0x406efe
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
ret 4

Function at 0x406f63
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x409820]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x409824]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
add word [ebp - 4], dx
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x406faf
test edi, edi
jne 0x406f70
mov word [esi], ax
jmp 0x406fb1
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x40709a
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4070bc
mov ecx, esi
and ecx, 0xfffffffe
push ecx
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

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

Disassembly:
cmp dword [0x4288a4], 0
push esi
jne 0x407364
xor ecx, ecx
push 8
mov edx, ecx
pop esi
mov eax, edx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
sub esi, 1
jne 0x40733b
mov dword [ecx*4 + 0x4288a0], edx
inc ecx
cmp ecx, 0x100
jl 0x407336
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
not ecx
test edx, edx
je 0x40738e
mov esi, dword [esp + 0xc]
movzx eax, byte [esi]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4288a0]
inc esi
sub edx, 1
jne 0x407376
not ecx
mov eax, ecx
pop esi
ret 0xc
Function at 0x4010f2
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x230], 0x22c
push ebx
push 2
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x401153
lea eax, [ebp - 0x20c]
push edi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x401159
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x401131
jmp 0x40115b
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401604
leave
ret