joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420250
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c8670
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x6540c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.00439298
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.00437fe7
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.004201f0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4206d0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x6540c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x100
lea eax, [ebp - 0x104]
mov esi, ecx
push 0
push eax
call fcn.0048fce0
push esi
lea eax, [ebp - 0x104]
push 0xff
push eax
call fcn.00421d00
add esp, 0x18
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0043928a
mov esp, ebp
pop ebp
ret

Function at 0x420730
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x6540c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x200
lea eax, [ebp - 0x204]
mov esi, ecx
push 0
push eax
call fcn.0048fce0
push esi
lea eax, [ebp - 0x204]
push 0xff
push eax
call fcn.00421d20
add esp, 0x18
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0043928a
mov esp, ebp
pop ebp
ret

Function at 0x420790
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x6540c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x200
lea eax, [ebp - 0x204]
mov esi, edx
push 0
push eax
call fcn.0048fce0
push dword [esi]
lea eax, [ebp - 0x204]
push 0x647088
push 0xff
push eax
call fcn.00421d20
add esp, 0x1c
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0043928a
mov esp, ebp
pop ebp
ret
Function at 0x401eb5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x401ebf
repz ret
jmp fcn.00403729

Function at 0x4073ba
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
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.00402bdb
and dword [ebp - 0x14], 0
cmp dword [0x40ec04], 0
mov dword [ebp - 0x18], eax
jne 0x40746d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x407515
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x407515
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40ec04], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x40ec08], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40ec0c], eax
call edi
push eax
call esi
mov dword [0x40ec14], eax
test eax, eax
je 0x40746d
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x40ec10], eax
mov eax, dword [0x40ec10]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4074c6
cmp dword [0x40ec14], ecx
je 0x4074c6
push eax
call esi
push dword [0x40ec14]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4074c6
test ebx, ebx
je 0x4074c6
call edi
test eax, eax
je 0x4074bd
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4074bd
test byte [ebp - 8], 1
jne 0x4074c6
or dword [ebp + 0x10], 0x200000
jmp 0x4074f9
mov eax, dword [0x40ec08]
cmp eax, dword [ebp - 0x18]
je 0x4074f9
push eax
call esi
test eax, eax
je 0x4074f9
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4074f9
mov eax, dword [0x40ec0c]
cmp eax, dword [ebp - 0x18]
je 0x4074f9
push eax
call esi
test eax, eax
je 0x4074f9
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40ec04]
call esi
test eax, eax
je 0x407515
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x407517
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401eb5
leave
ret
Function at 0x92d058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.0092d1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x92d07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x92d06a
add dl, dl
jne 0x92d089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x92d0dc
xor eax, eax
add dl, dl
jne 0x92d096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x92d17d
add dl, dl
jne 0x92d0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x92d0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x92d0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x92d0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x92d0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x92d075
mov eax, 1
add dl, dl
jne 0x92d0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x92d0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x92d0e1
sub eax, ebx
mov ebx, 1
jne 0x92d128
mov ecx, 1
add dl, dl
jne 0x92d10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x92d119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x92d105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x92d075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x92d13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x92d14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x92d136
cmp eax, 0x7d00
jae 0x92d16d
cmp eax, 0x500
jb 0x92d168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x92d075
cmp eax, 0x7f
ja 0x92d170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x92d075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x92d19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x92d075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
je 0x433072
nop
nop
nop
nop
mov ebx, 0x40de38
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x13320795
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
loop 0x433060
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x3b1d02b2
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x539018
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406a70
mov eax, dword [ebp - 8]
call fcn.00406a70
xor eax, eax
push ebp
push 0x539149
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x539112
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x3c
call fcn.00404814
mov dword [ebp - 0x48], 0x3c
mov dword [ebp - 0x44], 0x40
mov eax, dword [0x54d040]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
mov dword [ebp - 0x40], eax
lea edx, [ebp - 0x4c]
mov eax, dword [ebp - 4]
call fcn.00413b08
mov eax, dword [ebp - 0x4c]
call fcn.00406b14
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 8]
call fcn.00406b14
mov dword [ebp - 0x34], eax
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 4]
call fcn.00413acc
mov eax, dword [ebp - 0x50]
call fcn.00406b14
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 1
lea eax, [ebp - 0x48]
push eax
call sub.shell32.dll_ShellExecuteExW
test eax, eax
je 0x539105
mov eax, dword [0x54d040]
mov eax, dword [eax]
call fcn.004beb18
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetExitCodeProcess
cmp dword [ebp - 0xc], 0x103
jne 0x539105
mov eax, dword [0x54d040]
mov eax, dword [eax]
cmp byte [eax + 0xa4], 0
je 0x5390d3
mov ebx, dword [ebp - 0xc]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x539121
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x539150
lea eax, [ebp - 0x50]
mov edx, 2
call fcn.00406a80
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406a80
ret

Function at 0x53915c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406a70
mov eax, dword [ebp - 8]
call fcn.00406a70
xor eax, eax
push ebp
push 0x5391e8
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x5391c3
push dword fs:[eax]
mov dword fs:[eax], esp
push 5
push 0
mov eax, dword [ebp - 8]
call fcn.00406b14
push eax
mov eax, dword [ebp - 4]
call fcn.00406b14
push eax
push 0x5391f8
push 0
call sub.shell32.dll_ShellExecuteW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5391cd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5391ef
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406a80
ret
Function at 0x539308
Capabilities:
Create process on windows

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.00406a70
xor eax, eax
push ebp
push 0x539387
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x539367
push dword fs:[eax]
mov dword fs:[eax], esp
push 5
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00406b14
push eax
push 0x539394
mov eax, dword [0x54d040]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
push eax
call sub.shell32.dll_ShellExecuteW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x539371
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53938e
lea eax, [ebp - 4]
call fcn.00406a78
ret

Function at 0x53a308
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd74
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x288], edx
mov dword [ebp - 0x28c], edx
mov dword [ebp - 0x27c], edx
mov dword [ebp - 0x280], edx
mov dword [ebp - 0x274], edx
mov dword [ebp - 0x278], edx
lea eax, [ebp - 0x270]
mov edx, dword [0x40d5c4]
call fcn.00407728
xor eax, eax
push ebp
push 0x53a509
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x53a4c0
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0x278]
xor eax, eax
call fcn.004045bc
mov eax, dword [ebp - 0x278]
lea edx, [ebp - 0x274]
call fcn.00413acc
lea eax, [ebp - 0x274]
mov edx, 0x53a524
call fcn.00406eac
mov eax, dword [ebp - 0x274]
lea ecx, [ebp - 0x270]
mov edx, 0x1ff
call fcn.00413960
xor edx, edx
push ebp
push 0x53a418
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0x280]
xor eax, eax
call fcn.004045bc
mov eax, dword [ebp - 0x280]
lea edx, [ebp - 0x27c]
call fcn.00413acc
lea eax, [ebp - 0x27c]
mov edx, dword [ebp - 0x25c]
call fcn.00406eac
mov ebx, dword [ebp - 0x27c]
mov dword [ebp - 0x284], ebx
mov eax, dword [ebp - 0x284]
call fcn.00406b14
push eax
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb eax, eax
inc eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x53a498
xor eax, eax
push ebp
push 0x53a48e
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x28c]
xor eax, eax
call fcn.004045bc
mov eax, dword [ebp - 0x28c]
lea edx, [ebp - 0x288]
call fcn.00413acc
lea eax, [ebp - 0x288]
mov edx, dword [ebp - 0x25c]
call fcn.00406eac
mov esi, dword [ebp - 0x288]
mov dword [ebp - 0x284], esi
mov eax, dword [ebp - 0x284]
call fcn.00406b14
push eax
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x53a498
lea eax, [ebp - 0x270]
call fcn.004139b0
test eax, eax
je 0x53a424
lea eax, [ebp - 0x270]
call fcn.004139d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x53a4ca
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53a510
lea eax, [ebp - 0x28c]
mov edx, 2
call fcn.00406a80
lea eax, [ebp - 0x280]
mov edx, 4
call fcn.00406a80
lea eax, [ebp - 0x270]
mov edx, dword [0x40d5c4]
call fcn.00407800
ret
Function at 0x401059
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401070
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4010a5
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x4010a1
cmp edi, eax
jae 0x4010a5
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x401093
cmp edi, eax
jb 0x4010a9
xor eax, eax
jmp 0x4010b2
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x401195
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 0x10], bl
mov byte [ebp - 0xf], bl
mov byte [ebp - 0xe], bl
mov byte [ebp - 0xd], bl
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], 5
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x4011f6
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x4011ed
mov dword [ebp - 8], ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
xor eax, eax
cmp dword [ebp - 8], ebx
pop ebx
setne al
leave
ret
Function at 0x401201
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 4], eax
test eax, eax
jne 0x40121d
xor al, al
leave
ret
mov eax, dword [0x40f0a4]
push ebx
push esi
push edi
mov ecx, 0x40f0a4
call dword [eax + 0xc]
add eax, 0x10
mov edi, 0x104
push edi
lea esi, [ebp - 8]
mov dword [ebp - 8], eax
call fcn.004017d6
mov ebx, dword [ebp - 8]
cmp dword [ebx - 8], edi
jge 0x401253
push 0x80070057
call fcn.00401000
push edi
push eax
push dword [ebp - 4]
xor ecx, ecx
mov dword [ebx - 0xc], edi
mov word [ebx + 0x208], cx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x401386
mov edi, ebx
lea esi, [ebp - 4]
call fcn.0040171a
mov eax, dword [ebp - 4]
push dword [eax - 0xc]
call fcn.004017d6
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov esi, dword [ebp - 4]
push dword [esi - 8]
push esi
call fcn.00404809
pop ecx
pop ecx
lea edx, [ebp - 4]
call fcn.004017fc
lea eax, [esi - 0x10]
mov dword [ebp - 4], eax
call fcn.0040190b
add eax, 0x10
lea edi, [eax - 0x10]
lea esi, [ebx - 0x10]
cmp edi, esi
je 0x4012ef
cmp dword [esi + 0xc], 0
jl 0x4012e0
mov ecx, dword [edi]
cmp ecx, dword [esi]
jne 0x4012e0
mov eax, edi
call fcn.0040190b
mov ebx, eax
mov eax, esi
call fcn.004010b5
add ebx, 0x10
mov dword [ebp - 8], ebx
jmp 0x4012ef
mov ebx, dword [eax - 0xc]
push eax
lea eax, [ebp - 8]
call fcn.00401895
mov ebx, dword [ebp - 8]
mov eax, edi
call fcn.004010b5
xor eax, eax
push 0x206
mov word [ebp - 0x224], ax
xor esi, esi
lea eax, [ebp - 0x222]
push esi
push eax
call fcn.00404b30
add esp, 0xc
lea eax, [ebp - 0x224]
push eax
push esi
push esi
push 0x26
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x40137e
lea edi, [ebp - 0x224]
lea esi, [ebp - 0x10]
call fcn.0040171a
or dword [ebp - 0x14], 0xffffffff
mov eax, esi
push 0x104
mov dword [ebp - 0x1c], eax
call fcn.004017d6
push 0x412c54
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
neg eax
sbb al, al
inc al
lea ecx, [ebp - 0x1c]
mov byte [ebp - 9], al
call fcn.004017b1
cmp byte [ebp - 9], 0
je 0x401392
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004010b5
mov eax, dword [ebp - 4]
call fcn.004010b5
lea eax, [ebx - 0x10]
call fcn.004010b5
xor al, al
jmp 0x4013e6
lea eax, [ebp - 0x10]
call fcn.00401777
lea eax, [ebp - 8]
call fcn.00401777
mov ebx, dword [ebp - 0x10]
mov edi, dword [ebp - 8]
test ebx, ebx
je 0x4013bb
cmp dword [edi - 0xc], 0
jl 0x4013bb
call fcn.00401b15
test eax, eax
jne 0x4013c0
or esi, 0xffffffff
jmp 0x4013c6
sub eax, edi
sar eax, 1
mov esi, eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004010b5
mov eax, dword [ebp - 4]
call fcn.004010b5
lea eax, [edi - 0x10]
call fcn.004010b5
test esi, esi
sete al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401441
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, eax
lea eax, [ebp - 4]
push eax
xor ebx, ebx
xor eax, eax
cmp byte [ebp + 8], bl
push 0x20019
setne al
push ebx
push 0x412c70
mov dword [ebp - 4], ebx
add eax, 0x80000001
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x401485
jle 0x4014e3
and eax, 0xffff
or eax, 0x80070000
jmp 0x4014e3
or dword [ebp - 0xc], 0xffffffff
push 0x32
pop eax
push eax
mov dword [ebp + 8], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], esi
call fcn.004017d6
lea ecx, [ebp - 8]
push ecx
push eax
mov dword [ebp - 0x10], eax
lea eax, [ebp + 8]
push eax
push ebx
push 0x412bc0
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.004017b1
cmp esi, ebx
je 0x4014d6
jle 0x4014d2
and esi, 0xffff
or esi, 0x80070000
mov eax, esi
jmp 0x4014e3
mov eax, dword [ebp + 8]
dec eax
neg eax
sbb eax, eax
and eax, 0x8000ffff
pop esi
pop ebx
leave
ret

Function at 0x40164c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call fcn.00401201
mov byte [ebp - 8], al
mov eax, dword [0x40f0a4]
mov ecx, 0x40f0a4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.004014e7
mov esi, eax
add esp, 0xc
test esi, esi
jge 0x401697
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004010b5
mov eax, esi
pop esi
leave
ret 0x10
push ebx
push dword [ebp - 8]
mov ebx, dword [ebp - 4]
push ebx
call fcn.004013eb
pop ecx
pop ecx
test eax, eax
jge 0x4016b9
mov esi, eax
lea eax, [ebx - 0x10]
call fcn.004010b5
mov eax, esi
pop ebx
jmp 0x401692
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x4016d1
call fcn.004010cd
jmp 0x4016aa
push edi
push 0x412bb4
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x4016f4
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call edi
mov edi, eax
jmp 0x4016f9
mov edi, 0x80004005
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, edi
pop edi
jmp 0x4016ac

Function at 0x405b2a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40e2d0]
jne 0x405b34
repz ret
jmp fcn.00408918
Function at 0x409872
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00405bab
and dword [ebp - 4], 0
cmp dword [0x40fbfc], 0
mov ebx, eax
jne 0x409923
push 0x411ad0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4099d4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x411ac4
push edi
call esi
test eax, eax
je 0x4099d4
push eax
call fcn.00405b39
mov dword [esp], 0x411ab4
push edi
mov dword [0x40fbfc], eax
call esi
push eax
call fcn.00405b39
mov dword [esp], 0x411aa0
push edi
mov dword [0x40fc00], eax
call esi
push eax
call fcn.00405b39
mov dword [esp], 0x411a84
push edi
mov dword [0x40fc04], eax
call esi
push eax
call fcn.00405b39
pop ecx
mov dword [0x40fc0c], eax
test eax, eax
je 0x409923
push 0x411a6c
push edi
call esi
push eax
call fcn.00405b39
pop ecx
mov dword [0x40fc08], eax
mov eax, dword [0x40fc08]
cmp eax, ebx
je 0x40997b
cmp dword [0x40fc0c], ebx
je 0x40997b
push eax
call fcn.00405bb4
push dword [0x40fc0c]
mov esi, eax
call fcn.00405bb4
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40997b
test edi, edi
je 0x40997b
call esi
test eax, eax
je 0x409972
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x409972
test byte [ebp - 0xc], 1
jne 0x40997b
or dword [ebp + 0x10], 0x200000
jmp 0x4099b4
mov eax, dword [0x40fc00]
cmp eax, ebx
je 0x4099b4
push eax
call fcn.00405bb4
pop ecx
test eax, eax
je 0x4099b4
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4099b4
mov eax, dword [0x40fc04]
cmp eax, ebx
je 0x4099b4
push eax
call fcn.00405bb4
pop ecx
test eax, eax
je 0x4099b4
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40fbfc]
call fcn.00405bb4
pop ecx
test eax, eax
je 0x4099d4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4099d6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x414de9
Capabilities:
Encode data using xor

Disassembly:
xor dword [eax], esi
add edx, edx
add eax, 4
cmp eax, edi
jne fcn.00414de9
or ebx, edx
push 0x4139e3cd
pop ebx
ret