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

Disassembly:
push ebp
mov ebp, esp
push edi
push ebx
push esi
and esp, 0xfffffff8
sub esp, 0x68
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [esp + 0x60], 0x153d755b
mov bl, byte [esp + 0x55]
or bl, 0xc2
mov byte [esp + 0x55], bl
mov dword [esp + 0x4c], 0x48aeacaa
mov ebx, dword [esp + 0x50]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x58], 0x3b0b8162
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x60]
xor eax, 0x6c5b5ee0
mov dword [esp + 0x50], 0x6e5a0e10
mov dword [esp + 0x20], eax
imul eax, ebx, 0x174abe7f
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x2c]
cmp eax, ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
je 0x10001191
mov eax, dword [esp + 0x18]
and eax, 0x7ed3e8dc
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x60]
mov edx, dword [ebp + 0x14]
mov esi, dword [esp + 0x28]
or esi, 0x23472bb7
mov edi, 0x153d755b
sub edi, ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x58], esi
mov bx, word [esp + 0x56]
xor bx, word [esp + 0x56]
mov word [esp + 0x56], bx
cmp edx, edi
jne 0x10001127
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x58], ecx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x5c], edx
mov esi, dword [ebp + 0x18]
mov edi, dword [ebp + 0xc]
mov dword [esp], eax
mov dword [esp + 4], edi
mov dword [esp + 8], esi
call fcn.10005cc0
mov eax, dword [esp + 0x38]
mov word [esp + 0x36], 0x8c1
mov cx, word [esp + 0x56]
mov dx, word [esp + 0x56]
mov esi, dword [ebp + 0x10]
or cx, dx
add eax, dword [esi + 0xc]
mov dx, word [esp + 0x36]
mov word [esp + 0x56], cx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x48], eax
mov cx, word [esp + 0x56]
sub cx, word [esp + 0x56]
mov word [esp + 0x56], cx
mov eax, dword [ebp + 0xc]
mov cx, word [esp + 0x56]
xor cx, word [esp + 0x56]
mov word [esp + 0x56], cx
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0x10]
add eax, 0x14
mov dword [esp + 0x3c], eax
cmp dx, 0x93cd
je 0x10001127
mov eax, dword [esp + 0x3c]
mov eax, dword [eax]
mov dword [esp + 0x50], 0
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0x44]
add edx, eax
mov si, word [esp + 0x56]
add si, 0x95a4
mov word [esp + 0x56], si
mov eax, dword [ecx + 0x10]
mov ecx, dword [esp + 0x28]
add ecx, 0x5e6af649
mov edi, dword [esp + 0x24]
adc edi, 0
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call fcn.10005cc0
lea esp, [ebp - 0xc]
pop esi
pop ebx
pop edi
pop ebp
ret
Function at 0x100055f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff8
sub esp, 0x30
lea eax, [fcn.100055f0]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 8], eax
jmp 0x100056bd
mov al, byte [esp + 0x2b]
add al, al
mov byte [esp + 0x2b], al
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x3c]
mov esi, dword [esp + 8]
imul edi, esi, 0x464254f3
mov dword [esp + 0xc], edi
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov ebx, 0x59679d63
mov dword [esp + 4], edx
mul ebx
imul edi, edi, 0x59679d63
add edx, edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 4]
mov ecx, dword [ecx + eax]
mov dword [esp + 0xc], 0x529ee42d
cmp ecx, 0x4550
jne 0x10005676
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], eax
jmp 0x10005688
mov eax, dword [esp + 8]
mov dword [esp + 0xc], eax
jmp 0x10005694
mov al, 1
test al, 1
jne 0x100056bd
jmp 0x100056e1
mov eax, dword [esp + 0x24]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 8]
or ecx, ecx
mov dword [esp + 0xc], ecx
sub eax, 0x1000
and eax, 0xfffff000
mov dl, byte [esp + 0x2b]
xor dl, 0xff
mov byte [esp + 0x2b], dl
mov dword [esp + 0x14], eax
jmp 0x10005680
mov ax, word [esp + 0x12]
sub ax, word [esp + 0x12]
mov word [esp + 0x12], ax
mov ecx, dword [esp + 0x14]
movzx ecx, word [ecx]
cmp ecx, 0x5a4d
je 0x10005613
jmp 0x10005694
mov dword [esp + 0x24], 0
jmp 0x10005688
Function at 0x48e310
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.sect_1
lea edi, [esi - 0x5b000]
push edi
or ebp, 0xffffffff
jmp 0x48e332
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x48e339
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48e328
mov eax, 1
add ebx, ebx
jne 0x48e34b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x48e35c
jne 0x48e37b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48e37b
dec eax
add ebx, ebx
jne 0x48e368
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x48e340
add ebx, ebx
jne 0x48e377
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x48e3cd
xor ecx, ecx
sub eax, 3
jb 0x48e393
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x48e402
sar eax, 1
mov ebp, eax
jmp 0x48e39e
add ebx, ebx
jne 0x48e39e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48e36c
inc ecx
add ebx, ebx
jne 0x48e3ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48e36c
add ebx, ebx
jne 0x48e3b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x48e3ae
jne 0x48e3ca
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x48e3ae
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x48e3ec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x48e3de
jmp 0x48e32e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x48e3ec
add edi, ecx
jmp 0x48e32e
pop esi
mov edi, esi
mov ecx, 0x2bf8
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x48e40a
cmp byte [edi], 0x14
jne 0x48e40a
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 0x48e40f
lea edi, [esi + 0x8b000]
mov eax, dword [edi]
or eax, eax
je 0x48e47e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x955d8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x95678]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x48e43c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x9567c]
or eax, eax
je 0x48e478
mov dword [ebx], eax
add ebx, 4
jmp 0x48e459
call dword [esi + 0x9568c]
mov ebp, dword [esi + 0x95680]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x48e4b2
sub esp, 0xffffff80
jmp 0x45a1d4
Function at 0x46b2f0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x62cf50]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor bl, bl
cmp esi, 0x804
ja 0x46b32d
je case.0x46b326.1027
lea eax, [esi - 0x403]
cmp eax, 0x2a
ja case.0x46b326.1032
movzx eax, byte [eax + 0x46b380]
jmp dword [eax*4 + 0x46b378]
cmp esi, 0xc0a
je case.0x46b326.1027
push 0x400
lea eax, [ebp - 0x404]
push 0
push eax
call fcn.0056aed0
add esp, 0xc
lea eax, [ebp - 0x404]
push 0x200
push eax
push 3
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x46b366
mov bl, 1
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.004016cd
mov esp, ebp
pop ebp
ret

Function at 0x46b335
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x62cf50]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor bl, bl
cmp esi, 0x804
ja 0x46b32d
je case.0x46b326.1027
lea eax, [esi - 0x403]
cmp eax, 0x2a
ja case.0x46b326.1032
movzx eax, byte [eax + 0x46b380]
jmp dword [eax*4 + 0x46b378]
cmp esi, 0xc0a
je case.0x46b326.1027
push 0x400
lea eax, [ebp - 0x404]
push 0
push eax
call fcn.0056aed0
add esp, 0xc
lea eax, [ebp - 0x404]
push 0x200
push eax
push 3
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x46b366
mov bl, 1
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.004016cd
mov esp, ebp
pop ebp
ret

Function at 0x46c630
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59bd38
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x62cf50]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [edi + 0x28], 0
mov dword [ebp - 4], 0
jne 0x46c6f9
mov al, byte [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov byte [edi + 0x2a], al
mov eax, dword [ebp + 0xc]
mov byte [edi + 0x28], 1
mov dword [edi + 0x18], ecx
mov dword [edi + 0x1c], eax
mov dword [edi + 0x34], 0
test ecx, ecx
je 0x46c6f9
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 0
push 0
mov dword [edi + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp dword [edi + 0x2c], 0
mov dword [edi + 0x30], eax
je 0x46c6f9
test eax, eax
je 0x46c6f9
cmp byte [edi + 0x2a], 0
lea esi, [edi + 0x20]
push esi
push 0
push edi
mov ecx, 0x51d950
mov dword [esi], 0
mov eax, 0x46c820
cmovne eax, ecx
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [esi], 0
mov dword [edi + 0x24], eax
je 0x46c6f9
test eax, eax
je 0x46c6f9
mov byte [edi + 0x29], 1
mov bl, byte [edi + 0x29]
push edi
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x401595
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x4015c7
test dl, 7
je 0x4015c7
movzx ecx, byte [edx]
movzx eax, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x42fa30]
inc edx
mov dword [ebp + 0xc], edx
sub esi, 1
jne 0x4015a7
cmp esi, 8
jb 0x401657
push edi
mov edi, esi
shr edi, 3
xor ebx, dword [edx]
sub esi, 8
mov edx, dword [edx + 4]
mov ecx, edx
shr ecx, 0x18
mov eax, edx
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x42fa30]
xor ecx, dword [eax*4 + 0x42fe30]
mov eax, edx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x430230]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x430a30]
mov eax, ebx
shr eax, 0x10
movzx eax, al
xor ecx, dword [eax*4 + 0x430e30]
mov eax, ebx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x431230]
movzx eax, dl
mov edx, dword [ebp + 0xc]
add edx, 8
mov dword [ebp + 0xc], edx
xor ecx, dword [eax*4 + 0x430630]
movzx eax, bl
xor ecx, dword [eax*4 + 0x431630]
mov ebx, ecx
sub edi, 1
jne 0x4015d6
pop edi
test esi, esi
je 0x401673
movzx ecx, byte [edx]
movzx eax, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x42fa30]
inc edx
sub esi, 1
jne 0x40165b
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0xc

Function at 0x401c1f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0xc], 1
jne 0x401c38
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 4], eax
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x401cab
mov ecx, esi
call fcn.00401d0c
test al, al
je 0x401c73
mov eax, 0x4e20
cmp dword [ebp + 0xc], eax
jbe 0x401c73
push eax
push dword [ebp + 8]
mov ecx, esi
call fcn.00401c1f
jmp 0x401cae
cmp dword [esi + 0xc], 1
jne 0x401c88
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x401c88
xor eax, eax
jmp 0x401cae
cmp dword [esi + 0xc], 0
jne 0x401ca6
mov ebx, 0x8000
cmp dword [ebp + 0xc], ebx
jbe 0x401ca6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
jne 0x401ca6
push ebx
jmp 0x401c67
or eax, 0xffffffff
jmp 0x401cae
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x401d37
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x1008
call fcn.00411ba0
push ebx
mov ebx, dword [esp + 0x1014]
xor edx, edx
push ebp
push edi
mov edi, ecx
mov dword [edi + 0x1020], edx
cmp byte [edi + 0x1c], dl
jne 0x401d61
mov cl, dl
test bl, 4
je 0x401d63
mov cl, 1
mov eax, ebx
shr eax, 1
push esi
and al, 1
movzx esi, al
neg esi
sbb esi, esi
and esi, 0xc0000000
add esi, 0x80000000
test bl, 1
je 0x401d88
or esi, 0x40000000
shr ebx, 3
not ebx
and ebx, 1
test cl, cl
je 0x401d97
or ebx, 2
xor eax, eax
cmp byte [edi + 0x15], al
push edx
setne al
dec eax
and eax, 0x8000000
push eax
push 3
push edx
push ebx
push esi
push dword [esp + 0x1034]
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x401e26
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x18]
push 0x800
push eax
push dword [esp + 0x1024]
call fcn.0040328f
test al, al
je 0x401e15
push 0
push dword [esp + 0x18]
lea eax, [esp + 0x20]
push 3
push 0
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x401e10
mov dword [esp + 0x10], eax
cmp ebp, 0xffffffff
jne 0x401e26
cmp dword [esp + 0x10], 2
jne 0x401e26
mov dword [edi + 0x1020], 1
xor eax, eax
cmp ebp, 0xffffffff
mov byte [edi + 0x12], al
setne bl
mov dword [edi + 0xc], eax
mov byte [edi + 0x10], al
pop esi
cmp ebp, 0xffffffff
je 0x401e55
push 0x800
push dword [esp + 0x101c]
lea ecx, [edi + 0x1e]
mov dword [edi + 4], ebp
push ecx
call fcn.00405bc8
pop edi
pop ebp
mov al, bl
pop ebx
add esp, 0x1008
ret 8

Function at 0x4023ba
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00411ba0
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4023ff
push 0x800
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 8]
call fcn.0040328f
test al, al
je 0x4023ff
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x40243c
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00411ba0
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00403582
movzx eax, word [eax]
cmp eax, 0x2e
je 0x40246d
cmp eax, 0x20
je 0x40246d
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4024a0
push esi
call fcn.004023a6
test al, al
jne 0x4024b3
push 0x800
lea eax, [ebp - 0x1000]
push eax
push esi
call fcn.0040328f
test al, al
je 0x4024b3
push 0
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4024b3
cmp byte [ebp + 0xc], 0
je 0x4024af
push dword [ebp + 0x10]
push esi
call fcn.00402679
xor eax, eax
jmp 0x4024cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4024c8
cmp eax, 3
je 0x4024c8
xor eax, eax
inc eax
jmp 0x4024cb
push 2
pop eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x402679
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00411ba0
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
test bl, bl
jne 0x4026c9
push 0x800
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 8]
call fcn.0040328f
test al, al
je 0x4026c9
push dword [ebp + 0xc]
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x402829
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
mov eax, 0x1250
call fcn.00411ba0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1260]
lea eax, [esp + 0xc]
push edi
mov edi, dword [esp + 0x126c]
or ebp, 0xffffffff
push eax
cmp esi, ebp
jne 0x4028c3
push dword [esp + 0x126c]
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
call ebx
mov esi, eax
cmp esi, ebp
jne 0x4028ea
push 0x800
lea eax, [esp + 0x264]
push eax
push dword [esp + 0x1270]
call fcn.0040328f
test al, al
je 0x40289c
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x264]
push eax
call ebx
mov esi, eax
cmp esi, ebp
jne 0x4028ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4028b6
cmp eax, 3
je 0x4028b6
cmp eax, 0x12
je 0x4028b6
xor eax, eax
inc eax
jmp 0x4028b8
xor eax, eax
mov byte [edi + 0x1044], al
jmp 0x402998
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4028e2
mov esi, ebp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
mov byte [edi + 0x1044], al
cmp esi, ebp
je 0x402998
mov ebx, 0x800
push ebx
push dword [esp + 0x126c]
push edi
call fcn.00405bc8
push ebx
lea eax, [esp + 0x40]
push eax
push edi
call fcn.00403659
mov ecx, dword [esp + 0x2c]
xor eax, eax
add eax, dword [esp + 0x30]
mov dword [edi + 0x1000], eax
mov eax, dword [esp + 0x10]
adc ecx, 0
mov dword [edi + 0x1008], eax
mov eax, dword [esp + 0x14]
mov dword [edi + 0x1028], eax
mov eax, dword [esp + 0x18]
mov dword [edi + 0x102c], eax
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x1030], eax
mov eax, dword [esp + 0x20]
mov dword [edi + 0x1034], eax
mov eax, dword [esp + 0x24]
mov dword [edi + 0x1038], eax
mov eax, dword [esp + 0x28]
mov dword [edi + 0x103c], eax
lea eax, [esp + 0x24]
mov dword [edi + 0x1004], ecx
lea ecx, [edi + 0x1010]
push eax
call fcn.00406610
lea eax, [esp + 0x14]
push eax
lea ecx, [edi + 0x1018]
call fcn.00406610
lea eax, [esp + 0x1c]
push eax
lea ecx, [edi + 0x1020]
call fcn.00406610
and dword [edi + 0x1040], 0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1250
ret 0xc
Function at 0x40328f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00411ba0
push esi
mov esi, dword [ebp + 8]
cmp word [esi], 0
jne 0x4032ad
xor al, al
jmp 0x403417
push ebx
push edi
push esi
call fcn.0040341e
push esi
call fcn.00416de3
pop ecx
push esi
mov edi, eax
call fcn.0040344a
test al, al
je 0x40333f
push esi
call fcn.0040341e
test al, al
je 0x4032f6
lea eax, [edi + 4]
cmp dword [ebp + 0x10], eax
jbe 0x403413
push dword [ebp + 0x10]
push 0x42530c
push dword [ebp + 0xc]
call fcn.00405bc8
push dword [ebp + 0x10]
jmp 0x403406
push 0x5c
pop eax
cmp word [esi], ax
jne 0x403413
lea ebx, [esi + 2]
cmp word [ebx], ax
jne 0x403413
mov esi, dword [ebp + 0x10]
lea eax, [edi + 6]
cmp esi, eax
jbe 0x403413
push esi
push 0x42530c
push dword [ebp + 0xc]
call fcn.00405bc8
push esi
push 0x425318
push dword [ebp + 0xc]
call fcn.00405ba0
push esi
push ebx
jmp 0x403407
lea eax, [ebp - 0x1000]
mov ebx, 0x7ff
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x403413
cmp eax, ebx
ja 0x403413
movzx eax, word [esi]
push eax
call fcn.00403480
test al, al
je 0x4033a6
lea eax, [edi + 6]
mov edi, dword [ebp + 0x10]
cmp edi, eax
jbe 0x403413
push edi
push 0x42530c
push dword [ebp + 0xc]
call fcn.00405bc8
xor eax, eax
mov word [ebp - 0xffc], ax
lea eax, [ebp - 0x1000]
push edi
push eax
push dword [ebp + 0xc]
call fcn.00405ba0
jmp 0x403405
push 0x800
lea eax, [ebp - 0x1000]
push eax
call fcn.00402ea1
lea eax, [ebp - 0x1000]
push eax
call fcn.00416de3
add edi, 4
add eax, edi
mov edi, dword [ebp + 0x10]
pop ecx
cmp edi, eax
jbe 0x403413
push edi
push 0x42530c
push dword [ebp + 0xc]
call fcn.00405bc8
push edi
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 0xc]
call fcn.00405ba0
cmp word [esi], 0x2e
jne 0x403405
movzx eax, word [esi + 2]
push eax
call fcn.00403480
test al, al
je 0x403405
add esi, 4
push edi
push esi
push dword [ebp + 0xc]
call fcn.00405ba0
mov al, 1
jmp 0x403415
xor al, al
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x404895
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp dword [esp + 8], 0
movups xmm1, xmmword [ecx + 8]
push esi
mov esi, dword [esp + 8]
push edi
lea edi, [ecx + 0x18]
jbe 0x40490f
mov edx, dword [esp + 0x14]
mov eax, esi
add esi, 0x10
cmp byte [ecx + 1], 0
movups xmm0, xmmword [eax]
je 0x4048bf
pxor xmm0, xmm1
movups xmm1, xmmword [edi]
mov eax, dword [ecx + 4]
pxor xmm1, xmm0
cmp eax, 1
jle 0x4048f1
lea edx, [edi + 0x10]
lea edi, [eax - 1]
mov dword [esp + 0xc], edi
lea edi, [ecx + 0x18]
sub dword [esp + 0xc], 1
movups xmm0, xmmword [edx]
lea edx, [edx + 0x10]
aesenc xmm1, xmm0
jne 0x4048db
mov edx, dword [esp + 0x14]
add eax, eax
movups xmm0, xmmword [edi + eax*8]
mov eax, edx
add edx, 0x10
sub dword [esp + 0x10], 1
aesenclast xmm1, xmm0
mov dword [esp + 0x14], edx
movups xmmword [eax], xmm1
jne 0x4048ad
pop edi
movups xmmword [ecx + 8], xmm1
pop esi
ret 0xc

Function at 0x404918
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x20
push ebp
push edi
mov ebp, ecx
xor edi, edi
inc edi
mov dword [esp + 0x14], ebp
mov dword [esp + 8], edi
cmp dword [ebp + 4], edi
jle 0x4049c6
push ebx
lea ebx, [ebp + 0x28]
push esi
mov dword [esp + 0x14], ebx
lea eax, [ebx + 2]
xor esi, esi
mov dword [esp + 0x18], eax
lea edi, [esp + 0x20]
mov ebp, eax
push 4
add edi, esi
pop ebx
movzx eax, byte [ebp + 1]
movzx ecx, byte [ebp - 1]
mov dl, byte [esi + eax*4 + 0x4368a0]
movzx eax, byte [ebp - 2]
xor dl, byte [esi + ecx*4 + 0x4360a0]
xor dl, byte [esi + eax*4 + 0x435ca0]
movzx eax, byte [ebp]
lea ebp, [ebp + 4]
xor dl, byte [esi + eax*4 + 0x4364a0]
mov byte [edi], dl
lea edi, [edi + 4]
sub ebx, 1
jne 0x404950
mov eax, dword [esp + 0x18]
inc esi
cmp esi, 4
jl 0x404945
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push 0x10
push eax
push ebx
call fcn.004133f0
mov edi, dword [esp + 0x1c]
add esp, 0xc
mov ebp, dword [esp + 0x1c]
inc edi
add ebx, 0x10
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ebx
cmp edi, dword [ebp + 4]
jl 0x40493c
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x20
ret