joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4039c1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x4039d0
pop dword [ebp - 0x1c]
mov eax, 0x62ba85b
sub eax, 0x5eb6e8b
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x272e55cd
add dword [ebp - 0x2c], 0x2723ef7e
mov dword [ebp - 0x28], 0xb10656cc
add dword [ebp - 0x28], 0x812cf579
mov dword [ebp - 0x24], 0x868637b2
sub dword [ebp - 0x24], 0x3a39f384
mov dword [ebp - 0x20], 0xcddeeda7
sub dword [ebp - 0x20], 0xcddeeda7
lea eax, [ebp - 0x2c]
push eax
mov eax, 0xa8a94665
add eax, 0x5796fa1f
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0xc20e9082
add dword [ebp - 0x2c], 0xb263d8d4
mov dword [ebp - 0x28], 0xdb852352
sub dword [ebp - 0x28], 0x9a18c1dd
mov dword [ebp - 0x24], 0x9ac99943
sub dword [ebp - 0x24], 0x375a2cd7
mov dword [ebp - 0x20], 0xf00df0de
sub dword [ebp - 0x20], 0xf00df0de
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, 0x7768700f
sub eax, 0x77282f87
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x34da8
push 0
call eax
mov ecx, 0x4091
mov edx, eax
mov esi, 0x9047d71e
sub esi, 0x90074f1e
add esi, dword [ebp - 0x1c]
mov ebx, 0x5ef5c6c8
sub ebx, 0x960c8437
add dword [ebp - 4], ecx
mov edi, dword [esi]
xor dword [ebp - 0xc], 0xf152980d
xor edi, ebx
sub dword [ebp - 4], edx
mov dword [edx], edi
xor dword [ebp - 0x14], 0xf5bfe05e
add edx, 0x4e14e85e
add edx, 0xb1eb17a6
add esi, 4
loop 0x403aec
add eax, 0xf517
mov ebx, eax
add eax, 0xf62679a
sub eax, 0xf626795
mov ecx, 0x400000
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x104a0058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x104a01a8
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 0x104a007e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x104a006a
add dl, dl
jne 0x104a0089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x104a00dc
xor eax, eax
add dl, dl
jne 0x104a0096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x104a017d
add dl, dl
jne 0x104a00a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104a00b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104a00bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104a00c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x104a00d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x104a0075
mov eax, 1
add dl, dl
jne 0x104a00ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104a00f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x104a00e1
sub eax, ebx
mov ebx, 1
jne 0x104a0128
mov ecx, 1
add dl, dl
jne 0x104a010e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x104a0119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x104a0105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x104a0075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x104a013f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x104a014a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x104a0136
cmp eax, 0x7d00
jae 0x104a016d
cmp eax, 0x500
jb 0x104a0168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x104a0075
cmp eax, 0x7f
ja 0x104a0170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x104a0075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x104a019e
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 0x104a0075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x10013b98
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10013bbf
push 0x1b12
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
jmp 0x10013be5
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x10013be5
push 0x11d9
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov esp, ebp
pop ebp
ret

Function at 0x10014d49
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x10014d61
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
jmp 0x10014da9
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x10014d8f
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 2
jge 0x10014da9
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x10]
call fcn.100164a4
and dword [eax], 0
jmp 0x10014d84
mov esp, ebp
pop ebp
ret

Function at 0x100160b1
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100799ed
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x10016143
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
push dword [eax]
mov eax, dword [ebp - 0x28]
push dword [eax]
lea eax, [ebp - 0x48]
push eax
call fcn.10013e38
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
and dword [ebp - 4], 0
push dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
call fcn.100166bd
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.100166f2
jmp 0x10016174
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
movzx eax, byte [eax]
test eax, eax
je 0x10016174
push 0x6fb
push 0
push 0x1be7
push 0x1d4b
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x10019d3a
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x10019d68
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x10019d66
push 0
push 0x922
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
jmp 0x10019d91
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
push 2
mov ecx, dword [ebp - 0x14]
call fcn.100164a4
mov dword [eax], esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1001c78d
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10079b7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1001c7d6
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
movzx eax, byte [eax]
test eax, eax
je 0x1001c7d1
push 0x1b35
call dword [sym.imp.USER32.dll_GetKeyState]
jmp 0x1001c862
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [eax], 0
jmp 0x1001c7f8
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0xffffffe7
jge 0x1001c862
push 3
lea ecx, [ebp - 0x2c]
call fcn.10016406
and dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
jmp 0x1001c81e
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 3
jge 0x1001c837
push dword [ebp - 0x14]
lea ecx, [ebp - 0x2c]
call fcn.100164a4
mov dword [eax], 0xdc4b
jmp 0x1001c817
push 2
lea ecx, [ebp - 0x2c]
call fcn.100164a4
cmp dword [eax], 0
je 0x1001c854
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10016488
jmp 0x1001c862
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10016488
jmp 0x1001c7ed
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x1001c870
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x1001c8a5
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x1001c8a3
push 1
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_FlashWindow]
jmp 0x1001c8d5
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
test eax, eax
je 0x1001c8d5
push 0x11d9
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov esp, ebp
pop ebp
ret
Function at 0x10026ea4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x10026ece
push 0x11d9
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x10026f2e
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
push 1
mov ecx, dword [ebp - 4]
call fcn.100164a4
and dword [eax], 0
jmp 0x10026f0d
push 1
mov ecx, dword [ebp - 4]
call fcn.100164a4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
push 1
mov ecx, dword [ebp - 4]
call fcn.100164a4
cmp dword [eax], 0
jl 0x10026f2e
push 0
mov ecx, dword [ebp - 0x14]
call fcn.100164a4
mov dword [eax], 0xfffffffa
jmp 0x10026ef5
mov esp, ebp
pop ebp
ret

Function at 0x1002b1c6
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1002b208
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
lea eax, [eax*4 + 4]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push dword [eax + 8]
call fcn.1006037c
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
mov dword [ecx + 8], eax
jmp 0x1002b219
push 0
push 0x922
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esp, ebp
pop ebp
ret
Function at 0x1002c285
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x1002c2a9
xor eax, eax
jmp 0x1002c3f9
push 0x4c9e
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
push 0x54ca
push 1
call fcn.1002bf1c
add esp, 0x18
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x1002c2db
xor eax, eax
jmp 0x1002c3f9
lea eax, [ebp - 8]
push eax
push 1
lea eax, [ebp - 0xc]
push eax
push 0x7cde
push 0x159d
call fcn.1002bfcc
add esp, 0x14
cmp dword [ebp - 0xc], 0
jne 0x1002c304
xor eax, eax
jmp 0x1002c3f9
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
push 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.1002c10a
add esp, 0x18
push dword [ebp - 4]
push 0x44e5
push dword [ebp + 8]
push 0xead
push dword [ebp - 8]
push 0
call fcn.100242ac
add esp, 0x18
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
sub ecx, dword [eax + 0x34]
mov dword [ebp - 0x14], ecx
je 0x1002c369
lea eax, [ebp - 0x14]
push eax
push 0x3e40
push 1
lea eax, [ebp - 4]
push eax
push 0x3291
call fcn.1002c1a1
add esp, 0x14
push dword [ebp - 4]
call fcn.1002b24a
pop ecx
test eax, eax
jne 0x1002c37a
xor eax, eax
jmp 0x1002c3f9
push 0x3ad3
push 0x1fbf
push 1
push dword [ebp - 4]
call fcn.10025ca0
add esp, 0x10
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [eax + 0x28], 0
je 0x1002c3e1
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x28]
mov dword [ebp - 0x18], ecx
jne 0x1002c3b0
xor eax, eax
jmp 0x1002c3f9
push 0
push 1
push 0xdeadbeef
call dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x1002c3c9
xor eax, eax
jmp 0x1002c3f9
push 0x4cee
push 1
lea eax, [ebp - 4]
push eax
push 0x7582
call fcn.1002c231
add esp, 0x10
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x1002c3f2
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
jmp 0x1002c3f6
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
Function at 0x10043732
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1004378a
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x18]
add eax, dword [ecx]
mov ecx, dword [ebp - 0x1c]
add eax, dword [ecx]
mov ecx, dword [ebp - 0x20]
mov ecx, dword [ecx]
mov byte [ecx + eax], 0
jmp 0x1004379b
push 0
push 0x922
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esp, ebp
pop ebp
ret
Function at 0x10075310
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1007f3ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.100661ea
mov dword [ebp - 0x14], eax
cmp dword [0x1066cbf4], esi
jne 0x10075403
push 0x800
push esi
push 0x10007a7c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x10075390
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x100754e3
push esi
push esi
push 0x10007a7c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x100754e3
push 0x10007a94
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100754e3
push eax
call ebx
push 0x10007aa0
push edi
mov dword [0x1066cbf4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007ab0
push edi
mov dword [0x1066cbf8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007ac4
push edi
mov dword [0x1066cbfc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1066cc04], eax
test eax, eax
je 0x10075400
push 0x10007ae0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1066cc00], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x10075428
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1007541b
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x1007543d
push 4
pop eax
jmp 0x100754e5
cmp dword [ebp - 0x14], esi
je 0x1007543d
push dword [0x1066cbf4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x10075422
mov eax, dword [0x1066cc00]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x1007549b
cmp dword [0x1066cc04], edi
je 0x1007549b
push eax
call ebx
push dword [0x1066cc04]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1007549b
test eax, eax
je 0x1007549b
call ecx
test eax, eax
je 0x10075490
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x10075490
test byte [ebp - 8], 1
jne 0x1007549b
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x100754cb
mov eax, dword [0x1066cbf8]
cmp eax, edi
je 0x100754c8
push eax
call ebx
test eax, eax
je 0x100754c8
call eax
mov esi, eax
test esi, esi
je 0x100754c8
mov eax, dword [0x1066cbfc]
cmp eax, edi
je 0x100754c8
push eax
call ebx
test eax, eax
je 0x100754c8
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x1066cbf4]
call ebx
test eax, eax
je 0x100754e3
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x100754e5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100610d5
mov esp, ebp
pop ebp
ret
Function at 0x402a10
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push 0
lea ecx, [ebp + 8]
call fcn.00420f50
push eax
call fcn.00500d08
add esp, 8
cmp eax, 0xffffffff
jne 0x402a79
push 1
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
mov dword [ebp - 0x20], 0xc
mov dword [ebp - 0x18], 1
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x1c], ecx
lea edx, [ebp - 0x20]
push edx
lea ecx, [ebp + 8]
call fcn.00420f50
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x402a79
mov dword [ebp - 0x24], 0
lea ecx, [ebp + 8]
call fcn.00402cd0
mov eax, dword [ebp - 0x24]
jmp 0x402a8b
mov dword [ebp - 0x28], 1
lea ecx, [ebp + 8]
call fcn.00402cd0
mov eax, dword [ebp - 0x28]
mov esp, ebp
pop ebp
ret

Function at 0x405480
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
xor eax, eax
jne 0x405489
xor ecx, ecx
jne 0x405489
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
shl eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4054d0
mov eax, dword [ebp - 0xc]
jmp 0x40552d
cmp dword [ebp - 4], 1
je 0x4054e3
cmp dword [ebp - 4], 2
je 0x4054e3
mov eax, 0xd
jmp 0x40552d
cmp dword [ebp + 0xc], 0
je 0x405521
cmp dword [ebp - 8], 0
je 0x405519
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x405510
mov edx, dword [ebp - 8]
shr edx, 1
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + edx*2 - 2]
test ecx, ecx
je 0x405517
mov eax, 0xd
jmp 0x40552d
jmp 0x405521
xor edx, edx
mov eax, dword [ebp + 0xc]
mov word [eax], dx
mov ecx, dword [ebp - 8]
shr ecx, 1
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4080b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x532a88
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x56d940]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov byte [ebp - 0xd], 0
lea ecx, [ebp + 8]
call fcn.00408d10
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4080f8
mov byte [ebp - 0xd], 0
jmp 0x4080fc
mov byte [ebp - 0xd], 1
push 0xffffffffffffffff
lea ecx, [ebp + 8]
call fcn.00403480
mov al, byte [ebp - 0xd]
mov byte [ebp - 0xe], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402cd0
mov al, byte [ebp - 0xe]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x40c8d0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x40]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov esp, ebp
pop ebp
ret

Function at 0x411600
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53659b
mov eax, dword fs:[0]
push eax
sub esp, 0x56c
mov eax, dword [0x56d940]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x578], ecx
mov ecx, dword [ebp - 0x578]
call fcn.004e6cea
call fcn.004ea806
call fcn.004ea64b
mov dword [eax + 0x7c], 0
push str.YXGStart
mov ecx, dword [ebp - 0x578]
call fcn.004e78ad
push 0
mov eax, dword [ebp - 0x578]
add eax, 0xa8
push eax
mov ecx, dword [ebp - 0x578]
add ecx, 0xa4
push ecx
call sub.gdiplus.dll_GdiplusStartup
push 0
call fcn.004e86c2
add esp, 4
mov dword [ebp - 0x568], 0
mov dword [ebp - 0x10], 0
lea edx, [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x568], eax
mov dword [ebp - 0x14], 0
push 0
mov ecx, dword [ebp - 0x578]
add ecx, 0xb8
call fcn.004114a0
mov dword [ebp - 0x56c], 1
jmp 0x4116e1
mov eax, dword [ebp - 0x56c]
add eax, 1
mov dword [ebp - 0x56c], eax
mov ecx, dword [ebp - 0x56c]
cmp ecx, dword [ebp - 0x10]
jge 0x411736
mov edx, dword [ebp - 0x56c]
mov eax, dword [ebp - 0x568]
mov ecx, dword [eax + edx*4]
push ecx
lea ecx, [ebp - 0x570]
call fcn.00402c50
push 0x551f4c
lea edx, [ebp - 0x570]
push edx
call fcn.00408cf0
add esp, 8
movzx eax, al
test eax, eax
je 0x411729
mov dword [ebp - 0x14], 1
lea ecx, [ebp - 0x570]
call fcn.00402cd0
jmp 0x4116d2
push 0
lea ecx, [ebp - 0x564]
call fcn.00412a80
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x578]
lea edx, [ebp - 0x564]
mov dword [ecx + 0x20], edx
lea ecx, [ebp - 0x564]
call fcn.004e9a45
mov dword [ebp - 0x574], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x564]
call fcn.00413550
mov eax, dword [ebp - 0x574]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x4125c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
lea ecx, [ebp + 8]
call fcn.00420f50
mov dword [ebp - 0x2c], eax
lea ecx, [ebp + 0xc]
call fcn.00420f50
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 0
movzx eax, byte [ebp + 0x10]
sub eax, 1
neg eax
sbb eax, eax
and eax, 0xfffffffb
add eax, 5
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x3c]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
lea ecx, [ebp + 8]
call fcn.00402cd0
lea ecx, [ebp + 0xc]
call fcn.00402cd0
mov esp, ebp
pop ebp
ret