joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4aa006
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004a9f82
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4aa17e
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4aa17e
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4aa12d
jg 0x4aa05f
test eax, eax
je 0x4aa123
push 1
push 0x1000
call fcn.0049fd2a
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4aa085
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x4aa11a
push 0x8000
push ebx
call fcn.0049c98d
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4aa0b1
jg 0x4aa0ac
cmp ecx, 0x1000
jb 0x4aa0b1
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004a38d1
add esp, 0x10
cmp eax, 0xffffffff
je 0x4aa0f6
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4aa0ac
jl 0x4aa0dd
test ecx, ecx
jne 0x4aa09e
push dword [ebp - 0xc]
push ebx
call fcn.0049c98d
push esi
call fcn.0049d85a
add esp, 0xc
xor edi, edi
jmp 0x4aa18f
cmp byte [edi + 0x24], 0
je 0x4aa10d
cmp dword [edi + 0x20], 5
jne 0x4aa10d
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4aa118
mov edi, dword [edi + 0x18]
jmp 0x4aa11a
xor edi, edi
push esi
call fcn.0049d85a
pop ecx
jmp 0x4aa18f
test ecx, ecx
jg 0x4aa0ef
jl 0x4aa12d
test eax, eax
jae 0x4aa0ef
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004a5142
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4aa150
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4aa0ef
jmp 0x4aa187
push ebx
call fcn.0049b8cf
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4aa0ef
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x4aa18f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4aa18c
mov edi, dword [edi + 0x18]
jmp 0x4aa18f
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004a5142
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4ac100
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4ac12d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4ac12d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x403530
Capabilities:
Terminate process

Disassembly:
jmp 0x453ae4
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x453af5
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.0040578b
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x403648
Capabilities:
Query environment variable

Disassembly:
jmp 0x49c5a1
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49c5b2
pop esi
ret
push ebx
push edi
push esi
call fcn.0049c488
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403ee0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49c5da
push ebx
push esi
push edi
call fcn.00405583
add esp, 0xc
push 0
call fcn.00406091
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x405641
Capabilities:
Parse pe header

Disassembly:
jmp 0x442beb
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x442c2a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x442c2a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x442c2a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x442c2a
cmp dword [ecx + 0x74], 0xe
jbe 0x442c2a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x440a8c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.004036a7
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x440acb
sub eax, 1
je 0x440ac6
sub eax, 1
je 0x440ac2
xor eax, eax
leave
ret
push 3
jmp 0x440acd
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x487375
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4873b4
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4873b4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4873b4
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4873b4
cmp dword [ecx + 0x74], 0xe
jbe 0x4873b4
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x496346
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401d52
mov eax, dword [0x4cc040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00405cb8
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x496388
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4964e4
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00405e02
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4cf858]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004031e3
mov ecx, dword [esi*4 + 0x4cf858]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x4964dd
cmp eax, dword [ecx + edi + 0x24]
jne 0x4964dd
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4964dd
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004031e3
add esp, 0x14
test edx, edx
jl 0x4964dd
jg 0x496453
test eax, eax
jb 0x4964dd
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4964dd
jl 0x49646d
cmp dword [ebp - 0x1008], eax
ja 0x4964dd
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x49648b
test ebx, ebx
je 0x4964c4
cmp ecx, edi
jae 0x4964c4
mov al, byte [ecx]
cmp al, 0xd
jne 0x4964a5
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4964b1
cmp byte [ecx + 1], 0xa
jne 0x4964b1
inc ecx
jmp 0x4964b1
movzx eax, al
movsx eax, byte [eax + 0x4cc3a8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x49648b
cmp edx, ebx
jne 0x49648b
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4964e2
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00402fc7
leave
ret
Function at 0x496c23
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4cf858]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x496c63
cmp byte [ebx], 0xa
jne 0x496c63
or byte [edi + eax + 0x28], 4
jmp 0x496c68
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x496d67
mov dl, byte [eax]
cmp dl, 0x1a
je 0x496d4a
inc eax
cmp dl, 0xd
je 0x496c94
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x496cba
cmp eax, ecx
jae 0x496cc8
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x496c7c
jmp 0x496d67
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x496d45
cmp dword [ebp - 0x10], 0
je 0x496d45
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4cf858]
test byte [eax + edi + 0x28], 0x48
je 0x496d1f
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x496d0a
mov byte [esi], dl
jmp 0x496d1b
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4cf858]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x496d67
cmp byte [ebp - 1], 0xa
jne 0x496d2e
cmp esi, ebx
jne 0x496d2e
mov byte [esi], 0xa
jmp 0x496d66
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004018fc
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x496d67
mov byte [esi], 0xd
jmp 0x496d66
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4cf858]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x496d64
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x496d67
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x496dc3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4cf858]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x496e09
cmp word [ebx], dx
jne 0x496e09
or byte [eax + edi + 0x28], 4
jmp 0x496e0e
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x496f71
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x496f51
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x496e4f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x496e85
cmp eax, edx
jae 0x496e93
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x496e2a
jmp 0x496f71
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x496f4c
cmp dword [ebp - 0x18], 0
je 0x496f4c
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4cf858]
test byte [eax + edi + 0x28], 0x48
je 0x496f22
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x496ee6
mov word [esi], cx
jmp 0x496f1d
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4cf858]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4cf858]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4cf858]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x496f71
pop eax
cmp word [ebp - 4], ax
jne 0x496f32
cmp esi, ebx
jne 0x496f32
mov word [esi], ax
jmp 0x496f6e
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004018fc
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x496f71
push 0xd
pop eax
jmp 0x496f2d
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4cf858]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x496f6b
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x496f71
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x49ab57
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4cc040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x49aba2
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0049b00f
test al, al
jne 0x49ab9c
sub edx, 2
cmp edx, edi
jne 0x49ab82
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x49abc4
lea eax, [edi + 2]
cmp edx, eax
je 0x49abc4
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0049a750
add esp, 0x10
jmp 0x49acbe
push esi
lea ecx, [ebp - 0x255]
call fcn.0049b00f
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x49ac07
push dword [ebp - 0x25c]
jmp 0x49abb4
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x49ac44
cmp word [ebp - 0x226], 0
je 0x49ac65
cmp word [ebp - 0x226], ax
jne 0x49ac44
cmp word [ebp - 0x224], 0
je 0x49ac65
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0049a750
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x49acb1
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x49ac1e
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x49ac99
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x49acbe
push 0x49a138
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004053ee
add esp, 0x10
jmp 0x49ac8e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402fc7
leave
ret

Function at 0x4a0620
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004041f6
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4a068f
cmp esi, dword [ebp - 4]
je 0x4a068a
cmp dword [ebp + 0xc], 0
je 0x4a068a
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4a0667
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004a0048
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4a0691
xor eax, eax
inc eax
jmp 0x4a0691
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x43fbad
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46b5e8
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x43fbf0
push str.SystemFunction040
push dword [0x46b5e8]
call edi
push str.SystemFunction041
push dword [0x46b5e8]
mov dword [0x46b5f0], eax
call edi
mov dword [0x46b5f4], eax
jmp 0x43fbf5
mov eax, dword [0x46b5f4]
cmp dword [0x46b5f0], 0
je 0x43fc06
test eax, eax
jne 0x43fcad
push 0x46b5ec
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x43fcb7
push str.CryptProtectMemory
push dword [0x46b5ec]
call edi
cmp dword [0x46b5f0], 0
mov dword [0x46b5f8], eax
jne 0x43fc6b
test eax, eax
jne 0x43fc6b
call dword [sym.imp.kernel32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x28
push str.cryputil.cpp
call fcn.004037d3
jmp 0x43fcb7
push str.CryptUnprotectMemory
push dword [0x46b5ec]
call edi
cmp dword [0x46b5f4], 0
mov dword [0x46b5fc], eax
jne 0x43fcad
test eax, eax
jne 0x43fcad
call dword [sym.imp.kernel32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x2d
jmp 0x43fc5f
mov dword [0x46b600], 1
pop edi
mov eax, esi
pop esi
ret

Function at 0x4443a6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x4443b5
pop dword [ebp - 0x50]
mov eax, 0x265e37b5
sub eax, 0x2619f400
sub dword [ebp - 0x50], eax
push 0x40
push 0x1000
push 0x53e78
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x50]
call dword [eax]
mov ecx, 0x4c152281
sub ecx, 0x4c14ca6e
xor ebx, ebx
add ebx, eax
mov esi, 0xd7631b5b
sub esi, 0xd71bad5b
add esi, dword [ebp - 0x50]
mov edx, 0x328e029b
sub edx, 0xfbc717dd
sub dword [ebp - 0x40], 0x4b8b1181
mov edi, dword [esi]
xor dword [ebp - 0x40], 0x9bfc403
add edi, edx
mov dword [ebp - 0x38], 0x2002197d
mov dword [ebx], edi
xor dword [ebp - 0x28], ecx
add ebx, 0x66693d34
add ebx, 0x9996c2d0
add esi, 0x8213c4c9
add esi, 0x7dec3b3b
loop 0x444411
add eax, 0x9a5dd41e
sub eax, 0x9a5c80ff
mov ebx, eax
add eax, 0xbdfb478f
sub eax, 0xbdfb478a
mov ecx, 0x400000
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x401360
Capabilities:
Create directory
Get common file path
Get disk information

Disassembly:
sub esp, 0x84
push ebx
mov ebx, ecx
push ebp
push esi
push edi
lea ebp, [ebx + 0x20c]
push 0x200
push ebp
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
or ecx, 0xffffffff
mov edi, 0x409040
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
or ecx, 0xffffffff
mov edi, ebp
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebx + 0xc]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, str.SystemVolume
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push edx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x30]
push ecx
push 0x64
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov al, byte [esp + 0x30]
lea ebp, [esp + 0x30]
test al, al
je 0x4014b0
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [esp + 0x1a], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov edx, eax
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
lea esi, [esp + 0x24]
sub edi, ecx
mov eax, ecx
mov dword [esp + 0x10], esi
mov esi, edi
mov edi, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
cmp edx, 3
rep movsb byte es:[edi], byte [esi]
jne 0x401494
lea ecx, [esp + 0x14]
push 0x40904c
push ecx
mov ecx, ebx
call fcn.00401af0
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [ecx + ebp + 1]
lea ebp, [ecx + ebp + 1]
test al, al
jne 0x401424
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret
Function at 0x404831
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x409728
cmp edx, dword [eax]
je 0x404853
add eax, 8
inc ecx
cmp eax, 0x4097b8
jl 0x404844
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x409728]
jne 0x404981
mov eax, dword [0x409e70]
cmp eax, 1
je 0x40495b
test eax, eax
jne 0x404884
cmp dword [0x409584], 1
je 0x40495b
cmp edx, 0xfc
je 0x404981
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4048bb
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00405ad0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00403da0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4048fe
lea eax, [ebp - 0x1a4]
push eax
call fcn.00403da0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4084b4
push edi
call fcn.004026e0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00405ad0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00405ae0
lea eax, [ebp - 0xa0]
push 0x408494
push eax
call fcn.00405ae0
push dword [esi + 0x40972c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00405ae0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00405ef5
add esp, 0x2c
pop edi
jmp 0x404981
lea eax, [ebp + 8]
lea esi, [esi + 0x40972c]
push 0
push eax
push dword [esi]
call fcn.00403da0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x12122058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.121221a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1212207e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1212206a
add dl, dl
jne 0x12122089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x121220dc
xor eax, eax
add dl, dl
jne 0x12122096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1212217d
add dl, dl
jne 0x121220a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x121220b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x121220bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x121220c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x121220d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x12122075
mov eax, 1
add dl, dl
jne 0x121220ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x121220f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x121220e1
sub eax, ebx
mov ebx, 1
jne 0x12122128
mov ecx, 1
add dl, dl
jne 0x1212210e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x12122119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x12122105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x12122075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1212213f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1212214a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x12122136
cmp eax, 0x7d00
jae 0x1212216d
cmp eax, 0x500
jb 0x12122168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x12122075
cmp eax, 0x7f
ja 0x12122170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x12122075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1212219e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x12122075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10