joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47be0c
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47bfb7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x47bf98
mov dl, 1
mov eax, dword [0x41c100]
call fcn.00403a9c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404980
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x47bf87
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00467f84
test al, al
je 0x47bf7a
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x47bfc8
lea eax, [ebp - 0x254]
call fcn.0040a48c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x47bf7a
xor eax, eax
push ebp
push 0x47bf73
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x47c000
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x47bf5c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404bf0
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x47bf5c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404bf0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47bf7a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x47be7d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00420b9c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47bfbe
lea eax, [ebp - 0x260]
call fcn.00404980
ret

Function at 0x47c8ec
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x562bec]
cmp byte [eax + 0xa5], 0
jne 0x47c95d
cmp dword [0x562c04], 0
jne 0x47c91e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x47c8a8
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x562c04], eax
cmp dword [0x562c00], 0
jne 0x47c939
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x562c00], eax
cmp dword [0x562c08], 0
jne 0x47c95d
push esp
push 0
push 0
push 0x47c84c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x562c08], eax
pop edx
ret
Function at 0x47ca9c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x47cab3
add esp, 0xfffffff0
call fcn.00403df0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00425160
mov eax, dword [0x560ee4]
cmp word [eax + 2], 0
jne 0x47cadb
mov eax, dword [0x560ee4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0047e21c
mov eax, dword [0x561094]
cmp word [eax + 2], 0
jne 0x47caf5
mov eax, dword [0x561094]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0047e414
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41ba9c]
call fcn.00403a9c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41ba9c]
call fcn.00403a9c
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x427dec]
call fcn.00430734
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x47cc7c
mov eax, dword [0x560d08]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00430b04
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x47e9c4
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x560d08]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040e458
test eax, eax
je 0x47cbea
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409e6c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040e480
test eax, eax
je 0x47cbfe
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404bf0
mov eax, dword [0x560a2c]
cmp byte [eax], 0
jne 0x47cc32
mov eax, ebx
call fcn.0047cda4
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0047eba0
mov eax, ebx
call fcn.0047f564
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x47cc72
call fcn.00403e48
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47d024
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x562bec]
cmp dword [eax + 0x30], 0
je 0x47d0ce
cmp dword [ebx + 0x94], 0
jne 0x47d0c8
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x47cfb4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x47d0c8
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x47d08e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x47d0c8
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041e360
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x47d09d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x47dc30
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x47dc65
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404a70
jmp 0x47dc72
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004049d4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x47ed7c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x47edbd
mov eax, esi
call fcn.00463508
test al, al
je 0x47edbd
mov eax, dword [ebx + 0x84]
call fcn.00463204
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x47edbd
push 0
mov eax, dword [ebx + 0x84]
call fcn.00463204
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x4a178c
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x41b014]
call fcn.00405460
xor eax, eax
push ebp
push 0x4a18d0
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x55b464], 0
jne 0x4a17df
mov ecx, dword [0x560a6c]
mov dl, 1
mov eax, dword [0x4083b8]
call fcn.0040d688
call fcn.0040431c
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.004032d0
mov eax, ebx
call fcn.00405218
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x4a18e0
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.0040670c
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00405228
test eax, eax
jle 0x4a1877
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x4a1870
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404c08
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404bf0
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00409288
test eax, eax
jne 0x4a1870
mov ebx, 0x15
jmp 0x4a187c
mov ebx, 0x10
jmp 0x4a187c
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x55b464]
call fcn.004a16e4
mov eax, dword [ebp - 8]
call fcn.004a16e4
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00406724
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a18d7
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.004049a4
lea eax, [ebp - 0x10]
mov edx, dword [0x41b014]
call fcn.00405530
ret

Function at 0x4b7a90
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 0x10], 2
jne 0x4b7ab5
cmp dword [esp + 4], 5
jb 0x4b7ab5
mov al, 1
jmp 0x4b7ab7
xor eax, eax
add esp, 0x94
ret
Function at 0x4d7550
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4d757e
mov eax, ebx
call fcn.004d8004
cmp dword [ebx + 0x40], 0
je 0x4d7577
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4d75ef
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4d75e1
cmp dword [ebx + 8], 0
je 0x4d75a0
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4d75b2
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4d75e1
cmp dword [ebx + 8], 0
je 0x4d7593
cmp eax, 3
je 0x4d75c5
dec eax
jne 0x4d7593
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4d7593
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4d7593
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4d760d
cmp dword [ebx + 0x14], 0xcc
je 0x4d760d
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004d7618
pop ebx
ret

Function at 0x4e7bb4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff4
mov ecx, dword [eax]
mov dword [edx], ecx
lea ecx, [eax + 4]
mov ecx, dword [ecx]
mov dword [edx + 4], ecx
lea ecx, [eax + 8]
mov ecx, dword [ecx]
mov dword [edx + 8], ecx
add eax, 0xc
mov eax, dword [eax]
mov dword [edx + 0xc], eax
xor eax, eax
mov dword [esp], 1
mov ecx, dword [edx + eax*4 + 0xc]
mov ebx, ecx
shl ebx, 0x18
shr ecx, 8
or ebx, ecx
mov ecx, ebx
xor ebx, ebx
mov bl, cl
mov ebx, dword [ebx*4 + 0x55cdd0]
mov dword [esp + 4], ebx
mov ebx, ecx
shr ebx, 8
and ebx, 0xff
mov esi, dword [ebx*4 + 0x55cdd0]
mov ebx, ecx
shr ebx, 0x10
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x55cdd0]
mov dword [esp + 8], ebx
shr ecx, 0x18
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x55cdd0]
mov ebx, esi
shl ebx, 8
shr esi, 0x18
or ebx, esi
xor ebx, dword [esp + 4]
mov esi, dword [esp + 8]
shl esi, 0x10
mov edi, dword [esp + 8]
shr edi, 0x10
or esi, edi
xor ebx, esi
mov esi, ecx
shl esi, 0x18
shr ecx, 8
or esi, ecx
xor ebx, esi
xor ebx, dword [edx + eax*4]
mov ecx, dword [esp]
xor ebx, dword [ecx*4 + 0x55c954]
mov dword [edx + eax*4 + 0x10], ebx
inc dword [esp]
mov ecx, dword [edx + eax*4 + 4]
xor ecx, dword [edx + eax*4 + 0x10]
mov dword [edx + eax*4 + 0x14], ecx
mov ebx, dword [edx + eax*4 + 8]
xor ebx, ecx
mov dword [edx + eax*4 + 0x18], ebx
mov ecx, dword [edx + eax*4 + 0xc]
xor ecx, ebx
mov dword [edx + eax*4 + 0x1c], ecx
add eax, 4
cmp eax, 0x28
jl 0x4e7bdf
add esp, 0xc
pop edi
pop esi
pop ebx
ret
Function at 0x4e7cac
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff4
mov ecx, dword [eax]
mov dword [edx], ecx
lea ecx, [eax + 4]
mov ecx, dword [ecx]
mov dword [edx + 4], ecx
lea ecx, [eax + 8]
mov ecx, dword [ecx]
mov dword [edx + 8], ecx
lea ecx, [eax + 0xc]
mov ecx, dword [ecx]
mov dword [edx + 0xc], ecx
lea ecx, [eax + 0x10]
mov ecx, dword [ecx]
mov dword [edx + 0x10], ecx
add eax, 0x14
mov eax, dword [eax]
mov dword [edx + 0x14], eax
xor eax, eax
mov dword [esp], 1
mov ecx, dword [edx + eax*4 + 0x14]
mov ebx, ecx
shl ebx, 0x18
shr ecx, 8
or ebx, ecx
mov ecx, ebx
xor ebx, ebx
mov bl, cl
mov ebx, dword [ebx*4 + 0x55cdd0]
mov dword [esp + 4], ebx
mov ebx, ecx
shr ebx, 8
and ebx, 0xff
mov esi, dword [ebx*4 + 0x55cdd0]
mov ebx, ecx
shr ebx, 0x10
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x55cdd0]
mov dword [esp + 8], ebx
shr ecx, 0x18
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x55cdd0]
mov ebx, esi
shl ebx, 8
shr esi, 0x18
or ebx, esi
xor ebx, dword [esp + 4]
mov esi, dword [esp + 8]
shl esi, 0x10
mov edi, dword [esp + 8]
shr edi, 0x10
or esi, edi
xor ebx, esi
mov esi, ecx
shl esi, 0x18
shr ecx, 8
or esi, ecx
xor ebx, esi
xor ebx, dword [edx + eax*4]
mov ecx, dword [esp]
xor ebx, dword [ecx*4 + 0x55c954]
mov dword [edx + eax*4 + 0x18], ebx
inc dword [esp]
mov ecx, dword [edx + eax*4 + 4]
xor ecx, dword [edx + eax*4 + 0x18]
mov dword [edx + eax*4 + 0x1c], ecx
mov ebx, dword [edx + eax*4 + 8]
xor ebx, ecx
mov dword [edx + eax*4 + 0x20], ebx
mov ecx, dword [edx + eax*4 + 0xc]
xor ecx, ebx
mov dword [edx + eax*4 + 0x24], ecx
mov ebx, dword [edx + eax*4 + 0x10]
xor ebx, ecx
mov dword [edx + eax*4 + 0x28], ebx
mov ecx, dword [edx + eax*4 + 0x14]
xor ecx, ebx
mov dword [edx + eax*4 + 0x2c], ecx
add eax, 6
cmp eax, 0x2e
jl 0x4e7ce7
add esp, 0xc
pop edi
pop esi
pop ebx
ret
Function at 0x4e7dc8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff4
mov ecx, dword [eax]
mov dword [edx], ecx
lea ecx, [eax + 4]
mov ecx, dword [ecx]
mov dword [edx + 4], ecx
lea ecx, [eax + 8]
mov ecx, dword [ecx]
mov dword [edx + 8], ecx
lea ecx, [eax + 0xc]
mov ecx, dword [ecx]
mov dword [edx + 0xc], ecx
lea ecx, [eax + 0x10]
mov ecx, dword [ecx]
mov dword [edx + 0x10], ecx
lea ecx, [eax + 0x14]
mov ecx, dword [ecx]
mov dword [edx + 0x14], ecx
lea ecx, [eax + 0x18]
mov ecx, dword [ecx]
mov dword [edx + 0x18], ecx
add eax, 0x1c
mov eax, dword [eax]
mov dword [edx + 0x1c], eax
xor eax, eax
mov dword [esp], 1
mov ecx, dword [edx + eax*4 + 0x1c]
mov edi, ecx
shl edi, 0x18
shr ecx, 8
or edi, ecx
mov ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x55cdd0]
mov dword [esp + 4], ecx
mov ecx, edi
shr ecx, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x55cdd0]
mov ebx, edi
shr ebx, 0x10
and ebx, 0xff
mov esi, dword [ebx*4 + 0x55cdd0]
mov ebx, edi
shr ebx, 0x18
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x55cdd0]
mov dword [esp + 8], ebx
mov ebx, ecx
shl ebx, 8
shr ecx, 0x18
or ebx, ecx
xor ebx, dword [esp + 4]
mov ecx, esi
shl ecx, 0x10
shr esi, 0x10
or ecx, esi
xor ebx, ecx
mov ecx, dword [esp + 8]
shl ecx, 0x18
mov esi, dword [esp + 8]
shr esi, 8
or ecx, esi
xor ebx, ecx
xor ebx, dword [edx + eax*4]
mov ecx, dword [esp]
xor ebx, dword [ecx*4 + 0x55c954]
mov dword [edx + eax*4 + 0x20], ebx
inc dword [esp]
mov ecx, dword [edx + eax*4 + 4]
xor ecx, dword [edx + eax*4 + 0x20]
mov dword [edx + eax*4 + 0x24], ecx
mov ebx, dword [edx + eax*4 + 8]
xor ebx, ecx
mov dword [edx + eax*4 + 0x28], ebx
mov edi, dword [edx + eax*4 + 0xc]
xor edi, ebx
mov dword [edx + eax*4 + 0x2c], edi
xor ecx, ecx
mov cl, byte [edx + eax*4 + 0x2c]
mov ecx, dword [ecx*4 + 0x55cdd0]
mov dword [esp + 4], ecx
mov ecx, edi
shr ecx, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x55cdd0]
mov ebx, edi
shr ebx, 0x10
and ebx, 0xff
mov esi, dword [ebx*4 + 0x55cdd0]
mov ebx, edi
shr ebx, 0x18
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x55cdd0]
mov dword [esp + 8], ebx
mov ebx, ecx
shl ebx, 8
shr ecx, 0x18
or ebx, ecx
xor ebx, dword [esp + 4]
mov ecx, esi
shl ecx, 0x10
shr esi, 0x10
or ecx, esi
xor ebx, ecx
mov ecx, dword [esp + 8]
shl ecx, 0x18
mov esi, dword [esp + 8]
shr esi, 8
or ecx, esi
xor ebx, ecx
xor ebx, dword [edx + eax*4 + 0x10]
mov dword [edx + eax*4 + 0x30], ebx
mov ecx, dword [edx + eax*4 + 0x14]
xor ecx, dword [edx + eax*4 + 0x30]
mov dword [edx + eax*4 + 0x34], ecx
mov ebx, dword [edx + eax*4 + 0x18]
xor ebx, ecx
mov dword [edx + eax*4 + 0x38], ebx
mov ecx, dword [edx + eax*4 + 0x1c]
xor ecx, ebx
mov dword [edx + eax*4 + 0x3c], ecx
add eax, 8
cmp eax, 0x34
jl 0x4e7e13
add esp, 0xc
pop edi
pop esi
pop ebx
ret
Function at 0x4f1d94
Capabilities:
Get disk information

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 - 0xc], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4f1e50
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.00404980
xor esi, esi
mov bl, 0x63
lea eax, [ebp - 0xc]
mov edx, ebx
call fcn.00404b68
lea eax, [ebp - 0xc]
mov edx, 0x4f1e68
call fcn.00404c48
mov eax, dword [ebp - 0xc]
call fcn.00404e40
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 3
jne 0x4f1deb
inc esi
inc ebx
cmp bl, 0x7b
jne 0x4f1dc0
mov al, 3
call fcn.00409dfc
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
cmp esi, 9
jle 0x4f1e05
xor esi, esi
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
test edx, edx
jge 0x4f1e16
neg eax
adc edx, 0
neg edx
push edx
push eax
mov eax, edi
call fcn.00409780
lea edx, [ebp - 0x10]
mov eax, esi
call fcn.00409694
mov edx, dword [ebp - 0x10]
mov ecx, dword [edi]
mov eax, edi
call fcn.00404c8c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f1e57
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004049a4
ret

Function at 0x4f2290
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff5c
push ebx
xor eax, eax
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x9c], eax
xor eax, eax
push ebp
push 0x4f2404
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x94]
mov edx, 0x94
call fcn.00407d54
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
xor ebx, ebx
cmp dword [ebp - 0x84], 2
jne 0x4f2336
mov eax, dword [ebp - 0x90]
mov edx, eax
sub edx, 3
je 0x4f230b
dec edx
je 0x4f230f
dec edx
je 0x4f2313
dec edx
je 0x4f2324
jmp 0x4f2326
mov bl, 5
jmp 0x4f2326
mov bl, 6
jmp 0x4f2326
cmp dword [ebp - 0x8c], 1
jb 0x4f2320
mov bl, 9
jmp 0x4f2326
mov bl, 7
jmp 0x4f2326
mov bl, 0xa
cmp eax, 6
jbe 0x4f23e6
mov bl, 0xb
jmp 0x4f23e6
cmp dword [ebp - 0x90], 4
jne 0x4f2384
cmp dword [ebp - 0x8c], 0
jne 0x4f2384
mov bl, 1
lea eax, [ebp - 0x9c]
lea edx, [ebp - 0x80]
mov ecx, 0x80
call fcn.00404bf0
mov eax, dword [ebp - 0x9c]
lea edx, [ebp - 0x98]
call fcn.004092f8
mov eax, dword [ebp - 0x98]
mov edx, 0x4f241c
call fcn.00404d8c
jne 0x4f23e6
mov bl, 2
jmp 0x4f23e6
cmp dword [ebp - 0x90], 4
jne 0x4f23d2
cmp dword [ebp - 0x8c], 0xa
jne 0x4f23d2
mov bl, 3
lea eax, [ebp - 0xa4]
lea edx, [ebp - 0x80]
mov ecx, 0x80
call fcn.00404bf0
mov eax, dword [ebp - 0xa4]
lea edx, [ebp - 0xa0]
call fcn.004092f8
mov eax, dword [ebp - 0xa0]
mov edx, 0x4f2428
call fcn.00404d8c
jne 0x4f23e6
mov bl, 4
jmp 0x4f23e6
cmp dword [ebp - 0x90], 4
jne 0x4f23e6
cmp dword [ebp - 0x8c], 0x5a
jne 0x4f23e6
mov bl, 8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f240b
lea eax, [ebp - 0xa4]
mov edx, 4
call fcn.004049a4
ret
Function at 0x4f242c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404e30
xor eax, eax
push ebp
push 0x4f24ba
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404c40
xor esi, esi
mov ebx, eax
test bl, bl
jbe 0x4f249c
mov al, 1
xor edx, edx
mov dl, al
mov ecx, dword [ebp - 4]
mov dl, byte [ecx + edx - 1]
xor ecx, ecx
mov cl, dl
xor esi, ecx
mov ecx, dword [ebp - 8]
and edx, 0xff
shl edx, cl
add esi, edx
mov ecx, dword [ebp - 0xc]
mov edx, esi
shr edx, cl
mov ecx, dword [ebp + 8]
shl esi, cl
and edx, 0xff
xor esi, edx
inc eax
dec bl
jne 0x4f2465
mov ebx, esi
xor ebx, 0x36bb8172
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f24c1
lea eax, [ebp - 4]
call fcn.00404980
ret

Function at 0x4f2984
Capabilities:
Compare security identifiers

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov byte [esp], 0
lea eax, [esp + 4]
push eax
push 0xffffffffffffffff
push 8
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.advapi32.dll_OpenThreadToken
mov ebx, eax
test ebx, ebx
jne 0x4f29c8
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x3f0
jne 0x4f29c8
lea eax, [esp + 4]
push eax
push 8
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
mov ebx, eax
test ebx, ebx
je 0x4f2a5f
mov eax, 0x400
call fcn.00402838
mov esi, eax
lea eax, [esp + 8]
push eax
push 0x400
push esi
push 2
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_GetTokenInformation
mov ebx, eax
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_CloseHandle_1
test ebx, ebx
je 0x4f2a58
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
push 0x55d9d0
call sub.advapi32.dll_AllocateAndInitializeSid
mov ebx, dword [esi]
dec ebx
test ebx, ebx
jl 0x4f2a4e
inc ebx
xor edi, edi
mov eax, dword [esi + edi*8 + 4]
push eax
mov eax, dword [esp + 0x10]
push eax
call sub.advapi32.dll_EqualSid
test eax, eax
je 0x4f2a4a
mov byte [esp], 1
jmp 0x4f2a4e
inc edi
dec ebx
jne 0x4f2a31
mov eax, dword [esp + 0xc]
push eax
call sub.advapi32.dll_FreeSid
mov eax, esi
call fcn.00402858
mov al, byte [esp]
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x4f2bc8
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov byte [ebp - 2], cl
mov byte [ebp - 1], dl
mov ebx, eax
mov eax, 0x40
call fcn.00402838
mov dword [ebp - 8], eax
mov edx, 0x40
mov eax, dword [ebp - 8]
call fcn.00407d54
xor eax, eax
push ebp
push 0x4f2c4d
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebp - 8]
mov byte [esi + 0x30], bl
mov al, byte [ebp + 8]
mov byte [esi + 2], al
mov al, byte [ebp - 1]
mov byte [esi + 0xa], al
mov byte [esi + 0xb], 0
mov al, byte [ebp - 2]
mov byte [esi + 0xc], al
mov byte [esi + 0xd], 0
mov byte [esi], 0x32
mov eax, dword [ebp - 8]
push eax
call sub.netapi32.dll_Netbios
mov al, byte [esi + 0x31]
mov byte [ebp - 3], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f2c54
mov edx, 0x40
mov eax, dword [ebp - 8]
call fcn.00402858
ret

Function at 0x4f6140
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x4f6191
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4f6178
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4f6168
jmp 0x4f6191
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x4f6179
pop ebx
mov esp, ebp
pop ebp
ret