joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46b210
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 0x46b3bb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x46b39c
mov dl, 1
mov eax, dword [0x417604]
call fcn.00403334
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404178
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x46b38b
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.00458e48
test al, al
je 0x46b37e
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, 0x46b3cc
lea eax, [ebp - 0x254]
call fcn.00409794
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x46b37e
xor eax, eax
push ebp
push 0x46b377
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 0x46b404
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x46b360
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004043e8
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 0x46b360
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004043e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46b37e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x46b281
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041bdac
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 0x46b3c2
lea eax, [ebp - 0x260]
call fcn.00404178
ret

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

Disassembly:
push ecx
mov eax, dword [0x4e8bf4]
cmp byte [eax + 0xa5], 0
jne 0x46bd61
cmp dword [0x4e8c0c], 0
jne 0x46bd22
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x46bcac
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4e8c0c], eax
cmp dword [0x4e8c08], 0
jne 0x46bd3d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4e8c08], eax
cmp dword [0x4e8c10], 0
jne 0x46bd61
push esp
push 0
push 0
push 0x46bc50
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4e8c10], eax
pop edx
ret
Function at 0x46be58
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x46be6f
add esp, 0xfffffff0
call fcn.004036c8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004223fc
mov eax, dword [0x4e7138]
cmp word [eax + 2], 0
jne 0x46be97
mov eax, dword [0x4e7138]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046d5d8
mov eax, dword [0x4e7248]
cmp word [eax + 2], 0
jne 0x46beb1
mov eax, dword [0x4e7248]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046d7d0
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x416fa0]
call fcn.00403334
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x416fa0]
call fcn.00403334
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 [0x424a28]
call fcn.0042ca7c
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x46c038
mov eax, dword [0x4e6fec]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042ce4c
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x46dd70
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4e6fec]
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.0040d188
test eax, eax
je 0x46bfa6
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409148
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d1b0
test eax, eax
je 0x46bfba
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.004043e8
mov eax, dword [0x4e6e10]
cmp byte [eax], 0
jne 0x46bfee
mov eax, ebx
call fcn.0046c160
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.0046df4c
mov eax, ebx
call fcn.0046e910
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x46c02e
call fcn.00403720
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46c3e0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4e8bf4]
cmp dword [eax + 0x30], 0
je 0x46c48a
cmp dword [ebx + 0x94], 0
jne 0x46c484
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x46c370
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x46c484
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 0x46c44a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x46c484
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.0041984c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x46c459
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x46cfec
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 0x46d021
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.00404268
jmp 0x46d02e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004041cc
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x46e128
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x46e169
mov eax, esi
call fcn.00454410
test al, al
je 0x46e169
mov eax, dword [ebx + 0x84]
call fcn.0045410c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x46e169
push 0
mov eax, dword [ebx + 0x84]
call fcn.0045410c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x46ee84
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 [0x416540]
call fcn.00404d24
xor eax, eax
push ebp
push 0x46efc8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4e4fd0], 0
jne 0x46eed7
mov ecx, dword [0x4e6e34]
mov dl, 1
mov eax, dword [0x407900]
call fcn.0040c3b8
call fcn.00403b30
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402d5c
mov eax, ebx
call fcn.004049e8
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x46efd8
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.00405dcc
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.004049f8
test eax, eax
jle 0x46ef6f
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 0x46ef68
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404400
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.004043e8
mov eax, dword [ebp - 0x48]
pop edx
call fcn.004087ac
test eax, eax
jne 0x46ef68
mov ebx, 0x15
jmp 0x46ef74
mov ebx, 0x10
jmp 0x46ef74
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 [0x4e4fd0]
call fcn.0046ed80
mov eax, dword [ebp - 8]
call fcn.0046ed80
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00405de4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46efcf
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.0040419c
lea eax, [ebp - 0x10]
mov edx, dword [0x416540]
call fcn.00404df4
ret
Function at 0x4706d4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebx, eax
mov edi, dword [ebx + 0x24]
mov esi, dword [ebx + 0x34]
sub esi, dword [ebx + 0x6c]
sub esi, dword [ebx + 0x64]
test esi, esi
jne 0x4706fe
cmp dword [ebx + 0x64], 0
jne 0x4706fe
cmp dword [ebx + 0x6c], 0
jne 0x4706fe
mov esi, edi
jmp 0x47078c
cmp esi, 0xffffffff
jne 0x470709
dec esi
jmp 0x47078c
mov eax, dword [ebx + 0x64]
lea edx, [edi + edi]
sub edx, 0x106
cmp eax, edx
jb 0x47078c
mov eax, dword [ebx + 0x30]
lea edx, [eax + edi]
mov ebp, edi
mov ecx, ebp
call fcn.0046fd3c
sub dword [ebx + 0x68], edi
sub dword [ebx + 0x64], edi
sub dword [ebx + 0x54], ebp
mov eax, dword [ebx + 0x44]
mov edx, dword [ebx + 0x3c]
lea edx, [edx + eax*2]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp edi, dword [esp]
ja 0x470754
mov cx, word [esp]
sub cx, di
mov word [edx], cx
jmp 0x470759
mov word [edx], 0
dec eax
test eax, eax
jne 0x47073a
mov eax, edi
mov edx, dword [ebx + 0x38]
lea edx, [edx + eax*2]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp edi, dword [esp]
ja 0x470780
mov cx, word [esp]
sub cx, di
mov word [edx], cx
jmp 0x470785
mov word [edx], 0
dec eax
test eax, eax
jne 0x470766
add esi, edi
mov eax, dword [ebx]
cmp dword [eax + 4], 0
je 0x4707ea
mov edx, dword [ebx + 0x64]
add edx, dword [ebx + 0x6c]
mov ecx, dword [ebx + 0x30]
lea edx, [ecx + edx]
mov ecx, esi
call fcn.0047045c
add dword [ebx + 0x6c], eax
cmp dword [ebx + 0x6c], 3
jb 0x4707d5
mov eax, dword [ebx + 0x64]
mov edx, dword [ebx + 0x30]
movzx eax, byte [edx + eax]
mov dword [ebx + 0x40], eax
mov ecx, dword [ebx + 0x50]
shl eax, cl
mov edx, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x30]
movzx edx, byte [ecx + edx + 1]
xor eax, edx
and eax, dword [ebx + 0x4c]
mov dword [ebx + 0x40], eax
cmp dword [ebx + 0x6c], 0x106
jae 0x4707ea
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x4706de
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x478fc8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov bl, byte [0x479000]
push 0x10
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x478fde
or bl, 1
push 0x11
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x478fed
or bl, 4
push 0x12
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x478ffc
or bl, 2
mov eax, ebx
pop ebx
ret

Function at 0x47993c
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [ebx + 4]
mov edx, dword [0x4496cc]
call fcn.004034f0
test al, al
je 0x47997e
mov eax, dword [0x4e721c]
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
test eax, eax
je 0x47997e
mov edx, dword [0x4e721c]
xor edx, edx
call fcn.00466a2c
push 0
mov eax, dword [0x4e721c]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
pop ebx
ret
Function at 0x4ad8d8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
test dl, dl
je 0x4ad8ed
add esp, 0xfffffff0
call fcn.004036c8
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00404628
xor eax, eax
push ebp
push 0x4ad9c8
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.004a8e14
lea ecx, [ebp - 0xc]
xor edx, edx
xor eax, eax
call fcn.004181cc
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x24], eax
lea ecx, [ebp - 0xc]
xor edx, edx
xor eax, eax
call fcn.004181cc
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x38], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x3c], eax
lea ecx, [ebp - 0xc]
xor edx, edx
xor eax, eax
call fcn.004181cc
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x30], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x34], eax
lea ecx, [ebp - 0xc]
xor edx, edx
xor eax, eax
call fcn.004181cc
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x28], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x2c], eax
push 0
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.004181f4
push esi
lea edi, [esi + 0x40]
lea esi, [ebp - 0x1c]
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 esi
mov dword [esi + 0xc], 0xffffffff
mov byte [esi + 0x52], 0
mov byte [esi + 0x53], 0
mov byte [esi + 0x54], 0
mov byte [esi + 0x55], 0
mov byte [esi + 0x50], 0
mov byte [esi + 0x51], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ad9cf
lea eax, [ebp - 4]
call fcn.00404178
ret
Function at 0x4b2c6c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4b2d68
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 4]
push eax
mov ecx, 0x4b2d80
mov edx, dword [ebx + 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi]
mov edx, dword [ebp - 4]
lea eax, [ebx + 8]
call fcn.004041cc
push 0xffffffffffffffff
mov ecx, 0x4b2d90
mov edx, dword [ebx + 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
mov dword [ebx + 0x30], eax
mov ecx, 0x4b2dac
mov edx, dword [ebx + 4]
mov eax, esi
call fcn.004a2248
mov byte [ebx + 0xc], al
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x4b2dc8
mov edx, dword [ebx + 4]
mov eax, esi
call fcn.004a2134
push esi
lea esi, [ebp - 0x14]
lea edi, [ebx + 0xd]
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 esi
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x4b2ddc
mov edx, dword [ebx + 4]
mov eax, esi
call fcn.004a2134
push esi
lea esi, [ebp - 0x14]
lea edi, [ebx + 0x1d]
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 esi
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x4b2df4
mov edx, dword [ebx + 4]
mov eax, esi
call fcn.004a2134
push esi
lea esi, [ebp - 0x14]
lea edi, [ebx + 0x34]
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 esi
mov ecx, 0x4b2e10
mov edx, dword [ebx + 4]
mov eax, esi
call fcn.004a2248
mov byte [ebx + 0x44], al
mov ecx, 0x4b2e24
mov edx, dword [ebx + 4]
mov eax, esi
call fcn.004a8960
mov byte [ebx + 0x45], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b2d6f
lea eax, [ebp - 4]
call fcn.00404178
ret
Function at 0x4bf220
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4bf303
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetLogicalDrives
mov edi, eax
xor esi, esi
mov eax, esi
cmp eax, 0x1f
ja 0x4bf252
bt edi, eax
jae 0x4bf2de
mov ebx, esi
add bl, 0x61
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404360
lea eax, [ebp - 8]
mov edx, 0x4bf31c
call fcn.00404440
mov eax, dword [ebp - 8]
call fcn.00404638
push eax
call sub.kernel32.dll_GetDriveTypeA
mov byte [ebp - 1], al
mov eax, ebx
call fcn.00402af4
mov ebx, eax
mov al, byte [ebp - 1]
add al, 0xfd
sub al, 4
jae 0x4bf2de
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
push eax
lea eax, [ebp - 0x10]
mov edx, ebx
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x10]
lea eax, [ebp - 0x14]
call fcn.00402c40
mov edx, 0x4bf320
lea eax, [ebp - 0x14]
mov cl, 2
call fcn.00402c10
lea edx, [ebp - 0x14]
lea eax, [ebp - 0xc]
call fcn.004043dc
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
xor ecx, ecx
call fcn.004bf4b0
inc esi
cmp esi, 0x1a
jne 0x4bf248
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bf30a
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.0040419c
ret

Function at 0x4c3010
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4c303e
mov eax, ebx
call fcn.004c3ac4
cmp dword [ebx + 0x40], 0
je 0x4c3037
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4c30af
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4c30a1
cmp dword [ebx + 8], 0
je 0x4c3060
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 0x4c3072
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4c30a1
cmp dword [ebx + 8], 0
je 0x4c3053
cmp eax, 3
je 0x4c3085
dec eax
jne 0x4c3053
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 0x4c3053
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4c3053
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4c30cd
cmp dword [ebx + 0x14], 0xcc
je 0x4c30cd
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.004c30d8
pop ebx
ret
Function at 0x4d95f8
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x11c], edx
mov dword [ebp - 0x120], edx
mov dword [ebp - 0x118], edx
mov dword [ebp - 0x114], edx
mov dword [ebp - 0x110], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404628
xor eax, eax
push ebp
push 0x4d9773
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x417604]
call fcn.00403334
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 4]
call fcn.00404638
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4d974d
xor esi, esi
mov eax, 0xff
push eax
lea eax, [ebp - 0x10c]
push eax
push esi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegEnumKeyA
mov ebx, eax
cmp ebx, 0x103
je 0x4d9741
test ebx, ebx
jne 0x4d9739
lea edx, [ebp - 0x110]
lea eax, [ebp - 0x10c]
call fcn.00409324
mov eax, dword [ebp - 0x110]
mov edx, 0x4d978c
call fcn.00404584
je 0x4d9738
lea edx, [ebp - 0x114]
lea eax, [ebp - 0x10c]
call fcn.00409324
mov eax, dword [ebp - 0x114]
mov edx, 0x4d97a0
call fcn.00404584
je 0x4d9738
lea edx, [ebp - 0x118]
lea eax, [ebp - 0x10c]
call fcn.00409324
cmp dword [ebp - 0x118], 0
je 0x4d9738
lea eax, [ebp - 0x120]
lea edx, [ebp - 0x10c]
mov ecx, pe_nt_image_headers32
call fcn.004043e8
mov ecx, dword [ebp - 0x120]
lea eax, [ebp - 0x11c]
mov edx, dword [ebp - 4]
call fcn.00404484
mov edx, dword [ebp - 0x11c]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
test ebx, ebx
je 0x4d9673
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d977a
lea eax, [ebp - 0x120]
mov edx, 5
call fcn.0040419c
lea eax, [ebp - 4]
call fcn.00404178
ret
Function at 0x4d97ac
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x124], edx
mov dword [ebp - 0x128], edx
mov dword [ebp - 0x12c], edx
mov dword [ebp - 0x120], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404628
xor eax, eax
push ebp
push 0x4d995b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x417604]
call fcn.00403334
mov eax, dword [ebp - 4]
call fcn.004d95f8
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x4d9822
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0x14]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d9836
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x4d9935
inc eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x120]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x120]
call fcn.00404638
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4d9935
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, 0xff
push eax
lea eax, [ebp - 0x11c]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegEnumKeyA
mov ebx, eax
cmp ebx, 0x103
je 0x4d991a
test ebx, ebx
jne 0x4d9912
lea ecx, [ebp - 0x128]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
call dword [esi + 0xc]
push dword [ebp - 0x128]
push 0x4d9974
lea eax, [ebp - 0x12c]
lea edx, [ebp - 0x11c]
mov ecx, pe_nt_image_headers32
call fcn.004043e8
push dword [ebp - 0x12c]
lea eax, [ebp - 0x124]
mov edx, 3
call fcn.004044f8
mov edx, dword [ebp - 0x124]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc dword [ebp - 0x14]
test ebx, ebx
je 0x4d9891
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
inc dword [ebp - 0xc]
dec dword [ebp - 0x1c]
jne 0x4d9852
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d9962
lea eax, [ebp - 0x12c]
mov edx, 4
call fcn.0040419c
lea eax, [ebp - 4]
call fcn.00404178
ret