joyce8/EMBER2024-capa huggingface dataset:
Function at 0x483450
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbe4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x41c], ecx
mov dword [ebp - 0x418], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00405e74
xor eax, eax
push ebp
push 0x4836cb
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0x414]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x94]
call fcn.00405f10
mov edi, dword [ebp - 0x414]
push 0
push 0x4836dc
push 0
push edi
call sub.user32.dll_FindWindowExA
mov edi, eax
push 0
push 0x4836e4
push 0
push edi
call sub.user32.dll_FindWindowExA
mov edi, eax
test edi, edi
je 0x483698
mov eax, dword [0x487594]
mov eax, dword [eax]
sub eax, 6
je 0x4834e9
dec eax
je 0x48351e
jmp 0x483698
push 0
push 0x4836f4
push 0
push edi
call sub.user32.dll_FindWindowExA
mov edi, eax
push 0
push 0x483704
push 0
push edi
call sub.user32.dll_FindWindowExA
mov edi, eax
push 0
push 0x483710
push 0
push edi
call sub.user32.dll_FindWindowExA
mov edi, eax
jmp 0x48358b
push 0
push 0x483718
push 0
push edi
call sub.user32.dll_FindWindowExA
mov edi, eax
push 0
push 0x4836f4
push 0
push edi
call sub.user32.dll_FindWindowExA
mov edi, eax
push 0
push 0x483704
push 0
push edi
call sub.user32.dll_FindWindowExA
mov edi, eax
push 0
push 0x483710
push 0
push edi
call sub.user32.dll_FindWindowExA
mov edi, eax
jmp 0x48358b
push 0x400
lea eax, [ebp - 0x40d]
push eax
push edi
call sub.user32.dll_GetWindowTextA
lea edx, [ebp - 0x418]
lea eax, [ebp - 0x40d]
call fcn.004095dc
mov eax, dword [ebp - 0x418]
lea edx, [ebp - 8]
call fcn.00408544
mov eax, dword [0x487594]
cmp dword [eax], 6
jne 0x483627
cmp dword [esi + 0x98], 0
je 0x4835e1
mov eax, 0x48733c
mov edx, dword [esi + 0x98]
call fcn.0040435c
jmp 0x4835f1
mov eax, 0x48733c
mov edx, dword [esi + 0x9c]
call fcn.0040435c
call fcn.00406624
cmp dword [eax + 0x10], 0
jne 0x483698
test edi, edi
jbe 0x483698
push 0x4832a0
push 0xfffffffffffffffc
push edi
call sub.user32.dll_SetWindowLongA
mov esi, eax
call fcn.00406624
mov dword [eax + 0x10], esi
jmp 0x483698
test edi, edi
je 0x483698
lea ecx, [ebp - 0xd]
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 8]
call 0x479094
test al, al
je 0x483698
cmp dword [esi + 0x9c], 0
je 0x483698
cmp dword [ebp - 0xc], 0
je 0x483698
mov dl, byte [ebp - 0xd]
mov eax, dword [ebp - 0xc]
call 0x47937c
test al, al
je 0x483698
mov al, byte [0x48372c]
push eax
lea eax, [ebp - 0x41c]
push eax
mov ecx, dword [esi + 0x9c]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.0040db18
mov edx, dword [ebp - 0x41c]
lea eax, [ebp - 8]
call fcn.004043a0
mov eax, dword [ebp - 8]
call fcn.004047c8
push eax
push edi
call sub.user32.dll_SetWindowTextA
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4836d2
lea eax, [ebp - 0x41c]
mov edx, 2
call fcn.0040432c
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.0040432c
lea eax, [ebp - 4]
call fcn.00405e00
ret
Function at 0x48455c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
xor edx, edx
mov dword [ebp - 0x104], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4845cf
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xff
lea eax, [ebp - 0xff]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov edx, ebx
lea eax, [ebp - 0xff]
call fcn.004095dc
lea edx, [ebp - 0x104]
mov eax, dword [ebx]
call fcn.0046af8c
mov edx, dword [ebp - 0x104]
mov eax, ebx
call fcn.0040435c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4845d6
lea eax, [ebp - 0x104]
call fcn.00404308
ret
Function at 0x4010a4
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x4010b6
mov eax, dword [0x44f08b]
shl eax, 2
mov dword [0x44f08f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.004413b0
pop edx
call fcn.0044074c
call fcn.004413b4
push 0
call fcn.00442384
pop ecx
push 0x44f034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x44f093], eax
push 0
jmp fcn.0044bccc

Function at 0x4011f4
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
call sub.KERNEL32.DLL_GetTickCount
mov dword [ebp - 4], eax
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00418afc
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jge 0x40121f
xor eax, eax
jmp 0x401252
cmp dword [ebp - 8], 0
jg 0x401238
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [ebp - 4]
cmp eax, 0x3e8
jbe 0x401202
xor eax, eax
jmp 0x401252
mov edx, dword [ebp + 0xc]
xor ecx, ecx
mov cl, byte [edx]
push ecx
push 0x453955
call fcn.0040391c
add esp, 8
mov eax, 1
pop ecx
pop ecx
pop ebp
ret

Function at 0x401256
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
call sub.KERNEL32.DLL_GetTickCount
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x401299
lea edx, [ebp - 9]
push edx
push dword [ebp + 8]
call fcn.004011f4
add esp, 8
test eax, eax
je 0x401299
cmp byte [ebp - 9], 0xd
je 0x4012b1
cmp byte [ebp - 9], 0x20
jb 0x401299
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 8]
mov dl, byte [ebp - 9]
mov byte [ecx + eax], dl
inc dword [ebp - 8]
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [ebp - 4]
cmp eax, 0x7d0
jae 0x4012b1
mov ecx, dword [ebp + 0x10]
dec ecx
cmp ecx, dword [ebp - 8]
jg 0x40126b
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 8]
mov byte [eax + edx], 0
call sub.KERNEL32.DLL_GetTickCount
mov dword [ebp - 4], eax
jmp 0x4012d8
lea ecx, [ebp - 9]
push ecx
push dword [ebp + 8]
call fcn.004011f4
add esp, 8
test eax, eax
je 0x4012e7
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [ebp - 4]
cmp eax, 0xc8
jb 0x4012c5
mov esp, ebp
pop ebp
ret
Function at 0x40131c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
cmp dword [ebp + 0x10], 0
je 0x40133f
call sub.KERNEL32.DLL_GetTickCount
mov dword [ebp - 0x10], eax
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [ebp - 0x10]
cmp eax, 0x1f4
jb 0x401330
push 0x453967
call fcn.0040391c
pop ecx
mov byte [ebp - 1], 0
jmp 0x40137f
mov eax, dword [ebp + 0xc]
mov dl, byte [eax]
add byte [ebp - 1], dl
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00418ca0
add esp, 0xc
mov ecx, dword [ebp + 0xc]
movsx eax, byte [ecx]
push eax
push 0x45396b
call fcn.0040391c
add esp, 8
inc dword [ebp + 0xc]
mov edx, dword [ebp + 0xc]
cmp byte [edx], 0
jne 0x401350
add byte [ebp - 1], 0x24
push 1
push 0x45396f
push dword [ebp + 8]
call fcn.00418ca0
add esp, 0xc
xor ecx, ecx
mov cl, byte [ebp - 1]
push ecx
push str._02X_r
lea eax, [ebp - 0xc]
push eax
call fcn.00444f70
add esp, 0xc
push 3
lea edx, [ebp - 0xc]
push edx
push dword [ebp + 8]
call fcn.00418ca0
add esp, 0xc
lea ecx, [ebp - 0xc]
push ecx
push str.___s_n
call fcn.0040391c
add esp, 8
mov esp, ebp
pop ebp
ret
Function at 0x4016bc
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
mov byte [0x464a18], 0
cmp dword [ebp + 8], 0
jl 0x4016d8
cmp dword [ebp + 8], 0x100
jl 0x4016df
xor eax, eax
jmp 0x40189a
push 0x4538e3
lea edx, [ebp - 0x20]
push edx
call fcn.004415c8
add esp, 8
mov ecx, dword [ebp + 8]
inc ecx
push ecx
push 0x4538e8
lea eax, [ebp - 0x20]
push eax
call fcn.004415f8
pop ecx
lea edx, [ebp - 0x20]
add eax, edx
push eax
call fcn.00444f70
add esp, 0xc
lea ecx, [ebp - 0x20]
push ecx
call fcn.00418944
pop ecx
mov dword [ebp - 4], eax
test eax, eax
jne 0x40172a
xor eax, eax
jmp 0x40189a
lea edx, [ebp - 0x3c]
push edx
mov ecx, dword [ebp - 4]
push dword [ecx]
call sub.KERNEL32.DLL_GetCommState
mov dword [ebp - 0x38], 0x2580
mov byte [ebp - 0x2a], 8
mov byte [ebp - 0x29], 0
and byte [ebp - 0x34], 0xfd
mov byte [ebp - 0x28], 0
and byte [ebp - 0x33], 0xfd
and byte [ebp - 0x33], 0xfe
mov word [ebp - 0x2e], 0xc8
mov word [ebp - 0x2c], 0xc8
mov byte [ebp - 0x27], 0
mov byte [ebp - 0x26], 0
or byte [ebp - 0x34], 1
and byte [ebp - 0x33], 0xf7
lea eax, [ebp - 0x3c]
push eax
mov edx, dword [ebp - 4]
push dword [edx]
call sub.KERNEL32.DLL_SetCommState
push 0xf
mov ecx, dword [ebp - 4]
push dword [ecx]
call sub.KERNEL32.DLL_PurgeComm
xor eax, eax
mov dword [ebp - 0xc], eax
push 1
push 0x4538ee
push dword [ebp - 4]
call fcn.0040131c
add esp, 0xc
push 0xfb
push 0x464a18
push dword [ebp - 4]
call fcn.00401256
add esp, 0xc
push 0x4538f4
push 0x464a18
call fcn.00441709
add esp, 8
test eax, eax
jne 0x4017e3
push 0xc8
call fcn.00404bf0
pop ecx
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 2
jl 0x401792
push 1
push 0x453901
push dword [ebp - 4]
call fcn.0040131c
add esp, 0xc
push 1
push 0x45390c
push dword [ebp - 4]
call fcn.0040131c
add esp, 0xc
push 1
push 0x453918
push dword [ebp - 4]
call fcn.0040131c
add esp, 0xc
push 1
push 0x453924
push dword [ebp - 4]
call fcn.0040131c
add esp, 0xc
push 1
push 0x453930
push dword [ebp - 4]
call fcn.0040131c
add esp, 0xc
push 1
push 0x45393c
push dword [ebp - 4]
call fcn.0040131c
add esp, 0xc
push 1
push 0x453949
push dword [ebp - 4]
call fcn.0040131c
add esp, 0xc
call sub.KERNEL32.DLL_GetTickCount
mov dword [ebp - 8], eax
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [ebp - 8]
cmp eax, 0x64
jb 0x401869
mov dword [ebp - 0x38], 0x7080
lea edx, [ebp - 0x3c]
push edx
mov ecx, dword [ebp - 4]
push dword [ecx]
call sub.KERNEL32.DLL_SetCommState
push 0xf
mov eax, dword [ebp - 4]
push dword [eax]
call sub.KERNEL32.DLL_PurgeComm
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4018a0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push str._____exist___r_n
call fcn.0040391c
pop ecx
xor eax, eax
mov dword [0x44f8a0], eax
push 0
push sym.htpwrdoc.exe__MemInfPrcDlg_qqsp6HWND__uiuil
push dword [ebp + 8]
push 0x1771
push dword [0x44f8e0]
call sub.USER32.DLL_CreateDialogParamA
mov dword [0x44f89c], eax
cmp dword [0x44f89c], 0
je 0x4018f8
push 5
push dword [0x44f89c]
call sub.USER32.DLL_ShowWindow
push dword [0x44f89c]
call sub.USER32.DLL_UpdateWindow
push 0
push dword [0x44f8dc]
call sub.USER32.DLL_EnableWindow
push 0
push dword [ebp + 8]
call sub.USER32.DLL_EnableWindow
push 0xf
mov edx, dword [ebp + 0xc]
push dword [edx]
call sub.KERNEL32.DLL_PurgeComm
push 0
push dword [ebp + 0xc]
call fcn.004012eb
add esp, 8
call sub.KERNEL32.DLL_GetTickCount
mov dword [ebp - 8], eax
xor ecx, ecx
mov dword [ebp - 0xc], ecx
jmp 0x40198c
lea eax, [ebp - 0x28]
push eax
call sub.USER32.DLL_TranslateMessage
lea edx, [ebp - 0x28]
push edx
call sub.USER32.DLL_DispatchMessageA
push 1
push 0
push 0
push 0
lea ecx, [ebp - 0x28]
push ecx
call sub.USER32.DLL_PeekMessageA
test eax, eax
jne 0x401939
cmp dword [0x44f8a0], 0
jne 0x4019a1
lea eax, [ebp - 1]
push eax
push dword [ebp + 0xc]
call fcn.004011f4
add esp, 8
test eax, eax
je 0x40198c
cmp byte [ebp - 1], 0x11
jne 0x401987
inc dword [ebp - 0xc]
jmp 0x40198c
xor edx, edx
mov dword [ebp - 0xc], edx
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [ebp - 8]
cmp eax, 0x3a98
jae 0x4019a1
cmp dword [ebp - 0xc], 0xc
jl 0x40194b
push 1
push dword [0x44f8dc]
call sub.USER32.DLL_EnableWindow
push 1
push dword [ebp + 8]
call sub.USER32.DLL_EnableWindow
cmp dword [0x44f89c], 0
je 0x4019d4
push dword [0x44f89c]
call sub.USER32.DLL_DestroyWindow
xor ecx, ecx
mov dword [0x44f89c], ecx
cmp dword [ebp - 0xc], 0xc
jl 0x4019ec
push str.___YES_11_______r_n
call fcn.0040391c
pop ecx
mov eax, 1
jmp 0x4019f9
push str.___NO_11_______r_n
call fcn.0040391c
pop ecx
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x402808
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, dword [0x451827]
mov dword [ebp - 0xc], eax
mov ax, word [0x45182b]
mov word [ebp - 8], ax
lea edx, [ebp - 0x10]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea ecx, [ebp - 0xc]
push ecx
call sub.ADVAPI32.DLL_AllocateAndInitializeSid
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40286c
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x10]
push 0
call sub.ADVAPI32.DLL_CheckTokenMembership
test eax, eax
jne 0x402864
xor edx, edx
mov dword [ebp - 4], edx
push dword [ebp - 0x10]
call sub.ADVAPI32.DLL_FreeSid
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x4028d4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push 0x104
lea eax, [ebp - 0x21c]
push eax
lea edx, [ebp - 0xc]
push edx
lea ecx, [ebp - 8]
push ecx
lea eax, [ebp - 4]
push eax
push 0x104
lea edx, [ebp - 0x114]
push edx
push 0x455630
call sub.KERNEL32.DLL_GetVolumeInformationA
test eax, eax
jne 0x402915
mov ax, 1
jmp 0x402926
cmp word [ebp - 4], 0
jne 0x402922
mov ax, 1
jmp 0x402926
mov ax, word [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x403334
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x18], 0
je 0x403392
mov eax, dword [ebp + 0x10]
mov byte [eax], 0
mov edx, dword [ebp + 0x10]
cmp byte [edx], 0
jne 0x403366
push 0x4652d5
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0x45578c
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.KERNEL32.DLL_GetPrivateProfileStringA
push 0x45578d
push dword [ebp + 0xc]
call fcn.0044157c
add esp, 8
test eax, eax
je 0x4033c5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.MyReadProfileStr_INI___s__s___s__r_n
call fcn.0040391c
add esp, 0x10
pop ebp
ret
push 1
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x80000001
call fcn.00403560
add esp, 0x1c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.MyReadProfileStr_REG___s__s___s__r_n
call fcn.0040391c
add esp, 0x10
pop ebp
ret

Function at 0x40345c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff28
cmp dword [ebp + 0x18], 0
je 0x403492
push dword [ebp + 0xc]
push str.SoftwarePCD_HTP
push 0x45582c
lea eax, [ebp - 0xd8]
push eax
call fcn.00444f70
add esp, 0x10
lea edx, [ebp - 0xd8]
mov dword [ebp - 4], edx
jmp 0x403498
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.00403404
pop ecx
push eax
push str.MyWriteReg_hKey_s_keyName_s_valName_s_valStr_s__r_n
call fcn.0040391c
add esp, 0x14
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 8]
push edx
push 0
push 0x20006
push 0
push 0
push 0
push dword [ebp - 4]
push dword [ebp + 8]
call sub.ADVAPI32.DLL_RegCreateKeyExA
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x403545
cmp dword [ebp - 8], 0
je 0x403545
push dword [ebp + 0x14]
call fcn.004415f8
pop ecx
push eax
push dword [ebp + 0x14]
push 1
push 0
push dword [ebp + 0x10]
push dword [ebp - 8]
call sub.ADVAPI32.DLL_RegSetValueExA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x403524
push dword [ebp - 8]
call sub.ADVAPI32.DLL_RegCloseKey
push str.MyWriteReg_RegCreateKey_OK_r_n
call fcn.0040391c
pop ecx
mov eax, 1
jmp 0x40355c
call fcn.00403280
push dword [ebp - 8]
call sub.ADVAPI32.DLL_RegCloseKey
push dword [ebp - 0xc]
push str.MyWriteReg_RegSetValueEx_ERR___ld_r_n
call fcn.0040391c
add esp, 8
xor eax, eax
jmp 0x40355c
call fcn.00403280
push dword [ebp - 0xc]
push str.MyWriteReg_RegCreateKey_ERR___ld_r_n
call fcn.0040391c
add esp, 8
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x403560
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff24
mov eax, dword [ebp + 0x14]
mov byte [eax], 0
cmp dword [ebp + 0x20], 0
je 0x40359c
push dword [ebp + 0xc]
push str.SoftwarePCD_HTP
push 0x4558ce
lea edx, [ebp - 0xdc]
push edx
call fcn.00444f70
add esp, 0x10
lea ecx, [ebp - 0xdc]
mov dword [ebp - 4], ecx
jmp 0x4035a2
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.00403404
pop ecx
push eax
push str.MyReadReg_hKey_s_keyName_s_valName_s__r_n
call fcn.0040391c
add esp, 0x10
lea edx, [ebp - 0x10]
push edx
push 1
push 0
push dword [ebp - 4]
push dword [ebp + 8]
call sub.ADVAPI32.DLL_RegOpenKeyExA
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x4035e3
cmp dword [ebp - 0x10], 0
jne 0x403673
call fcn.00403280
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0x4558ff
call fcn.0040391c
add esp, 0xc
cmp dword [ebp + 0x1c], 0
je 0x4036d8
push dword [ebp + 0xc]
push str.SoftwarePcdocw
push str._s_s
lea edx, [ebp - 0xdc]
push edx
call fcn.00444f70
add esp, 0x10
lea ecx, [ebp - 0xdc]
push ecx
push str.MyReadReg_tryOldKey__keyName_s__r_n
call fcn.0040391c
add esp, 8
lea eax, [ebp - 0x10]
push eax
push 1
push 0
lea edx, [ebp - 0xdc]
push edx
push dword [ebp + 8]
call sub.ADVAPI32.DLL_RegOpenKeyExA
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x403659
cmp dword [ebp - 0x10], 0
jne 0x403673
call fcn.00403280
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push str.MyReadReg_RegOpenKeyEx_ERR_lret_ld__hKey2_ld_r_n
call fcn.0040391c
add esp, 0xc
jmp 0x4036d8
mov edx, dword [ebp + 0x18]
mov dword [ebp - 8], edx
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0x14]
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x10]
call sub.ADVAPI32.DLL_RegQueryValueExA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4036a0
cmp dword [ebp - 0xc], 1
je 0x4036c0
mov edx, dword [ebp + 0x14]
mov byte [edx], 0
call fcn.00403280
push dword [ebp - 0xc]
push dword [ebp - 0x14]
push str.MyReadReg_RegQueryValueEx_ERR_lret_ld__valType_ld_r_n
call fcn.0040391c
add esp, 0xc
jmp 0x4036d0
push dword [ebp + 0x14]
push str.MyReadReg_RegQueryValueEx_OK____s__r_n
call fcn.0040391c
add esp, 8
push dword [ebp - 0x10]
call sub.ADVAPI32.DLL_RegCloseKey
mov esp, ebp
pop ebp
ret
Function at 0x4036dc
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe68
cmp dword [ebp + 0x10], 5
jg 0x403877
lea eax, [ebp - 0x14]
push eax
push 9
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x403877
cmp dword [ebp - 0x14], 0
je 0x403877
push 0xf
push 0x20
lea edx, [ebp - 0x198]
push edx
call fcn.00441448
add esp, 0xc
mov ecx, dword [ebp + 0x10]
mov byte [ebp + ecx*2 - 0x196], 0
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0x63
push 0
push 0
push 0
push 0
lea edx, [ebp - 8]
push edx
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call sub.ADVAPI32.DLL_RegEnumValueA
test eax, eax
jne 0x403807
inc dword [ebp - 0x10]
mov dword [ebp - 4], 0x10d
lea eax, [ebp - 4]
push eax
lea edx, [ebp - 0x188]
push edx
lea ecx, [ebp - 0xc]
push ecx
push 0
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x14]
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
jne 0x4037ea
cmp byte [ebp - 0x78], 0
jne 0x4037a3
push 0x455b78
lea edx, [ebp - 0x78]
push edx
call fcn.004415c8
add esp, 8
cmp dword [ebp - 0xc], 1
jne 0x4037cd
lea ecx, [ebp - 0x188]
push ecx
lea eax, [ebp - 0x78]
push eax
lea edx, [ebp - 0x198]
push edx
push str._s__s___s__r_n
call fcn.0040391c
add esp, 0x10
jmp 0x403737
lea ecx, [ebp - 0x78]
push ecx
lea eax, [ebp - 0x198]
push eax
push str._s__s__no_SZ__r_n
call fcn.0040391c
add esp, 0xc
jmp 0x403737
lea edx, [ebp - 0x78]
push edx
lea ecx, [ebp - 0x198]
push ecx
push str._s__s_______r_n
call fcn.0040391c
add esp, 0xc
jmp 0x403737
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0x63
push 0
push 0
push 0
push 0
lea edx, [ebp - 8]
push edx
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call sub.ADVAPI32.DLL_RegEnumKeyExA
test eax, eax
jne 0x40386f
inc dword [ebp - 0x10]
lea eax, [ebp - 0x78]
push eax
lea edx, [ebp - 0x198]
push edx
push str._s__s_:_r_n
call fcn.0040391c
add esp, 0xc
cmp byte [ebp - 0x78], 0
je 0x40380c
cmp dword [ebp + 0x10], 5
jge 0x40380c
mov ecx, dword [ebp + 0x10]
inc ecx
push ecx
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x14]
call fcn.004036dc
add esp, 0xc
jmp 0x40380c
push dword [ebp - 0x14]
call sub.ADVAPI32.DLL_RegCloseKey
mov esp, ebp
pop ebp
ret
Function at 0x4043dc
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffebc
lea eax, [ebp - 0x144]
push eax
push dword [ebp + 8]
call sub.KERNEL32.DLL_FindFirstFileA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x404401
xor eax, eax
jmp 0x404446
test byte [ebp - 0x144], 0x10
je 0x404429
mov eax, 1
jmp 0x404446
test byte [ebp - 0x144], 0x10
je 0x404429
push dword [ebp - 4]
call sub.KERNEL32.DLL_FindClose
mov eax, 1
jmp 0x404446
lea edx, [ebp - 0x144]
push edx
push dword [ebp - 4]
call sub.KERNEL32.DLL_FindNextFileA
test eax, eax
jne 0x404411
push dword [ebp - 4]
call sub.KERNEL32.DLL_FindClose
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x404bf0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
call sub.KERNEL32.DLL_GetTickCount
mov dword [ebp - 4], eax
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [ebp - 4]
mov edx, dword [ebp + 8]
add edx, 0x32
cmp eax, edx
jb 0x404bfc
pop ecx
pop ebp
ret

Function at 0x404cf0
Capabilities:
Check for time delay via gettickcount
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff28
cmp dword [ebp + 8], 0
jne 0x404d07
call sub.USER32.DLL_GetFocus
mov dword [ebp + 8], eax
xor eax, eax
mov dword [ebp - 0x10], eax
cmp dword [0x451ba8], 0
jne 0x404dc3
mov dword [0x451ba8], 1
mov dword [ebp - 0x10], 1
xor edx, edx
mov dword [0x451ba4], edx
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
je 0x404d7b
push 0xc7
lea eax, [ebp - 0xd8]
push eax
push dword [ebp - 4]
call sub.USER32.DLL_GetClassNameA
mov byte [ebp - 0x11], 0
push str.PcDocWClass
lea edx, [ebp - 0xd8]
push edx
call fcn.0044157c
add esp, 8
test eax, eax
je 0x404d7b
push dword [ebp - 4]
call sub.USER32.DLL_GetParent
mov dword [ebp - 4], eax
jmp 0x404d38
cmp dword [ebp - 4], 0
je 0x404d8d
push dword [ebp - 4]
call sub.USER32.DLL_IsWindowVisible
test eax, eax
jne 0x404dc3
push 0xc7
push dword [ebp + 0xc]
push 0xf52202
call fcn.004046e0
add esp, 0xc
xor ecx, ecx
mov dword [0x451ba0], ecx
push 0
push 0
push 0
push 0x404c90
push 0
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [0x451ba4], eax
movzx eax, word [ebp + 0x10]
push eax
push dword [ebp + 0xc]
push dword [ebp + 0x14]
push dword [ebp + 8]
call sub.USER32.DLL_MessageBoxA
mov dword [ebp - 8], eax
cmp dword [ebp - 0x10], 0
je 0x404e3c
cmp dword [0x451ba4], 0
je 0x404e34
mov dword [0x451ba0], 1
call sub.KERNEL32.DLL_GetTickCount
mov dword [ebp - 0xc], eax
jmp 0x404e06
push 0x1f4
call sub.KERNEL32.DLL_Sleep
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [ebp - 0xc]
cmp eax, 0x1388
jge 0x404e1e
cmp dword [0x451ba4], 0
jne 0x404dfc
cmp dword [0x451ba4], 0
je 0x404e34
push 0
push dword [0x451ba4]
call sub.KERNEL32.DLL_TerminateThread
xor edx, edx
mov dword [0x451ba8], edx
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret