joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18118631
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x181d000c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov ecx, dword [edi]
cmp dword [ecx - 0xc], 3
jge 0x18118664
push str.DRIVE_UNKNOWN
mov ecx, ebx
call fcn.180074da
jmp 0x181187b5
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push 3
push eax
mov ecx, edi
call fcn.1800f92d
push 1
lea ecx, [ebp - 8]
call fcn.18009fc4
cmp ax, 0x3a
jne 0x1811879e
push 2
lea ecx, [ebp - 8]
call fcn.18009fc4
cmp ax, 0x5c
jne 0x1811879e
and dword [ebp - 0xc], 0
lea ecx, [ebp - 0xc]
call fcn.18014f23
mov esi, dword [ebp - 0xc]
cmp dword [esi - 0xc], 0
je 0x1811872e
mov ecx, dword [edi]
mov edx, esi
call fcn.18016606
test al, al
je 0x181186d8
push str.DRIVE_SYS
mov ecx, ebx
call fcn.180074da
lea ecx, [esi - 0x10]
call fcn.18006f52
jmp 0x181187aa
push 2
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0xc]
call fcn.1800f92d
mov ecx, dword [edi]
push 1
mov edx, dword [eax]
call fcn.180133c8
pop ecx
mov ecx, dword [ebp - 0x14]
mov bl, al
add ecx, 0xfffffff0
call fcn.18006f52
test bl, bl
je 0x1811872b
mov ecx, dword [ebp - 0x10]
push str.DRIVE_PRI
call fcn.180074da
lea ecx, [esi - 0x10]
call fcn.18006f52
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.18006f52
mov eax, dword [ebp - 0x10]
jmp 0x181187b7
mov ebx, dword [ebp - 0x10]
mov edi, dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
sub eax, 0
je 0x18118797
sub eax, 1
je 0x18118790
sub eax, 1
je 0x18118789
sub eax, 1
je 0x18118782
sub eax, 1
je 0x1811877b
sub eax, 1
je 0x18118774
sub eax, 1
jne 0x18118797
push str.DRIVE_RAMDISK
mov ecx, ebx
call fcn.180074da
lea ecx, [esi - 0x10]
call fcn.18006f52
lea ecx, [edi - 0x10]
jmp 0x181187b0
push str.DRIVE_CDROM
jmp 0x18118760
push str.DRIVE_REMOTE
jmp 0x18118760
push str.DRIVE_FIXED
jmp 0x18118760
push str.DRIVE_REMOVABLE
jmp 0x18118760
push str.DRIVE_NO_ROOT_DIR
jmp 0x18118760
push str.DRIVE_UNKNOWN
jmp 0x18118760
push str.DRIVE_UNKNOWN
mov ecx, ebx
call fcn.180074da
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.18006f52
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1811e2a8
leave
ret
Function at 0x1811ded2
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push 4
pop edx
movzx eax, cl
shr ecx, 8
xor ecx, dword [eax*4 + 0x1819a8c0]
sub edx, 1
jne 0x1811ded5
mov eax, ecx
ret
Function at 0x1814e4ca
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1814e147

Function at 0x18155234
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.181550aa

Function at 0x18159bf0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x18159c1d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x18159c1d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4030d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x4031b8
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x4031a7
jg 0x403110
test edx, edx
je 0x4031a7
nop dword [eax]
call fcn.004069c0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x403164
jg 0x403127
test esi, esi
je 0x403164
cmp ebx, eax
jg 0x403137
jl 0x403131
cmp edi, esi
jae 0x403137
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.00420b90
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x40318b
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
movzx eax, byte [eax]
push eax
call edx
cmp eax, 0xffffffff
je 0x4031a1
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x403110
jl 0x4031a1
test edi, edi
jne 0x403110
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov edx, dword [eax]
lea eax, [ecx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
test edx, edx
je 0x4031e0
mov eax, dword [eax]
mov edx, dword [eax]
jmp 0x4031e6
xor edx, edx
mov dword [esp + 0x18], eax
mov eax, edx
cdq
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
test edi, edi
jl 0x40324e
jg 0x4031fb
test esi, esi
je 0x40324e
test edx, edx
jl 0x403249
jg 0x403205
test eax, eax
je 0x403249
cmp edi, edx
jg 0x403219
jl 0x40320f
cmp esi, eax
jae 0x403219
mov eax, esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
mov ebx, dword [ebp + 8]
push eax
push ebx
push dword [esp + 0x24]
call fcn.00420b90
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x14]
add ebx, edx
mov ecx, dword [esp + 0xc]
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x10]
sub dword [eax], edx
mov eax, dword [ecx + 0x20]
add dword [eax], edx
jmp 0x403251
mov ebx, dword [ebp + 8]
jmp 0x40325b
mov ebx, dword [ebp + 8]
test edi, edi
jl 0x403274
jg 0x40325b
test esi, esi
je 0x403274
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x403274
push eax
push esi
push 1
push ebx
call fcn.00424b2c
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x403290
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x4032c2
jl 0x4032b5
test ecx, ecx
jne 0x4032c2
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x403382
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.00406880
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x40332e
jg 0x4032ed
test esi, esi
je 0x40332e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x403305
mov eax, dword [esp + 0x10]
jl 0x4032ff
cmp eax, esi
jae 0x403305
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.00420b90
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x40334f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x40336b
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x4032d4
jl 0x40336b
test ecx, ecx
jne 0x4032d4
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x4033c6
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x4033c6
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.00420b90
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x403437
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x4033ec
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x403422
nop dword [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.00424d75
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x403437
cmp edi, eax
ja 0x403400
test edi, edi
je 0x403437
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.00424d75
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4037b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x44f050]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x4037e0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041f622
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40381c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x40381c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041f622
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x403906
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x403844
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x403877
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.0042518a
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041f622
mov esp, ebp
pop ebp
ret 4
mov byte [ebp - 0x25], bl
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x4038d9
sub eax, 1
je 0x4038d9
sub eax, 2
jne 0x403906
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.0042518a
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041f622
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4038f6
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00424b2c
add esp, 0x10
cmp edi, eax
jne 0x403906
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x403807
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041f622
mov esp, ebp
pop ebp
ret 4
Function at 0x404310
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x44f050]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x4043cc
cmp byte [esi + 0x3d], 0
je 0x4043cc
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x4043ba
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x404382
sub eax, 1
je 0x404386
sub eax, 2
jne 0x4043ba
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041f622
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4043a3
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00424b2c
add esp, 0x10
cmp edi, eax
jne 0x4043ba
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041f622
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041f622
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0041f622
mov esp, ebp
pop ebp
ret
Function at 0x405420
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43c8e0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x44f050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], eax
push 8
mov dword [ebp - 0x18], eax
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0041f661
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0041eceb
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
lea edi, [eax + 0x14]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov ebx, dword [ebp - 0x10]
mov dword [edi], 0
mov dword [edx], 0
mov dword [eax + 0x10], esi
mov dword [ebx], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [ebx + 0x48], 0
mov byte [ebx + 0x3d], 0
mov ebx, dword [ebp - 0x14]
mov dword [eax + 0xc], ebx
mov ebx, dword [ebp - 0x10]
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov dword [eax + 0x4c], 0
mov ecx, dword [0x4510a8]
mov edx, dword [0x4510ac]
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], edx
mov dword [eax + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405820
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43c9b0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x44f050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0041f661
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0041eceb
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40e370
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
mov dword [ebp - 0xc], edx
xor eax, eax
mov dword [ebp - 0x10], ebx
push esi
xor ecx, ecx
push edi
mov dword [ebp - 4], ecx
test ecx, ecx
mov esi, edx
cmovne esi, ebx
xor eax, esi
mov ebx, eax
shr ebx, 0x18
mov edi, ebx
movsx edx, bl
sar edx, 0x1f
and bl, 1
and edx, 0x4d
lea ecx, [edi + edi]
xor edx, ecx
mov ecx, edi
movzx esi, dl
movzx edx, bl
neg edx
sbb edx, edx
shr ecx, 1
and edx, 0xa6
xor edx, ecx
xor edx, esi
mov ebx, edx
shl ebx, 8
xor ebx, esi
shl ebx, 8
xor ebx, edx
xor ebx, eax
shl ebx, 8
xor ebx, edi
mov edx, ebx
shr edx, 0x18
mov edi, edx
movsx ecx, dl
sar ecx, 0x1f
and dl, 1
and ecx, 0x4d
lea eax, [edi + edi]
xor ecx, eax
mov eax, edi
movzx esi, cl
movzx ecx, dl
neg ecx
sbb ecx, ecx
shr eax, 1
and ecx, 0xa6
xor ecx, eax
xor ecx, esi
mov eax, ecx
shl eax, 8
xor eax, esi
shl eax, 8
xor eax, ecx
xor eax, ebx
shl eax, 8
xor eax, edi
mov edx, eax
mov dword [ebp - 8], eax
shr edx, 0x18
mov edi, edx
movsx ecx, dl
sar ecx, 0x1f
and dl, 1
and ecx, 0x4d
lea eax, [edi + edi]
xor ecx, eax
mov eax, edi
movzx esi, cl
movzx ecx, dl
neg ecx
sbb ecx, ecx
shr eax, 1
and ecx, 0xa6
xor ecx, eax
xor ecx, esi
mov ebx, ecx
shl ebx, 8
xor ebx, esi
shl ebx, 8
xor ebx, ecx
xor ebx, dword [ebp - 8]
shl ebx, 8
xor ebx, edi
mov edx, ebx
shr edx, 0x18
mov edi, edx
movsx ecx, dl
sar ecx, 0x1f
and dl, 1
and ecx, 0x4d
lea eax, [edi + edi]
xor ecx, eax
mov eax, edi
movzx esi, cl
movzx ecx, dl
neg ecx
mov edx, dword [ebp - 0xc]
sbb ecx, ecx
shr eax, 1
and ecx, 0xa6
xor ecx, eax
xor ecx, esi
mov eax, ecx
shl eax, 8
xor eax, esi
shl eax, 8
xor eax, ecx
mov ecx, dword [ebp - 4]
xor eax, ebx
inc ecx
mov ebx, dword [ebp - 0x10]
shl eax, 8
xor eax, edi
mov dword [ebp - 4], ecx
cmp ecx, 2
jl 0x40e388
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40e4c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
movzx eax, byte [ebp + 8]
push ebx
push esi
push edi
imul edi, eax, 0x1010101
mov ebx, ecx
lea eax, [edx + 0x7c]
mov dword [ebp - 4], edx
lea ecx, [ebx + 0x7c]
movd xmm0, edi
pshufd xmm2, xmm0, 0
cmp ebx, eax
ja 0x40e50a
cmp ecx, edx
jb 0x40e50a
mov esi, edx
mov ecx, ebx
sub esi, ebx
mov edx, 0x20
mov eax, dword [ecx + esi]
lea ecx, [ecx + 4]
xor eax, edi
mov dword [ecx - 4], eax
sub edx, 1
jne 0x40e4f8
jmp 0x40e55f
mov esi, edx
lea ecx, [edx + 0x30]
sub esi, ebx
lea eax, [ebx + 0x10]
mov dword [ebp + 8], esi
mov esi, 2
mov edx, dword [ebp + 8]
nop
lea eax, [eax + 0x40]
movaps xmm1, xmm2
lea ecx, [ecx + 0x40]
movups xmm0, xmmword [ecx - 0x70]
pxor xmm0, xmm2
movups xmmword [eax - 0x50], xmm0
movups xmm0, xmmword [edx + eax - 0x40]
pxor xmm0, xmm2
movups xmmword [eax - 0x40], xmm0
movups xmm0, xmmword [ecx - 0x50]
pxor xmm0, xmm2
movups xmmword [eax - 0x30], xmm0
movups xmm0, xmmword [ecx - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
sub esi, 1
jne 0x40e520
mov edx, dword [ebp - 4]
lea ecx, [ebx + 0x80]
lea esi, [edx + 0x80]
lea eax, [esi + 0x7c]
lea edx, [ecx + 0x7c]
cmp ecx, eax
ja 0x40e59a
cmp edx, esi
jb 0x40e59a
sub esi, ecx
mov edx, 0x20
mov eax, dword [ecx + esi]
lea ecx, [ecx + 4]
xor eax, edi
mov dword [ecx - 4], eax
sub edx, 1
jne 0x40e583
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [esi + 0x30]
sub esi, ecx
lea eax, [ecx + 0x10]
mov ecx, 2
lea eax, [eax + 0x40]
movaps xmm1, xmm2
lea edx, [edx + 0x40]
movups xmm0, xmmword [edx - 0x70]
pxor xmm0, xmm2
movups xmmword [eax - 0x50], xmm0
movups xmm0, xmmword [esi + eax - 0x40]
pxor xmm0, xmm2
movups xmmword [eax - 0x40], xmm0
movups xmm0, xmmword [edx - 0x50]
pxor xmm0, xmm2
movups xmmword [eax - 0x30], xmm0
movups xmm0, xmmword [edx - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
sub ecx, 1
jne 0x40e5a7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41d4c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
movzx ebp, ax
xor eax, eax
mov esi, ebp
push edi
shr esi, 8
xor edi, edi
mov dword [esp + 0x10], esi
cmp dword [esp + 0x20], eax
jbe 0x41d521
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
movzx ecx, word [ecx + edi*2]
mov edx, ecx
movzx ecx, cl
shr edx, 8
add edx, eax
cmp esi, ecx
jb 0x41d521
jne 0x41d518
cmp eax, edx
jge 0x41d518
mov ecx, dword [esp + 0x18]
movzx esi, cl
movzx ecx, byte [eax + ebx]
cmp cx, si
je 0x41d549
inc eax
cmp eax, edx
jl 0x41d506
mov esi, dword [esp + 0x10]
inc edi
mov eax, edx
cmp edi, dword [esp + 0x20]
jb 0x41d4e3
mov edi, dword [esp + 0x2c]
xor eax, eax
mov bl, 1
test edi, edi
je 0x41d55f
mov esi, dword [esp + 0x28]
movzx ecx, byte [eax + esi]
test cl, cl
jns 0x41d551
movzx edx, byte [eax + esi + 1]
inc eax
and ecx, 0x7f
shl ecx, 8
or edx, ecx
jmp 0x41d553
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
mov edx, ecx
sub ebp, edx
js 0x41d55f
inc eax
xor bl, 1
cmp eax, edi
jb 0x41d531
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
pop ecx
ret

Function at 0x41e3e2
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.0041e3be
pop esi
leave
ret 8

Function at 0x4202be
Capabilities:
Parse pe header

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

Function at 0x42e39a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042e210

Function at 0x43bc60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43bc8d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43bc8d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x44be1f
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
xor eax, eax
mov ebx, dword fs:[0x18]
mov ecx, dword fs:[0x30]
test ecx, ecx
jns 0x44be57
mov ecx, 0x530000
cmp dword [ebx + 0x58], ecx
jne 0x44be45
mov al, 1
jmp 0x44bea1
cmp dword [ebx + 0x54], ecx
jne 0x44be4e
mov al, 2
jmp 0x44bea1
cmp dword [ebx + 0x7c], ecx
jne 0x44bea1
mov al, 3
jmp 0x44bea1
mov ebx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xa4]
cmp ecx, 4
ja 0x44be6c
mov al, 4
jmp 0x44bea1
cmp ecx, 5
jne 0x44be8c
cmp ebx, 0
jne 0x44be7a
mov al, 5
jmp 0x44bea1
cmp ebx, 1
jne 0x44be83
mov al, 6
jmp 0x44bea1
cmp ebx, 2
jne 0x44be8c
mov al, 7
jmp 0x44bea1
cmp ecx, 6
jne 0x44be98
cmp ebx, 0
jne 0x44be9a
mov al, 8
jmp 0x44bea1
cmp ebx, 1
jne 0x44bea1
mov al, 9
pop ebx
mov esp, ebp
pop ebp
ret