joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403b70
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x1c]
mov byte [esp + 3], 1
cmp eax, 7
jne 0x403c98
mov eax, dword [0x40e29c]
test eax, eax
jne 0x403bb7
call fcn.00403a10
mov eax, dword [0x40e29c]
test eax, eax
je 0x403bb7
mov ax, word [0x40e28a]
cmp ax, 0x1458
jne 0x403bb2
cmp word [0x40ff5a], 0xd
je 0x403bed
call fcn.00403cb0
mov ax, word [0x40e28a]
cmp ax, 0x104d
jne 0x403bed
mov ecx, dword [0x40e288]
cmp cx, 0x8176
je 0x403bd7
cmp cx, 0x818b
jne 0x403bed
cmp word [0x40e28c], 0x8086
jne 0x403bed
cmp word [0x40e28e], 0x24c5
je 0x403c08
cmp word [0x40ff5a], 0xf
jne 0x403c0d
cmp ax, 0x104d
jne 0x403c0d
cmp word [0x40e288], 0x81a0
jne 0x403c0d
mov byte [esp + 3], 0
lea eax, [esp + 0xc]
push eax
call fcn.004072c0
add esp, 4
test eax, eax
je 0x403c8e
lea ecx, [esp + 0x1c]
push ecx
push str.SoftwareAvanceAC97_AudioALSMTray
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x403c73
lea edx, [esp + 4]
lea eax, [esp + 3]
push edx
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0xc]
push eax
push ecx
push 0
push str.ShowIcon
push edx
mov dword [esp + 0x20], 3
mov dword [esp + 0x1c], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [esp + 3]
test al, al
je 0x403c98
push 1
call fcn.00402ec0
add esp, 4
mov eax, 1
add esp, 0x14
ret
push 0
call fcn.00402ec0
add esp, 4
mov eax, 1
add esp, 0x14
ret

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

Disassembly:
sub esp, 0xc
cmp word [0x40e28a], 0x1458
push esi
push edi
jne 0x403cd5
cmp word [0x40ff5a], 0xd
jne 0x403cd5
call fcn.00403de0
pop edi
pop esi
add esp, 0xc
ret
push 0x40e2a0
call fcn.00407700
add esp, 4
test eax, eax
je 0x403dd6
mov eax, dword [0x40e2a0]
test eax, eax
je 0x403dd6
lea eax, [esp + 0x10]
push eax
call fcn.00407530
add esp, 4
test eax, eax
je 0x403dd6
mov eax, dword [esp + 0x10]
test eax, eax
je 0x403dd6
lea ecx, [esp + 0xc]
push ecx
call fcn.004075b0
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
add esp, 4
test eax, eax
je 0x403d7a
mov eax, dword [esp + 0xc]
test eax, eax
je 0x403d7a
push 1
call fcn.00407630
add esp, 4
call esi
lea edx, [esp + 8]
mov edi, eax
push edx
call fcn.00407680
add esp, 4
test eax, eax
je 0x403d7a
mov eax, dword [esp + 8]
test eax, eax
jne 0x403d7a
call esi
sub eax, edi
cmp eax, 0x1388
ja 0x403d7a
lea eax, [esp + 8]
push eax
call fcn.00407680
add esp, 4
test eax, eax
jne 0x403d56
lea ecx, [esp + 0xc]
push ecx
call fcn.004075f0
add esp, 4
test eax, eax
je 0x403dd6
mov eax, dword [esp + 0xc]
test eax, eax
je 0x403dd6
push 2
call fcn.00407630
add esp, 4
call esi
lea edx, [esp + 8]
mov edi, eax
push edx
call fcn.00407680
add esp, 4
test eax, eax
je 0x403dd6
mov eax, dword [esp + 8]
test eax, eax
jne 0x403dd6
call esi
sub eax, edi
cmp eax, 0x1388
ja 0x403dd6
lea eax, [esp + 8]
push eax
call fcn.00407680
add esp, 4
test eax, eax
jne 0x403db2
pop edi
pop esi
add esp, 0xc
ret
Function at 0x403de0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp]
push eax
push str.SoftwareRealtekUAJ
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x403e43
lea ecx, [esp + 4]
mov eax, 4
push ecx
lea edx, [esp + 0xc]
push 0x40e2b4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
mov eax, dword [esp + 8]
push edx
push 0
push str.UAJStatus
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x403e38
mov dword [0x40e2b4], 0
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x40e2b4]
test eax, eax
je 0x403e5d
push 1
call fcn.00404230
push 2
call fcn.00404230
add esp, 8
add esp, 0xc
ret
Function at 0x404230
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x10
dec eax
push esi
push edi
je 0x4042e4
dec eax
je 0x40424b
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret
lea eax, [esp + 0x1c]
push eax
push 1
call fcn.00407440
add esp, 8
test eax, eax
je 0x40436a
cmp word [esp + 0x1c], 0
je 0x40436a
push 2
call fcn.00407630
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
add esp, 4
call esi
lea ecx, [esp + 0xc]
mov edi, eax
push ecx
call fcn.00407680
add esp, 4
test eax, eax
je 0x4042b7
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x4042b7
call esi
sub eax, edi
cmp eax, 0xbb8
ja 0x4042b7
lea edx, [esp + 0xc]
push edx
call fcn.00407680
add esp, 4
test eax, eax
jne 0x404293
call esi
call esi
lea eax, [esp + 0x10]
push eax
call fcn.004077a0
push 0
call fcn.00407570
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004077d0
add esp, 0xc
mov eax, 1
pop edi
pop esi
add esp, 0x10
ret
lea edx, [esp + 0xa]
push edx
push 0
call fcn.00407440
add esp, 8
test eax, eax
je 0x40436a
cmp word [esp + 0xa], 0
je 0x40436a
push 1
call fcn.00407630
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
add esp, 4
call esi
mov edi, eax
lea eax, [esp + 0xc]
push eax
call fcn.00407680
add esp, 4
test eax, eax
je 0x404348
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x404348
call esi
sub eax, edi
cmp eax, 0xbb8
ja 0x404348
lea ecx, [esp + 0xc]
push ecx
call fcn.00407680
add esp, 4
test eax, eax
jne 0x404324
call esi
call esi
lea edx, [esp + 0x14]
push edx
call fcn.00407740
push 0
call fcn.00407570
mov eax, dword [esp + 0x1c]
push eax
call fcn.00407770
add esp, 0xc
pop edi
mov eax, 1
pop esi
add esp, 0x10
ret
Function at 0x404790
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov dword [esp + 0x14], ebx
call fcn.00404840
cmp eax, 1
mov dword [0x40e2c4], eax
jne 0x404831
cmp word [0x40ff58], ax
mov byte [esp + 0x12], bl
setne al
mov byte [esp + 0x13], al
mov eax, dword [0x40ff5c]
xor esi, esi
cmp eax, ebx
jle 0x404803
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, 0x40fe20
xor edx, edx
lea ecx, [esp + 0x14]
mov dx, word [0x40fde6]
push ebx
push ecx
mov ecx, dword [edi]
lea eax, [esp + 0x1a]
push edx
push eax
push ecx
call ebp
test eax, eax
je 0x404803
mov eax, dword [0x40ff5c]
inc esi
add edi, 4
cmp esi, eax
jl 0x4047d8
mov eax, dword [0x40ff5c]
xor esi, esi
cmp eax, ebx
jle 0x404831
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 0x40fe20
mov edx, dword [edi]
push edx
call ebp
mov eax, dword [0x40ff5c]
inc esi
add edi, 4
cmp esi, eax
mov dword [0x40e2c4], ebx
jl 0x404819
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x404a30
Capabilities:
Create process on windows

Disassembly:
cmp word [0x40e28a], 0x1462
jne 0x404a48
push 0
push str.ChCfg.EXE_MSI
call dword [sym.imp.KERNEL32.dll_WinExec]
mov eax, 1
ret

Function at 0x404a90
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov dword [esp + 4], eax
lea ecx, [esp + 4]
mov dword [esp + 8], eax
lea edx, [esp + 0x14]
mov dword [esp + 0xc], eax
push ecx
push edx
push eax
push eax
push eax
push eax
push eax
push eax
push str.CPLUtl64.exe__m
push eax
mov dword [esp + 0x3c], 0x44
mov dword [esp + 0x38], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
je 0x404af0
mov eax, dword [esp]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 8]
push ecx
call esi
pop esi
add esp, 0x54
ret
Function at 0x404b00
Capabilities:
Create process on windows
Create process suspended

Disassembly:
sub esp, 0x154
push ebx
push esi
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov ecx, dword [str.CPLUtl64.exe__x]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov edi, dword [esp + 0x164]
mov dword [esp + 0x14], eax
mov dword [esp + 0x60], ecx
mov ecx, dword [0x40d6e8]
mov dword [esp + 0x18], eax
mov eax, dword [0x40d6e4]
mov edx, dword [0x40d6e0]
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], ecx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov dword [esp + 0x64], edx
mov dl, byte [0x40d6ec]
not ecx
mov byte [esp + 0x70], dl
sub edi, ecx
lea edx, [esp + 0x60]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
lea edx, [esp + 0x60]
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], 0x44
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x404bca
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
pop edi
pop esi
pop ebx
add esp, 0x154
ret
Function at 0x40803a
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push 0x60
push 0x40b328
call fcn.004090c8
and dword [ebp - 4], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or dword [ebp - 4], 0xffffffff
mov ebx, 0x94
push ebx
push 0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x4081fb
mov dword [esi], ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push esi
test eax, eax
jne 0x408096
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4081fb
mov eax, dword [esi + 0x10]
mov dword [0x40f76c], eax
mov eax, dword [esi + 4]
mov dword [0x40f778], eax
mov eax, dword [esi + 8]
mov dword [0x40f77c], eax
mov eax, dword [esi + 0xc]
and eax, 0x7fff
mov dword [0x40f770], eax
xor ebx, ebx
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [0x40f76c], 2
je 0x4080d7
or byte [0x40f771], 0x80
mov eax, dword [0x40f778]
shl eax, 8
add eax, dword [0x40f77c]
mov dword [0x40f774], eax
call fcn.00407fde
mov dword [ebp - 0x1c], eax
push ebx
call fcn.004082f8
pop ecx
test eax, eax
jne 0x40811e
cmp dword [0x40f730], 1
jne 0x40810b
call fcn.0040953c
push 0x1c
call fcn.004093db
push 0xff
call fcn.0040925d
pop ecx
pop ecx
mov dword [ebp - 4], 1
call fcn.00409b60
test eax, eax
jge 0x408136
push 0x1b
call fcn.00407fb9
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x410518], eax
call fcn.00409a3a
mov dword [0x40f728], eax
call fcn.00409999
test eax, eax
jge 0x40815c
push 8
call fcn.00407fb9
pop ecx
call fcn.0040974f
test eax, eax
jge 0x40816d
push 9
call fcn.00407fb9
pop ecx
call fcn.0040928d
mov dword [ebp - 0x28], eax
cmp eax, ebx
je 0x408180
push eax
call fcn.00407fb9
pop ecx
call fcn.004096e6
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x408194
movzx eax, word [ebp - 0x40]
jmp 0x408197
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push ebx
push 0x400000
call section..text
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x4081b6
push esi
call fcn.0040939b
call fcn.004093bd
jmp 0x4081e8
or dword [ebp - 4], 0xffffffff
mov eax, esi
jmp 0x408200
mov eax, 0xff
call fcn.00409103
ret
Function at 0x408c1e
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00409220
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x408cb9
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x40f76c]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x408cb9
cmp eax, 1
je 0x408cda
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x408cb9
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x408c86
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x408cb5
xor eax, eax
inc eax
jmp 0x408cf9
cmp edi, eax
jae 0x408cbd
xor eax, eax
jmp 0x408cf9
cmp eax, esi
jae 0x408cc4
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x40f76c]
jmp 0x408cdd
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4093db
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
xor eax, eax
cmp ecx, dword [eax*8 + 0x40e030]
je 0x4093f3
inc eax
cmp eax, 0x12
jb 0x4093e4
push esi
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x40e030]
mov dword [ebp + 8], esi
jne 0x409539
mov eax, dword [0x40f730]
cmp eax, 1
push ebx
je 0x409509
test eax, eax
jne 0x409428
cmp dword [0x40e014], 1
je 0x409509
cmp ecx, 0xfc
je 0x409538
push edi
push 6
pop ecx
mov esi, str.Runtime_Error__n_nProgram:
mov edi, 0x40f7b0
rep movsd dword es:[edi], dword [esi]
push 0x104
mov ebx, 0x40f7ca
push ebx
movsw word es:[edi], word [esi]
push 0
mov byte [0x40f8ce], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x409476
push 5
pop ecx
mov esi, str._program_name_unknown_
mov edi, 0x40f7ca
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40947b
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x4094ae
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40948f
sub eax, edx
push 3
lea eax, [eax + 0x40f78f]
push 0x40b6b4
push eax
call fcn.00407d90
add esp, 0xc
mov edx, 0x40f7b0
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4094b6
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x40e034]
mov esi, 0x40b6b0
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4094d1
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4094dd
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.0040a603
add esp, 0xc
pop edi
jmp 0x409538
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x409538
mov esi, dword [esi + 0x40e034]
mov ecx, esi
lea edx, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x409520
push 0
sub ecx, edx
lea edx, [ebp - 4]
push edx
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebx
pop esi
leave
ret
Function at 0x40a3da
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x40a408
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x40a40f
cmp ebx, dword [eax + 4]
jae 0x40a40f
xor eax, eax
jmp 0x40a5ff
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40a420
xor eax, eax
inc eax
jmp 0x40a5fe
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40a436
cmp ecx, edx
jae 0x40a57b
cmp dword [eax + 4], 0
je 0x40a43f
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40a427
cmp dword [ebp + 8], 0
je 0x40a461
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40a57b
cmp eax, esi
jae 0x40a57b
mov eax, dword [0x40fbe0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40a486
cmp dword [esi*4 + 0x40fbe8], edi
je 0x40a57f
inc esi
cmp esi, eax
jl 0x40a474
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40a5fb
cmp dword [ebp - 8], 0x1000000
jne 0x40a5fb
test byte [ebp - 0xc], 0xcc
je 0x40a504
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40a5fb
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40a5fb
cmp word [eax + 0x18], 0x10b
jne 0x40a5fb
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40a5fb
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40a504
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40a504
test byte [ecx + 0x27], 0x80
jne 0x40a57b
push 1
push 0x40fc28
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x40a418
mov ecx, dword [0x40fbe0]
test ecx, ecx
mov edx, ecx
jle 0x40a538
lea eax, [ecx*4 + 0x40fbe4]
cmp dword [eax], edi
je 0x40a538
dec edx
sub eax, 4
test edx, edx
jg 0x40a52c
test edx, edx
jne 0x40a569
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40a545
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40a55d
lea eax, [edx*4 + 0x40fbe8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40a54b
cmp ecx, 0x10
jge 0x40a569
inc ecx
mov dword [0x40fbe0], ecx
push 0
push 0x40fc28
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40a418
xor eax, eax
jmp 0x40a5fe
test esi, esi
jle 0x40a418
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x40fc28
call ebx
test eax, eax
jne 0x40a418
cmp dword [esi*4 + 0x40fbe8], edi
je 0x40a5d5
mov eax, dword [0x40fbe0]
lea esi, [eax - 1]
test esi, esi
jl 0x40a5c3
cmp dword [esi*4 + 0x40fbe8], edi
je 0x40a5bf
dec esi
jns 0x40a5b3
test esi, esi
jge 0x40a5d3
cmp eax, 0x10
jge 0x40a5ce
inc eax
mov dword [0x40fbe0], eax
lea esi, [eax - 1]
jmp 0x40a5d5
je 0x40a5ed
xor ecx, ecx
test esi, esi
jl 0x40a5ed
lea eax, [ecx*4 + 0x40fbe8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40a5db
push 0
push 0x40fc28
call ebx
jmp 0x40a418
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a603
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40fc2c], ebx
push esi
push edi
jne 0x40a683
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40a6be
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40b764
push edi
call esi
test eax, eax
mov dword [0x40fc2c], eax
je 0x40a6be
push 0x40b754
push edi
call esi
push 0x40b740
push edi
mov dword [0x40fc30], eax
call esi
cmp dword [0x40f76c], 2
mov dword [0x40fc34], eax
jne 0x40a683
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40fc3c], eax
je 0x40a683
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x40fc38], eax
mov eax, dword [0x40fc38]
test eax, eax
je 0x40a6c8
call eax
test eax, eax
je 0x40a6af
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40fc3c]
test eax, eax
je 0x40a6af
test byte [ebp - 8], 1
jne 0x40a6c8
cmp dword [0x40f778], 4
jb 0x40a6c2
or byte [ebp + 0x12], 0x20
jmp 0x40a6e7
xor eax, eax
jmp 0x40a6f7
or byte [ebp + 0x12], 4
jmp 0x40a6e7
mov eax, dword [0x40fc30]
test eax, eax
je 0x40a6e7
call eax
mov ebx, eax
test ebx, ebx
je 0x40a6e7
mov eax, dword [0x40fc34]
test eax, eax
je 0x40a6e7
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40fc2c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40aaa0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4684db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0045ce06
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40ab22
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045ad1d
mov eax, dword [eax]
push 0x55c1c0
push eax
call fcn.0044db84
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045d091
test bl, bl
je 0x40ab22
push 0x55c1c0
lea ecx, [esp + 0xc]
call fcn.0045d421
push 0x55fd3c
lea ecx, [esp + 0xc]
call fcn.0045d421
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40ab5e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045d091
jmp 0x40ac29
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40abe2
lea edx, [esp + 0x7c]
push 0x55fd38
push edx
call fcn.0044db84
add esp, 8
test eax, eax
je 0x40abe2
lea eax, [esp + 0x7c]
push 0x55fd34
push eax
call fcn.0044db84
add esp, 8
test eax, eax
je 0x40abe2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40ab72
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0045d091
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40b440
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40b4a2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc