joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001c50
Capabilities:
Allocate or change rwx memory
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push esi
push edi
mov edi, ecx
test edx, edx
je 0x10001d69
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
je 0x10001d69
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x10001d59
mov ecx, dword [esp + 0x10]
mov eax, ecx
mov edx, dword [esp + 0x14]
or eax, edx
je 0x10001d59
test edx, edx
ja 0x10001d59
jb 0x10001cc1
cmp ecx, 0xffffffff
ja 0x10001d59
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10001cca
mov dword [eax], ecx
test edi, edi
je 0x10001cdc
push edx
push ecx
mov ecx, edi
call fcn.10002100
add esp, 8
jmp 0x10001cec
push 0x40
push 0x3000
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, dword [ebp + 8]
mov dword [esi], eax
test eax, eax
je 0x10001d59
push dword [esp + 0x10]
push eax
push dword [esp + 0x14]
call fcn.10001bf0
add esp, 0xc
test eax, eax
je 0x10001d39
mov ecx, dword [ebp + 0x10]
mov eax, dword [esp + 0xc]
test ecx, ecx
je 0x10001d22
mov dword [ecx], eax
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 0xffffffff
je 0x10001d2e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x10001d4a
push dword [esi]
push edi
call fcn.100022c0
add esp, 8
jmp 0x10001d59
push 0x8000
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x10001d69
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10002800
Capabilities:
Hash data using fnv

Disassembly:
mov edx, ecx
test edx, edx
jne 0x10002809
xor eax, eax
ret
mov al, byte [edx]
push esi
mov esi, 0x811c9dc5
test al, al
je 0x10002835
lea ecx, [eax - 0x41]
movsx eax, al
cmp cl, 0x19
ja 0x10002823
add eax, 0x20
movzx eax, al
inc edx
xor eax, esi
imul esi, eax, 0x1000193
mov al, byte [edx]
test al, al
jne 0x10002815
mov eax, esi
pop esi
ret
Function at 0x10003670
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0x9908b0df
mov eax, dword [esi]
cmp eax, 0x270
jl 0x1000373f
cmp eax, 0x271
jne 0x100036a0
call fcn.100037a0
push ebx
push edi
lea edx, [esi + 4]
mov edi, 0xe3
lea ebx, [ebx]
mov ecx, dword [edx + 4]
lea edx, [edx + 4]
xor ecx, dword [edx - 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 4]
mov eax, ecx
shr ecx, 1
and eax, 1
xor ecx, dword [ebp + eax*4 - 8]
xor ecx, dword [edx + 0x630]
mov dword [edx - 4], ecx
dec edi
jne 0x100036b0
lea edx, [esi + 0x390]
mov edi, 0x18c
mov ecx, dword [edx + 4]
lea edx, [edx + 4]
xor ecx, dword [edx - 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 4]
mov eax, ecx
shr ecx, 1
and eax, 1
xor ecx, dword [ebp + eax*4 - 8]
xor ecx, dword [edx - 0x390]
mov dword [edx - 4], ecx
dec edi
jne 0x100036e4
mov ecx, dword [esi + 0x9c0]
xor ecx, dword [esi + 4]
and ecx, 0x7fffffff
xor ecx, dword [esi + 0x9c0]
mov eax, ecx
shr ecx, 1
and eax, 1
mov eax, dword [ebp + eax*4 - 8]
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
mov dword [esi], edi
pop edi
pop ebx
mov eax, dword [esi]
mov ecx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10003780
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
pop ebp
jmp fcn.10003670

Function at 0x100037a0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [ecx + 4], 0x1571
mov dword [ecx], 1
push esi
mov edi, edi
mov esi, dword [ecx]
mov edx, dword [ecx + esi*4]
shr edx, 0x1e
xor edx, dword [ecx + esi*4]
imul eax, edx, 0x6c078965
add eax, esi
mov dword [ecx + esi*4 + 4], eax
inc dword [ecx]
cmp dword [ecx], 0x270
jl 0x100037b0
pop esi
ret
Function at 0x10004350
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
push edi
mov edi, ecx
mov ecx, dword [esi]
mov dword [ebp + 8], ecx
lea eax, [ecx + 1]
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1000438c
push dword [ebp + 0x10]
push 0
push 0
push 0
push ecx
push dword [ebx + 0x1c]
push 1
push edi
call eax
add esp, 0x20
test eax, eax
je 0x1000447f
cmp edi, 0xffffffff
je 0x1000447f
push 0
lea eax, [ebp - 4]
push eax
push 1
push 0x1003ce9c
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1000447f
cmp dword [ebp - 4], 1
jne 0x1000447f
mov eax, dword [ebx + 0x1c]
xor esi, esi
test eax, eax
je 0x100043d7
cmp byte [eax], 0
je 0x100043d7
lea esp, [esp]
inc esi
cmp byte [eax + esi], 0
jne 0x100043d0
push 0
lea ecx, [ebp - 4]
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1000447f
cmp esi, dword [ebp - 4]
jne 0x1000447f
push 0
lea eax, [ebp - 4]
push eax
push 3
push 0x1003cea0
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1000447f
cmp dword [ebp - 4], 3
jne 0x1000447f
mov eax, dword [ebx + 0x20]
mov dword [ebp - 4], 0
mov esi, dword [eax + 8]
test esi, esi
je 0x1000444e
push dword [ebp + 0x10]
lea eax, [ebp - 4]
mov edx, ebx
push dword [ebp + 0xc]
mov ecx, edi
push eax
push esi
push dword [ebp + 8]
call fcn.10004490
add esp, 0x14
test eax, eax
je 0x1000447f
mov eax, dword [esi + 0xc]
mov esi, dword [eax + 8]
test esi, esi
jne 0x10004426
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x10004461
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 0x10]
push 0
push 0
push 0
push dword [ebp + 8]
push dword [ebx + 0x1c]
push 4
push edi
call eax
add esp, 0x20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10004490
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 4], edx
mov edi, ecx
mov esi, dword [ebx + 0x20]
test esi, esi
je 0x100044bb
xor eax, eax
cmp byte [esi], al
je 0x100044bb
mov edi, edi
inc eax
cmp byte [esi + eax], 0
jne 0x100044b0
test eax, eax
jne 0x100044d3
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 0x18]
test byte [eax + 8], 0x20
je 0x100044d3
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x10]
test esi, esi
mov edx, dword [ecx]
mov dword [ebp - 0xc], edx
lea eax, [edx + 1]
mov dword [ecx], eax
mov ecx, 0x1003cea4
mov eax, dword [ebp + 0x14]
cmovne ecx, esi
mov dword [ebp - 8], ecx
test eax, eax
je 0x10004515
push dword [ebp + 0x18]
push ecx
mov ecx, dword [ebp - 4]
push edx
push dword [ebx + 0x1c]
push dword [ebp + 8]
push dword [ecx + 0x1c]
push 2
push edi
call eax
add esp, 0x20
test eax, eax
je 0x100045b5
mov eax, dword [ebx + 0x1c]
xor esi, esi
test eax, eax
je 0x1000452a
cmp byte [eax], 0
je 0x1000452a
inc esi
cmp byte [eax + esi], 0
jne 0x10004523
cmp edi, 0xffffffff
je 0x100045b5
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp + 0xc]
push 0
push ecx
push esi
push eax
push edi
call ebx
test eax, eax
je 0x100045b5
cmp esi, dword [ebp + 0xc]
jne 0x100045b5
push 0
lea eax, [ebp + 0xc]
push eax
push 3
push 0x1003cea8
push edi
call ebx
test eax, eax
je 0x100045b5
cmp dword [ebp + 0xc], 3
jne 0x100045b5
mov edx, dword [ebp - 8]
mov ecx, edi
call fcn.100045c0
test eax, eax
je 0x100045b5
push 2
push 0x1003ceac
push edi
call fcn.10001ec0
add esp, 0xc
test eax, eax
je 0x100045b5
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x100044c7
push dword [ebp + 0x18]
mov ecx, dword [ebp - 4]
push 0
push 0
push 0
push dword [ebp - 0xc]
push dword [ecx + 0x1c]
push 4
push edi
call eax
add esp, 0x20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100045c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, edx
mov dword [ebp - 4], ecx
push esi
xor edx, edx
mov dword [ebp - 8], 0
push edi
mov al, byte [ebx]
mov esi, 1
mov edi, ebx
test al, al
je 0x10004703
jmp 0x100045f0
movzx eax, al
mov al, byte [eax + 0x1003cd40]
cmp al, 8
jne 0x10004606
test esi, esi
jne 0x10004625
lea edx, [esi + 1]
jmp 0x10004614
cmp al, 5
je 0x10004625
cmp al, 1
jne 0x10004612
test esi, esi
jne 0x10004625
xor edx, edx
mov al, byte [edi + 1]
inc edi
inc dword [ebp - 8]
xor esi, esi
test al, al
jne 0x100045f0
xor eax, eax
jmp 0x1000462a
mov eax, 1
test edx, edx
jne 0x10004636
test eax, eax
je 0x10004703
cmp ecx, 0xffffffff
je 0x1000472f
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 8]
push 0
push eax
push 1
push 0x1003ceb0
push ecx
call edi
test eax, eax
je 0x1000472f
cmp dword [ebp - 8], 1
jne 0x1000472f
mov al, byte [ebx]
mov esi, ebx
test al, al
je 0x100046e7
nop
cmp al, 0x22
jne 0x100046c3
cmp ebx, esi
je 0x100046a4
push 0
lea eax, [ebp - 8]
mov edi, esi
push eax
sub edi, ebx
push edi
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1000472f
cmp edi, dword [ebp - 8]
jne 0x1000472f
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0xc]
push eax
push 2
push 0x1003ceb4
push dword [ebp - 4]
call edi
test eax, eax
je 0x1000472f
cmp dword [ebp - 0xc], 2
jne 0x1000472f
lea ebx, [esi + 1]
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x10004670
cmp esi, ebx
jbe 0x100046e7
push 0
lea eax, [ebp - 0xc]
sub esi, ebx
push eax
push esi
push ebx
push dword [ebp - 4]
call edi
test eax, eax
je 0x1000472f
cmp esi, dword [ebp - 0xc]
jne 0x1000472f
push 0
lea eax, [ebp - 0xc]
push eax
push 1
push 0x1003ceb0
push dword [ebp - 4]
call edi
test eax, eax
je 0x1000472f
cmp dword [ebp - 0xc], 1
jmp 0x10004721
cmp ecx, 0xffffffff
je 0x1000472f
mov esi, dword [ebp - 8]
lea eax, [ebp - 0xc]
push 0
push eax
push esi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1000472f
cmp esi, dword [ebp - 0xc]
jne 0x1000472f
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10004ea0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [esp + 0x10], esi
test esi, esi
je 0x10004f8f
test edx, edx
je 0x10004f8f
push edi
push edi
push 2
push edi
push 1
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, eax
mov dword [esp + 0xc], ecx
cmp ecx, 0xffffffff
je 0x10004f8f
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
test ebx, ebx
je 0x10004f08
push edx
push edi
push edi
push edi
push edi
push edi
push edi
push ecx
call ebx
add esp, 0x20
test eax, eax
je 0x10004f5e
mov ecx, dword [esp + 0xc]
mov edx, dword [ebp + 0xc]
mov eax, dword [esi + 0x10]
mov dword [esp + 0x14], edi
mov esi, dword [eax + 8]
test esi, esi
je 0x10004f3e
push edx
lea eax, [esp + 0x18]
mov edx, esi
push ebx
push eax
call fcn.10004350
add esp, 0xc
test eax, eax
je 0x10004f5e
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0xc]
mov esi, dword [eax + 8]
test esi, esi
je 0x10004f3e
mov edx, dword [ebp + 0xc]
jmp 0x10004f16
test ebx, ebx
jne 0x10004f47
lea edi, [ebx + 1]
jmp 0x10004f62
push dword [ebp + 0xc]
push 0
push 0
push 0
push 0
push 0
push 5
push ecx
call ebx
add esp, 0x20
mov edi, eax
mov ecx, dword [esp + 0xc]
cmp ecx, 0xffffffff
je 0x10004f6e
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
test edi, edi
jne 0x10004f88
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [eax + 4], 0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1001b905
Capabilities:
Check for trap flag exception

Disassembly:
pushal
xchg dword [esp + 0x28], edi
std
mov edi, eax
mov word [esp + 8], 0xbb40
jmp loc.10067f7b

Function at 0x1001f191
Capabilities:
Access peb ldr_data

Disassembly:
pushfd
pop dword [esp + 0xc]
push dword [esp + 8]
push 0xf7c2c6db
mov dword [esp + 0x10], esi
rcl si, 1
clc
mov dword [esp + 0xc], eax
ror esi, cl
mov dword [esp + 8], ebp
push dword [esp + 4]
call fcn.1006d071
cmc
sub eax, 0xe9cc2a7e
clc
or al, byte [eax]
Function at 0x100221f0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x558
mov eax, dword [0x10040010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push 0
push 0x1003cb48
push edi
call fcn.10001600
add esp, 0xc
cmp eax, 0x208
jae 0x100223cd
lea eax, [ebp - 0x414]
push eax
push 0x1003cb48
push edi
call fcn.10001600
add esp, 0xc
lea eax, [ebp - 0x554]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ecx, eax
mov dword [ebp - 0x558], ecx
cmp ecx, 0xffffffff
je 0x100223cd
jmp 0x10022270
mov ecx, dword [ebp - 0x554]
test cl, 0x10
je 0x10022302
lea eax, [ebp - 0x528]
push 0x1003cb40
push eax
call fcn.100025f0
add esp, 8
test eax, eax
je 0x100223a6
lea eax, [ebp - 0x528]
push 0x1003cb44
push eax
call fcn.100025f0
add esp, 8
test eax, eax
je 0x100223a6
push 0
lea eax, [ebp - 0x528]
push eax
push edi
call fcn.10001600
add esp, 0xc
cmp eax, 0x208
jae 0x100223a6
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x528]
push eax
push edi
call fcn.10001600
add esp, 0xc
lea eax, [ebx + 1]
mov ecx, esi
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.100221f0
jmp 0x100223a6
test cl, 0x40
jne 0x100223a6
mov eax, dword [esi]
cmp eax, 0x3e7
jae 0x100223c1
cmp dword [ebp - 0x538], 0
jne 0x100223a6
cmp dword [ebp - 0x534], 0
jl 0x100223a6
imul eax, eax, 0x210
push 0
mov dword [eax + esi + 0x20], ebx
imul ecx, dword [esi], 0x210
mov eax, dword [ebp - 0x534]
mov dword [ecx + esi + 0x24], eax
lea eax, [ebp - 0x528]
push eax
push edi
call fcn.10001600
mov ecx, dword [esi + 0x80c90]
add esp, 0xc
sub eax, ecx
cmp eax, 0x208
jae 0x100223a4
imul eax, dword [esi], 0x210
add eax, 0x28
add eax, esi
push eax
lea eax, [ebp - 0x528]
push eax
lea eax, [ebx - 1]
neg eax
sbb eax, eax
neg eax
dec eax
add eax, ecx
add eax, edi
push eax
call fcn.10001600
imul eax, dword [esi], 0x210
add eax, 0x28
add eax, esi
push eax
call fcn.100035c0
add esp, 0x10
inc dword [esi]
lea eax, [ebp - 0x554]
push eax
push dword [ebp - 0x558]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10022270
push dword [ebp - 0x558]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10027184
mov esp, ebp
pop ebp
ret 8
Function at 0x40c0d4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x423bb0]
jne 0x40c0de
repz ret
jmp fcn.0040e90a

Function at 0x40e4cc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x423bb0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00407676
and dword [ebp - 0x14], 0
cmp dword [0x4342e0], 0
mov dword [ebp - 0x18], eax
jne 0x40e57f
push 0x40333c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40e627
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403330
push ebx
call edi
test eax, eax
je 0x40e627
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403320
push ebx
mov dword [0x4342e0], eax
call edi
push eax
call esi
push 0x40330c
push ebx
mov dword [0x4342e4], eax
call edi
push eax
call esi
push 0x4032f0
push ebx
mov dword [0x4342e8], eax
call edi
push eax
call esi
mov dword [0x4342f0], eax
test eax, eax
je 0x40e57f
push 0x4032d8
push ebx
call edi
push eax
call esi
mov dword [0x4342ec], eax
mov eax, dword [0x4342ec]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40e5d8
cmp dword [0x4342f0], ecx
je 0x40e5d8
push eax
call esi
push dword [0x4342f0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40e5d8
test ebx, ebx
je 0x40e5d8
call edi
test eax, eax
je 0x40e5cf
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40e5cf
test byte [ebp - 8], 1
jne 0x40e5d8
or dword [ebp + 0x10], 0x200000
jmp 0x40e60b
mov eax, dword [0x4342e4]
cmp eax, dword [ebp - 0x18]
je 0x40e60b
push eax
call esi
test eax, eax
je 0x40e60b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40e60b
mov eax, dword [0x4342e8]
cmp eax, dword [ebp - 0x18]
je 0x40e60b
push eax
call esi
test eax, eax
je 0x40e60b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4342e0]
call esi
test eax, eax
je 0x40e627
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40e629
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c0d4
leave
ret
Function at 0x407740
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x54e938]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x14c], ebx
push edi
mov dword [esi], ebx
mov dword [esi + 0x18], 3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0x50d9b8
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x407790
push str.IsWow64Process
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
jne 0x407794
xor eax, eax
jmp 0x4077ba
lea ecx, [ebp - 0x124]
push ecx
push edi
mov dword [ebp - 0x124], ebx
call eax
test eax, eax
jne 0x4077af
mov eax, 2
jmp 0x4077ba
xor eax, eax
cmp dword [ebp - 0x124], ebx
setne al
push 0x118
lea edx, [ebp - 0x11c]
push ebx
push edx
mov dword [esi + 0x24], eax
mov dword [ebp - 0x120], 0x11c
test eax, esp
invalid
invalid
call [ecx + eax]
add byte [eax], al
call fcn.004e15a0
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x118]
mov edx, dword [ebp - 0x114]
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
cmp eax, 5
jne 0x40781a
cmp ecx, ebx
jle 0x407846
xor eax, eax
cmp ecx, 1
setne al
inc eax
mov dword [esi], eax
jmp 0x407846
cmp eax, 6
jne 0x40783e
sub ecx, ebx
je 0x407836
dec ecx
je 0x40782e
mov dword [esi], 5
jmp 0x407846
mov dword [esi], 4
jmp 0x407846
mov dword [esi], 3
jmp 0x407846
jle 0x407846
mov dword [esi], 6
movzx ecx, word [ebp - 0xc]
movzx edx, word [ebp - 0xa]
xor eax, eax
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x128], eax
lea eax, [ebp - 0x148]
push eax
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], edx
mov dword [ebp - 0x148], ebx
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [ebp - 0x148]
cmp eax, ebx
je 0x4078c0
cmp eax, 6
je 0x4078b7
cmp eax, 9
jne 0x4078c3
mov dword [esi + 0x18], 1
jmp 0x4078c3
mov dword [esi + 0x18], 2
jmp 0x4078c3
mov dword [esi + 0x18], ebx
mov ecx, dword [ebp - 0x134]
mov edx, dword [ebp - 0x12c]
mov dword [esi + 0x1c], ecx
mov ecx, dword [ebp - 4]
pop edi
mov dword [esi + 0x20], edx
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401316
mov esp, ebp
pop ebp
ret
Function at 0x10008890
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0x1e
mov dword [ebp - 8], 0
jmp 0x100088b2
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xa
jge 0x100088f1
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 8]
movsx edx, byte [ecx + 0x5342149c]
xor edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
mov byte [eax], dl
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
and edx, 0x800000ff
jns 0x100088ec
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 4], edx
jmp 0x100088a9
mov eax, dword [ebp - 0xc]
mov byte [eax + 0xa], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4

Function at 0x10008910
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0xac
mov dword [ebp - 8], 0
jmp 0x10008932
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 9
jge 0x10008971
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 8]
movsx edx, byte [ecx - 0x2472d89b]
xor edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
mov byte [eax], dl
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
and edx, 0x800000ff
jns 0x1000896c
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 4], edx
jmp 0x10008929
mov eax, dword [ebp - 0xc]
mov byte [eax + 9], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4

Function at 0x10008990
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0x34
mov dword [ebp - 8], 0
jmp 0x100089b2
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x12
jge 0x100089f1
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 8]
movsx edx, byte [ecx - 0x5392584]
xor edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
mov byte [eax], dl
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
and edx, 0x800000ff
jns 0x100089ec
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 4], edx
jmp 0x100089a9
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x12], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4

Function at 0x10008d80
Capabilities:
Reference the vmware io port

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100449c8
push 0x10032642
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov byte [ebp - 0x19], 1
mov dword [ebp - 4], 0
push edx
push ecx
push ebx
mov eax, 0x564d5868
mov ebx, 0
mov ecx, 0xa
mov edx, 0x5658
in eax, dx
cmp ebx, 0x564d5868
sete byte [ebp - 0x19]
pop ebx
pop ecx
pop edx
mov dword [ebp - 4], 0xffffffff
jmp 0x10008df3
mov al, byte [ebp - 0x19]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret