joyce8/EMBER2024-capa huggingface dataset:
Function at 0x474010
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x94]
mov dword [0x4ea340], 0
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
mov eax, dword [ebp - 0x84]
mov dword [0x4ea1a0], eax
mov eax, dword [ebp - 0x90]
mov dword [0x4ea1b0], eax
mov eax, dword [ebp - 0x8c]
mov dword [0x4ea1c0], eax
mov eax, dword [ebp - 0x88]
mov dword [0x4ea1d0], eax
mov edx, 0x4ea1e1
lea eax, [ebp - 0x80]
mov ecx, pe_nt_image_headers32
call fcn.004477c0
lea eax, [ebp - 0x80]
call fcn.004488f0
mov byte [0x4ea1e0], al
mov eax, 0x4d4d18
push eax
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x4ea350], eax
test eax, eax
je 0x4740b0
mov eax, 0x4d4d24
push eax
push dword [0x4ea350]
call sub.kernel32.dll_GetProcAddress
mov dword [0x4ea340], eax
nop
cmp dword [0x4ea1b0], 6
jae 0x4740c4
mov dword [0x4ab7e0], 0
nop
cmp dword [0x4ea1b0], 6
jb 0x4740e0
cmp dword [0x4ea1c0], 1
jb 0x4740e0
mov dword [0x4ab7f0], 2
mov esp, ebp
pop ebp
ret

Function at 0x474d60
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, 0xffffffff
mov edx, esi
test esi, esi
je 0x474d73
mov edx, dword [edx - 4]
test edx, edx
jle 0x474db0
mov ebx, esi
test esi, esi
je 0x474d80
mov ebx, dword [ebx - 4]
cmp ebx, 1
jl 0x474db0
xor ecx, ecx
nop
add ecx, 1
movzx edx, byte [esi + ecx - 1]
xor edx, eax
and edx, 0xff
mov edi, eax
shr edi, 8
and edi, 0xffffff
xor edi, dword [edx*4 + 0x4abf40]
mov eax, edi
cmp ebx, ecx
jg 0x474d88
not eax
pop edi
pop esi
pop ebx
ret

Function at 0x474dc0
Capabilities:
Hash data with crc32

Disassembly:
and edx, 0xff
mov ecx, dword [eax + 0xc]
xor edx, ecx
and edx, 0xff
shr ecx, 8
and ecx, 0xffffff
xor ecx, dword [edx*4 + 0x4abf40]
mov dword [eax + 0xc], ecx
ret
Function at 0x4796a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x118]
push ebx
push esi
push edi
mov esi, eax
mov edi, edx
mov dword [ebp - 0x118], ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x114], eax
mov al, byte [ebp + 8]
mov byte [ebp - 0x110], al
mov dword [ebp - 0xc], 0
xor eax, eax
push fcn.00479690
push ebp
push 0x458b20
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebp - 0x114]
push dword [ebp - 0x118]
push edi
call sub.kernel32.dll_FindResourceA
mov dword [esi + 0x10], eax
test eax, eax
jne 0x4797b0
mov al, byte [ebp - 0x110]
test al, al
je 0x479779
push 0xff
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x10c]
mov edx, 0xffffffff
call fcn.00448e60
lea ecx, [ebp - 0xc]
xor dx, dx
lea eax, [ebp - 0x10c]
call fcn.0044d1b0
xor cl, cl
xor dx, dx
lea eax, [ebp - 0xc]
call fcn.0044df80
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xb
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x4d6f10
call fcn.00471a80
mov edx, 0x47970a
mov ecx, ebp
call fcn.004589e0
jmp 0x4797b0
mov eax, dword [ebp - 0x118]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 6
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x4d6f10
call fcn.00471a80
mov edx, 0x479779
mov ecx, ebp
call fcn.004589e0
push dword [esi + 0x10]
push edi
call sub.kernel32.dll_LoadResource
mov dword [esi + 0x14], eax
test eax, eax
jne 0x479874
mov al, byte [ebp - 0x110]
test al, al
je 0x47983d
push 0xff
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x10c]
mov edx, 0xffffffff
call fcn.00448e60
lea ecx, [ebp - 0xc]
xor dx, dx
lea eax, [ebp - 0x10c]
call fcn.0044d1b0
xor cl, cl
xor dx, dx
lea eax, [ebp - 0xc]
call fcn.0044df80
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xb
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x4d6f10
call fcn.00471a80
mov edx, 0x4797ce
mov ecx, ebp
call fcn.004589e0
jmp 0x479874
mov eax, dword [ebp - 0x118]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 6
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x4d6f10
call fcn.00471a80
mov edx, 0x47983d
mov ecx, ebp
call fcn.004589e0
push dword [esi + 0x10]
push edi
call sub.kernel32.dll_SizeofResource
mov ebx, eax
push dword [esi + 0x14]
call sub.kernel32.dll_LockResource
mov edx, eax
mov eax, esi
mov ecx, ebx
call fcn.00479290
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00479690
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x47ec20
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
push dword [ebx + 4]
call sub.kernel32.dll_ResumeThread
cmp eax, 1
jne 0x47ec3c
mov dword [ebx + 0xc], 0
mov esi, esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x496480
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x24]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov byte [ebp - 0xc], cl
push 4
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call sub.kernel32.dll_GetLocaleInfoW
mov dword [ebp - 0x1c], eax
cmp eax, 2
jle 0x49652a
mov eax, dword [ebp - 0x1c]
sub eax, 2
test eax, eax
jl 0x496546
mov dword [ebp - 0x20], 0xffffffff
lea esi, [esi]
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
mov dx, word [ebp + edx*2 - 0x18]
mov word [ebp - 0x24], dx
mov edx, dword [ebp - 0x20]
mov dx, word [ebp + edx*2 - 0x18]
cmp dx, 0x20
jb 0x496546
sub dx, 0x20
je 0x496520
sub dx, 0x80
je 0x496520
sub dx, 0x1f62
jb 0x496546
sub dx, 1
jbe 0x496520
sub dx, 6
je 0x496520
sub dx, 0x26
jne 0x496546
nop
jmp 0x496520
cmp eax, dword [ebp - 0x20]
jg 0x4964c8
lea esi, [esi]
jmp 0x496546
cmp dword [ebp - 0x1c], 2
jne 0x49653a
mov ax, word [ebp - 0x18]
mov word [ebp - 0x24], ax
jmp 0x496546
mov al, byte [ebp - 0xc]
call fcn.0044f020
mov word [ebp - 0x24], ax
mov ax, word [ebp - 0x24]
sub ax, 0x7f
jbe 0x4965c4
sub ax, 0x21
je 0x4965d8
sub ax, 0x17
je 0x4965e4
sub ax, 0x222
je 0x4965f0
sub ax, 0x392
je 0x4965f8
sub ax, 1
je 0x496600
sub ax, 0x1996
je 0x496608
sub ax, 1
je 0x496610
sub ax, 6
je 0x496618
sub ax, 0xb
je 0x496628
sub ax, 0x1b
je 0x496620
sub ax, 0x367
je 0x496630
jmp 0x496638
mov ax, word [ebp - 0x24]
call fcn.0044f090
mov byte [ebp - 0x10], al
jmp 0x496640
mov byte [ebp - 0x10], 0x20
jmp 0x496640
mov byte [ebp - 0x10], 0x2e
jmp 0x496640
mov byte [ebp - 0x10], 0x27
jmp 0x496640
mov byte [ebp - 0x10], 0x2c
jmp 0x496640
mov byte [ebp - 0x10], 0x27
jmp 0x496640
mov byte [ebp - 0x10], 0x20
jmp 0x496640
mov byte [ebp - 0x10], 0x20
jmp 0x496640
mov byte [ebp - 0x10], 0x20
jmp 0x496640
mov byte [ebp - 0x10], 0x20
jmp 0x496640
mov byte [ebp - 0x10], 0x2d
jmp 0x496640
mov byte [ebp - 0x10], 0x27
jmp 0x496640
mov al, byte [ebp - 0xc]
mov byte [ebp - 0x10], al
mov esi, esi
mov al, byte [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x100018e5
Capabilities:
Allocate or change rwx memory

Disassembly:
push 0
mov eax, 0x10032f2e
call fcn.10032516
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1004bc58]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x1004cefc]
cmp eax, dword [ecx + 4]
jle 0x10001947
mov esi, 0x1004cefc
push esi
call fcn.1000f562
cmp dword [0x1004cefc], 0xffffffff
pop ecx
jne 0x10001947
and dword [ebp - 4], 0
mov eax, 0x1000
push 0x40
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x1004cef8], eax
or dword [ebp - 4], 0xffffffff
push esi
call fcn.1000f518
pop ecx
mov edx, dword [0x1004cef8]
lea esi, [edx + 0x1000]
jmp 0x10001964
lea ecx, [edx + 0x1c]
call fcn.100018e0
test eax, eax
je 0x10001970
add edx, 0x20
cmp edx, esi
jne 0x10001955
xor eax, eax
call fcn.100324df
ret
mov eax, edx
jmp 0x1000196a

Function at 0x10001974
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, ecx
mov ebx, edx
mov dword [ebp - 0xc], ebx
cmp byte [edi], 0xe9
jne 0x10001995
lea ecx, [edi + 5]
add ecx, dword [edi + 1]
call fcn.10001974
jmp 0x10001a08
push esi
call fcn.100018e5
mov dword [ebp - 4], eax
xor esi, esi
lea ecx, [esi + edi]
call fcn.100016a0
add esi, eax
cmp esi, 5
jl 0x100019a0
test esi, esi
jle 0x100019ca
mov ecx, dword [ebp - 4]
mov edx, edi
sub edx, ecx
mov ebx, esi
mov al, byte [edx + ecx]
mov byte [ecx], al
inc ecx
sub ebx, 1
jne 0x100019bc
mov ebx, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
lea eax, [edi - 5]
add ecx, esi
sub esi, ecx
add eax, esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ecx + 1], eax
lea eax, [ebp - 8]
push eax
push 0x40
push 5
push edi
mov byte [ecx], 0xe9
call esi
lea eax, [ebp - 8]
mov byte [edi], 0xe9
push eax
push dword [ebp - 8]
sub ebx, edi
push 5
sub ebx, 5
push edi
mov dword [edi + 1], ebx
call esi
mov eax, dword [ebp - 4]
pop esi
pop edi
pop ebx
leave
ret

Function at 0x10001a0c
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor esi, esi
push 0x40
mov edx, esi
pop edi
mov eax, edx
and eax, 7
mov al, byte [eax + ecx]
mov byte [edx + ebx], al
inc edx
sub edi, 1
jne 0x10001a1c
mov edi, 0x100
mov edx, esi
and edx, 0x3f
movzx eax, byte [edx + ebx]
movzx eax, byte [eax + 0x10043ad0]
movzx ecx, byte [eax + 0x10043ad0]
movzx eax, byte [esi + 0x10043bd0]
movzx eax, byte [eax + 0x10043bd0]
xor ecx, eax
inc esi
mov al, byte [ecx + 0x10043bd0]
mov byte [edx + ebx], al
sub edi, 1
jne 0x10001a32
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x1000345e
Capabilities:
Encode data using xor

Disassembly:
cmp byte [0x1004ac69], 0
je 0x10003480
xor ecx, ecx
mov al, 0xd5
sub al, cl
xor byte [ecx + 0x1004abcc], al
inc ecx
cmp ecx, 0xf
jb 0x10003469
mov byte [0x1004ac69], 0
mov eax, 0x1004abcc
ret

Function at 0x10003486
Capabilities:
Encode data using xor

Disassembly:
cmp byte [0x1004ab45], 0
je 0x100034a8
xor ecx, ecx
mov al, 0xa3
sub al, cl
xor byte [ecx + 0x1004ad14], al
inc ecx
cmp ecx, 0xa
jb 0x10003491
mov byte [0x1004ab45], 0
mov eax, 0x1004ad14
ret
Function at 0x100034ae
Capabilities:
Encode data using xor

Disassembly:
cmp byte [0x1004ab28], 0
je 0x100034d0
xor ecx, ecx
mov al, 0x71
sub al, cl
xor byte [ecx + 0x1004aa34], al
inc ecx
cmp ecx, 0xd
jb 0x100034b9
mov byte [0x1004ab28], 0
mov eax, 0x1004aa34
ret

Function at 0x100034d6
Capabilities:
Encode data using xor

Disassembly:
cmp byte [0x1004abdd], 0
je 0x100034f8
xor ecx, ecx
mov al, 0xea
sub al, cl
xor byte [ecx + 0x1004ab0c], al
inc ecx
cmp ecx, 0xe
jb 0x100034e1
mov byte [0x1004abdd], 0
mov eax, 0x1004ab0c
ret

Function at 0x100034fe
Capabilities:
Encode data using xor

Disassembly:
cmp byte [0x1004aa44], 0
je 0x10003520
xor ecx, ecx
mov al, 0xa5
sub al, cl
xor byte [ecx + 0x1004ad2c], al
inc ecx
cmp ecx, 0x12
jb 0x10003509
mov byte [0x1004aa44], 0
mov eax, 0x1004ad2c
ret

Function at 0x1000366e
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2c8c
call fcn.10032970
mov eax, dword [0x1004a00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 0x2c8c], ecx
jmp 0x100036a0
jmp 0x100036b2
lea eax, [ebp - 0x2c88]
mov dword [ebp - 0x2c88], 0x2880
push eax
lea eax, [ebp - 0x2c84]
push eax
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
je 0x100036db
xor al, al
jmp 0x10003784
cmp byte [ebp - 0x2af0], 0
lea ecx, [ebp - 0x2c84]
jne 0x10003722
cmp byte [ecx + 0x195], 0
jne 0x10003722
cmp byte [ecx + 0x196], 0
jne 0x10003722
cmp byte [ecx + 0x197], 0
jne 0x10003722
cmp byte [ecx + 0x198], 0
jne 0x10003722
cmp byte [ecx + 0x199], 0
jne 0x10003722
mov ecx, dword [ecx]
cmp byte [ecx + 0x194], 0
je 0x100036ea
movzx eax, byte [ecx + 0x199]
mov esi, 0x3e8
push eax
movzx eax, byte [ecx + 0x198]
push eax
movzx eax, byte [ecx + 0x197]
push eax
movzx eax, byte [ecx + 0x196]
push eax
movzx eax, byte [ecx + 0x195]
push eax
movzx eax, byte [ecx + 0x194]
push eax
push str._02X_02X_02X_02X_02X_02X
lea eax, [ebp - 0x404]
push esi
push eax
call fcn.10001aa1
push esi
lea eax, [ebp - 0x404]
push eax
push esi
push dword [ebp - 0x2c8c]
push 0
call fcn.1001e919
add esp, 0x38
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000f394
leave
ret
Function at 0x1000385d
Capabilities:
Encode data using xor

Disassembly:
push 0x4c0
mov eax, 0x10033790
call fcn.1003254a
mov esi, ecx
or ecx, 0xffffffff
call fcn.1000afc9
push ecx
push ecx
push 0x20
push esi
lea ecx, [ebp - 0x4cc]
mov ebx, eax
call fcn.10005433
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x4cc]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x4c0], 6
jne 0x10003954
mov ecx, dword [0x1004bc58]
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ecx*4]
mov dword [ebp - 0x414], eax
push ecx
push ecx
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x4cc]
call fcn.10006455
mov ecx, dword [ebp - 0x414]
lea edi, [ebp - 0x410]
mov eax, dword [0x1004d308]
mov esi, dword [ebp - 0x4c4]
cmp eax, dword [ecx + 4]
jle 0x1000391c
push 0x1004d308
call fcn.1000f562
cmp dword [0x1004d308], 0xffffffff
pop ecx
jne 0x1000391c
mov byte [ebp - 4], 1
call fcn.10009f59
mov dword [0x1004d31c], eax
mov byte [ebp - 4], 0
push 0x1004d308
call fcn.1000f518
pop ecx
test esi, esi
je 0x10003939
mov ecx, dword [0x1004d31c]
mov al, byte [edi]
xor al, bl
shr ebx, 8
movzx eax, al
inc edi
xor ebx, dword [ecx + eax*4]
sub esi, 1
jne 0x10003926
mov eax, dword [ebp - 0x4cc]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x4c0], 6
je 0x100038b8
not ebx
jmp 0x10003956
xor ebx, ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x45c]
call fcn.100053b6
lea ecx, [ebp - 0x45c]
call fcn.10006789
mov eax, ebx
call fcn.100324f4
ret

Function at 0x10004954
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
jmp 0x10004972
jmp 0x10004984
xor ebx, ebx
mov dword [ebp - 8], ebx
cmp byte [0x1004ad9d], bl
je 0x100049a9
mov edx, ebx
mov al, 0x28
sub al, dl
xor byte [edx + str.fSwPAQ_hNyqoqznpwyBfvsu], al
inc edx
cmp edx, 0x18
jb 0x10004993
mov byte [0x1004ad9d], bl
cmp byte [0x1004ab29], bl
je 0x100049c9
mov ecx, ebx
mov al, 0x3f
sub al, cl
xor byte [ecx + str.QJYPW], al
inc ecx
cmp ecx, 9
jb 0x100049b3
mov byte [0x1004ab29], bl
push str.fSwPAQ_hNyqoqznpwyBfvsu
push str.QJYPW
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x10004a24
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push ebx
push ebx
push 0x40
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x10004a24
push ebx
push 4
lea eax, [ebp - 8]
push eax
push 9
push dword [ebp - 4]
call esi
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x10004a24
xor eax, eax
jmp 0x10004a27
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100056ac
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x100056d3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1000657e
jmp 0x10005788
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x100056f5
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x100056f7
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x1000577c
jg 0x1000570c
test esi, esi
je 0x1000577c
test ecx, ecx
jl 0x10005755
jg 0x10005716
test eax, eax
je 0x10005755
cmp edi, ecx
jg 0x1000572a
jl 0x10005720
cmp esi, eax
jae 0x1000572a
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.10013ae0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x10005758
mov edx, dword [ebp + 8]
test edi, edi
jl 0x1000577c
jg 0x10005762
test esi, esi
je 0x1000577c
cmp dword [ebx + 0x4c], 0
je 0x1000577c
push dword [ebx + 0x4c]
push esi
push 1
push edx
call fcn.1001e141
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10005791
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x100057b8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10006645
jmp 0x10005887
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x100057da
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x100057dc
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x1000587b
jg 0x100057f9
test esi, esi
je 0x1000587b
test ecx, ecx
jl 0x10005846
jg 0x10005803
test eax, eax
je 0x10005846
cmp ebx, ecx
jg 0x10005817
jl 0x1000580d
cmp esi, eax
jae 0x10005817
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
push eax
push dword [esp + 0x18]
push dword [ebp + 8]
call fcn.10013ae0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
add edx, ecx
sub esi, ecx
mov dword [esp + 0xc], edx
sbb ebx, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x1000584d
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x1000587b
jg 0x10005857
test esi, esi
je 0x1000587b
cmp dword [edi + 0x4c], 0
je 0x1000587b
mov ecx, edi
call fcn.100075d9
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call fcn.1001eb80
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10005ab2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x1004a00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
or edi, 0xffffffff
mov esi, ecx
cmp ebx, edi
jne 0x10005ad8
xor eax, eax
jmp 0x10005b9a
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x10005b01
mov edx, dword [esi + 0x30]
mov eax, dword [edx]
add eax, ecx
cmp ecx, eax
jae 0x10005b01
dec dword [edx]
mov eax, ebx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
jmp 0x10005b9a
cmp dword [esi + 0x4c], 0
je 0x10005b98
mov ecx, esi
call fcn.100075d9
mov ecx, dword [esi + 0x38]
mov al, bl
test ecx, ecx
jne 0x10005b2d
push dword [esi + 0x4c]
push eax
call fcn.10002e7a
test al, al
pop ecx
pop ecx
cmovne edi, ebx
jmp 0x10005b98
mov byte [ebp - 0x28], al
lea eax, [ebp - 0x2c]
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x10005b98
cmp eax, 1
jle 0x10005b67
cmp eax, 3
jne 0x10005b98
push dword [esi + 0x4c]
push dword [ebp - 0x28]
jmp 0x10005b1f
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
sub eax, ecx
mov dword [ebp - 0x30], eax
je 0x10005b8a
push dword [esi + 0x4c]
push eax
mov eax, ecx
push 1
push eax
call fcn.1001e141
add esp, 0x10
cmp dword [ebp - 0x30], eax
jne 0x10005b98
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x34], eax
mov eax, ebx
jne 0x10005b9a
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000f394
leave
ret 4

Function at 0x10007627
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1004a00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x100076a9
cmp byte [esi + 0x3d], 0
je 0x100076a9
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x1000767b
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x1000767f
sub eax, 1
je 0x10007683
dec eax
sub eax, 1
je 0x100076a9
xor al, al
jmp 0x100076ab
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x100076a0
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.1001e141
add esp, 0x10
cmp edi, eax
jne 0x1000767b
cmp byte [esi + 0x3d], 0
sete al
jmp 0x100076ab
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1000f394
leave
ret
Function at 0x1000be87
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
test dl, dl
je 0x1000bed2
xor edx, edx
inc edx
push esi
movzx esi, cx
push edi
lea eax, [edx + 0x7f]
mov dword [ebp - 4], eax
mov cx, ax
or eax, edx
movzx edi, ax
mov eax, edi
and eax, esi
movzx eax, ax
cmp ax, cx
je 0x1000beb6
cmp ax, dx
jne 0x1000beb8
xor esi, edi
shr cx, 1
add edx, edx
mov word [ebp - 4], cx
cmp cx, dx
jbe 0x1000becb
mov eax, dword [ebp - 4]
jmp 0x1000bea0
pop edi
movzx eax, si
pop esi
leave
ret
movzx eax, cx
leave
ret

Function at 0x1000f287
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
push edi
mov dword [ebp - 8], edx
mov edi, ecx
jbe 0x1000f2f2
push ebx
push esi
movzx esi, byte [edi + 1]
movzx ecx, byte [edi]
movzx eax, byte [esi + edi + 2]
add ecx, eax
movzx eax, cl
mov al, byte [eax + edi + 2]
mov byte [edi], al
mov cl, byte [esi + edi + 2]
movzx eax, al
mov dl, byte [eax + edi + 2]
movzx eax, dl
movzx eax, byte [eax + edi + 2]
inc eax
movzx eax, al
mov bl, byte [eax + edi + 2]
mov byte [esi + edi + 2], dl
movzx eax, byte [edi]
mov byte [eax + edi + 2], cl
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
inc byte [edi + 1]
xor byte [eax + ecx], bl
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [ebp + 0xc]
jb 0x1000f29e
pop esi
pop ebx
pop edi
leave
ret