joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a351c
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404538
xor eax, eax
push ebp
push 0x4a35f2
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.user32.dll_GetForegroundWindow
mov ebx, eax
push 0
push ebx
call sub.user32.dll_GetWindowThreadProcessId
mov edi, eax
push 0xffffffffffffffff
push edi
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_AttachThreadInput
call sub.user32.dll_GetFocus
mov esi, eax
mov dword [0x4a9d58], ebx
mov dword [0x4a9d5c], esi
mov ebx, 1
jmp 0x4a35c2
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0040c8d0
test al, al
jne 0x4a359c
push 0
mov eax, dword [ebp - 4]
movzx eax, byte [eax + ebx - 1]
push eax
push 0x286
push esi
call sub.user32.dll_PostMessageA
inc ebx
jmp 0x4a35c2
push 0
mov eax, dword [ebp - 4]
mov dl, byte [eax + ebx - 1]
mov eax, dword [ebp - 4]
mov al, byte [eax + ebx]
call fcn.00406f10
movzx eax, ax
push eax
push 0x286
push esi
call sub.user32.dll_PostMessageA
add ebx, 2
mov eax, dword [ebp - 4]
call fcn.00404348
cmp ebx, eax
jle 0x4a3575
push 0
push edi
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_AttachThreadInput
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a35f9
lea eax, [ebp - 4]
call fcn.00404088
ret
Function at 0x40fce6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 8
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
not esi
mov edx, 0xff
jb 0x40fdc0
mov eax, dword [ebp + 0x10]
push ebx
shr eax, 3
push edi
xor ebx, ebx
mov bl, byte [ecx]
mov edi, esi
shr edi, 8
sub dword [ebp + 0x10], 8
xor ebx, esi
and ebx, edx
mov esi, dword [ebx*4 + 0x68cd1eb8]
xor ebx, ebx
xor esi, edi
inc ecx
mov bl, byte [ecx]
xor ebx, esi
and ebx, edx
mov edi, dword [ebx*4 + 0x68cd1eb8]
xor ebx, ebx
shr esi, 8
xor edi, esi
inc ecx
mov bl, byte [ecx]
xor ebx, edi
and ebx, edx
mov esi, dword [ebx*4 + 0x68cd1eb8]
xor ebx, ebx
shr edi, 8
xor esi, edi
inc ecx
mov bl, byte [ecx]
xor ebx, esi
and ebx, edx
mov edi, dword [ebx*4 + 0x68cd1eb8]
xor ebx, ebx
shr esi, 8
xor edi, esi
inc ecx
mov bl, byte [ecx]
xor ebx, edi
and ebx, edx
mov esi, dword [ebx*4 + 0x68cd1eb8]
xor ebx, ebx
shr edi, 8
xor esi, edi
inc ecx
mov bl, byte [ecx]
xor ebx, esi
and ebx, edx
mov edi, dword [ebx*4 + 0x68cd1eb8]
shr esi, 8
xor edi, esi
xor ebx, ebx
inc ecx
mov bl, byte [ecx]
xor ebx, edi
and ebx, edx
mov esi, dword [ebx*4 + 0x68cd1eb8]
shr edi, 8
xor esi, edi
xor ebx, ebx
inc ecx
mov bl, byte [ecx]
xor ebx, esi
and ebx, edx
mov edi, dword [ebx*4 + 0x68cd1eb8]
shr esi, 8
xor esi, edi
inc ecx
dec eax
jne 0x40fd09
pop edi
pop ebx
cmp dword [ebp + 0x10], 0
je 0x40fde0
xor eax, eax
mov al, byte [ecx]
xor eax, esi
and eax, edx
mov eax, dword [eax*4 + 0x68cd1eb8]
shr esi, 8
xor esi, eax
inc ecx
dec dword [ebp + 0x10]
jne 0x40fdc6
mov eax, esi
not eax
pop esi
pop ebp
ret 0xc

Function at 0x40fde9
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x58]
add dword [esi + 0x5c], ecx
test ecx, ecx
not eax
jbe 0x40fe2d
push ebx
push edi
mov edi, dword [esp + 0x14]
mov edx, ecx
mov ecx, dword [esp + 0x18]
mov bl, byte [ecx]
mov byte [edi], bl
xor ebx, ebx
mov bl, byte [ecx]
inc edi
xor ebx, eax
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x68cd1eb8]
shr eax, 8
xor eax, ebx
inc ecx
dec edx
jne 0x40fe0a
pop edi
pop ebx
not eax
mov dword [esi + 0x58], eax
pop esi
ret 0x10
Function at 0x416b8e
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00416d3e
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x416c8c
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x416c2f
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x416c72
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x416c46
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x416c61
test al, 0x40
je 0x416c58
mov ecx, dword [edi + 0x20]
jmp 0x416c5f
test al, 0x80
je 0x416c72
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x416c72
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x416bfe
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x404c70
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x413638
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x419050]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor edi, edi
xor eax, eax
push 0xffffffffffffffff
mov word [esp + 0x14], ax
mov eax, dword [esp + 0x3c]
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
call fcn.00404300
mov eax, 0x415c64
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x404cd0
sub eax, edx
sar eax, 1
push eax
mov eax, 0x415c64
lea ecx, [esp + 0x10]
call fcn.00404220
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push 0xffffffffffffffff
mov word [esi + 4], cx
push edi
mov ecx, esi
call fcn.00404300
cmp dword [esp + 0x24], 8
jb 0x404d1c
mov edx, dword [esp + 0x10]
push edx
call fcn.00405718
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret
Function at 0x4036e0
Capabilities:
Hash data with crc32

Disassembly:
push esi
mov esi, ecx
push str.CCheck::InitCRCTable
call fcn.00405790
add esp, 4
xor ecx, ecx
lea edx, [esi + 8]
mov eax, ecx
mov esi, 8
test al, 1
je 0x403709
shr eax, 1
xor eax, 0xedb88320
jmp 0x40370b
shr eax, 1
dec esi
jne 0x4036fc
mov dword [edx], eax
inc ecx
add edx, 4
cmp ecx, 0x100
jl 0x4036f5
mov eax, 1
pop esi
ret
Function at 0x404350
Capabilities:
Encode data using xor

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0x10]
cmp edi, 0xffffffff
mov dword [esp + 4], ecx
jne 0x404369
mov eax, 1
pop edi
pop ecx
ret 0xc
push ebp
mov ebp, dword [esp + 0x10]
test edi, edi
mov edx, ebp
jle 0x4043a4
push ebx
push esi
mov esi, dword [esp + 0x20]
mov eax, dword [esi]
xor ebx, ebx
mov bl, byte [edx]
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
mov ebx, dword [esp + 0x10]
shr eax, 8
mov ecx, dword [ebx + ecx*4 + 8]
xor ecx, eax
inc edx
mov eax, edx
mov dword [esi], ecx
sub eax, ebp
cmp eax, edi
jl 0x40437a
pop esi
pop ebx
pop ebp
mov eax, 1
pop edi
pop ecx
ret 0xc
Function at 0x4012d0
Capabilities:
Get graphical window text

Disassembly:
mov ecx, dword [0x421830]
sub esp, 0x40
lea eax, [esp]
push 0x40
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x4012fc
xor al, al
add esp, 0x40
ret
mov ecx, dword [esp + 0x44]
lea eax, [esp]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov al, 1
add esp, 0x40
ret

Function at 0x401710
Capabilities:
Get disk information

Disassembly:
sub esp, 0x10c
mov eax, dword [0x421838]
push ebx
push ebp
push esi
push edi
push 0x421b14
push 0x403
push eax
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov edx, dword [esp + 0x120]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x11], 0
mov ebx, ecx
mov byte [esp + 0x13], 0
cmp ebx, 0x102
mov byte [esp + 0x12], 0
mov ebp, 2
jb 0x401782
mov ecx, dword [0x421838]
push 0x40104
push ecx
call fcn.00402e10
add esp, 8
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x10c
ret
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x14], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
test ebx, ebx
rep movsb byte es:[edi], byte [esi]
je case.0x4017f0.18
jmp 0x4017b8
mov edx, dword [esp + 0x120]
cmp ebx, 3
ja 0x4017c9
mov byte [esp + 0x11], 1
mov byte [esp + 0x13], 1
jmp 0x4017e0
cmp ebp, ebx
jae 0x4017d8
cmp byte [edx + ebp], 0x5c
je 0x40180a
inc ebp
cmp ebp, ebx
jb 0x4017cd
mov al, byte [esp + 0x12]
test al, al
je case.0x4017f0.18
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 6
ja case.default.0x4017f0
jmp dword [eax*4 + 0x4018c4]
mov al, byte [esp + 0x11]
test al, al
jne case.0x4017f0.18
mov byte [esp + 0x12], 0
jmp case.default.0x4017f0
inc ebp
mov esi, edx
mov ecx, ebp
lea edi, [esp + 0x18]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
cmp ebp, ebx
rep movsb byte es:[edi], byte [esi]
mov byte [esp + ebp + 0x18], 0
jne 0x40182f
mov byte [esp + 0x11], 1
mov byte [esp + 0x12], 1
jmp 0x4017e0
cmp ebp, ebx
mov bl, 1
je 0x401840
mov bl, byte [esp + 0x13]
lea ecx, [esp + 0x18]
push ecx
call fcn.004018e0
add esp, 4
test al, al
je case.0x4017f0.18
mov edx, dword [0x422eb4]
push 0x14a
push 0x42183c
push 0x42
push edx
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x421af4
push 0x42183c
push 0x4219a8
call fcn.00411c30
mov eax, dword [0x421838]
add esp, 0xc
push 0x4219a8
push 0x403
push eax
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
test bl, bl
jne case.0x4017f0.18
mov ecx, dword [esp + 0x120]
cmp byte [ecx + ebp], 0x5c
je case.0x4017f0.18
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x10c
ret
Function at 0x4022f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x70
lea eax, [esp + 4]
push eax
push 1
push 0
push str.SoftwareMicrosoftInternet_Explorer
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402374
lea ecx, [esp]
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push str.Version
push ecx
mov dword [esp + 0x20], 1
mov dword [esp + 0x18], 0x64
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402374
cmp dword [esp], 0x64
ja 0x402374
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x74]
lea eax, [esp + 0xc]
push eax
push 0x41d22c
push ecx
call fcn.00411c30
add esp, 0xc
mov al, 1
add esp, 0x70
ret
xor al, al
add esp, 0x70
ret

Function at 0x402380
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x250
lea eax, [esp + 0x4c]
push esi
push edi
push 0x422bbc
push str.Software_s
push eax
call fcn.00411c30
add esp, 0xc
lea ecx, [esp + 8]
lea edx, [esp + 0x54]
push ecx
push 1
push 0
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4024c7
mov edx, dword [esp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x154]
push eax
push ecx
push 0
push 0
mov edi, 0x104
push str.InstallPath
push edx
mov dword [esp + 0x2c], edi
call esi
test eax, eax
jne 0x4024c7
cmp dword [esp + 0x14], edi
ja 0x4024c7
mov edx, dword [esp + 8]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push 0
mov edi, 0x14
push str.Version
push edx
mov dword [esp + 0x28], edi
call esi
test eax, eax
jne 0x4024c7
cmp dword [esp + 0x10], edi
ja 0x4024c7
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x2c]
push eax
push ecx
push 0
push 0
mov edi, 0x28
push str.GUID
push edx
mov dword [esp + 0x24], edi
call esi
test eax, eax
jne 0x4024c7
cmp dword [esp + 0xc], edi
ja 0x4024c7
mov ecx, dword [esp + 0x25c]
lea eax, [esp + 0x154]
push eax
push 0x41d22c
push ecx
call fcn.00411c30
mov eax, dword [esp + 0x26c]
add esp, 0xc
lea edx, [esp + 0x18]
push edx
push 0x41d22c
push eax
call fcn.00411c30
mov edx, dword [esp + 0x270]
add esp, 0xc
lea ecx, [esp + 0x2c]
push ecx
push 0x41d22c
push edx
call fcn.00411c30
mov eax, dword [esp + 0x14]
add esp, 0xc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov al, 1
pop esi
add esp, 0x250
ret
pop edi
xor al, al
pop esi
add esp, 0x250
ret
Function at 0x4026e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
lea eax, [esp]
push eax
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402770
lea ecx, [esp + 4]
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 4]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push str.ProgramFilesDir
push ecx
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402770
cmp dword [esp + 4], 0x104
ja 0x402770
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x114]
lea eax, [esp + 0xc]
push eax
push 0x41d22c
push ecx
call fcn.00411c30
add esp, 0xc
mov al, 1
add esp, 0x110
ret
xor al, al
add esp, 0x110
ret

Function at 0x402780
Capabilities:
Enumerate files on windows
Get common file path
Set current directory

Disassembly:
sub esp, 0x24c
push ebp
push esi
lea eax, [esp + 0x150]
push edi
push eax
push 0x104
mov dword [esp + 0x14], 0
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, dword [esp + 0x260]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x4027c5
pop edi
pop esi
or eax, 0xffffffff
pop ebp
add esp, 0x24c
ret
lea edx, [esp + 0x14]
push edx
push 0x41d2c4
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x10], esi
je 0x402873
cmp dword [esp + 0x14], 0x10
jne 0x40285f
cmp byte [esp + 0x40], 0x2e
je 0x40285f
push 0x2c
call fcn.00411c82
mov edx, eax
add esp, 4
test edx, edx
je 0x402888
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test ebp, ebp
mov dword [edx + 0x28], 0
je 0x402847
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x402842
mov ebp, eax
mov eax, dword [ebp + 0x28]
test eax, eax
jne 0x402839
mov dword [ebp + 0x28], edx
jmp 0x402850
mov ecx, dword [esp + 0x25c]
mov dword [ecx], edx
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
inc eax
mov ebp, edx
mov dword [esp + 0xc], eax
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4027e4
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esp + 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
add esp, 0x24c
ret
Function at 0x4028a0
Capabilities:
Get disk size

Disassembly:
sub esp, 0x18
push esi
push edi
push str.GetDiskFreeSpaceExA
push str.KERNEL32.DLL
or esi, 0xffffffff
or edi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4028ee
lea ecx, [esp + 0x18]
lea edx, [esp + 0x10]
push ecx
push edx
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x10]
push ecx
push edx
call eax
test eax, eax
je 0x402927
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
pop edi
pop esi
add esp, 0x18
ret
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x2c]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x402927
mov eax, dword [esp + 0x24]
pop edi
imul eax, dword [esp + 4]
imul eax, dword [esp + 0xc]
xor edx, edx
pop esi
add esp, 0x18
ret
mov edx, edi
mov eax, esi
pop edi
pop esi
add esp, 0x18
ret

Function at 0x402a30
Capabilities:
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
sub esp, 0x348
lea eax, [esp + 0x244]
push ebx
push ebp
mov ebp, dword [esp + 0x354]
push esi
push edi
push ebp
push str._s.
push eax
xor esi, esi
call fcn.00411c30
add esp, 0xc
lea ecx, [esp + 0x10]
lea edx, [esp + 0x254]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x402afb
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp byte [esp + 0x3c], 0x2e
je 0x402ae4
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x150]
push eax
push ebp
push str._s_s
push ecx
call fcn.00411c30
mov al, byte [esp + 0x20]
add esp, 0x10
test al, 0x10
je 0x402ac0
lea edx, [esp + 0x150]
push edx
call fcn.00402a30
add esp, 4
cmp eax, 0xffffffff
je 0x402b08
add esi, eax
jmp 0x402ae4
lea eax, [esp + 0x150]
push eax
call fcn.00402b20
add esp, 4
test al, al
jne 0x402b08
lea ecx, [esp + 0x150]
push 0x80
push ecx
call ebx
inc esi
lea edx, [esp + 0x10]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402a7d
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x348
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x348
ret

Function at 0x402c20
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
lea eax, [esp]
push eax
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402cb0
lea ecx, [esp + 4]
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 4]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push str.SystemRoot
push ecx
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402cb0
cmp dword [esp + 4], 0x104
ja 0x402cb0
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x114]
lea eax, [esp + 0xc]
push eax
push 0x41d22c
push ecx
call fcn.00411c30
add esp, 0xc
mov al, 1
add esp, 0x110
ret
xor al, al
add esp, 0x110
ret
Function at 0x402cc0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x330
lea eax, [esp]
push ebx
mov ebx, dword [esp + 0x33c]
push ebp
mov ebp, dword [esp + 0x33c]
push eax
push 0x20019
push 0
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402dfc
mov cl, byte [0x421b14]
push esi
push edi
mov byte [esp + 0x13c], cl
mov ecx, 0x40
lea edi, [esp + 0x13d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edx, [esp + 0x34]
lea eax, [esp + 0x2c]
push edx
lea ecx, [esp + 0x28]
push eax
lea edx, [esp + 0x38]
push ecx
lea eax, [esp + 0x28]
push edx
lea ecx, [esp + 0x38]
push eax
lea edx, [esp + 0x34]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x38]
push 0
lea edx, [esp + 0x160]
push ecx
push edx
push eax
mov dword [esp + 0x48], 0x104
mov dword [esp + 0x44], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x402dd9
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea ecx, [esp + 0x3c]
push 0xff
push ecx
push 0
push edx
call esi
test eax, eax
jne 0x402dd9
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x240]
push eax
push ebx
push str._s_s
push ecx
call fcn.00411c30
lea edx, [esp + 0x250]
push edx
push ebp
call fcn.00402cc0
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x54]
add esp, 0x18
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
push 0xff
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x40]
push eax
push 0
push ecx
call esi
test eax, eax
je 0x402d89
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
pop esi
test eax, eax
pop ebp
pop ebx
sete al
add esp, 0x330
ret
pop ebp
xor al, al
pop ebx
add esp, 0x330
ret

Function at 0x4043a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [0x422eb4]
push ebx
push 0x41d330
push 0x96
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x4043bf
xor al, al
pop ebx
ret
mov ecx, dword [0x422eb4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x4043d7
xor al, al
pop ebx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x4043e6
xor al, al
pop ebx
ret
push esi
push edi
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x421cf0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov al, 1
pop ebx
ret
Function at 0x405590
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x298
call fcn.004057f0
call fcn.00405880
test al, al
jne 0x4055c0
mov eax, dword [0x423078]
push 0x40102
push eax
call fcn.00402e10
add esp, 8
xor al, al
add esp, 0x298
ret
mov al, byte [0x423082]
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x15c]
test al, al
push 0x14a
push ecx
je 0x4055f0
mov edx, dword [0x422eb4]
push 9
push edx
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x9c
jmp 0x405604
mov edx, dword [0x422eb4]
push 8
push edx
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x9b
mov eax, dword [0x422eb4]
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x421c74
lea ecx, [esp + 0x160]
push 0x422bbc
lea edx, [esp + 0x18]
push ecx
push edx
mov esi, eax
call fcn.00411c30
mov ecx, dword [0x42301c]
add esp, 0x10
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov edx, dword [0x42301c]
push esi
push 1
push 0x80
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [0x42301c]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3ed
push eax
call edi
mov ebx, dword [sym.imp.USER32.dll_GetWindowLongA]
mov esi, eax
push 0xfffffffffffffff0
push esi
call ebx
mov ebp, dword [sym.imp.USER32.dll_SetWindowLongA]
or al, 0xd
push eax
push 0xfffffffffffffff0
push esi
call ebp
mov ecx, dword [0x42301c]
push 0x3ee
push ecx
call edi
mov esi, eax
push 0xfffffffffffffff0
push esi
call ebx
or al, 0xd
push eax
push 0xfffffffffffffff0
push esi
call ebp
mov eax, dword [0x422eb4]
lea edx, [esp + 0x10]
push 0x14a
push edx
push 0xa
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
mov edx, dword [0x42301c]
lea ecx, [esp + 0x10]
push ecx
push 0x3f0
push edx
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x298
ret

Function at 0x405f50
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi*8 + 0x42302c]
push 0
push eax
call edi
dec esi
test esi, esi
jl 0x405f92
lea eax, [esi*8 + 0x42302c]
cmp dword [eax], 0
jne 0x405f86
dec esi
sub eax, 8
test esi, esi
jge 0x405f74
mov eax, esi
pop edi
pop esi
ret
mov ecx, dword [esi*8 + 0x42302c]
push 5
push ecx
call edi
mov eax, esi
pop edi
pop esi
ret

Function at 0x405fa0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp esi, 9
jne 0x405fbd
mov eax, dword [0x42301c]
push 0
push eax
call dword [sym.imp.USER32.dll_EndDialog]
or eax, 0xffffffff
pop esi
ret
mov ecx, dword [esi*8 + 0x42302c]
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push ecx
call edi
inc esi
cmp esi, 9
jg 0x405ffe
lea eax, [esi*8 + 0x42302c]
cmp dword [eax], 0
jne 0x405ff2
add eax, 8
inc esi
cmp eax, 0x423074
jle 0x405fdd
mov eax, esi
pop edi
pop esi
ret
mov edx, dword [esi*8 + 0x42302c]
push 5
push edx
call edi
mov eax, esi
pop edi
pop esi
ret