joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403062
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push esi
xor esi, esi
push edi
cmp eax, esi
jl 0x40308e
mov ecx, dword [0x429238]
push esi
add eax, ecx
push esi
push eax
mov dword [0x417e7c], eax
push dword [0x40901c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.0040317d
cmp eax, esi
jl 0x403177
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40901c]
call fcn.00405bd9
test eax, eax
je 0x403163
push dword [ebp + 8]
add dword [0x417e7c], 4
call fcn.0040317d
cmp eax, esi
mov dword [ebp - 8], eax
jl 0x403177
cmp dword [ebp + 0x10], esi
jne 0x40313f
cmp dword [ebp + 8], esi
jle 0x403174
mov esi, 0x413e78
cmp dword [ebp + 8], 0x4000
mov edi, dword [ebp + 8]
jl 0x4030f4
mov edi, 0x4000
push edi
push esi
push dword [0x40901c]
mov dword [ebp - 4], edi
call fcn.00405bd9
test eax, eax
je 0x403163
lea eax, [ebp + 0x14]
push 0
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40313b
cmp dword [ebp + 0x14], edi
jne 0x40313b
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x417e7c], eax
cmp dword [ebp + 8], 0
jg 0x4030e3
jmp 0x403174
push 0xfffffffffffffffe
jmp 0x403165
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x40314a
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40901c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403168
push 0xfffffffffffffffd
pop eax
jmp 0x403177
mov eax, dword [ebp - 4]
add dword [0x417e7c], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret 0x10
Function at 0x40317d
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x417e7c]
sub esi, dword [0x40bde8]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
add eax, 0x1f4
cmp esi, ebx
mov dword [0x4291ec], eax
jle 0x4032e7
push dword [0x41fe8c]
call fcn.0040330f
push ebx
push ebx
push dword [0x40bde8]
push dword [0x40901c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x41fe88], esi
mov dword [0x417e78], ebx
mov ebp, 0x40be78
mov eax, dword [0x417e80]
mov edi, 0x4000
sub eax, dword [0x41fe8c]
cmp eax, edi
jg 0x4031f2
mov edi, eax
mov esi, 0x413e78
push edi
push esi
call fcn.004032f9
test eax, eax
je 0x4032d9
add dword [0x41fe8c], edi
mov dword [0x40be08], esi
mov dword [0x40be0c], edi
cmp dword [0x4291f0], ebx
je 0x403249
cmp dword [0x429280], ebx
jne 0x403249
mov eax, dword [0x41fe88]
push ebx
sub eax, dword [0x417e7c]
sub eax, dword [esp + 0x1c]
add eax, dword [0x40bde8]
mov dword [0x417e78], eax
call fcn.00402d1a
pop ecx
mov ecx, 0x40bdf0
mov dword [0x40be10], ebp
mov dword [0x40be14], 0x8000
call fcn.00406390
test eax, eax
jl 0x4032e2
mov esi, dword [0x40be10]
sub esi, ebp
je 0x4032a3
lea eax, [esp + 0x10]
push ebx
push eax
push esi
push ebp
push dword [0x40901c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4032de
cmp esi, dword [esp + 0x10]
jne 0x4032de
add dword [0x40bde8], esi
cmp dword [0x40be0c], ebx
jne 0x403218
jmp 0x4032af
cmp dword [0x40be0c], ebx
jne 0x4032e2
cmp edi, ebx
je 0x4032e2
mov eax, dword [0x417e7c]
mov ecx, eax
sub ecx, dword [0x40bde8]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x4031dc
push ebx
push ebx
push eax
push dword [0x40901c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4032e7
or eax, 0xffffffff
jmp 0x4032f1
push 0xfffffffffffffffe
jmp 0x4032e4
push 0xfffffffffffffffd
pop eax
jmp 0x4032f1
push 1
call fcn.00402d1a
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x405665
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x4256d8], 0x44
push eax
xor eax, eax
push 0x4256d8
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4056a0
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x40572a
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405b31
mov edi, eax
cmp edi, 0xffffffff
je 0x40576b
test byte [esp + 0x10], 1
push esi
je 0x40574d
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405753
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40575c
xor eax, eax
inc eax
jmp 0x40576d
test byte [esp + 0x10], 4
jne 0x40576b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405772
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405a3d
test bl, 8
mov dword [ebp - 8], eax
je 0x4057b1
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x429268], eax
jmp 0x40592e
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x4057cb
test eax, eax
je 0x4058dc
test bl, 2
je 0x4058dc
mov esi, 0x4246d8
push edi
push esi
call fcn.00405eea
cmp dword [ebp + 8], 0
je 0x4057ea
push str..
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x4057f0
push edi
call fcn.00405981
cmp word [edi], 0
jne 0x405800
cmp word [0x4246d8], 0x5c
jne 0x40580b
push 0x409014
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4058d1
cmp word [ebp - 0x22c], 0x2e
jne 0x405855
cmp word [ebp - 0x22a], 0
je 0x4058b4
cmp word [ebp - 0x22a], 0x2e
jne 0x405855
cmp word [ebp - 0x228], 0
je 0x4058b4
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.00405eea
test byte [ebp - 0x258], 0x10
je 0x405880
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4058b4
push dword [ebp + 0xc]
push edi
call fcn.00405772
jmp 0x4058b4
push dword [ebp - 4]
push edi
call fcn.0040572a
test eax, eax
jne 0x4058ac
cmp dword [ebp - 4], eax
je 0x4058a4
push edi
push 0xfffffffffffffff1
call fcn.00405194
push 0
push edi
call fcn.00405d84
jmp 0x4058b4
inc dword [0x429268]
jmp 0x4058b4
push edi
push 0xfffffffffffffff2
call fcn.00405194
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40582d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x4058dc
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x40592e
cmp dword [ebp - 8], esi
jne 0x4058f0
inc dword [0x429268]
jmp 0x40592e
push edi
call fcn.0040622d
test eax, eax
je 0x40592e
push edi
call fcn.00405935
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.0040572a
test eax, eax
jne 0x405926
cmp dword [ebp - 4], esi
je 0x4058e8
push edi
push 0xfffffffffffffff1
call fcn.00405194
push esi
push edi
call fcn.00405d84
jmp 0x40592e
push edi
push 0xffffffffffffffe5
call fcn.00405194
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405a3d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x424ed8
push esi
call fcn.00405eea
push esi
call fcn.004059e0
mov edi, eax
test edi, edi
jne 0x405a5e
xor eax, eax
jmp 0x405ab6
push edi
call fcn.0040617e
test byte [0x4291f8], 0x80
je 0x405a7b
mov ax, word [edi]
test ax, ax
je 0x405a5a
cmp ax, 0x5c
je 0x405a5a
sub edi, esi
sar edi, 1
jmp 0x405a95
call fcn.0040622d
test eax, eax
je 0x405a8f
test byte [eax], 0x10
je 0x405a5a
push esi
call fcn.00405981
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405a81
call fcn.00405935
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405b31
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 0x405b50
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x405b56
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x405b85
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 [0x40953c]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x409540]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x405bd5
test edi, edi
jne 0x405b92
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x405bcf
Function at 0x405c08
Capabilities:
Get file size
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov ebx, 0x425d70
push 0x409560
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [esp + 0x1c]
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test esi, esi
mov edi, 0x400
je 0x405c57
push 1
push 0
push esi
call fcn.00405b56
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebx
push esi
call ebp
test eax, eax
je 0x405d7e
cmp eax, edi
jg 0x405d7e
mov esi, 0x426570
push edi
push esi
push dword [esp + 0x20]
call ebp
test eax, eax
je 0x405d7e
cmp eax, edi
jg 0x405d7e
push esi
push ebx
push str._ls_ls_r_n
push 0x425970
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x4291f0]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405f0c
push 4
push 0xc0000000
push esi
call fcn.00405b56
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x1c], ebp
je 0x405d7e
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405d77
push edi
push esi
push ebp
call fcn.00405bd9
test eax, eax
je 0x405d77
push str._Rename__r_n
push esi
call fcn.00405abb
test eax, eax
jne 0x405d0d
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405d42
add eax, 0xa
push 0x409544
push eax
call fcn.00405abb
mov ebp, eax
test ebp, ebp
je 0x405d3e
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405d2f
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405d29
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x1c]
jmp 0x405d44
mov ebp, dword [esp + 0x1c]
mov eax, edi
push ebx
add eax, esi
push 0x425970
push eax
call fcn.00405b11
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x10]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x405db7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
lea eax, [ebp + 0x18]
push edi
push eax
mov eax, dword [ebp + 0x18]
xor edi, edi
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov word [esi], di
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405e2b
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x800
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405e18
cmp dword [ebp + 0x14], 1
je 0x405e1b
cmp dword [ebp + 0x14], 2
je 0x405e1b
mov word [esi], di
push dword [ebp + 0x18]
mov word [esi + 0x7fe], di
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
ret 0x14
Function at 0x406302
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x426d74], 0
push esi
jne 0x406339
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406313
mov dword [ecx*4 + 0x426d70], eax
inc ecx
cmp ecx, 0x100
jl 0x40630e
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40636a
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x426d70]
xor eax, esi
inc ecx
dec edx
jne 0x40634c
pop edi
not eax
pop esi
ret 0xc

Function at 0x41fd10
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x19000]
push edi
or ebp, 0xffffffff
jmp 0x41fd32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41fd39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41fd28
mov eax, 1
add ebx, ebx
jne 0x41fd4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41fd40
jne 0x41fd5c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41fd40
xor ecx, ecx
sub eax, 3
jb 0x41fd70
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41fde2
mov ebp, eax
add ebx, ebx
jne 0x41fd7b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41fd88
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41fdac
inc ecx
add ebx, ebx
jne 0x41fd98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41fd8d
jne 0x41fda9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41fd8d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41fdcc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41fdbd
jmp 0x41fd2e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41fdcc
add edi, ecx
jmp 0x41fd2e
pop esi
mov edi, esi
mov ecx, 0x1a3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41fdea
cmp byte [edi], 3
jne 0x41fdea
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 0x41fdef
lea edi, [esi + 0x1d000]
mov eax, dword [edi]
or eax, eax
je 0x41fe67
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2064c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x20688]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41fe1c
mov ecx, edi
jns 0x41fe4b
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 + 0x2068c]
or eax, eax
je 0x41fe61
mov dword [ebx], eax
add ebx, 4
jmp 0x41fe39
call dword [esi + 0x20690]
popal
jmp 0x40215c
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x433072
nop
nop
nop
nop
nop
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x463776c9
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x433060
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0xea8364b
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x53f9d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x65f250
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x1c]
mov ecx, 4
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x6a5c00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
mov cl, byte [0x6668ac]
mov byte [eax], cl
xor eax, eax
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
mov word [ecx + 0x18], ax
mov byte [ecx + 0x1a], al
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x1c], 0
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x20], 0
mov ecx, dword [ebp - 0x14]
add ecx, 0x24
call fcn.004c810e
mov dword [ebp - 4], 0
xor eax, eax
mov ecx, dword [ebp - 0x14]
mov word [ecx + 0x30], ax
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x32], 0
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x33], 1
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x34], 0x80
mov eax, dword [ebp - 0x14]
add eax, 0x38
mov dword [ebp - 0xdc], eax
push ecx
movss xmm0, dword [0x685ed8]
movss dword [esp], xmm0
push ecx
xorps xmm0, xmm0
movss dword [esp], xmm0
mov ecx, dword [ebp - 0xdc]
call fcn.004c9c02
nop
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0xdc
cmp ebp, esp
call fcn.004c9fe0
mov esp, ebp
pop ebp
ret
Function at 0x5b31c0
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
push ebx
push esi
push edi
lea edi, [ebp - 0x24]
mov ecx, 9
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov ecx, 0x6b2251
call fcn.004cadd7
nop
call fcn.005b09f0
mov dword [ebp - 8], eax
mov esi, esp
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
cmp esi, esp
call fcn.004c9fe0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
mov dword [ebp - 0x20], ecx
mov esi, esp
push 4
mov eax, dword [ebp - 8]
add eax, 0x24
push eax
push 0x20001004
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
cmp esi, esp
call fcn.004c9fe0
test eax, eax
jne 0x5b3242
mov eax, dword [ebp - 8]
mov dword [eax + 0x24], 0
pop edi
pop esi
pop ebx
add esp, 0xe4
cmp ebp, esp
call fcn.004c9fe0
mov esp, ebp
pop ebp
ret

Function at 0x5b4560
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
push ebx
push esi
push edi
lea edi, [ebp - 4]
mov ecx, 1
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov ecx, 0x6b2251
call fcn.004cadd7
nop
mov esi, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
cmp esi, esp
call fcn.004c9fe0
movsx ecx, ax
and ecx, 0x8000
je 0x5b45b0
mov dword [ebp - 0xc4], 1
jmp 0x5b45ba
mov dword [ebp - 0xc4], 0
movzx eax, byte [ebp - 0xc4]
pop edi
pop esi
pop ebx
add esp, 0xc4
cmp ebp, esp
call fcn.004c9fe0
mov esp, ebp
pop ebp
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
nop
mov ecx, 0x56b7779e
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x6ba329be
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x1006089
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
mov ebx, 0x1001388
push ebx
mov edi, 0x80000002
push edi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10060ed
push esi
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 8]
push eax
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], esi
jbe 0x10060e5
xor eax, eax
inc eax
jmp 0x10060f2
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
call fcn.0100600c
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10060fc
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push edi
lea eax, [ebp - 4]
push eax
push 0x20019
xor edi, edi
push edi
push 0x1001408
push 0x80000002
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1006166
push esi
push 4
pop esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x10013f0
push dword [ebp - 4]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1006159
cmp dword [ebp - 0xc], esi
je 0x100615c
mov dword [ebp - 8], edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
xor eax, eax
cmp dword [ebp - 8], edi
pop edi
setne al
leave
ret

Function at 0x100629f
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x100e0c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x32
pop ebx
push 0x1001490
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.msvcrt.dll__wgetenv_s]
add esp, 0x10
test eax, eax
jne 0x1006370
push 0x1001460
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01006228
test eax, eax
jl 0x1006370
push edi
xor ebx, ebx
push 0x40
lea eax, [ebp - 0x260]
push ebx
push eax
mov dword [ebp - 0x264], ebx
call sub.msvcrt.dll_memset
xor eax, eax
mov dword [ebp - 0x21c], ebx
lea edi, [ebp - 0x218]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x264]
push eax
push ebx
push ebx
push 0x8000040
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop edi
test eax, eax
je 0x1006368
push dword [ebp - 0x21c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x218]
call esi
jmp 0x1006370
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [ebp - 4]
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.01008a08
leave
ret