joyce8/EMBER2024-capa huggingface dataset:
Function at 0x462264
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov al, byte [eax]
dec al
je 0x462295
dec al
je 0x4622d6
dec al
je 0x46231a
dec al
je 0x462385
jmp 0x46240f
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x46240f
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
mov dl, byte [ecx + edx]
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x4622a5
jmp 0x46240f
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x46240f
mov esi, 1
mov al, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov dl, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x4622e6
jmp 0x46240f
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x46240f
mov esi, 1
mov al, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x462348
xor ebp, ebp
jmp 0x462359
mov ecx, esi
sub ecx, edx
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x462362
adc eax, 0
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x46232a
jmp 0x46240f
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x46240f
mov esi, 1
mov al, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x4623dd
mov edx, esi
sub edx, dword [ebx + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
mov dl, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
mov cl, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.0045fa24
add al, byte [esp]
and al, 0xff
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x462399
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4664d0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff6c
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
cmp dword [ebp - 0x84], 2
jne 0x466513
cmp dword [ebp - 0x90], 5
ja 0x466517
cmp dword [ebp - 0x90], 5
jne 0x466513
cmp dword [ebp - 0x8c], 1
jae 0x466517
xor eax, eax
jmp 0x466519
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x401fa1
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [fcn.00404594]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push 0x20
push 2
push eax
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x401fed
xor al, al
jmp 0x402014
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x402002
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
xor eax, eax
cmp dword [ebp - 0x10], 1
sete al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00404594
leave
ret 4

Function at 0x402023
Capabilities:
Create process on windows
Query environment variable
Self delete

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [fcn.00404594]
xor eax, ebp
mov dword [ebp + 0x190], eax
push ebx
push esi
push 0x104
lea eax, [ebp - 0x78]
push eax
push str.ComSpec
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x402107
lea ecx, [ebp - 0x80]
call fcn.0040102d
push ecx
push ecx
mov ecx, esp
push str._c_del__
call fcn.0040140d
lea ecx, [ebp - 0x80]
call fcn.004014d9
push ecx
push ecx
lea eax, [ebp + 0x19c]
mov ecx, esp
push eax
call fcn.00401037
lea ecx, [ebp - 0x80]
call fcn.004014d9
push ecx
push ecx
mov ecx, esp
push str._____NUL
call fcn.0040140d
lea ecx, [ebp - 0x80]
call fcn.004014d9
xor eax, eax
mov esi, str.runas
cmp byte [ebp + 0x1a4], al
jne 0x4020bc
mov esi, str.open
push eax
push eax
lea ecx, [ebp - 0x80]
call fcn.00401062
push eax
lea eax, [ebp - 0x78]
push eax
push esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x80]
call fcn.00401471
mov bl, 1
lea ecx, [ebp + 0x19c]
call fcn.00401471
mov ecx, dword [ebp + 0x190]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00404594
add ebp, 0x194
leave
ret
xor bl, bl
jmp 0x4020e3
Function at 0x40268f
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp byte [ebp + 8], 0
push ebx
push esi
push edi
mov esi, ecx
jne 0x402746
mov eax, dword [esi + 0xbc]
mov edi, dword [eax]
push ecx
push ecx
lea eax, [ebp + 0x14]
mov ecx, esp
push eax
call fcn.00401037
push dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov ecx, dword [esi + 0xbc]
push ebx
call dword [edi + 0x14]
cmp ebx, 2
jl 0x4026f6
push ecx
push ecx
lea eax, [ebp + 0x14]
mov ecx, esp
push eax
call fcn.00401037
push dword [ebp + 0x10]
mov ecx, esi
push ebx
call fcn.00401d80
cmp ebx, 2
jne 0x4026f6
cmp byte [esi + 0x1bc], 0
jne 0x402746
push 3
pop ebx
cmp ebx, 3
jne 0x402746
lea eax, [esi + 0x17c]
push eax
lea ecx, [ebp - 8]
call fcn.00401037
mov eax, dword [esi + 0xbc]
mov edi, dword [eax]
push ecx
push ecx
mov ecx, esp
push str.FlashInstall.log
call fcn.0040140d
push 0x5c
lea ecx, [ebp - 8]
call fcn.00401510
push ecx
push ecx
mov ecx, esp
push eax
call fcn.00401037
mov ecx, dword [esi + 0xbc]
call dword [edi + 0x1c]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea ecx, [ebp + 0x14]
call fcn.00401471
cmp byte [ebp + 8], 0
pop edi
pop esi
sete al
pop ebx
leave
ret 0x14

Function at 0x402826
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xa4
mov eax, dword [fcn.00404594]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
push edi
lea eax, [ebp - 0x20]
push eax
mov edi, ecx
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4028bd
cmp dword [ebp - 0x1c], 6
jae 0x402897
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x4028bd
mov dword [ebp - 0x2c], 0x220
mov dword [ebp - 0x28], 0x223
mov dword [ebp - 0x24], 0x225
xor esi, esi
push dword [ebp + esi*4 - 0x2c]
mov ecx, edi
call fcn.00401fa1
test al, al
jne 0x4028bd
inc esi
cmp esi, 3
jl 0x40287d
xor eax, eax
inc eax
jmp 0x4028bf
mov ecx, edi
call fcn.0040210b
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x14]
test al, al
jne 0x4028bd
mov ecx, edi
call fcn.0040277b
cmp eax, 0x3000
jae 0x4028bd
push 2
pop eax
jmp 0x4028bf
xor eax, eax
mov ecx, dword [ebp + 0x74]
pop edi
xor ecx, ebp
pop esi
call fcn.00404594
add ebp, 0x78
leave
ret
Function at 0x404b28
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 8]
push 0xffffffffffffffff
mov ecx, edi
call fcn.004045f4
test byte [esi + 4], 0x19
mov ecx, edi
setne byte [ebp - 1]
call fcn.004045e5
xor ebx, ebx
cmp byte [ebp - 1], bl
jne 0x404b64
lea ecx, [ebp + 8]
call fcn.00401471
xor al, al
pop edi
pop esi
pop ebx
leave
ret 8
cmp dword [esi], ebx
jne 0x404bae
push 0x20
call fcn.0040450f
mov edi, eax
pop ecx
cmp edi, ebx
je 0x404b81
mov ecx, edi
call fcn.00406a68
mov ecx, edi
jmp 0x404b83
xor ecx, ecx
mov dword [esi], ecx
call fcn.004049e6
test al, al
jne 0x404bae
mov esi, dword [esi]
cmp esi, ebx
je 0x404ba2
mov ecx, esi
call fcn.00406a6e
push esi
call fcn.00404523
pop ecx
lea ecx, [ebp + 8]
call fcn.00401471
mov al, bl
jmp 0x404b5d
push ecx
push ecx
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00401037
lea ecx, [esi + 0x10]
call fcn.00401479
push ebx
push ebx
push esi
push 0x404725
push ebx
push ebx
mov dword [esi + 4], 4
mov dword [esi + 0x34], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [esi + 0xc], eax
setne bl
jmp 0x404ba2

Function at 0x40565f
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
lea ecx, [ebp + 8]
mov byte [ebp - 1], 0
call fcn.00401062
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
jne 0x4056a4
xor bl, bl
lea ecx, [ebp + 8]
call fcn.00401471
pop esi
mov al, bl
pop ebx
leave
ret
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, esi
je 0x405706
push edi
call fcn.0040450f
mov ebx, eax
pop ecx
cmp ebx, esi
je 0x4056ef
test edi, edi
jbe 0x4056eb
and dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4056eb
add esi, dword [ebp - 8]
cmp esi, edi
jb 0x4056c4
cmp esi, edi
je 0x4056f8
push ebx
call fcn.00404523
pop ecx
jmp 0x405706
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
mov byte [ebp - 1], 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, byte [ebp - 1]
pop edi
jmp 0x405696

Function at 0x405715
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
jne 0x405723
xor al, al
leave
ret
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
test edi, edi
jbe 0x405757
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
mov eax, edi
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x405757
add esi, dword [ebp - 4]
cmp esi, edi
jb 0x40572e
xor eax, eax
cmp esi, edi
pop edi
sete al
pop esi
leave
ret
Function at 0x405779
Capabilities:
Get common file path

Disassembly:
push esi
push edi
mov edi, 0x208
push edi
call fcn.0040450f
push edi
mov esi, eax
call fcn.0040450f
pop ecx
pop ecx
push esi
push 0x104
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov ecx, dword [esp + 0xc]
push edi
call fcn.0040140d
push edi
call fcn.00404523
push esi
call fcn.00404523
mov eax, dword [esp + 0x14]
pop ecx
pop ecx
pop edi
pop esi
ret 4
Function at 0x406ced
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [fcn.00404594]
xor eax, ebp
mov dword [ebp + 0x190], eax
mov eax, dword [0x40e0fc]
push esi
mov esi, dword [ebp + 0x19c]
mov dword [ebp - 0x7c], esi
test eax, eax
je 0x406d2a
push eax
mov ecx, esi
call fcn.00401037
mov eax, esi
jmp 0x406dbe
and dword [ebp - 0x80], 0
push edi
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x406d63
push ebx
push str.IsWow64Process
push edi
call esi
mov ebx, eax
test ebx, ebx
je 0x406d62
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebx
pop ebx
cmp dword [ebp - 0x80], 0
je 0x406d99
push str.GetSystemWow64DirectoryW
push edi
call esi
test eax, eax
je 0x406d99
push 0x104
lea ecx, [ebp - 0x78]
push ecx
call eax
push 8
call fcn.0040450f
pop ecx
test eax, eax
je 0x406daa
lea ecx, [ebp - 0x78]
push ecx
mov ecx, eax
call fcn.0040140d
jmp 0x406dac
push 0x104
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x406d80
xor eax, eax
mov ecx, dword [ebp - 0x7c]
push eax
mov dword [0x40e0fc], eax
call fcn.00401037
mov eax, dword [ebp - 0x7c]
pop edi
mov ecx, dword [ebp + 0x190]
xor ecx, ebp
pop esi
call fcn.00404594
add ebp, 0x194
leave
ret

Function at 0x407815
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov esi, ecx
push dword [esi + 0x50]
mov byte [ebp - 1], 0
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, dword [ebp + 8]
push 0x40d000
push dword [ebp + 0xc]
mov dword [edi], eax
mov eax, dword [esi + 0x48]
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp + 8], eax
test eax, eax
je 0x4078e6
push ebx
push eax
mov eax, dword [esi + 0x48]
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push dword [ebp + 8]
mov ebx, eax
mov eax, dword [esi + 0x48]
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0xc], eax
xor eax, eax
cmp ebx, eax
je 0x4078e5
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
push dword [ebp - 0xc]
push ebx
call fcn.00407650
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
push 0x20
push esi
push dword [ebp + 8]
push dword [edi]
call fcn.004071e1
add esp, 0x24
mov dword [ebp + 0xc], eax
test eax, eax
je 0x4078e5
imul esi, dword [ebp + 8]
push esi
push dword [ebp - 8]
push dword [ebp - 0xc]
push ebx
call fcn.0040767b
add esp, 0x10
test al, al
je 0x4078e5
push dword [ebp + 0xc]
push dword [edi]
call dword [sym.imp.GDI32.dll_SelectObject]
mov byte [ebp - 1], 1
pop ebx
mov al, byte [ebp - 1]
pop edi
pop esi
leave
ret 8
Function at 0x405060
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x508578]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, 0x17c
push edi
xor esi, esi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00493620
mov eax, dword [0x50a280]
add esp, 0xc
push esi
lea edx, [ebp - 0x20c]
push edx
mov dword [ebp - 0x20c], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
test eax, eax
je 0x4050b1
xor eax, eax
jmp 0x40516b
push 0x7c
pop edi
push edi
lea eax, [ebp - 0x90]
push esi
push eax
call fcn.00493620
mov dword [ebp - 0x90], edi
xor edi, edi
add esp, 0xc
inc edi
cmp dword [0x56f598], esi
je 0x4051d6
mov eax, dword [0x509db0]
cmp eax, edi
jle 0x405179
dec eax
push str.Creating_multiple_backbuffer_primary_n_r
mov dword [ebp - 0x8c], 0x21
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x28], 0x218
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x50a280]
mov ecx, dword [eax]
push esi
push 0x50a284
lea edx, [ebp - 0x90]
push edx
push eax
call dword [ecx + 0x18]
test eax, eax
jne 0x4050aa
push 0x10
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.00493620
mov eax, dword [0x50a284]
add esp, 0xc
push 0x50a288
lea edx, [ebp - 0x14]
push edx
mov dword [ebp - 0x14], 4
mov ecx, dword [eax]
push eax
call dword [ecx + 0x30]
test eax, eax
jne 0x4050aa
push dword [0x56f54c]
call fcn.004013b6
pop ecx
test eax, eax
je 0x4050aa
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00493576
leave
ret
jne 0x4051d6
push str.Creating_no_backbuffer_primary_n_r
mov dword [ebp - 0x8c], edi
mov dword [ebp - 0x28], 0x200
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x50a280]
mov ecx, dword [eax]
push esi
push 0x50a284
lea edx, [ebp - 0x90]
push edx
push eax
call dword [ecx + 0x18]
test eax, eax
jne 0x4050aa
push edi
push dword [0x56f4cc]
push dword [0x56f4c8]
call fcn.004011f9
add esp, 0xc
mov dword [0x50a288], eax
cmp eax, esi
jne 0x405155
jmp 0x4050aa
mov eax, dword [0x50a280]
push esi
push 0x50a284
lea edx, [ebp - 0x90]
push edx
mov dword [ebp - 0x8c], edi
mov dword [ebp - 0x28], 0x200
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
test eax, eax
jne 0x4050aa
push esi
jmp 0x4051b4
Function at 0x417672
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x508578]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
mov edi, ecx
push str..FPA
mov dword [ebp - 0x24], eax
lea eax, [edi + 4]
push eax
push dword [edi]
mov esi, 0x553068
push str._s_s_s
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
push 0
push esi
call fcn.00401677
add esp, 0x1c
mov dword [ebp - 0x18], eax
test eax, eax
je 0x41778d
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0x10
lea ecx, [ebp - 0x14]
push ecx
push eax
call ebx
test eax, eax
je 0x417765
cmp dword [ebp - 0x1c], 0x10
jne 0x417765
cmp dword [ebp - 0x14], 2
jne 0x417765
mov esi, dword [ebp - 0xc]
sub esi, dword [ebp - 0x10]
push 0
push 0
push dword [ebp - 0x10]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 0xc]
push esi
push 0x40
mov dword [edi + 0x24], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x41771e
xor esi, esi
inc esi
jmp 0x41776b
push 0
lea eax, [ebp - 0x1c]
push eax
push esi
push edi
push dword [ebp - 0x18]
call ebx
test eax, eax
je 0x417768
cmp dword [ebp - 0x1c], esi
jne 0x417768
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.00401b27
mov ebx, eax
pop ecx
test ebx, ebx
je 0x41775c
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
mov edi, ebx
call dword [sym.imp.KERNEL32.dll_LocalSize]
mov esi, eax
mov eax, dword [ebp - 0x20]
mov dword [eax], esi
mov eax, edi
jmp 0x41778c
mov edi, dword [ebp - 0x24]
push 2
pop esi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x41777f
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x24]
mov dword [eax], esi
mov eax, dword [ebp - 0x20]
and dword [eax], 0
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00493576
leave
ret
Function at 0x42a131
Capabilities:
Encode data using xor

Disassembly:
push 0x7f
xor al, al
pop edx
xor al, byte [ecx]
inc ecx
dec edx
jne 0x42a136
cmp byte [ecx], al
sete dl
mov eax, edx
ret

Function at 0x42a148
Capabilities:
Encode data using xor

Disassembly:
push 0x7f
xor al, al
pop edx
xor al, byte [ecx]
inc ecx
dec edx
jne 0x42a14d
mov byte [ecx], al
ret

Function at 0x42a357
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x508578]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10c]
push edi
push eax
call fcn.00493d10
lea eax, [ebp - 0x10c]
push 0x3a
push eax
call fcn.004940d0
add esp, 0x10
test eax, eax
jne 0x42a394
or eax, 0xffffffff
jmp 0x42a440
mov word [eax + 1], 0x5c
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [ebp - 0x120], eax
test eax, eax
js 0x42a3b6
cmp eax, 1
jle 0x42a38c
and dword [ebp - 0x118], 0
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x124], eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x42a38c
mov ecx, dword [ebp - 0x114]
imul ecx, dword [ebp - 0x110]
mov eax, dword [ebp + 8]
lea eax, [ecx + eax - 1]
xor edx, edx
div ecx
push esi
push 0
push edi
mov dword [ebp - 0x11c], ecx
mov esi, eax
call fcn.0040100f
pop ecx
pop ecx
test eax, eax
jle 0x42a435
mov ecx, dword [ebp - 0x11c]
xor edx, edx
lea eax, [eax + ecx - 1]
div ecx
sub esi, eax
cmp dword [ebp - 0x118], esi
pop esi
sbb eax, eax
neg eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493576
leave
ret

Function at 0x42acf1
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x508578]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push eax
lea eax, [ebp - 0x108]
push eax
mov dword [ebp - 0x110], ecx
mov dword [ebp - 0x114], 1
call fcn.00493d10
and dword [ebp - 0x10c], 0
pop ecx
pop ecx
mov esi, 0x56f800
push esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x42ad97
push edi
mov edi, 0x140
cmp dword [ebp - 0x114], 0
je 0x42ad96
cmp dword [ebp - 0x10c], 0x1e
jge 0x42ad96
test byte [0x56f800], 0x10
jne 0x42ad86
push edi
push esi
push dword [ebp - 0x110]
call fcn.004936a0
add esp, 0xc
inc dword [ebp - 0x10c]
add dword [ebp - 0x110], edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov dword [ebp - 0x114], eax
jmp 0x42ad4f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10c]
pop esi
xor ecx, ebp
mov dword [0x56f618], eax
pop ebx
call fcn.00493576
leave
ret