joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40152c
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
mov eax, dword [0x40b040]
xor eax, dword [ebp + 4]
push 0x208
mov dword [ebp - 4], eax
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
mov dword [ebp - 8], eax
jne 0x401564
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401669
lea eax, [ebp - 0x24c]
push eax
call fcn.004020a0
cmp byte [ebp + eax - 0x24d], 0x5c
pop ecx
je 0x40158e
lea eax, [ebp - 0x24c]
push 0x4091ec
push eax
call fcn.00401fb0
pop ecx
pop ecx
lea eax, [ebp - 0x24c]
push str.msiexec.exe
push eax
call fcn.00401fb0
lea eax, [ebp - 0x454]
push str._p__
push eax
call fcn.00401fa0
push dword [ebp + 8]
lea eax, [ebp - 0x454]
push eax
call fcn.00401fb0
lea eax, [ebp - 0x454]
push 0x4091d4
push eax
call fcn.00401fb0
add esp, 0x20
cmp dword [ebp + 0xc], 0
je 0x4015ec
lea eax, [ebp - 0x454]
push str.__qn
push eax
call fcn.00401fb0
pop ecx
pop ecx
push esi
lea eax, [ebp - 0x454]
push str._REBOOTReallySuppress
push eax
call fcn.00401fb0
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x44]
push 0
push eax
call fcn.00401f40
and dword [ebp - 0x2c], 0
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x454]
mov dword [ebp - 0x30], eax
add esp, 0x14
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], 0x8140
mov dword [ebp - 0x28], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x40165e
mov esi, dword [ebp - 0xc]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
jmp 0x401665
mov dword [ebp - 8], 0x643
mov eax, dword [ebp - 8]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.00401e99
leave
ret
Function at 0x401676
Capabilities:
Shutdown system

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xac
mov eax, dword [0x40b040]
xor eax, dword [ebp + 0x7c]
mov dword [ebp - 0x34], 0x94
mov dword [ebp + 0x74], eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x4016ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40172d
cmp dword [ebp - 0x24], 2
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
jne 0x401714
lea eax, [ebp + 0x70]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4016d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40172b
lea eax, [ebp + 0x64]
push eax
push str.SeShutdownPrivilege
xor edi, edi
push edi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x4016d1
push edi
push edi
push edi
lea eax, [ebp + 0x60]
push eax
push edi
push dword [ebp + 0x70]
mov dword [ebp + 0x60], 1
mov dword [ebp + 0x6c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call esi
cmp eax, edi
jne 0x40172b
push 0x40001
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x401729
call esi
jmp 0x40172b
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp + 0x74]
xor ecx, dword [ebp + 0x7c]
call fcn.00401e99
add ebp, 0x78
leave
ret

Function at 0x40173d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x40b040]
xor eax, dword [ebp + 4]
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push 0x409204
push eax
call fcn.0040212b
add esp, 0xc
push 0
lea eax, [ebp - 0x18]
push eax
push 0xa
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
test eax, eax
je 0x401785
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40178d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4017b0
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
push esi
push eax
push edi
call fcn.00401d10
and byte [edi + esi - 1], 0
add esp, 0xc
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.00401e99
leave
ret
Function at 0x401b27
Capabilities:
Copy file
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x40b040]
xor eax, dword [ebp + 4]
push ebx
mov dword [ebp - 4], eax
push esi
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
call fcn.00401ab7
mov esi, eax
add esp, 0xc
xor ebx, ebx
cmp byte [esi], 0x22
jne 0x401b73
inc esi
push esi
call fcn.004020a0
cmp byte [eax + esi - 1], 0x22
pop ecx
jne 0x401b73
push esi
call fcn.004020a0
pop ecx
mov byte [eax + esi - 1], bl
cmp dword [ebp + 0x10], ebx
lea eax, [ebp - 0x210]
je 0x401bb5
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x210]
push eax
push ebx
push 0x40923c
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push ebx
lea eax, [ebp - 0x210]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x401bc7
push 0x208
push esi
push eax
call fcn.00401d10
add esp, 0xc
mov byte [ebp - 9], bl
push dword [ebp - 8]
lea eax, [ebp - 0x210]
push eax
call fcn.004018b5
cmp dword [ebp + 0x10], ebx
pop ecx
pop ecx
mov esi, eax
je 0x401bec
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
mov eax, esi
pop esi
pop ebx
call fcn.00401e99
leave
ret 0x10
Function at 0x40238d
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x409250
call fcn.00403534
mov edi, 0x94
mov eax, edi
call fcn.00401c40
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x40bbe4], ecx
mov eax, dword [esi + 4]
mov dword [0x40bbf0], eax
mov edx, dword [esi + 8]
mov dword [0x40bbf4], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x40bbe8], esi
cmp ecx, 2
je 0x4023ed
or esi, 0x8000
mov dword [0x40bbe8], esi
shl eax, 8
add eax, edx
mov dword [0x40bbec], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x402428
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402428
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x402440
cmp eax, 0x20b
je 0x40242d
mov dword [ebp - 0x1c], esi
jmp 0x402454
cmp dword [ecx + 0x84], 0xe
jbe 0x402428
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40244e
cmp dword [ecx + 0x74], 0xe
jbe 0x402428
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00404f18
pop ecx
test eax, eax
jne 0x402468
push 0x1c
call fcn.00402369
pop ecx
call fcn.0040282c
test eax, eax
jne 0x402479
push 0x10
call fcn.00402369
pop ecx
call fcn.00404e76
mov dword [ebp - 4], esi
call fcn.00404c78
test eax, eax
jge 0x402492
push 0x1b
call fcn.00402344
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40d394], eax
call fcn.00404b56
mov dword [0x40bbc0], eax
call fcn.00404ab4
test eax, eax
jge 0x4024b8
push 8
call fcn.00402344
pop ecx
call fcn.00404881
test eax, eax
jge 0x4024c9
push 9
call fcn.00402344
pop ecx
call fcn.0040438c
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x4024dc
push eax
call fcn.00402344
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00404818
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x4024fd
movzx eax, word [ebp - 0x34]
jmp 0x402500
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.00401b27
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40251e
push edi
call fcn.004044c4
call fcn.004044e6
jmp 0x402550
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040356f
ret
Function at 0x406492
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.00401c40
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x406527
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x40bbe4]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x406527
cmp eax, 1
je 0x40653f
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x406527
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x4064fc
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x406523
xor eax, eax
inc eax
jmp 0x40655b
cmp esi, ebx
jae 0x40652b
xor eax, eax
jmp 0x40655b
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x40bbe4]
jmp 0x406541
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x406563
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40bf0c], ebx
push esi
push edi
jne 0x4065e3
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40661e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x409fcc
push edi
call esi
test eax, eax
mov dword [0x40bf0c], eax
je 0x40661e
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x40bf10], eax
call esi
cmp dword [0x40bbe4], 2
mov dword [0x40bf14], eax
jne 0x4065e3
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40bf1c], eax
je 0x4065e3
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x40bf18], eax
mov eax, dword [0x40bf18]
test eax, eax
je 0x406628
call eax
test eax, eax
je 0x40660f
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40bf1c]
test eax, eax
je 0x40660f
test byte [ebp - 8], 1
jne 0x406628
cmp dword [0x40bbf0], 4
jb 0x406622
or byte [ebp + 0x12], 0x20
jmp 0x406647
xor eax, eax
jmp 0x406657
or byte [ebp + 0x12], 4
jmp 0x406647
mov eax, dword [0x40bf10]
test eax, eax
je 0x406647
call eax
mov ebx, eax
test ebx, ebx
je 0x406647
mov eax, dword [0x40bf14]
test eax, eax
je 0x406647
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40bf0c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40685b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x40b040]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x406884
xor eax, eax
jmp 0x4069f2
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x40d280]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4068b7
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.00408174
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x406989
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x4069c4
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x406912
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x406903
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x4068e6
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x406952
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x40695b
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x4068d7
jmp 0x40695d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x4069ed
cmp dword [ebp - 8], edi
je 0x4069c4
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x4069b6
call fcn.00407cfe
mov dword [eax], 9
call fcn.00407d07
mov dword [eax], esi
jmp 0x4069bf
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4069ab
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x40695d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x40695d
push dword [ebp - 8]
call fcn.00407d10
pop ecx
or eax, 0xffffffff
jmp 0x4069f0
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4069d9
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x4069d9
xor eax, eax
jmp 0x4069f0
call fcn.00407cfe
mov dword [eax], 0x1c
call fcn.00407d07
mov dword [eax], edi
jmp 0x4069bf
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.00401e99
leave
ret
Function at 0x407d9e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x407f64
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x40d280]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x407f64
test cl, 0x48
je 0x407e04
mov al, byte [eax + 5]
cmp al, 0xa
je 0x407e04
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x407e56
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x407e3e
call fcn.00407cfe
mov dword [eax], 9
call fcn.00407d07
mov dword [eax], esi
jmp 0x407e4e
cmp eax, 0x6d
je 0x407f64
push eax
call fcn.00407d10
pop ecx
or eax, 0xffffffff
jmp 0x407f66
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x407f5f
test edx, edx
je 0x407e79
cmp byte [ebx], 0xa
jne 0x407e79
or al, 4
jmp 0x407e7b
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x407f59
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x407f49
cmp al, 0xd
je 0x407eaf
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x407f3b
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x407ec9
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x407ec4
add dword [ebp + 0x10], 2
jmp 0x407f1d
mov dword [ebp + 0x10], eax
jmp 0x407f37
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x407ef1
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x407f37
cmp dword [ebp - 0xc], 0
je 0x407f37
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x407f12
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x407f1d
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x407f3a
cmp ebx, dword [ebp + 0xc]
jne 0x407f22
cmp byte [ebp - 1], 0xa
jne 0x407f22
mov byte [ebx], 0xa
jmp 0x407f3a
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040673c
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x407f3b
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x407e93
jmp 0x407f59
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x407f59
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x407f66
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40664b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
push 0x20019
push edi
movzx eax, cl
mov esi, edx
push 0x405aa0
sub eax, 0x7fffffff
mov dword [ebp - 4], edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x406688
jle 0x4066e5
movzx eax, ax
or eax, 0x80070000
jmp 0x4066e5
or dword [ebp - 0x10], 0xffffffff
mov ecx, esi
push 0x32
pop eax
push eax
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], esi
call fcn.00406a46
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x14], eax
push ecx
push eax
lea eax, [ebp - 8]
push eax
push edi
push 0x405a88
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.00406a20
test esi, esi
je 0x4066d8
jle 0x4066d4
movzx esi, si
or esi, 0x80070000
mov eax, esi
jmp 0x4066e5
mov eax, dword [ebp - 8]
dec eax
neg eax
sbb eax, eax
and eax, 0x8000ffff
pop edi
pop esi
leave
ret

Function at 0x406898
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push 0x405a6c
push 0x4059f4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4068bf
push 0x800
call eax
call fcn.004064af
mov byte [ebp - 1], al
call fcn.004062aa
mov ecx, eax
test ecx, ecx
je 0x40694f
mov eax, dword [ecx]
push esi
push edi
call dword [eax + 0xc]
mov dl, byte [ebp - 1]
add eax, 0x10
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.004066e9
mov esi, eax
pop ecx
test esi, esi
js 0x40693f
push 0
push 0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x406911
call fcn.0040644c
mov esi, eax
jmp 0x40693f
push 0x405a90
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x406933
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call esi
mov esi, eax
jmp 0x406938
mov esi, 0x80004005
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 8]
call fcn.00406baa
pop edi
mov eax, esi
pop esi
leave
ret 0x10
push 0x80004005
call fcn.00406105
int3

Function at 0x40b8ed
Capabilities:
Contain obfuscated stackstrings

Disassembly:
ror byte [edi], 0x84
stc
push es
add byte [eax], al
lea eax, [ebp - 0x230]
mov dword [ebp - 0x3a0], eax
cmp dword [ebp - 0x6fc], 0
jne 0x40bac2
and byte [ebp - 0x77c], 0
and byte [ebp - 0x77b], 0
mov byte [ebp - 0x77a], 4
and byte [ebp - 0x779], 0
mov byte [ebp - 0x778], 0xb8
mov byte [ebp - 0x777], 0xc1
mov byte [ebp - 0x776], 0xa7
mov byte [ebp - 0x775], 0xab
mov byte [ebp - 0x774], 0x89
invalid
invalid
invalid
clc
invalid
Function at 0x403cd8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x457020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403d70
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403d50
xor eax, eax
push ebp
push 0x403d49
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403d8c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403d50
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x457020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x457020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404bf4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x459044], 0
je 0x404c55
cmp word [0x459218], 0xd7b2
jne 0x404c1d
cmp dword [0x459220], 0
jbe 0x404c1d
mov eax, 0x459214
call dword [0x459230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404c7c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45702c], 0
jne 0x404c71
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4060e8
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 0xf0019
push 0
push 0x406318
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40616b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406318
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40616b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406334
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4061f4
xor eax, eax
push ebp
push 0x4061ed
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405f24
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 0x4061d2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406354
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4061d2
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4061f4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
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 0x40630e
cmp byte [ebp - 0xd], 0
jne 0x40623b
cmp byte [ebp - 0x12], 0
je 0x40630e
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406254
dec ebx
cmp byte [ebx], 0x2e
je 0x406263
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406253
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40630e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4062a0
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40630e
cmp byte [ebp - 0xd], 0
je 0x40630e
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40630e
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
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