joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10128890
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
mov edx, dword [esi + 0x48]
movzx eax, word [edi + 2]
lea ecx, [edx + eax*8]
movzx eax, word [ecx]
lea eax, [edx + eax*8]
mov dword [esp + 0x18], eax
movzx eax, word [ecx + 2]
lea ebp, [eax + eax*2]
shl ebp, 3
cmp byte [edi + 6], 0
jge 0x101288cd
cmp byte [edi + 7], 0
jne 0x101288cd
mov ebx, 0x80
jmp 0x101288e1
push 0xef
push edi
push esi
call fcn.1012dc70
mov edx, dword [esi + 0x48]
add esp, 0xc
mov ebx, eax
movzx ecx, word [edi]
movzx eax, byte [edx + ecx*8 + 6]
mov dword [esp + 0x14], eax
test al, al
jns 0x10128904
push 0xef
push ecx
push esi
call fcn.1012dbb0
add esp, 0xc
mov dword [esp + 0x14], eax
mov ecx, dword [esi + 0x60]
btr ecx, eax
mov dword [esi + 0x60], ecx
test bl, bl
js 0x1012896a
test ebp, ebp
je 0x10128947
cmp ebx, eax
jne 0x10128934
test dword [esi + 0x68], 0x800
jne 0x10128934
push ebp
push ebx
push 0x838100
push esi
call fcn.1012ce30
add esp, 0x10
jmp 0x1012896a
push ebp
push eax
push ebx
push 0x8d0000fe
push esi
call fcn.1012d180
add esp, 0x14
jmp 0x1012896a
cmp ebx, eax
je 0x1012896a
mov ecx, dword [esi + 0x40]
and al, 7
and bl, 7
sub al, 0x40
shl bl, 3
add bl, al
lea eax, [ecx - 2]
mov byte [ecx - 1], bl
mov dword [ecx - 5], 0x8b0000fe
mov dword [esi + 0x40], eax
push 5
push esi
call fcn.10127720
mov ecx, dword [esp + 0x20]
add esp, 8
mov ebx, dword [esi + 0x40]
mov al, byte [ecx + 4]
and al, 0x1f
cmp al, 0xe
jne 0x101289fa
mov eax, dword [ecx]
mov ecx, dword [eax]
movsx eax, cl
cmp ecx, eax
jne 0x1012899f
lea eax, [ebx - 1]
mov dword [esi + 0x40], eax
mov byte [eax], cl
mov ecx, 0x830000fe
jmp 0x101289ab
mov dword [ebx - 4], ecx
mov ecx, 0x810000fe
add dword [esi + 0x40], 0xfffffffc
mov edi, dword [esp + 0x14]
lea eax, [ebp + 8]
push eax
push edi
push 7
push ecx
push esi
call fcn.1012d180
mov ecx, dword [esi + 0x40]
add esp, 0x14
mov byte [ecx - 2], 0x75
sub bl, cl
lea eax, [ecx - 2]
mov byte [ecx - 1], bl
mov dword [esi + 0x40], eax
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
mov edx, dword [eax + 4]
movsx eax, dl
cmp edx, eax
jne 0x101289ec
lea eax, [ecx - 3]
mov dword [esi + 0x40], eax
mov byte [eax], dl
jmp 0x10128a39
mov dword [ecx - 6], edx
mov ecx, 0x810000fe
add dword [esi + 0x40], 0xfffffffc
jmp 0x10128a3e
mov edi, dword [esp + 0x14]
cmp al, 2
jbe 0x10128a26
push dword [ecx]
lea eax, [ebp + 8]
push eax
push edi
push 0x838107
push esi
call fcn.1012cdd0
mov eax, dword [esi + 0x40]
add esp, 0x14
sub bl, al
mov byte [eax - 2], 0x75
mov byte [eax - 1], bl
lea ebx, [eax - 2]
mov eax, dword [esp + 0x18]
lea ecx, [ebx - 1]
mov dword [esi + 0x40], ecx
mov al, byte [eax + 4]
and al, 0x1f
not al
mov byte [ecx], al
mov ecx, 0x830000fe
lea eax, [ebp + 0xc]
push eax
push edi
push 7
push ecx
push esi
call fcn.1012d180
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x1012c990
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
mov edi, dword [esp + 0x14]
push 0xef
push ebp
push edi
call fcn.1012dc70
mov ebx, eax
mov ecx, 0x8000
movzx eax, word [ebp]
add esp, 0xc
cmp ax, cx
jae 0x1012c9f2
movzx ecx, byte [ebp + 3]
mov edx, eax
mov eax, dword [edi + 0x48]
and bl, 7
mov esi, dword [edi + 0x40]
shl bl, 3
mov eax, dword [eax + edx*8]
mov eax, dword [eax + ecx*4 + 0x14]
add eax, 0x10
mov dword [esi - 9], 0x8b0000fe
mov dword [esi - 4], eax
add bl, 5
mov byte [esi - 5], bl
lea eax, [esi - 6]
mov dword [edi + 0x40], eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, dword [edi + 0x58]
and eax, 0xef
jne 0x1012ca90
mov eax, dword [edi + 4]
or ecx, 0xffffffff
cmp dword [edi], 0xffffffff
mov esi, dword [edi + 0x18]
cmovb ecx, dword [edi]
cmp eax, ecx
cmovae eax, ecx
mov ecx, dword [edi + 8]
cmp ecx, eax
cmovae ecx, eax
mov eax, dword [edi + 0xc]
cmp eax, ecx
cmovae eax, ecx
mov ecx, dword [edi + 0x14]
cmp ecx, eax
cmovae ecx, eax
cmp esi, ecx
cmovae esi, ecx
mov ecx, dword [edi + 0x1c]
cmp ecx, esi
movzx edx, cx
movzx eax, si
cmovae edx, eax
movzx ecx, dx
mov dword [esp + 0x18], ecx
cmp ecx, 0x8000
jb 0x1012ca82
mov edx, dword [edi + 0x60]
mov esi, edx
and esi, 0xef
je 0x1012ca82
mov eax, dword [edi + 0x48]
mov cl, byte [eax + ecx*8 + 6]
shr edx, cl
test dl, 1
jne 0x1012ca7e
bsf eax, esi
movzx ecx, word [edi + eax*4]
push ecx
push edi
call fcn.1012e580
add esp, 8
mov esi, eax
jmp 0x1012ca93
mov ecx, dword [esp + 0x18]
push ecx
push edi
call fcn.1012e580
add esp, 8
mov esi, eax
jmp 0x1012ca93
bsr esi, eax
mov eax, dword [edi + 0x5c]
bts eax, esi
mov dword [edi + 0x5c], eax
movzx ecx, word [ebp]
mov eax, dword [edi + 0x48]
movzx eax, byte [eax + ecx*8 + 6]
mov dword [esp + 0x18], eax
test al, al
jns 0x1012cac3
push 0xef
push ecx
push edi
call fcn.1012dbb0
add esp, 0xc
mov dword [esp + 0x18], eax
mov ecx, dword [edi + 0x60]
btr ecx, eax
mov dword [edi + 0x60], ecx
cmp byte [ebp + 5], 0x3d
jne 0x1012cb04
push 8
push esi
push ebx
push 0x8d0000fe
push edi
call fcn.1012d180
push 5
push edi
call fcn.10127720
add esp, 0x1c
mov ebx, 7
dec dword [edi + 0x40]
mov eax, dword [edi + 0x40]
lea ecx, [ebx - 1]
mov byte [eax], 1
mov eax, 0x800000fe
jmp 0x1012cb0e
mov eax, 0x8b0000fe
mov ecx, 0x10
push ecx
push esi
push ebx
push eax
push edi
call fcn.1012d180
movzx eax, byte [ebp + 3]
lea eax, [eax*4 + 0x14]
push eax
push dword [esp + 0x30]
push esi
push 0x8b0000fe
push edi
call fcn.1012d180
add esp, 0x28
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x10135550
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov eax, dword [ebx + 0x10]
mov esi, dword [esp + 0x24]
push edi
cmp dword [eax + 4], 0xfffffff5
jne 0x101355c7
mov eax, dword [eax]
mov edx, dword [ebp]
movzx edi, word [eax + 6]
mov eax, edi
add eax, eax
mov ecx, dword [edx + eax*8]
mov eax, ecx
and eax, 0xf0000000
cmp eax, 0x80000000
jne 0x101355a6
nop word [eax + eax]
movzx eax, cx
add eax, eax
mov ecx, dword [edx + eax*8]
mov eax, ecx
and eax, 0xf0000000
cmp eax, 0x80000000
je 0x10135590
mov eax, ecx
movzx ecx, cx
and eax, 0xf0000000
cmp eax, 0x20000000
push esi
cmovne ecx, edi
push ecx
push ebp
call fcn.101199a0
add esp, 0xc
test eax, eax
jne 0x1013562d
mov eax, dword [ebx + 0x10]
lea ecx, [eax + 8]
cmp ecx, dword [ebx + 0x14]
jae 0x1013563f
cmp dword [eax + 0xc], 0xfffffff5
jne 0x1013563f
mov eax, dword [ecx]
mov edx, dword [ebp]
movzx edi, word [eax + 6]
mov eax, edi
add eax, eax
mov ecx, dword [edx + eax*8]
mov eax, ecx
and eax, 0xf0000000
cmp eax, 0x80000000
jne 0x1013560c
movzx eax, cx
add eax, eax
mov ecx, dword [edx + eax*8]
mov eax, ecx
and eax, 0xf0000000
cmp eax, 0x80000000
je 0x101355f6
mov eax, ecx
movzx ecx, cx
and eax, 0xf0000000
cmp eax, 0x20000000
push esi
cmovne ecx, edi
push ecx
push ebp
call fcn.101199a0
add esp, 0xc
test eax, eax
je 0x1013563f
push eax
push ebx
call fcn.10100c30
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
or edx, 0xffffffff
or ebp, edx
cmp esi, 4
jne 0x10135674
mov ecx, dword [esp + 0x24]
xor edx, edx
pop edi
mov eax, dword [ecx]
cmp eax, dword [ecx + 4]
mov eax, dword [ebx + 0x14]
setne dl
add edx, 0xfffffffd
mov dword [eax - 4], edx
mov eax, dword [ebx + 8]
mov dword [eax + 0x9c], edx
lea eax, [esi - 3]
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x24]
xor edi, edi
nop word [eax + eax]
mov ecx, dword [eax + edi*4 + 8]
mov dword [esp + 0x1c], edx
test ecx, ecx
je 0x101356c5
mov eax, dword [ebx + 0x10]
cmp dword [eax + edi*8 + 4], 0xfffffff5
jne 0x101356c5
mov eax, dword [esp + 0x20]
mov esi, dword [ecx]
push 0
sub ecx, dword [eax]
sar ecx, 4
push ecx
push ebx
call fcn.10119af0
and esi, 0xf0000000
add esp, 0xc
add eax, 0x10
mov edx, edi
cmp esi, 0x50000000
cmovne edx, dword [esp + 0x1c]
jmp 0x101356eb
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax + edi*8 + 4]
cmp ecx, 0xfffffffb
mov eax, edi
cmovne eax, ebp
mov ebp, eax
cmp ecx, 0xfffffff2
ja 0x101356e2
mov ecx, 0xd
jmp 0x101356e4
not ecx
mov eax, dword [ecx*4 + 0x101896f0]
mov dword [esp + edi*4 + 0x10], eax
inc edi
mov eax, dword [esp + 0x24]
cmp edi, 2
jl 0x10135680
mov eax, ebp
xor eax, edx
cmp eax, 1
je 0x1013573d
mov ecx, dword [esp + 0x28]
cmp ecx, 5
jne 0x10135712
mov eax, 0xd5a
jmp 0x1013572e
cmp ecx, 8
jne 0x1013571e
mov eax, 0xd78
jmp 0x1013572e
cmp ecx, 0xa
mov eax, 0xd9d
mov edx, 0xdcc
cmovl eax, edx
push dword [esp + 0x14]
push dword [esp + 0x14]
push eax
push ebx
call fcn.100f9ff0
push dword [esp + edx*4 + 0x10]
push dword [esp + ebp*4 + 0x14]
push 0xd3e
push ebx
call fcn.100f9ff0
int3
Function at 0x10139830
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x2c
push ebx
mov ebx, ecx
push ebp
movzx ebp, word [ebx + 0x74]
lea edx, [ebx + 0x74]
push esi
mov al, byte [ebx + 0x88]
and al, 0x1f
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], edx
mov dword [esp + 0x34], ebp
push edi
cmp al, 0xe
jne 0x10139888
movzx edx, word [ebx + 0x182]
cmp edx, ebp
jbe 0x10139884
movzx ecx, word [ebx + 0x19a]
cmp ecx, ebp
jbe 0x10139884
nop
cmp ecx, edx
jb 0x10139a04
mov eax, dword [ebx + 0x10]
movzx ecx, word [eax + ecx*8 + 6]
cmp ecx, ebp
ja 0x10139870
mov edx, dword [esp + 0x18]
movzx eax, word [ebx + 0x19c]
cmp eax, ebp
jbe 0x10139a0e
mov esi, dword [ebx + 0x10]
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], 0x8000
lea eax, [esi + eax*8]
mov dword [esp + 0x34], eax
movzx eax, word [eax]
movzx ecx, word [esi + eax*8 + 2]
lea ebx, [esi + eax*8]
cmp edx, ebx
je 0x10139a04
movzx edi, word [edx + 2]
cmp byte [esi + edi*8 + 5], 0x1d
lea edx, [esi + edi*8]
jne 0x101398d4
movzx edi, word [edx]
lea edx, [esi + edi*8]
cmp byte [esi + ecx*8 + 5], 0x1d
lea ebp, [esi + ecx*8]
jne 0x101398e5
movzx ecx, word [ebp]
lea ebp, [esi + ecx*8]
mov eax, dword [esp + 0x14]
mov al, byte [eax + 0x79]
mov byte [esp + 0x13], al
cmp al, 0x39
je 0x10139902
cmp al, 0x38
je 0x10139902
mov eax, dword [esp + 0x14]
movzx eax, word [eax + 0x74]
jmp 0x1013990e
mov eax, dword [esp + 0x14]
movzx eax, word [eax + 0x74]
movzx eax, word [esi + eax*8]
movzx eax, ax
mov dword [esp + 0x2c], eax
mov al, byte [ebx + 5]
cmp al, 0x39
je 0x10139925
cmp al, 0x38
je 0x10139925
movzx eax, word [ebx]
jmp 0x1013992c
movzx eax, word [ebx]
movzx eax, word [esi + eax*8]
movzx ebx, ax
cmp edi, ecx
je 0x101399d3
cmp edi, 0x8000
jae 0x1013994b
cmp ecx, 0x8000
jb 0x101399ed
cmp byte [esp + 0x13], 0x38
jne 0x101399c9
xor eax, eax
mov dword [esp + 0x1c], edi
cmp byte [edx + 5], 0x28
mov dword [esp + 0x20], eax
jne 0x10139993
movzx esi, word [edx + 2]
cmp si, word [esp + 0x24]
mov esi, dword [esp + 0x28]
jae 0x1013998f
movzx eax, word [edx]
mov dword [esp + 0x1c], eax
movzx eax, word [edx + 2]
mov edx, dword [esi + eax*8]
cmp dword [esp + 0x1c], ecx
jne 0x10139989
test edx, edx
jne 0x101399ed
mov eax, dword [esp + 0x20]
jmp 0x10139995
mov edx, eax
jmp 0x10139995
xor edx, edx
cmp byte [ebp + 5], 0x28
jne 0x101399bd
movzx esi, word [ebp + 2]
cmp si, word [esp + 0x24]
mov esi, dword [esp + 0x28]
jae 0x101399bd
movzx eax, word [ebp + 2]
movzx ecx, word [ebp]
mov eax, dword [esi + eax*8]
cmp edi, ecx
jne 0x101399bd
test eax, eax
jne 0x101399ed
cmp dword [esp + 0x1c], ecx
jne 0x101399d3
cmp edx, eax
je 0x101399d3
jmp 0x101399ed
mov al, byte [ebp + 4]
xor al, byte [edx + 4]
test al, 0x1f
jne 0x101399ed
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x10139a04
push ebx
push eax
push dword [esp + 0x1c]
call fcn.1013a150
add esp, 0xc
test eax, eax
jne 0x10139a04
mov eax, dword [esp + 0x34]
movzx eax, word [eax + 6]
cmp eax, dword [esp + 0x38]
jbe 0x10139a0e
mov edx, dword [esp + 0x18]
jmp 0x101398a6
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2c
ret
Function at 0x1013a5e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
movzx eax, word [esp + 0xc]
mov ecx, dword [esp + 0x10]
push ebx
push ebp
mov ebp, dword [esp + 0x10]
mov dword [esp + 8], eax
push esi
push edi
movzx eax, word [ebp + eax*2 + 0x11a]
cmp eax, ecx
jbe 0x1013a654
mov edi, dword [ebp + 0x10]
mov dl, byte [edi + eax*8 + 4]
lea ebx, [edi + eax*8]
movzx eax, word [ebx]
and dl, 0x1f
cmp eax, ecx
je 0x1013a681
test dl, dl
jne 0x1013a64c
cmp word [esp + 0x1c], 0x40
movzx edx, word [edi + eax*8 + 2]
movzx esi, word [edi + ecx*8 + 2]
je 0x1013a638
mov al, byte [edi + esi*8 + 4]
xor al, byte [edi + edx*8 + 4]
test al, 0x1f
jne 0x1013a64c
cmp edx, esi
je 0x1013a679
cmp edx, 0x8000
jae 0x1013a679
cmp esi, 0x8000
jae 0x1013a679
movzx eax, word [ebx + 6]
cmp eax, ecx
ja 0x1013a605
mov eax, dword [esp + 0x10]
movzx eax, word [ebp + eax*2 + 0x10c]
cmp eax, ecx
jbe 0x1013a679
mov esi, dword [ebp + 0x10]
lea edx, [esi + eax*8]
movzx eax, word [edx]
cmp eax, ecx
je 0x1013a68e
movzx eax, word [edx + 6]
cmp eax, ecx
ja 0x1013a667
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
pop edi
xor eax, eax
test dl, dl
pop esi
pop ebp
setne al
pop ebx
pop ecx
ret
test byte [edx + 4], 0x1f
mov eax, 0
pop edi
pop esi
pop ebp
setne al
pop ebx
pop ecx
ret
Function at 0x1016a44b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1016a0f2

Function at 0x1016a456
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1016a27c
Function at 0x414f34
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x415009
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x415024
push ebx
push 0x415034
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.00405370
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00403270
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404f58
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x414fb4
mov al, 0x69
call fcn.00414bac
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.00414f08
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x414fbd
call fcn.00414f08
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x415010
lea eax, [ebp - 4]
call fcn.00404ebc
ret

Function at 0x415124
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x4151ef
jmp 0x4151e3
cmp dword [esi + 0x10], 0x1000
jne 0x4151cf
test byte [esi + 0x15], 1
jne 0x4151cf
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x415180
cmp ebp, 2
je 0x415180
cmp ebp, 0x10
je 0x415180
cmp ebp, 0x20
jne 0x41519c
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x41519c
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4151ad
mov eax, dword [esi]
add eax, ebx
call fcn.0041511c
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4151a0
cmp byte [esp + 4], 0
je 0x4151cf
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x4151ef
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x415155
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40c594
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jns 0x40c5a8
add ecx, 3
sar ecx, 2
xor eax, eax
cmp ecx, eax
jle 0x40c5b9
xor dword [edx + eax*4], ebx
inc eax
cmp ecx, eax
jg 0x40c5b1
pop ebx
pop ebp
ret 0xc
Function at 0x10008e45
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x10008e54
pop dword [ebp - 0x2c]
mov eax, 0x2dc63cf0
add eax, 0xe23a5164
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0xd4052f3
add dword [ebp - 0x3c], 0x4111f258
mov dword [ebp - 0x38], 0x9193f7f4
sub dword [ebp - 0x38], 0x5f60abaf
mov dword [ebp - 0x34], 0x3c8375ad
sub dword [ebp - 0x34], 0xf037317f
mov dword [ebp - 0x30], 0x172ea056
add dword [ebp - 0x30], 0xe8d15faa
lea eax, [ebp - 0x3c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0xb6bf1b5f
add dword [ebp - 0x3c], 0xbdb34df7
mov dword [ebp - 0x38], 0x766dfe84
sub dword [ebp - 0x38], 0x35019d0f
mov dword [ebp - 0x34], 0x9594ec91
sub dword [ebp - 0x34], 0x32258025
mov dword [ebp - 0x30], 0x8afe7d84
sub dword [ebp - 0x30], 0x8afe7d84
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, 0xe134529b
sub eax, 0xd133926f
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x36653
push 0
call eax
mov ecx, 0x5d672de
sub ecx, 0x5d6310f
mov esi, eax
mov edx, 0x2af7f912
sub edx, 0x1af38512
add edx, dword [ebp - 0x2c]
mov edi, 0x8ba66190
add edi, 0x2af87513
mov ebx, dword [edx]
sub dword [ebp - 0x28], esi
sub ebx, edi
sub dword [ebp - 0x14], 0xec5e0e4f
mov dword [esi], ebx
xor dword [ebp - 0x24], eax
add esi, 0x7f29f70e
sub esi, 0x7f29f70a
add edx, 0x2aa365b7
add edx, 0xd55c9a4d
loop 0x10008f71
add eax, 0xfa0f
xor ebx, ebx
add ebx, eax
add eax, 0x9d5a1c76
sub eax, 0x9d5a1c71
mov ecx, 0x4897441
sub ecx, 0xf4897441
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x478360
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ae862
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4d1088]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x34], esi
cmp dword [edi + 0x14], 8
jb 0x4783a1
mov eax, dword [edi]
jmp 0x4783a3
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x38], eax
cmp eax, 0xffffffff
jne 0x4783c2
push esi
push edi
push ebx
call fcn.00478150
add esp, 0xc
jmp 0x4784be
test eax, 0x400
je 0x47847d
cmp dword [edi + 0x14], 8
jb 0x4783d7
mov eax, dword [edi]
jmp 0x4783d9
mov eax, edi
push eax
lea ecx, [ebp - 0x28]
call fcn.004774d0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0x2000000
push 3
push 0
push 7
push 0
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x2c], esi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00432c80
cmp esi, 0xffffffff
jne 0x478432
push dword [ebp - 0x34]
push edi
push ebx
call fcn.00478150
add esp, 0xc
jmp 0x4784be
push edi
call fcn.00477cc0
add esp, 4
test al, al
jne 0x478465
mov eax, dword [ebp - 0x38]
push eax
push edi
call fcn.00477da0
add esp, 8
mov dword [ebx], 9
mov dword [ebx + 4], eax
push esi
mov dword [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4784be
push esi
mov dword [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x47848f
mov dword [esi], 0
call fcn.00477000
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x30], 3
push eax
push edi
test al, 0x10
jne 0x4784a6
mov dword [ebp - 0x30], 2
call fcn.00477da0
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x2c], eax
mov eax, dword [ecx]
add esp, 8
mov dword [ebx], eax
mov eax, dword [ecx + 4]
mov dword [ebx + 4], eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047a4d6
mov esp, ebp
pop ebp
ret

Function at 0x49c060
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0049bedf
Function at 0x403c90
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov edx, dword [eax]
mov ecx, dword [ebp - 4]
mov eax, dword [edx + 4]
call eax
movzx ecx, al
test ecx, ecx
jne 0x40190d
jmp 0x40192d
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov edx, dword [eax]
mov ecx, dword [ebp - 4]
mov eax, dword [edx + 0x20]
call eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esp, ebp
pop ebp
ret 4

Function at 0x401940
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov ecx, dword [ebp - 8]
mov eax, dword [edx + 4]
call eax
movzx ecx, al
test ecx, ecx
jne 0x401961
xor eax, eax
jmp 0x401989
cmp dword [ebp + 0xc], 0
jne 0x40196b
xor eax, eax
jmp 0x401989
push 0
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x401a40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov ecx, dword [ebp - 8]
mov eax, dword [edx + 4]
call eax
movzx ecx, al
test ecx, ecx
je 0x401a63
cmp dword [ebp + 8], 0
jne 0x401a67
xor eax, eax
jmp 0x401a99
cmp dword [ebp + 0xc], 0
jne 0x401a71
xor eax, eax
jmp 0x401a99
push 0
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401a97
mov eax, dword [ebp - 4]
jmp 0x401a99
xor eax, eax
mov esp, ebp
pop ebp
ret 8

Function at 0x402120
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x402177
lea edx, [ebp - 8]
push edx
mov ecx, dword [ebp + 8]
call fcn.00402a90
test eax, eax
je 0x402177
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
je 0x402177
mov al, 1
jmp 0x402179
xor al, al
mov esp, ebp
pop ebp
ret 4