joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4287b4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov byte [ebp - 1], 0
xor edx, edx
mov eax, 6
call fcn.00431388
test al, al
je 0x42887e
xor edx, edx
mov eax, ebx
call fcn.0042a540
test al, al
je 0x42887e
mov eax, ebx
call fcn.0042a274
test al, 0x20
je 0x42887e
mov eax, ebx
call fcn.0040aff0
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x42887e
test ah, 4
je 0x42887e
test al, 0x10
je 0x42881b
mov edi, 0x2000000
jmp 0x42881d
xor edi, edi
push 0
push edi
push 3
push 0
push 1
push 0x80000000
mov eax, ebx
call fcn.0040aff0
push eax
call sub.kernel32.dll_CreateFileW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x42887e
xor eax, eax
push ebp
push 0x428877
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, esi
mov ecx, edi
mov eax, dword [ebp - 8]
call fcn.00428560
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42887e
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle
pop eax
jmp eax
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x428c9c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x428cf5
test eax, edx
je 0x428cf8
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x428cb3
movzx eax, word [eax]
sub eax, ecx
jmp 0x428cda
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x428cdb
add ecx, 4
js 0x428ccb
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x428cd8
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x428cda
xor eax, eax
ret
test eax, eax
je 0x428d04
test edx, edx
jne 0x428ca4
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x42a274
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x42a3d6
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x42a214]
call fcn.0040d0b8
add esp, 4
push 0x104
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x42a244]
call fcn.0040d0b8
add esp, 4
mov bl, 0
mov dl, 1
mov eax, esi
call fcn.0042a5d8
test al, al
jne 0x42a2ea
mov dl, 1
mov eax, esi
call fcn.0042a540
test al, al
je 0x42a374
lea edx, [ebp - 0x1c]
mov eax, esi
call fcn.0042ace4
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 4]
call fcn.004319d4
push 0x104
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x104
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0040aff0
mov esi, eax
push esi
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x42a36f
test byte [ebp - 0x14], 1
je 0x42a33a
or bl, 1
test byte [ebp - 0x14], 2
je 0x42a343
or bl, 2
test byte [ebp - 0x14], 0x80
je 0x42a34c
or bl, 0x20
push esi
call sub.kernel32.dll_GetDriveTypeW
sub eax, 2
je 0x42a360
dec eax
je 0x42a365
dec eax
je 0x42a36a
dec eax
jne 0x42a395
or bl, 0x10
jmp 0x42a395
or bl, 4
jmp 0x42a395
or bl, 8
jmp 0x42a395
call fcn.00432a34
lea edx, [ebp - 0x20]
mov eax, dword [0x8a4424]
call fcn.00410638
mov ecx, dword [ebp - 0x20]
mov dl, 1
mov eax, dword [0x4221fc]
call fcn.004301b4
call fcn.00409be8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42a3dd
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.0040a58c
lea eax, [ebp - 0xc]
mov edx, dword [0x42a244]
call fcn.0040d1dc
lea eax, [ebp - 8]
mov edx, dword [0x42a214]
call fcn.0040d1dc
lea eax, [ebp - 4]
call fcn.0040a52c
pop eax
jmp eax

Function at 0x42a440
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [esi]
add eax, edi
push eax
push ebx
call sub.kernel32.dll_ReadFile
test eax, eax
jne 0x42a46d
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x42a540
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.0040aff0
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x42a5aa
test ah, 4
je 0x42a5a3
test bl, bl
jne 0x42a568
mov al, 1
jmp 0x42a5d1
test al, 0x10
je 0x42a570
xor eax, eax
jmp 0x42a5d1
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x42a594
push eax
call sub.kernel32.dll_CloseHandle
mov al, 1
jmp 0x42a5d1
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x42a5d1
test al, 0x10
sete al
jmp 0x42a5d1
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x42a5cb
cmp ebx, 3
je 0x42a5cb
cmp ebx, 0x7b
je 0x42a5cb
mov eax, esi
call fcn.0042a500
test al, al
jne 0x42a5cf
xor eax, eax
jmp 0x42a5d1
mov al, 1
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov byte [esp], dl
mov edi, eax
xor ebx, ebx
mov eax, edi
call fcn.0040aff0
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x42a676
test esi, 0x400
jne 0x42a60d
test esi, 0x10
setne bl
jmp 0x42a676
cmp byte [esp], 0
je 0x42a641
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x42a676
push eax
call sub.kernel32.dll_CloseHandle
test esi, 0x10
setne bl
jmp 0x42a676
test esi, 0x10
je 0x42a64d
mov bl, 1
jmp 0x42a676
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x42a674
push eax
call sub.kernel32.dll_CloseHandle
xor ebx, ebx
jmp 0x42a676
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x42a77c
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov byte [ebp - 9], cl
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x42a851
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040a954
cmp byte [ebp - 9], 0
je 0x42a80d
mov eax, ebx
call fcn.0040aff0
push eax
call sub.kernel32.dll_GetFileAttributesW
test ah, 4
je 0x42a80d
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004287b4
test al, al
je 0x42a80d
mov eax, dword [ebp - 8]
call fcn.0042ae68
test al, al
je 0x42a802
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.0042aba4
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.004319d4
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, dword [ebp - 8]
call fcn.0040b258
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.0040a954
push edi
mov eax, dword [ebp - 4]
call fcn.0040aff0
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne 0x42a827
call sub.kernel32.dll_GetLastError
mov esi, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42a858
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040a58c
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040a58c
pop eax
jmp eax
Function at 0x42a990
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, eax
mov eax, esi
call fcn.0040aff0
mov ebp, eax
push ebp
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x42a9e5
call sub.kernel32.dll_GetLastError
mov edi, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x42a9df
test ah, 4
je 0x42a9df
test al, 0x10
je 0x42a9df
mov eax, esi
call fcn.0040aff0
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x42a9e5
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x42ecd4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x42ed0d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040a6b4
jmp 0x42ed16
mov eax, ebx
mov edx, esi
call fcn.0040a90c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x42ed20
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x42ed42
movzx eax, word [esp]
jmp 0x42ed44
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x430044
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x43016b
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0042fe4c
mov esi, eax
mov eax, dword [0x8a4298]
cmp byte [eax], 0
je 0x430111
mov eax, dword [0x8a3c90]
call fcn.00407e50
call fcn.004073d4
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x430014]
call fcn.0040d0b8
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x430184
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x43014d
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x8a3bac]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x8a8634]
call fcn.0040d8ec
push eax
call sub.user32.dll_LoadStringW
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x430172
lea eax, [ebp - 4]
mov edx, dword [0x430014]
call fcn.0040d1dc
pop eax
jmp eax
Function at 0x4313b4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x43148e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040a954
lea eax, [ebp - 4]
call fcn.0040aabc
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040aff0
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x431476
mov eax, ebx
call fcn.004071f0
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x43146f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040aff0
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x431457
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4314a0
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x431457
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x431476
mov eax, dword [ebp - 0x10]
call fcn.0040720c
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x431495
lea eax, [ebp - 4]
call fcn.0040a52c
pop eax
jmp eax

Function at 0x4314a4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
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 0x4315a8
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040a954
lea eax, [ebp - 4]
call fcn.0040aabc
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040aff0
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x431590
mov eax, ebx
call fcn.004071f0
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x431589
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040aff0
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x431571
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4315bc
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x431571
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x10]
shr eax, 0x10
movzx eax, ax
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0x10]
mov dword [edi], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x14]
shr eax, 0x10
movzx eax, ax
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x431590
mov eax, dword [ebp - 0x10]
call fcn.0040720c
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4315af
lea eax, [ebp - 4]
call fcn.0040a52c
pop eax
jmp eax
Function at 0x43287c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.0040a9fc
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.004106e0
mov edi, eax
cmp edi, 0x104
jbe 0x432827
mov eax, edi
add eax, eax
call fcn.004071f0
mov esi, eax
jmp 0x432829
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.004106e0
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x432862
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x43284c
mov eax, esp
cmp esi, eax
je 0x43286f
mov eax, esi
call fcn.0040720c
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x4328a8
cmp bl, 0
je 0x4328a4
cmp bl, 0x41
jl 0x43289f
cmp bl, 0x5a
jg 0x43289f
or bl, 0x20
xor al, bl
inc esi
jmp 0x432883
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x4327e8

Function at 0x43321c
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.0040b0a8
add esp, 0x800
pop ebx
ret
Function at 0x435d7c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x435d9c
sub eax, 4
mov eax, dword [eax]
lea ebx, [edi + esi]
cmp eax, ebx
jg 0x435db6
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x435db1
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x435dbb
add edi, esi
mov dword [ebp - 8], edi
movzx eax, word [ebp + 0x14]
cmp ax, word [ebp + 0x10]
je 0x435e29
xor eax, eax
mov dword [ebp - 0xc], eax
cmp esi, dword [ebp - 8]
jge 0x435e72
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x435de7
inc dword [ebp - 0xc]
jmp 0x435dff
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x10]
jne 0x435dff
cmp dword [ebp - 0xc], 0
jle 0x435dff
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
jne 0x435e21
xor eax, eax
jmp 0x435e1d
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x435e1c
mov eax, esi
jmp 0x435e75
inc eax
cmp eax, ecx
jle 0x435e09
inc esi
cmp esi, dword [ebp - 8]
jl 0x435dd3
jmp 0x435e72
mov byte [ebp - 0xd], 0
cmp esi, dword [ebp - 8]
jge 0x435e72
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x435e4a
movzx eax, byte [ebp - 0xd]
xor al, 1
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
jne 0x435e6c
xor eax, eax
jmp 0x435e68
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x435e67
mov eax, esi
jmp 0x435e75
inc eax
cmp eax, ecx
jle 0x435e54
inc esi
cmp esi, dword [ebp - 8]
jl 0x435e32
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4361ac
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov word [ebp - 0xa], cx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x4361cb
sub eax, 4
mov eax, dword [eax]
mov esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x4361db
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, dword [ebp + 8]
sub ebx, esi
inc ebx
cmp dword [ebp + 8], 0
jl 0x4362fd
test ebx, ebx
jl 0x4362fd
test esi, esi
jle 0x4362fd
mov eax, dword [ebp - 8]
call fcn.0040aff0
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0040aff0
mov ecx, eax
mov eax, dword [ebp + 8]
add eax, eax
add ecx, eax
movzx eax, word [ebp - 0xa]
cmp ax, word [ebp + 0xc]
je 0x43629a
xor eax, eax
mov dword [ebp - 0x14], eax
test ebx, ebx
jl 0x4362fd
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x43627f
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x43624e
inc dword [ebp - 0x14]
jmp 0x43625e
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp + 0xc]
jne 0x43625e
dec dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0
jle 0x436269
or eax, 0xffffffff
jmp 0x43627f
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x43627c
inc eax
jmp 0x43627f
or eax, 0xffffffff
test eax, eax
jl 0x436287
cmp esi, eax
jg 0x43623c
cmp esi, eax
jg 0x436292
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x436300
inc edx
dec dword [ebp - 0x1c]
jne 0x436238
jmp 0x4362fd
mov byte [ebp - 0x15], 0
test ebx, ebx
jl 0x4362fd
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x4362e4
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x4362c3
movzx ebx, byte [ebp - 0x15]
xor bl, 1
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x4362ce
or eax, 0xffffffff
jmp 0x4362e4
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x4362e1
inc eax
jmp 0x4362e4
or eax, 0xffffffff
test eax, eax
jl 0x4362ec
cmp esi, eax
jg 0x4362ac
cmp esi, eax
jg 0x4362f7
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x436300
inc edx
dec dword [ebp - 0x1c]
jne 0x4362a8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4874a8
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
or dl, byte [ebx + 0xd]
je 0x4874eb
cmp byte [ebx + 0x11], 0
jne 0x4874eb
cmp byte [ebx + 0x24], 0
jne 0x4874eb
mov byte [ebx + 0xf], 0
mov byte [ebx + 0xd], 0
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x487502
mov ecx, dword [0x8a41cc]
mov dl, 1
mov eax, dword [0x454c44]
call fcn.004302f0
call fcn.00409be8
pop ebx
ret
mov ecx, dword [0x8a41cc]
mov dl, 1
mov eax, dword [0x454c44]
call fcn.004302f0
call fcn.00409be8
pop ebx
ret
Function at 0x487d6c
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xf]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x487dba
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xf], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.00487354
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x487dd3
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x487ddc
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.00487354
dec esi
jne 0x487dfe
mov byte [ebx + 0xf], 0
pop esi
pop ebx
ret

Function at 0x48a998
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x8ad6f4
cmp dword [edi], 0
jne 0x48aa14
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc
mov esi, eax
mov eax, dword [0x8ad6f0]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x88225c
mov ecx, 2
call fcn.004074d4
mov edx, 0x48a970
lea eax, [esi + 5]
call fcn.0048a990
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0048a990
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x48a9e9
mov dword [0x8ad6f0], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x5061cc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov dl, 0xb5
mov ebx, eax
xor eax, eax
mov ecx, eax
mov esi, ebx
shr esi, cl
mov ecx, esi
and cl, 0xff
xor dl, cl
inc eax
cmp eax, 4
jne 0x5061d4
mov eax, edx
pop esi
pop ebx
ret
Function at 0x535a24
Capabilities:
Get disk information

Disassembly:
push ebx
push esi
push edi
push ecx
mov dword [esp], eax
xor ebx, ebx
cmp dword [esp], 0
je 0x535a89
mov eax, dword [esp]
call fcn.00535ce4
test al, al
je 0x535a89
mov eax, dword [esp]
call fcn.00535ae4
mov esi, eax
call sub.kernel32.dll_GetLogicalDrives
mov edi, eax
dec esi
mov eax, dword [esp]
movzx eax, word [eax + esi*2]
mov edx, eax
mov ecx, eax
add ecx, 0xffffff9f
sub cx, 0x1a
jae 0x535a6c
mov edx, eax
and dx, 0xffdf
mov eax, edx
cmp ax, 0x41
jb 0x535a89
cmp ax, 0x5a
ja 0x535a89
sub al, 0x41
mov ecx, eax
shr edi, cl
and edi, 1
cmp edi, 1
sete bl
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret