joyce8/EMBER2024-capa huggingface dataset:
Function at 0x425f74
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.0042f644
test al, al
je 0x42603c
xor edx, edx
mov eax, ebx
call fcn.00427d08
test al, al
je 0x42603c
mov eax, ebx
call fcn.00427840
test al, 0x20
je 0x42603c
mov eax, ebx
call fcn.0040bb08
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x42603c
test ah, 4
je 0x42603c
test al, 0x10
je 0x425fdb
mov edi, 0x2000000
jmp 0x425fdd
xor edi, edi
push 0
push edi
push 3
push 0
push 1
push 0x80000000
mov eax, ebx
call fcn.0040bb08
push eax
call sub.kernel32.dll_CreateFileW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x42603c
xor eax, eax
push ebp
push 0x426035
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, esi
mov ecx, edi
mov eax, dword [ebp - 8]
call fcn.00425d24
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42603c
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle
ret
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x426368
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4263c1
test eax, edx
je 0x4263c4
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x42637f
movzx eax, word [eax]
sub eax, ecx
jmp 0x4263a6
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 0x4263a7
add ecx, 4
js 0x426397
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x4263a4
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x4263a6
xor eax, eax
ret
test eax, eax
je 0x4263d0
test edx, edx
jne 0x426370
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x427840
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 0x4279a4
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x4277e0]
call fcn.0040d678
add esp, 4
push 0x104
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x427810]
call fcn.0040d678
add esp, 4
movzx ebx, byte [0x4279b4]
mov dl, 1
mov eax, esi
call fcn.00427da0
test al, al
jne 0x4278ba
mov dl, 1
mov eax, esi
call fcn.00427d08
test al, al
je 0x427944
lea edx, [ebp - 0x1c]
mov eax, esi
call fcn.004286cc
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 4]
call fcn.0042fc88
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.0040bb08
mov esi, eax
push esi
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x42793f
test byte [ebp - 0x14], 1
je 0x42790a
or bl, 1
test byte [ebp - 0x14], 2
je 0x427913
or bl, 2
test byte [ebp - 0x14], 0x80
je 0x42791c
or bl, 0x20
push esi
call sub.kernel32.dll_GetDriveTypeW
sub eax, 2
je 0x427930
dec eax
je 0x427935
dec eax
je 0x42793a
dec eax
jne 0x427965
or bl, 0x10
jmp 0x427965
or bl, 4
jmp 0x427965
or bl, 8
jmp 0x427965
call fcn.00430cdc
lea edx, [ebp - 0x20]
mov eax, dword [0x72df14]
call fcn.00410874
mov ecx, dword [ebp - 0x20]
mov dl, 1
mov eax, dword [0x41f9f4]
call fcn.0042e53c
call fcn.0040a52c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4279ab
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.0040ae90
lea eax, [ebp - 0xc]
mov edx, dword [0x427810]
call fcn.0040d79c
lea eax, [ebp - 8]
mov edx, dword [0x4277e0]
call fcn.0040d79c
lea eax, [ebp - 4]
call fcn.0040ae30
ret

Function at 0x427a10
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 0x427a3d
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x427d08
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.0040bb08
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x427d72
test ah, 4
je 0x427d6b
test bl, bl
jne 0x427d30
mov al, 1
jmp 0x427d99
test al, 0x10
je 0x427d38
xor eax, eax
jmp 0x427d99
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x427d5c
push eax
call sub.kernel32.dll_CloseHandle
mov al, 1
jmp 0x427d99
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x427d99
test al, 0x10
sete al
jmp 0x427d99
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x427d93
cmp ebx, 3
je 0x427d93
cmp ebx, 0x7b
je 0x427d93
mov eax, esi
call fcn.00427cc8
test al, al
jne 0x427d97
xor eax, eax
jmp 0x427d99
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x427da0
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.0040bb08
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x427e47
test esi, 0x400
jne 0x427ddc
test esi, 0x10
setne bl
jmp 0x427e77
cmp byte [esp], 0
je 0x427e10
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x427e77
push eax
call sub.kernel32.dll_CloseHandle
test esi, 0x10
setne bl
jmp 0x427e77
test esi, 0x10
je 0x427e1c
mov bl, 1
jmp 0x427e77
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x427e43
push eax
call sub.kernel32.dll_CloseHandle
xor ebx, ebx
jmp 0x427e77
mov bl, 1
jmp 0x427e77
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x427e71
cmp eax, 3
je 0x427e71
cmp eax, 0xa1
je 0x427e71
cmp eax, 0x7b
je 0x427e71
cmp eax, 0x35
je 0x427e71
cmp eax, 0x15
je 0x427e71
cmp eax, 0x43
jne 0x427e75
xor ebx, ebx
jmp 0x427e77
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x42810c
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4281b1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0040bb08
push eax
call sub.kernel32.dll_GetFileAttributesW
mov edi, eax
test edi, 0x400
setne al
test al, bl
je 0x428196
or edi, 0xffffffff
lea edx, [ebp - 4]
mov eax, esi
call fcn.00425f74
test al, al
je 0x428196
mov eax, dword [ebp - 4]
call fcn.00428c24
test al, al
je 0x428186
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.00428538
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.0042fc88
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
call fcn.0040bd70
mov eax, dword [ebp - 4]
call fcn.0040bb08
push eax
call sub.kernel32.dll_GetFileAttributesW
mov edi, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4281b8
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040ae90
ret
Function at 0x4281c4
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 0x428297
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040b258
cmp byte [ebp - 9], 0
je 0x428255
mov eax, ebx
call fcn.0040bb08
push eax
call sub.kernel32.dll_GetFileAttributesW
test ah, 4
je 0x428255
lea edx, [ebp - 8]
mov eax, ebx
call fcn.00425f74
test al, al
je 0x428255
mov eax, dword [ebp - 8]
call fcn.00428c24
test al, al
je 0x42824a
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.00428538
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.0042fc88
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, dword [ebp - 8]
call fcn.0040bd70
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.0040b258
push edi
mov eax, dword [ebp - 4]
call fcn.0040bb08
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne 0x42826f
call sub.kernel32.dll_GetLastError
mov esi, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42829e
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040ae90
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040ae90
ret

Function at 0x4283d4
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.0040bb08
mov ebp, eax
push ebp
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x428429
call sub.kernel32.dll_GetLastError
mov edi, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x428423
test ah, 4
je 0x428423
test al, 0x10
je 0x428423
mov eax, esi
call fcn.0040bb08
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x428429
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x42d044
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 0x42d07d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040afb8
jmp 0x42d086
mov eax, ebx
mov edx, esi
call fcn.0040b210
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x42d090
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 0x42d0b2
movzx eax, word [esp]
jmp 0x42d0b4
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x42e3ec
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 0x42e511
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0042e1f4
mov esi, eax
mov eax, dword [0x72ddec]
cmp byte [eax], 0
je 0x42e4b9
mov eax, dword [0x72d9f0]
call fcn.00407d38
call fcn.00407048
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 [0x42e3bc]
call fcn.0040d678
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 0x42e52c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x42e4f5
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x72d954]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x732634]
call fcn.0040da98
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 0x42e518
lea eax, [ebp - 4]
mov edx, dword [0x42e3bc]
call fcn.0040d79c
ret

Function at 0x42f670
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 0x42f746
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040b258
lea eax, [ebp - 4]
call fcn.0040b40c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040bb08
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x42f730
mov eax, ebx
call fcn.00406ed4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x42f729
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.0040bb08
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x42f713
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x42f758
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x42f713
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 0x42f730
mov eax, dword [ebp - 0x10]
call fcn.00406ef0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42f74d
lea eax, [ebp - 4]
call fcn.0040ae30
ret
Function at 0x42f75c
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 0x42f85c
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040b258
lea eax, [ebp - 4]
call fcn.0040b40c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040bb08
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x42f846
mov eax, ebx
call fcn.00406ed4
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x42f83f
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.0040bb08
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x42f829
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x42f870
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x42f829
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 0x42f846
mov eax, dword [ebp - 0x10]
call fcn.00406ef0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42f863
lea eax, [ebp - 4]
call fcn.0040ae30
ret

Function at 0x430b24
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.0040b34c
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.00410908
mov edi, eax
cmp edi, 0x104
jbe 0x430acf
mov eax, edi
add eax, eax
call fcn.00406ed4
mov esi, eax
jmp 0x430ad1
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.00410908
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x430b0a
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 0x430af4
mov eax, esp
cmp esi, eax
je 0x430b17
mov eax, esi
call fcn.00406ef0
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 0x430b50
cmp bl, 0
je 0x430b4c
cmp bl, 0x41
jl 0x430b47
cmp bl, 0x5a
jg 0x430b47
or bl, 0x20
xor al, bl
inc esi
jmp 0x430b2b
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x430a90

Function at 0x431468
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.0040bbc0
add esp, 0x800
pop ebx
ret
Function at 0x4340a0
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 0x4340c0
sub eax, 4
mov eax, dword [eax]
lea ebx, [edi + esi]
cmp eax, ebx
jg 0x4340da
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x4340d5
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x4340df
add edi, esi
mov dword [ebp - 8], edi
movzx eax, word [ebp + 0x14]
cmp ax, word [ebp + 0x10]
je 0x43414d
xor eax, eax
mov dword [ebp - 0xc], eax
cmp esi, dword [ebp - 8]
jge 0x434196
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x43410b
inc dword [ebp - 0xc]
jmp 0x434123
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x10]
jne 0x434123
cmp dword [ebp - 0xc], 0
jle 0x434123
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
jne 0x434145
xor eax, eax
jmp 0x434141
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x434140
mov eax, esi
jmp 0x434199
inc eax
cmp eax, ecx
jle 0x43412d
inc esi
cmp esi, dword [ebp - 8]
jl 0x4340f7
jmp 0x434196
mov byte [ebp - 0xd], 0
cmp esi, dword [ebp - 8]
jge 0x434196
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x43416e
movzx eax, byte [ebp - 0xd]
xor al, 1
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
jne 0x434190
xor eax, eax
jmp 0x43418c
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x43418b
mov eax, esi
jmp 0x434199
inc eax
cmp eax, ecx
jle 0x434178
inc esi
cmp esi, dword [ebp - 8]
jl 0x434156
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x434408
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 0x434427
sub eax, 4
mov eax, dword [eax]
mov esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x434437
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 0x434559
test ebx, ebx
jl 0x434559
test esi, esi
jle 0x434559
mov eax, dword [ebp - 8]
call fcn.0040bb08
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0040bb08
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 0x4344f6
xor eax, eax
mov dword [ebp - 0x14], eax
test ebx, ebx
jl 0x434559
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x4344db
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x4344aa
inc dword [ebp - 0x14]
jmp 0x4344ba
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp + 0xc]
jne 0x4344ba
dec dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0
jle 0x4344c5
or eax, 0xffffffff
jmp 0x4344db
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x4344d8
inc eax
jmp 0x4344db
or eax, 0xffffffff
test eax, eax
jl 0x4344e3
cmp esi, eax
jg 0x434498
cmp esi, eax
jg 0x4344ee
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x43455c
inc edx
dec dword [ebp - 0x1c]
jne 0x434494
jmp 0x434559
mov byte [ebp - 0x15], 0
test ebx, ebx
jl 0x434559
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x434540
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x43451f
movzx ebx, byte [ebp - 0x15]
xor bl, 1
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x43452a
or eax, 0xffffffff
jmp 0x434540
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x43453d
inc eax
jmp 0x434540
or eax, 0xffffffff
test eax, eax
jl 0x434548
cmp esi, eax
jg 0x434508
cmp esi, eax
jg 0x434553
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x43455c
inc edx
dec dword [ebp - 0x1c]
jne 0x434504
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x481608
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 0x481656
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.00480bfc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x48166f
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x481678
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.00480bfc
dec esi
jne 0x48169a
mov byte [ebx + 0xf], 0
pop esi
pop ebx
ret

Function at 0x484200
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x73504c
cmp dword [edi], 0
jne 0x48427c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc
mov esi, eax
mov eax, dword [0x735048]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x720904
mov ecx, 2
call fcn.00407114
mov edx, 0x4841d8
lea eax, [esi + 5]
call fcn.004841f8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004841f8
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 0x484251
mov dword [0x735048], 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 0x4f8e34
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 0x4f8e3c
mov eax, edx
pop esi
pop ebx
ret

Function at 0x526100
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 0x526165
mov eax, dword [esp]
call fcn.005263c0
test al, al
je 0x526165
mov eax, dword [esp]
call fcn.005261c0
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 0x526148
mov edx, eax
and dx, 0xffdf
mov eax, edx
cmp ax, 0x41
jb 0x526165
cmp ax, 0x5a
ja 0x526165
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