joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42239c
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.0042b050
test al, al
je 0x422464
xor edx, edx
mov eax, ebx
call fcn.004241f8
test al, al
je 0x422464
mov eax, ebx
call fcn.00423d44
test al, 0x20
je 0x422464
mov eax, ebx
call fcn.0040a13c
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x422464
test ah, 4
je 0x422464
test al, 0x10
je 0x422403
mov edi, 0x2000000
jmp 0x422405
xor edi, edi
push 0
push edi
push 3
push 0
push 1
push 0x80000000
mov eax, ebx
call fcn.0040a13c
push eax
call sub.KERNEL32.DLL_CreateFileW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x422464
xor eax, eax
push ebp
push 0x42245d
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, esi
mov ecx, edi
mov eax, dword [ebp - 8]
call fcn.0042214c
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422464
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 0x4228cc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x422925
test eax, edx
je 0x422928
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x4228e3
movzx eax, word [eax]
sub eax, ecx
jmp 0x42290a
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 0x42290b
add ecx, 4
js 0x4228fb
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x422908
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x42290a
xor eax, eax
ret
test eax, eax
je 0x422934
test edx, edx
jne 0x4228d4
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x423d44
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 0x423ea8
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x423ce4]
call fcn.0040b5b8
add esp, 4
push 0x104
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x423d14]
call fcn.0040b5b8
add esp, 4
movzx ebx, byte [0x423eb8]
mov dl, 1
mov eax, esi
call fcn.00424290
test al, al
jne 0x423dbe
mov dl, 1
mov eax, esi
call fcn.004241f8
test al, al
je 0x423e48
lea edx, [ebp - 0x1c]
mov eax, esi
call fcn.00424a88
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 4]
call fcn.0042b5ac
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.0040a13c
mov esi, eax
push esi
call sub.KERNEL32.DLL_GetVolumeInformationW
test eax, eax
je 0x423e43
test byte [ebp - 0x14], 1
je 0x423e0e
or bl, 1
test byte [ebp - 0x14], 2
je 0x423e17
or bl, 2
test byte [ebp - 0x14], 0x80
je 0x423e20
or bl, 0x20
push esi
call sub.KERNEL32.DLL_GetDriveTypeW
sub eax, 2
je 0x423e34
dec eax
je 0x423e39
dec eax
je 0x423e3e
dec eax
jne 0x423e69
or bl, 0x10
jmp 0x423e69
or bl, 4
jmp 0x423e69
or bl, 8
jmp 0x423e69
call fcn.0042bdc8
lea edx, [ebp - 0x20]
mov eax, dword [0x68071c]
call fcn.0040d1b0
mov ecx, dword [ebp - 0x20]
mov dl, 1
mov eax, dword [0x41c1d4]
call fcn.00429dd8
call fcn.00408c68
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x423eaf
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.004095cc
lea eax, [ebp - 0xc]
mov edx, dword [0x423d14]
call fcn.0040b6dc
lea eax, [ebp - 8]
mov edx, dword [0x423ce4]
call fcn.0040b6dc
lea eax, [ebp - 4]
call fcn.0040956c
ret

Function at 0x423f14
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 0x423f41
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x4241f8
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.0040a13c
mov edi, eax
push edi
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x424262
test ah, 4
je 0x42425b
test bl, bl
jne 0x424220
mov al, 1
jmp 0x424289
test al, 0x10
je 0x424228
xor eax, eax
jmp 0x424289
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.KERNEL32.DLL_CreateFileW
cmp eax, 0xffffffff
je 0x42424c
push eax
call sub.KERNEL32.DLL_CloseHandle
mov al, 1
jmp 0x424289
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x424289
test al, 0x10
sete al
jmp 0x424289
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x424283
cmp ebx, 3
je 0x424283
cmp ebx, 0x7b
je 0x424283
mov eax, esi
call fcn.004241b8
test al, al
jne 0x424287
xor eax, eax
jmp 0x424289
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x424290
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.0040a13c
mov ebp, eax
push ebp
call sub.KERNEL32.DLL_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x424337
test esi, 0x400
jne 0x4242cc
test esi, 0x10
setne bl
jmp 0x424367
cmp byte [esp], 0
je 0x424300
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.KERNEL32.DLL_CreateFileW
cmp eax, 0xffffffff
je 0x424367
push eax
call sub.KERNEL32.DLL_CloseHandle
test esi, 0x10
setne bl
jmp 0x424367
test esi, 0x10
je 0x42430c
mov bl, 1
jmp 0x424367
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.KERNEL32.DLL_CreateFileW
cmp eax, 0xffffffff
je 0x424333
push eax
call sub.KERNEL32.DLL_CloseHandle
xor ebx, ebx
jmp 0x424367
mov bl, 1
jmp 0x424367
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
je 0x424361
cmp eax, 3
je 0x424361
cmp eax, 0xa1
je 0x424361
cmp eax, 0x7b
je 0x424361
cmp eax, 0x35
je 0x424361
cmp eax, 0x15
je 0x424361
cmp eax, 0x43
jne 0x424365
xor ebx, ebx
jmp 0x424367
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4245c4
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 0x424669
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0040a13c
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
mov edi, eax
test edi, 0x400
setne al
test al, bl
je 0x42464e
or edi, 0xffffffff
lea edx, [ebp - 4]
mov eax, esi
call fcn.0042239c
test al, al
je 0x42464e
mov eax, dword [ebp - 4]
call fcn.00424c70
test al, al
je 0x42463e
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.004249d0
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.0042b5ac
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
call fcn.0040a390
mov eax, dword [ebp - 4]
call fcn.0040a13c
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 0x424670
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004095cc
ret
Function at 0x42467c
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 0x42474f
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00409994
cmp byte [ebp - 9], 0
je 0x42470d
mov eax, ebx
call fcn.0040a13c
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
test ah, 4
je 0x42470d
lea edx, [ebp - 8]
mov eax, ebx
call fcn.0042239c
test al, al
je 0x42470d
mov eax, dword [ebp - 8]
call fcn.00424c70
test al, al
je 0x424702
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.004249d0
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.0042b5ac
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, dword [ebp - 8]
call fcn.0040a390
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00409994
push edi
mov eax, dword [ebp - 4]
call fcn.0040a13c
push eax
call sub.KERNEL32.DLL_SetFileAttributesW
test eax, eax
jne 0x424727
call sub.KERNEL32.DLL_GetLastError
mov esi, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x424756
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004095cc
lea eax, [ebp - 8]
mov edx, 2
call fcn.004095cc
ret

Function at 0x42488c
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.0040a13c
mov ebp, eax
push ebp
call sub.KERNEL32.DLL_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x4248e1
call sub.KERNEL32.DLL_GetLastError
mov edi, eax
push ebp
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4248db
test ah, 4
je 0x4248db
test al, 0x10
je 0x4248db
mov eax, esi
call fcn.0040a13c
push eax
call sub.KERNEL32.DLL_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x4248e1
push edi
call sub.KERNEL32.DLL_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x428ac8
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 0x428b01
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.004096f4
jmp 0x428b0a
mov eax, ebx
mov edx, esi
call fcn.0040994c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x428b14
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 0x428b36
movzx eax, word [esp]
jmp 0x428b38
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x429c88
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 0x429dad
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00429a90
mov esi, eax
mov eax, dword [0x680630]
cmp byte [eax], 0
je 0x429d55
mov eax, dword [0x6802d0]
call fcn.004071a8
call fcn.00406960
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 [0x429c58]
call fcn.0040b5b8
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 0x429dc8
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x429d91
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x680238]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x683c54]
call fcn.0040b7e4
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 0x429db4
lea eax, [ebp - 4]
mov edx, dword [0x429c58]
call fcn.0040b6dc
ret

Function at 0x42b070
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 0x42b146
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00409994
lea eax, [ebp - 4]
call fcn.00409af4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a13c
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x42b130
mov eax, ebx
call fcn.004067ec
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x42b129
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.0040a13c
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x42b113
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x42b158
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x42b113
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 0x42b130
mov eax, dword [ebp - 0x10]
call fcn.00406808
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42b14d
lea eax, [ebp - 4]
call fcn.0040956c
ret
Function at 0x42bc18
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.00409a3c
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040d244
mov edi, eax
cmp edi, 0x104
jbe 0x42bbc3
mov eax, edi
add eax, eax
call fcn.004067ec
mov esi, eax
jmp 0x42bbc5
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040d244
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x42bbfe
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 0x42bbe8
mov eax, esp
cmp esi, eax
je 0x42bc0b
mov eax, esi
call fcn.00406808
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 0x42bc44
cmp bl, 0
je 0x42bc40
cmp bl, 0x41
jl 0x42bc3b
cmp bl, 0x5a
jg 0x42bc3b
or bl, 0x20
xor al, bl
inc esi
jmp 0x42bc1f
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x42bb84

Function at 0x42c4b0
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.0040a1e0
add esp, 0x800
pop ebx
ret
Function at 0x488918
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 0x488920
mov eax, edx
pop esi
pop ebx
ret

Function at 0x4c3a98
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4c3b36
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xd]
je 0x4c3afa
cmp byte [ebx + 0x11], 0
jne 0x4c3afa
cmp byte [ebx + 0x3c], 0
jne 0x4c3afa
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 0x4c3b1b
lea edx, [ebp - 4]
mov eax, dword [0x6805a0]
call fcn.0040d1b0
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x4971e0]
call fcn.00429dd8
call fcn.00408c68
jmp 0x4c3b1b
lea edx, [ebp - 8]
mov eax, dword [0x6805a0]
call fcn.0040d1b0
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x4971e0]
call fcn.00429dd8
call fcn.00408c68
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c3b3d
lea eax, [ebp - 8]
mov edx, 2
call fcn.004095cc
ret

Function at 0x4c44d4
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 0x4c4522
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.004c3918
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c453b
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4c4544
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.004c3918
dec esi
jne 0x4c4566
mov byte [ebx + 0xf], 0
pop esi
pop ebx
ret

Function at 0x4c6d34
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x686444
cmp dword [edi], 0
jne 0x4c6db0
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x686440]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x67a80c
mov ecx, 2
call fcn.004069e8
mov edx, 0x4c6d0c
lea eax, [esi + 5]
call fcn.004c6d2c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004c6d2c
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 0x4c6d85
mov dword [0x686440], 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 0x506244
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 0x5062a9
mov eax, dword [esp]
call fcn.005064f4
test al, al
je 0x5062a9
mov eax, dword [esp]
call fcn.00506304
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 0x50628c
mov edx, eax
and dx, 0xffdf
mov eax, edx
cmp ax, 0x41
jb 0x5062a9
cmp ax, 0x5a
ja 0x5062a9
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

Function at 0x50ac7c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x50add6
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebx + 4], 0
je 0x50adab
mov eax, dword [ebx + 4]
mov dl, 1
call fcn.004241f8
test al, al
je 0x50adab
push 0x20
mov ecx, dword [ebx + 4]
mov dl, 1
mov eax, dword [0x492d54]
call fcn.004b5f08
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x50ada4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx]
mov esi, eax
mov eax, dword [ebp - 0xc]
call fcn.004b3918
sub esi, eax
push esi
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x40451c]
call fcn.0040b5b8
add esp, 4
mov edx, dword [ebp - 4]
mov ecx, esi
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0xc]
lea edx, [ebx + 0xc]
mov eax, dword [ebp - 4]
call fcn.0042f4b8
mov esi, eax
mov dl, 1
mov eax, dword [0x48fec4]
call fcn.004b3874
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x50ad87
push dword fs:[eax]
mov dword fs:[eax], esp
mov edi, dword [ebp - 4]
test edi, edi
je 0x50ad48
sub edi, 4
mov edi, dword [edi]
sub edi, esi
push edi
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebx + 0xc]
mov ecx, esi
mov edx, dword [ebp - 4]
call fcn.00430808
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.0050b074
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50ad8e
mov eax, dword [ebp - 8]
call fcn.004078f0
ret
mov eax, ebx
call fcn.0050aa80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50addd
lea eax, [ebp - 0x10]
call fcn.0040956c
lea eax, [ebp - 4]
mov edx, dword [0x40451c]
call fcn.0040b6dc
ret
Function at 0x50ee50
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x50f00b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00409994
mov eax, dword [ebp - 4]
call fcn.0050e780
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x50eea2
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.0040a548
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.0050fa94
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x50ef81
xor eax, eax
push ebp
push 0x50ef7a
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0050ea20
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.0050f040
test al, al
je 0x50ef58
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.004096f4
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x50ef58
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.0040a13c
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.0050e980
test al, al
je 0x50ef52
mov eax, dword [ebp - 8]
call fcn.0040a13c
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.0040a1a4
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.0050ee50
dec ebx
cmp ebx, 0xffffffff
jne 0x50ef01
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50ef81
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.0050ea20
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey
ret
cmp byte [0x6864a0], 0
je 0x50efc1
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
and eax, 0x300
push eax
mov eax, dword [ebp - 4]
call fcn.0040a13c
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.0050ea0c
push eax
call sub.advapi32.dll_RegDeleteKeyExW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.0050e980
mov ebx, eax
jmp 0x50efe8
mov eax, dword [ebp - 4]
call fcn.0040a13c
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.0050ea0c
push eax
call sub.advapi32.dll_RegDeleteKeyW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.0050e980
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50f012
lea eax, [ebp - 0x3c]
call fcn.0040956c
lea eax, [ebp - 8]
mov edx, 2
call fcn.004095cc
ret