joyce8/EMBER2024-capa huggingface dataset:
Function at 0x66340e
Capabilities:
Delete registry value

Disassembly:
sub esp, 0x1c
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 4]
push ebp
push esi
push edi
push eax
push 2
xor ebp, ebp
push ebp
push str.SOFTWAREMicrosoftInternet_ExplorerMainFeatureControlFEATURE_BROWSER_EMULATION
push reloc.WS2_32.dll_accept
mov dword [esp + 0x24], ebp
call ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x663470
lea eax, [esp + 0x14]
push eax
call fcn.00663c19
cmp dword [eax + 0x14], 8
jb 0x663457
mov eax, dword [eax]
push eax
push dword [esp + 0x14]
call esi
push ebp
push 1
lea ecx, [esp + 0x1c]
call fcn.0042341c
push dword [esp + 0x10]
call edi
lea eax, [esp + 0x10]
push eax
push 2
push ebp
push str.SOFTWAREMicrosoftInternet_ExplorerMainFeatureControlFEATURE_SCRIPTURL_MITIGATION
push reloc.WS2_32.dll_accept
call ebx
test eax, eax
jne 0x6634b3
lea eax, [esp + 0x14]
push eax
call fcn.00663c19
cmp dword [eax + 0x14], 8
jb 0x66349a
mov eax, dword [eax]
push eax
push dword [esp + 0x14]
call esi
push ebp
push 1
lea ecx, [esp + 0x1c]
call fcn.0042341c
push dword [esp + 0x10]
call edi
lea eax, [esp + 0x10]
push eax
push 2
push ebp
push str.SOFTWAREMicrosoftInternet_ExplorerMainFeatureControlFEATURE_CROSS_DOMAIN_REDIRECT_MITIGATION
push reloc.WS2_32.dll_accept
call ebx
test eax, eax
jne 0x6634f6
lea eax, [esp + 0x14]
push eax
call fcn.00663c19
cmp dword [eax + 0x14], 8
jb 0x6634dd
mov eax, dword [eax]
push eax
push dword [esp + 0x14]
call esi
push ebp
push 1
lea ecx, [esp + 0x1c]
call fcn.0042341c
push dword [esp + 0x10]
call edi
call fcn.006638d1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x6638d1
Capabilities:
Move file

Disassembly:
mov eax, 0x66d28b
call fcn.006313fc
sub esp, 0x38
push esi
xor esi, esi
push esi
push esi
push 6
call fcn.00662858
test eax, eax
je 0x66395d
push 0x75aee0
lea eax, [ebp - 0x24]
push eax
call fcn.006624ec
push esi
push 1
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], esi
call fcn.004349b7
push esi
push 1
lea ecx, [ebp - 0x24]
call fcn.004349b7
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], 3
jae 0x66392b
lea eax, [ebp - 0x24]
mov dword [ebp - 0x3c], eax
mov ecx, 0x689954
mov eax, 0x414
mov dword [ebp - 0x38], ecx
mov word [ebp - 0x34], ax
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x32], esi
mov dword [ebp - 0x2e], esi
mov dword [ebp - 0x2a], ecx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
push esi
push 1
lea ecx, [ebp - 0x24]
call fcn.0042341c
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x664a73
Capabilities:
Check if file exists
Create pipe
Create thread

Disassembly:
mov eax, 0x68475b
call fcn.006313fc
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
push dword [esp + 0x40]
mov edi, ecx
mov dword [esp + 0x14], edi
lea esi, [edi + 4]
mov dword [edi], 0x704328
mov ecx, esi
call fcn.00422efb
lea ebx, [edi + 0x1c]
xor ecx, ecx
xor eax, eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], ecx
mov dword [esp + 0x34], ecx
mov word [ebx], ax
mov al, byte [esp + 0x44]
mov byte [edi + 0x34], al
mov eax, dword [esp + 0x48]
mov dword [edi + 0x38], eax
mov eax, dword [esp + 0x4c]
push esi
mov dword [edi + 0x3c], eax
lea eax, [esp + 0x18]
push 0x70432c
push eax
mov byte [esp + 0x40], 1
mov byte [edi + 0x74], cl
call fcn.00423c3b
push eax
mov ecx, ebx
call fcn.0044dbe6
xor ebp, ebp
lea ecx, [esp + 0x14]
push ebp
push 1
call fcn.0042341c
mov esi, dword [sym.imp.KERNEL32.DLL_CreateEventW]
push ebp
push ebp
push 1
push ebp
call esi
push ebp
push ebp
push ebp
push ebp
mov dword [edi + 0x48], eax
call esi
push ebp
push ebp
push ebp
push ebp
mov dword [edi + 0x5c], eax
call esi
cmp byte [edi + 0x34], 0
mov dword [edi + 0x70], eax
je 0x664b4d
cmp dword [ebx + 0x14], 8
jb 0x664b29
mov ebx, dword [ebx]
push dword [esp + 0x50]
mov eax, 0x800
push ebp
push eax
push eax
push 0xff
push 6
push 0x40080003
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateNamedPipeW]
mov dword [edi + 0x44], eax
jmp 0x664b8f
mov eax, ebp
cmp eax, 2
jne 0x664b5f
push 0x3e8
call dword [sym.imp.KERNEL32.DLL_Sleep]
cmp dword [ebx + 0x14], 8
jb 0x664b69
mov eax, dword [ebx]
jmp 0x664b6b
mov eax, ebx
push ebp
push 0x40000080
push 3
push ebp
push ebp
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [edi + 0x44], eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 2
je 0x664b54
cmp dword [edi + 0x44], 0xffffffff
je 0x664ba8
push ebp
push ebp
push edi
push 0x664cca
push ebp
push ebp
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [edi + 0x40], eax
mov ecx, dword [esp + 0x2c]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
leave
ret 0x14

Function at 0x664c5e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
push edi
and dword [esi + 0x68], 0
and dword [esi + 0x6c], 0
cmp dword [ecx + 0x14], 0x10
mov eax, dword [ecx + 0x10]
jb 0x664c7b
mov ecx, dword [ecx]
lea edi, [esi + 0x60]
inc eax
push edi
lea edx, [ebp + 8]
push edx
push eax
push ecx
push dword [esi + 0x44]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x3e5
jne 0x664cbb
push 0xffffffffffffffff
push dword [esi + 0x70]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x664cbb
push 1
lea eax, [ebp + 8]
push eax
push edi
push dword [esi + 0x44]
call dword [sym.imp.KERNEL32.DLL_GetOverlappedResult]
push dword [esi + 0x44]
call dword [sym.imp.KERNEL32.DLL_FlushFileBuffers]
pop edi
pop esi
pop ebp
ret 4
Function at 0x664cd8
Capabilities:
Connect pipe
Read file on windows

Disassembly:
mov eax, 0x6825a5
call fcn.006313fc
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov byte [edi + 0x74], 1
cmp byte [edi + 0x34], bl
je 0x664d39
lea eax, [edi + 0x4c]
mov dword [edi + 0x54], ebx
push eax
push dword [edi + 0x44]
mov dword [edi + 0x58], ebx
call dword [sym.imp.KERNEL32.DLL_ConnectNamedPipe]
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test esi, esi
jne 0x664d39
cmp eax, 0x217
je 0x664d39
cmp eax, 0x3e5
jne 0x664ded
push 0xffffffffffffffff
push dword [edi + 0x5c]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x664ded
push dword [edi + 0x48]
call dword [sym.imp.KERNEL32.DLL_SetEvent]
mov dword [ebp - 0x10], ebx
mov dword [edi + 0x54], ebx
mov dword [edi + 0x58], ebx
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
push 0x401
mov dword [ebp - 4], ebx
call fcn.0061c0ee
pop ecx
mov esi, eax
push ebx
lea eax, [ebp - 0x10]
push eax
push 0x400
push esi
push dword [edi + 0x44]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
sub eax, 6
neg eax
sbb eax, eax
and eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
je 0x664db8
cmp byte [esi + eax - 1], 0
push esi
sete bl
mov byte [esi + 0x400], 0
call fcn.00409db4
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00409d17
push 0
test bl, bl
pop ebx
je 0x664d68
push esi
call fcn.006341e9
cmp dword [ebp - 0x10], 0
pop ecx
je 0x664ddf
push dword [edi + 0x3c]
lea eax, [ebp - 0x28]
push eax
call dword [edi + 0x38]
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.0040a0e9
jmp 0x664d42
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.0040a0e9
mov byte [edi + 0x74], bl
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x66571e
Capabilities:
Get disk information

Disassembly:
mov eax, 0x683ffc
call fcn.006313fc
sub esp, 0x228
push ebx
push esi
push edi
push 0x41
pop eax
push 0x3a
mov word [ebp - 0x14], ax
xor edi, edi
pop eax
mov word [ebp - 0x12], ax
push 0x5c
pop eax
mov word [ebp - 0x10], ax
xor eax, eax
mov dword [ebp - 4], edi
mov word [ebp - 0xe], ax
call dword [sym.imp.KERNEL32.DLL_GetLogicalDrives]
mov ebx, eax
mov esi, edi
test ebx, ebx
je 0x6657c8
test bl, 1
je 0x6657be
lea eax, [esi + 0x41]
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp eax, 2
jne 0x6657be
push 0x104
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x6657be
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004249e7
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00434b9c
push edi
push 1
test eax, eax
je 0x6657e8
lea ecx, [ebp - 0x2c]
call fcn.0042341c
shr ebx, 1
inc esi
cmp esi, 0x1a
jl 0x66575f
mov esi, edi
push edi
push 1
lea ecx, [ebp + 8]
call fcn.0042341c
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x1c
mov ecx, dword [ebp + 0x20]
mov ax, word [ebp - 0x14]
mov word [ecx], ax
lea ecx, [ebp - 0x2c]
call fcn.0042341c
xor esi, esi
inc esi
jmp 0x6657c8
Function at 0x665bb2
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
mov esi, ecx
cmp dword [esi + 0x110], 2
jne 0x665c36
lea eax, [esi + 0xf0]
cmp dword [eax + 0x14], 8
jb 0x665bd2
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x30]
push str._s:_
push eax
call fcn.0047224d
mov eax, dword [ebp - 0x30]
add esp, 0xc
cmp dword [ebp - 0x1c], 8
jae 0x665bf0
lea eax, [ebp - 0x30]
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_GetDiskFreeSpaceExW]
xor ecx, ecx
test eax, eax
je 0x665c1d
mov eax, dword [ebp - 8]
mov dword [esi + 0x108], eax
mov eax, dword [ebp - 4]
mov dword [esi + 0x10c], eax
jmp 0x665c29
mov dword [esi + 0x108], ecx
mov dword [esi + 0x10c], ecx
push ecx
push 1
lea ecx, [ebp - 0x30]
call fcn.0042341c
jmp 0x665c44
xor ecx, ecx
mov dword [esi + 0x108], ecx
mov dword [esi + 0x10c], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x665d81
Capabilities:
Get disk information

Disassembly:
mov eax, 0x684937
call fcn.006313fc
sub esp, 0x448
push edi
mov edi, ecx
cmp dword [edi + 0x110], 2
jne 0x665da5
xor eax, eax
inc eax
jmp 0x665eae
mov eax, dword [ebp + 8]
push esi
movzx esi, ax
lea eax, [ebp - 0x44]
push esi
push 0x7043e4
push eax
call fcn.0047224d
and dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push esi
push str._c:_
push eax
call fcn.0047224d
add esp, 0x18
mov eax, dword [ebp - 0x2c]
push 8
pop esi
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], esi
jae 0x665de3
lea eax, [ebp - 0x2c]
mov edx, 0x104
lea ecx, [ebp - 0x454]
push edx
push ecx
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push edx
lea ecx, [ebp - 0x24c]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationW]
test eax, eax
je 0x665e8b
lea eax, [ebp - 0x24c]
push eax
call fcn.004236bc
pop ecx
push eax
lea eax, [ebp - 0x24c]
push eax
lea ecx, [edi + 0xa8]
call fcn.00434a57
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], esi
jb 0x665e39
mov eax, dword [eax]
push eax
mov ecx, edi
call fcn.00665b2b
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x14], esi
jb 0x665e4b
mov eax, dword [eax]
push eax
mov ecx, edi
call fcn.00665b91
mov eax, dword [ebp - 0x44]
cmp dword [ebp - 0x30], esi
jae 0x665e5e
lea eax, [ebp - 0x44]
push eax
mov ecx, edi
call fcn.00665b59
mov ecx, edi
mov dword [edi + 0x110], 2
call fcn.00665bb2
push 7
push edi
call fcn.005c23b3
mov ecx, eax
call fcn.005c26eb
xor esi, esi
inc esi
jmp 0x665e93
call dword [sym.imp.KERNEL32.DLL_GetLastError]
xor esi, esi
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0042341c
push 0
push 1
lea ecx, [ebp - 0x44]
call fcn.0042341c
mov eax, esi
pop esi
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4868e8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x4868f7
pop dword [ebp - 0x44]
mov eax, 0x4868f7
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x9795e3e7
sub dword [ebp - 0x54], 0x49439e9c
mov dword [ebp - 0x50], 0xf7880d01
sub dword [ebp - 0x50], 0xc554c0bc
mov dword [ebp - 0x4c], 0x4246457e
add dword [ebp - 0x4c], 0xa05feb0
mov dword [ebp - 0x48], 0x23aa5775
sub dword [ebp - 0x48], 0x23aa5775
lea eax, [ebp - 0x54]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0xc9b137e7
add dword [ebp - 0x54], 0xaac1316f
mov dword [ebp - 0x50], 0x6491829f
sub dword [ebp - 0x50], 0x2325212a
mov dword [ebp - 0x4c], 0x9c3c55c
add dword [ebp - 0x4c], 0x59aba710
mov dword [ebp - 0x48], 0xcbde46ee
add dword [ebp - 0x48], 0x3421b912
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0x9490caec
add eax, 0x6bb8c538
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x6b4b0
push 0
call eax
mov ecx, 0x65dd890a
sub ecx, 0x65dd4a9a
xor edi, edi
add edi, eax
mov esi, 0xf65ddff4
sub esi, 0xf61181f4
add esi, dword [ebp - 0x44]
mov ebx, 0xad1dd974
xor dword [ebp - 0x24], edi
mov edx, dword [esi]
sub dword [ebp - 0xc], 0x48deeb8f
xor edx, ebx
xor dword [ebp - 0x18], 0xa91f5e64
mov dword [edi], edx
add dword [ebp - 0xc], eax
add edi, 0xdc4841c2
sub edi, 0xdc4841be
add esi, 4
loop 0x486a0b
add eax, 0x49356065
sub eax, 0x493473d2
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x84ab050c
sub ecx, 0x846b050c
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x420ed0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x14000]
push edi
or ebp, 0xffffffff
jmp 0x420ef2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x420ef9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x420ee8
mov eax, 1
add ebx, ebx
jne 0x420f0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x420f00
jne 0x420f1c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x420f00
xor ecx, ecx
sub eax, 3
jb 0x420f30
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x420fa2
mov ebp, eax
add ebx, ebx
jne 0x420f3b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x420f48
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x420f6c
inc ecx
add ebx, ebx
jne 0x420f58
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x420f4d
jne 0x420f69
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x420f4d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x420f8c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x420f7d
jmp 0x420eee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x420f8c
add edi, ecx
jmp 0x420eee
pop esi
mov edi, esi
mov ecx, 0x3de
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x420faa
cmp byte [edi], 5
jne 0x420faa
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 eax, ebx
loop 0x420faf
lea edi, [esi + 0x1e000]
mov eax, dword [edi]
or eax, eax
je 0x421027
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x21904]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x219cc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x420fdc
mov ecx, edi
jns 0x42100b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x219d0]
or eax, eax
je 0x421021
mov dword [ebx], eax
add ebx, 4
jmp 0x420ff9
call dword [esi + 0x219d4]
popal
jmp 0x40f289
Function at 0x403e3c
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x403ff4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x403e9d
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x404010
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403f0a
xor eax, eax
push ebp
push 0x403f03
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x403eec
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404030
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403f0a
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x403feb
cmp byte [ebp - 0xd], 0
jne 0x403f4c
cmp byte [ebp - 0x12], 0
je 0x403feb
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x403f65
dec ebx
cmp byte [ebx], 0x2e
je 0x403f74
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x403f64
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x403feb
inc ebx
cmp byte [ebp - 0x12], 0
je 0x403fa1
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x403feb
cmp byte [ebp - 0xd], 0
je 0x403feb
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x403feb
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406468
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x110], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x406572
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
jne 0x4064bb
push 0x105
lea eax, [ebp - 0x109]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA_2
mov ecx, eax
lea edx, [ebp - 0x109]
mov eax, dword [ebp - 4]
call fcn.00403138
jmp 0x406559
call sub.kernel32.dll_GetCommandLineA_1
mov ebx, eax
mov eax, ebx
call fcn.0040641c
mov ebx, eax
mov edi, ebx
mov eax, ebx
call fcn.0040643c
mov ebx, eax
test esi, esi
je 0x4064e3
dec esi
test esi, esi
jl 0x4064e3
cmp edi, ebx
jne 0x4064c2
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x110]
mov edx, edi
call fcn.00403178
mov eax, dword [ebp - 0x110]
mov ecx, ebx
sub ecx, edi
mov edx, 1
call fcn.004033c4
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.004031c0
cmp eax, 2
jl 0x406559
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp byte [eax], 0x22
jne 0x406559
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.004031c0
mov edx, dword [ebp - 4]
mov edx, dword [edx]
cmp byte [edx + eax - 1], 0x22
jne 0x406559
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.004031c0
mov ecx, eax
sub ecx, 2
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, 2
call fcn.004033c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406579
lea eax, [ebp - 0x110]
call fcn.00403054
ret

Function at 0x4067a8
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x406840
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebx + 0x18], 0
jne 0x4067f5
mov eax, dword [ebx + 0x19]
call fcn.00403384
push eax
push esi
mov eax, edi
call fcn.00403384
push eax
mov eax, dword [ebx + 0x1d]
call fcn.00403384
push eax
call sub.kernel32.dll_GetPrivateProfileIntA
mov dword [ebp - 4], eax
jmp 0x40682a
mov dword [ebp - 4], esi
mov eax, dword [ebx + 0x19]
call fcn.00403384
push eax
lea edx, [ebp - 8]
mov eax, esi
call fcn.004062c4
mov eax, dword [ebp - 8]
call fcn.00403384
push eax
mov eax, edi
call fcn.00403384
push eax
mov eax, dword [ebx + 0x1d]
call fcn.00403384
push eax
call sub.kernel32.dll_WritePrivateProfileStringA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406847
lea eax, [ebp - 8]
call fcn.00403054
ret
Function at 0x408378
Capabilities:
Hide graphical window

Disassembly:
and byte [eax + 0x27], 0xef
test dl, dl
je 0x408384
or byte [eax + 0x27], 0x10
mov byte [eax + 0x4e], dl
mov ecx, dword [eax + 0x18]
jecxz 0x4083a0
push eax
je 0x4083a1
call dword [0x412120]
pop eax
push 5
push dword [eax + 0x18]
call sub.user32.dll_ShowWindow
ret
mov byte [eax + 0x15a], dl
push 0
push ecx
call sub.user32.dll_ShowWindow
pop eax
call dword [0x412120]
ret

Function at 0x409fcc
Capabilities:
Capture screenshot

Disassembly:
push ebx
mov ebx, eax
call fcn.004099bc
je 0x40a011
mov eax, ebx
push edx
call fcn.0040a294
pop edx
cmp eax, edx
je 0x40a011
test edx, edx
mov eax, ebx
jne 0x409ff0
pop ebx
inc edx
jmp fcn.0040a284
mov byte [ebx + 0x49], dl
cmp dl, 5
jne 0x409ff9
dec edx
push edx
xor edx, edx
call fcn.0040a284
mov eax, dword [ebx + 0x3d]
movzx eax, word [eax + 0xe]
call fcn.00409750
pop edx
cmp al, dl
xchg ebx, eax
pop ebx
jne fcn.0040a030
ret