joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46a130
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 0x46a2db
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x46a2bc
mov dl, 1
mov eax, dword [0x4180f4]
call fcn.00404398
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004052a8
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x46a2ab
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.0045c610
test al, al
je 0x46a29e
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, 0x46a2ec
lea eax, [ebp - 0x254]
call fcn.0040b2f0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x46a29e
xor eax, eax
push ebp
push 0x46a297
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 0x46a324
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x46a280
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00405518
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 0x46a280
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00405518
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46a29e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x46a1a1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.0041ca78
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 0x46a2e2
lea eax, [ebp - 0x260]
call fcn.004052a8
ret

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

Disassembly:
push ecx
mov eax, dword [0x5b0cdc]
cmp byte [eax + 0xad], 0
jne 0x46acc5
cmp dword [0x5b0cf8], 0
jne 0x46ac86
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x46ac10
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x5b0cf8], eax
cmp dword [0x5b0cf4], 0
jne 0x46aca1
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x5b0cf4], eax
cmp dword [0x5b0cfc], 0
jne 0x46acc5
push esp
push 0
push 0
push 0x46abb4
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x5b0cfc], eax
pop edx
ret
Function at 0x46ae98
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x46aeaf
add esp, 0xfffffff0
call fcn.004046ec
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004213a4
mov eax, dword [0x5ab500]
cmp word [eax + 2], 0
jne 0x46aed7
mov eax, dword [0x5ab500]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046cab0
mov eax, dword [0x5ab640]
cmp word [eax + 2], 0
jne 0x46aef1
mov eax, dword [0x5ab640]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046ccbc
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x417a88]
call fcn.00404398
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x417a88]
call fcn.00404398
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x417a88]
call fcn.00404398
mov dword [ebx + 0xb0], 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 + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x425f5c]
call fcn.0042dce8
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x46b0a8
mov eax, dword [0x5ab378]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042e0bc
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x46d390
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x5ab378]
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.0040f10c
test eax, eax
je 0x46aff8
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040a8f8
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040f140
test eax, eax
je 0x46b00c
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00405518
mov byte [ebx + 0xd4], 0
push ebx
push 0x46c5c0
call fcn.00422534
mov dword [ebx + 0xc8], eax
mov eax, dword [0x5ab128]
cmp byte [eax], 0
jne 0x46b05d
mov eax, ebx
call fcn.0046b1ec
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.0046d568
mov eax, ebx
call fcn.0046e0cc
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x46b09d
call fcn.00404744
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46b46c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x46b50b
cmp dword [ebx + 0x94], 0
jne 0x46b505
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x46b3f4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x46b505
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 0x46b4cb
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x46b505
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.0041a158
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x46b4da
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x46b724
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x5b0cdc]
cmp dword [eax + 0x30], 0
je 0x46b881
test bl, bl
jne 0x46b7d2
cmp dword [esi + 0x9c], 0
jne 0x46b7c7
mov eax, esi
call fcn.0046df48
push eax
push 0x46b650
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x46b798
mov eax, dword [0x5b0cdc]
call fcn.0046e628
test al, al
je 0x46b798
mov eax, dword [0x5b0d00]
call fcn.0040659c
mov edi, eax
cmp edi, 0
jl 0x46b798
push 0
mov eax, dword [0x5b0d00]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x46b782
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x46b7c7
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0041a158
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x46b7a7
inc dword [esi + 0x9c]
jmp 0x46b881
cmp dword [esi + 0x9c], 0
jle 0x46b881
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x46b881
cmp dword [esi + 0x44], 0
je 0x46b82d
mov eax, dword [0x5b0cdc]
call fcn.0046e628
test al, al
je 0x46b82d
mov eax, dword [0x5b0d00]
call fcn.0040659c
mov edi, eax
cmp edi, 0
jl 0x46b82d
push 5
mov eax, dword [0x5b0d00]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x46b817
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x46b85c
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0041a158
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x46b83c
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x5b0d00
mov ecx, 1
mov edx, dword [0x46b630]
call fcn.00406750
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x46c314
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x46c37e
mov eax, ebx
call fcn.0046e628
test al, al
jne 0x46c37e
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.00405398
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x46c36b
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x46c38b
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004052fc
jmp 0x46c38b
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004052fc
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x46d74c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x46d7ba
mov eax, esi
call fcn.004572ac
test al, al
je 0x46d7ba
mov eax, dword [ebx + 0x84]
call fcn.00456efc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x46d7ba
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x46d7ae
push 0
mov eax, dword [ebx + 0x84]
call fcn.00456efc
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0044ee4c
jmp 0x46d7ba
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.0046d588
pop esi
pop ebx
ret
Function at 0x46ec28
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, dword [0x408318]
call fcn.00405d60
xor eax, eax
push ebp
push 0x46edc9
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4af964], 0
jne 0x46ec83
mov ecx, dword [0x5ab154]
mov dl, 1
mov eax, dword [0x408960]
call fcn.0040e278
call fcn.00404c3c
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x10
call fcn.004039bc
mov eax, ebx
call fcn.00405c10
mov dword [ebp - 0x24], eax
mov esi, 0x46edd8
lea edi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x38]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
call fcn.00406e40
xor eax, eax
mov dword [ebp - 4], eax
mov eax, ebx
call fcn.00405c20
test eax, eax
jle 0x46ed6c
mov dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x46ed58
lea eax, [ebp - 0x4c]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.00405518
mov edi, dword [ebp - 0x4c]
test edi, edi
je 0x46ecfe
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x50]
mov edx, ebx
call fcn.00405530
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x46ed14
sub esi, 4
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x54]
mov edx, ebx
call fcn.00405530
mov eax, dword [ebp - 0x54]
call fcn.00405738
push eax
push edi
lea eax, [ebp - 0x58]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.00405518
mov eax, dword [ebp - 0x58]
call fcn.00405738
push eax
push 1
push 0x400
call sub.kernel32.dll_CompareStringA_1
sub eax, 2
test eax, eax
sete al
jmp 0x46ed5a
xor eax, eax
test al, al
je 0x46ed65
mov ebx, 0x15
jmp 0x46ed71
mov ebx, 0x10
jmp 0x46ed71
mov ebx, 0x15
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x28]
push eax
push ebx
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [0x4af964]
call fcn.0046eaa8
mov eax, dword [ebp - 4]
call fcn.0046eaa8
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.00406e58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46edd0
lea eax, [ebp - 0x58]
mov edx, 4
call fcn.004052cc
lea eax, [ebp - 0xc]
mov edx, dword [0x408318]
call fcn.00405e30
ret
Function at 0x479498
Capabilities:
Check if file exists

Disassembly:
push ebx
push esi
push edi
mov esi, eax
xor ebx, ebx
mov eax, dword [esi + 0x44]
push eax
call sub.kernel32.dll_CloseHandle_1
push 0
push 0
push 0
mov eax, dword [esi + 0x70]
push eax
call sub.kernel32.dll_PostQueuedCompletionStatus
mov eax, dword [esi + 0x70]
push eax
call sub.kernel32.dll_CloseHandle_1
push 0
push 0x42000000
push 3
push 0
push 7
push 0xc0000000
mov eax, dword [esi + 0x68]
call fcn.00405738
push eax
call sub.kernel32.dll_CreateFileA_1
mov edi, eax
mov eax, esi
call fcn.0047948c
mov dword [esi + 0x44], edi
mov eax, esi
call fcn.00479620
call sub.kernel32.dll_GetLastError_1
cmp eax, 2
je 0x479507
call sub.kernel32.dll_GetLastError_1
cmp eax, 3
jne 0x479521
mov eax, esi
call fcn.0047948c
xor eax, eax
mov dword [esi + 0x44], eax
xor eax, eax
mov dword [esi + 0x70], eax
mov eax, esi
call fcn.00479620
jmp 0x479596
push 0
mov eax, dword [esi + 4]
push eax
push 0
mov eax, dword [esi + 0x44]
push eax
call sub.kernel32.dll_CreateIoCompletionPort
mov ebx, eax
mov eax, esi
call fcn.0047948c
mov dword [esi + 0x70], ebx
mov eax, esi
call fcn.00479620
xor eax, eax
mov dword [esi + 0x8c], eax
lea eax, [esi + 0x90]
xor ecx, ecx
mov edx, 0x1000
call fcn.004039bc
push 0
lea eax, [esi + 0x74]
push eax
lea eax, [esi + 0x8c]
push eax
mov eax, dword [esi + 0x88]
push eax
cmp byte [esi + 0x6c], 1
cmc
sbb eax, eax
push eax
push 0x1000
lea eax, [esi + 0x90]
push eax
mov eax, dword [esi + 0x44]
push eax
call sub.kernel32.dll_ReadDirectoryChangesW
cmp eax, 1
sbb ebx, ebx
inc ebx
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x497100
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x49715a
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.004970f0
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.00494d48
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.00494860
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x497161
lea eax, [ebp - 4]
call fcn.004052a8
ret
Function at 0x49fb10
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
xor ecx, ecx
mov edx, 0x40
call fcn.004039bc
ret

Function at 0x49fefc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbe8
push ebx
xor edx, edx
mov dword [ebp - 0x418], edx
mov dword [ebp - 0x414], edx
mov dword [ebp - 0x410], edx
mov dword [ebp - 0x40c], edx
mov dword [ebp - 0x408], edx
mov dword [ebp - 0x3f0], edx
mov dword [ebp - 0x3f4], edx
mov dword [ebp - 0x3f8], eax
xor eax, eax
push ebp
push 0x4a0173
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x3f4]
mov eax, 0x4a0188
call fcn.0049fd64
lea eax, [ebp - 0x3f0]
call fcn.004052a8
lea eax, [ebp - 0x3fc]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 0x3f4]
call fcn.00405738
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4a0134
xor eax, eax
push ebp
push 0x4a012d
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, 0x3e9
mov dword [ebp - 0x404], ebx
mov dword [ebp - 0x400], 7
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x3e9]
push eax
lea eax, [ebp - 0x400]
push eax
push 0
lea edx, [ebp - 0x408]
mov eax, 0x4a01c8
call fcn.0049fd64
mov eax, dword [ebp - 0x408]
call fcn.00405738
push eax
mov eax, dword [ebp - 0x3fc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x49ffff
push ebp
mov eax, 0x4a01f4
call fcn.0049fe54
pop ecx
mov dword [ebp - 0x404], ebx
mov dword [ebp - 0x400], 1
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x3e9]
push eax
lea eax, [ebp - 0x400]
push eax
push 0
lea edx, [ebp - 0x40c]
mov eax, 0x4a0200
call fcn.0049fd64
mov eax, dword [ebp - 0x40c]
call fcn.00405738
push eax
mov eax, dword [ebp - 0x3fc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4a0089
push dword [ebp - 0x3f0]
push 0x4a0228
lea eax, [ebp - 0x410]
lea edx, [ebp - 0x3e9]
mov ecx, 0x3e9
call fcn.00405518
push dword [ebp - 0x410]
lea eax, [ebp - 0x3f0]
mov edx, 3
call fcn.0040563c
mov dword [ebp - 0x404], ebx
mov dword [ebp - 0x400], 1
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x3e9]
push eax
lea eax, [ebp - 0x400]
push eax
push 0
lea edx, [ebp - 0x414]
mov eax, 0x4a0234
call fcn.0049fd64
mov eax, dword [ebp - 0x414]
call fcn.00405738
push eax
mov eax, dword [ebp - 0x3fc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4a0113
push dword [ebp - 0x3f0]
push 0x4a0228
lea eax, [ebp - 0x418]
lea edx, [ebp - 0x3e9]
mov ecx, 0x3e9
call fcn.00405518
push dword [ebp - 0x418]
lea eax, [ebp - 0x3f0]
mov edx, 3
call fcn.0040563c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a0134
mov eax, dword [ebp - 0x3fc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 0x3f8]
mov edx, dword [ebp - 0x3f0]
call fcn.004052fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a017a
lea eax, [ebp - 0x418]
mov edx, 5
call fcn.004052cc
lea eax, [ebp - 0x3f4]
mov edx, 2
call fcn.004052cc
ret
Function at 0x4a50f4
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe28
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x1d4], edx
mov dword [ebp - 0x1d8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405728
xor eax, eax
push ebp
push 0x4a522f
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x4a51ff
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
call fcn.00405738
mov ebx, eax
push ebx
call sub.kernel32.dll_DeleteFileA
mov eax, dword [ebp - 4]
call fcn.0040a46c
test al, al
jne 0x4a516f
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push ebx
call sub.kernel32.dll_CreateFileA_1
push eax
call sub.kernel32.dll_CloseHandle_1
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1d0]
call fcn.00403754
lea eax, [ebp - 0x1d0]
call fcn.004034f0
call fcn.004030e8
push dword [0x5b1d3c]
push 0x4a5248
push dword [0x5b1d40]
push 0x4a5248
push dword [0x5b1d44]
lea eax, [ebp - 0x1d8]
mov edx, 5
call fcn.0040563c
mov eax, dword [ebp - 0x1d8]
lea edx, [ebp - 0x1d4]
call fcn.004aac04
mov edx, dword [ebp - 0x1d4]
lea eax, [ebp - 0x1d0]
call fcn.00405a58
call fcn.00403e10
call fcn.004030e8
lea eax, [ebp - 0x1d0]
call fcn.0040381c
call fcn.004030e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a5209
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a5236
lea eax, [ebp - 0x1d8]
mov edx, 2
call fcn.004052cc
lea eax, [ebp - 4]
call fcn.004052a8
ret
Function at 0x4a6488
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405728
lea edi, [ebp - 0x12c]
xor eax, eax
push ebp
push 0x4a65f0
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, 2
call fcn.004a5594
mov esi, eax
mov dword [edi], 0x128
mov edx, edi
mov eax, esi
call fcn.004a55b4
mov ebx, eax
jmp 0x4a65c2
lea eax, [ebp - 0x138]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.00405518
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.0040a688
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.00409770
mov eax, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 4]
call fcn.00409770
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.004056d0
je 0x4a65a2
lea eax, [ebp - 0x144]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.00405518
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.00409770
mov eax, dword [ebp - 0x140]
push eax
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 4]
call fcn.00409770
mov edx, dword [ebp - 0x148]
pop eax
call fcn.004056d0
jne 0x4a65b7
push 0
mov eax, dword [edi + 8]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov edx, edi
mov eax, esi
call fcn.004a55d4
mov ebx, eax
test ebx, ebx
jne 0x4a6503
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a65f7
lea eax, [ebp - 0x148]
mov edx, 7
call fcn.004052cc
lea eax, [ebp - 4]
call fcn.004052a8
ret
Function at 0x4a699f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 4], eax
test ebx, ebx
je 0x4a69f9
mov eax, ebx
add eax, dword [eax + 0x3c]
mov edi, dword [eax + 0x78]
add edi, ebx
xor esi, esi
jmp 0x4a69f4
mov eax, dword [edi + 0x20]
lea edx, [ebx + eax]
mov eax, dword [edx + esi*4]
add eax, ebx
push dword [ebp + 0xc]
push eax
call sub.kernel32.dll_lstrcmpA
test eax, eax
jne 0x4a69f3
mov edx, dword [edi + 0x24]
lea ecx, [ebx + edx]
mov ax, word [ecx + esi*2]
movzx edx, ax
mov ecx, dword [edi + 0x1c]
lea eax, [ebx + ecx]
mov eax, dword [eax + edx*4]
add eax, ebx
mov dword [ebp - 4], eax
inc esi
cmp esi, dword [edi + 0x18]
jb 0x4a69c0
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x4a797c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ecx, ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405728
xor eax, eax
push ebp
push 0x4a7a56
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov ecx, 0x4a7a6c
mov edx, dword [ebp - 4]
call fcn.004055c0
mov eax, dword [ebp - 8]
call fcn.00405738
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 6
ja case.0x4a79c6.0
jmp dword [eax*4 + 0x4a79cd]
mov eax, ebx
mov edx, 0x4a7a78
call fcn.004052fc
jmp 0x4a7a3b
mov eax, ebx
mov edx, 0x4a7a8c
call fcn.004052fc
jmp 0x4a7a3b
mov eax, ebx
mov edx, 0x4a7a9c
call fcn.004052fc
jmp 0x4a7a3b
mov eax, ebx
mov edx, 0x4a7ab0
call fcn.004052fc
jmp 0x4a7a3b
mov eax, ebx
mov edx, 0x4a7ac0
call fcn.004052fc
jmp 0x4a7a3b
mov eax, ebx
mov edx, 0x4a7ad4
call fcn.004052fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a7a5d
lea eax, [ebp - 8]
mov edx, 2
call fcn.004052cc
ret

Function at 0x4a7c24
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffff54
lea eax, [esp + 4]
push eax
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x4a7cd7
mov dword [esp + 8], 0x94
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x4a7cd7
mov eax, dword [esp + 0x18]
dec eax
je 0x4a7ccb
dec eax
jne 0x4a7cd7
lea eax, [esp + 4]
push eax
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
lea eax, [esp + 0xa0]
push eax
push 0x4a7ce0
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
test eax, eax
je 0x4a7cbd
mov dword [esp + 0xa8], 2
mov dword [esp + 0x9c], 1
push esp
push 0
push 0
lea eax, [esp + 0xa8]
push eax
push 0
mov eax, dword [esp + 0x18]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
push 0xffff
push 2
call sub.user32.dll_ExitWindowsEx
jmp 0x4a7cd7
push 0xffff
push 2
call sub.user32.dll_ExitWindowsEx
add esp, 0xac
ret