joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403682
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x408138
call fcn.0040440c
mov edi, 0x94
mov eax, edi
call fcn.00404570
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 [0x46b3bc], ecx
mov eax, dword [esi + 4]
mov dword [0x46b3c8], eax
mov edx, dword [esi + 8]
mov dword [0x46b3cc], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x46b3c0], esi
cmp ecx, 2
je 0x4036e2
or esi, 0x8000
mov dword [0x46b3c0], esi
shl eax, 8
add eax, edx
mov dword [0x46b3c4], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40371d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40371d
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x403735
cmp eax, 0x20b
je 0x403722
mov dword [ebp - 0x1c], esi
jmp 0x403749
cmp dword [ecx + 0x84], 0xe
jbe 0x40371d
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x403743
cmp dword [ecx + 0x74], 0xe
jbe 0x40371d
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.004043bb
pop ecx
test eax, eax
jne 0x403775
cmp dword [0x46b3ac], 1
jne 0x403762
call fcn.00403b70
push 0x1c
call fcn.004039f9
push 0xff
call fcn.0040385e
pop ecx
pop ecx
call fcn.00404319
mov dword [ebp - 4], esi
call fcn.0040416e
test eax, eax
jge 0x40378e
push 0x1b
call fcn.0040365d
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x46b934], eax
call fcn.0040404c
mov dword [0x46b3a4], eax
call fcn.00403faa
test eax, eax
jge 0x4037b4
push 8
call fcn.0040365d
pop ecx
call fcn.00403d77
test eax, eax
jge 0x4037c5
push 9
call fcn.0040365d
pop ecx
push 1
call fcn.0040388e
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4037db
push eax
call fcn.0040365d
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00403d1a
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4037fc
movzx eax, word [ebp - 0x40]
jmp 0x4037ff
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004010d0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40381d
push edi
call fcn.004039b9
call fcn.004039db
jmp 0x40384f
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00404447
ret
Function at 0x4038f8
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x46b3fc], esi
push edi
jne 0x403918
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x46b3f8], esi
mov byte [0x46b3f4], al
jne 0x40397e
mov ecx, dword [0x46b928]
test ecx, ecx
je 0x40395f
mov eax, dword [0x46b924]
sub eax, 4
cmp eax, ecx
jmp 0x403958
mov eax, dword [eax]
test eax, eax
je 0x40394a
call eax
mov eax, dword [0x46b924]
sub eax, 4
cmp eax, dword [0x46b928]
mov dword [0x46b924], eax
jae 0x403942
mov eax, 0x40a01c
mov esi, 0x40a020
cmp eax, esi
mov edi, eax
jae 0x40397e
mov eax, dword [edi]
test eax, eax
je 0x403977
call eax
add edi, 4
cmp edi, esi
jb 0x40396f
mov eax, 0x40a024
mov esi, 0x40a028
cmp eax, esi
mov edi, eax
jae 0x40399d
mov eax, dword [edi]
test eax, eax
je 0x403996
call eax
add edi, 4
cmp edi, esi
jb 0x40398e
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x4039b7
push dword [ebp + 8]
mov dword [0x46b3fc], 1
call fcn.0040385e
pop ebp
ret

Function at 0x4039f9
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x46b270]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x46b140]
je 0x403a2e
inc eax
cmp eax, 0x13
jb 0x403a1f
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x46b140]
jne 0x403b54
mov eax, dword [0x46b3ac]
cmp eax, 1
je 0x403b2c
cmp eax, edx
jne 0x403a5e
cmp dword [0x46b138], 1
je 0x403b2c
cmp ecx, 0xfc
je 0x403b54
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403a94
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.004034d0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.004048a0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x403ac8
mov eax, edi
push eax
call fcn.004048a0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x408550
push edi
call fcn.00404770
add esp, 0x10
push edi
call fcn.004048a0
push dword [esi + 0x46b144]
mov ebx, eax
call fcn.004048a0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00404570
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004034d0
push edi
push ebx
call fcn.004034e0
push 0x408530
push ebx
call fcn.004034e0
push dword [esi + 0x46b144]
push ebx
call fcn.004034e0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00404669
add esp, 0x2c
jmp 0x403b54
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x46b144]
push dword [esi]
call fcn.004048a0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0040495c
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x404669
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x46b514], ebx
push esi
push edi
jne 0x4046e9
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x404724
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x46b514], eax
je 0x404724
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x46b518], eax
call esi
cmp dword [0x46b3bc], 2
mov dword [0x46b51c], eax
jne 0x4046e9
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x46b524], eax
je 0x4046e9
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x46b520], eax
mov eax, dword [0x46b520]
test eax, eax
je 0x40472e
call eax
test eax, eax
je 0x404715
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x46b524]
test eax, eax
je 0x404715
test byte [ebp - 8], 1
jne 0x40472e
cmp dword [0x46b3c8], 4
jb 0x404728
or byte [ebp + 0x12], 0x20
jmp 0x40474d
xor eax, eax
jmp 0x40475d
or byte [ebp + 0x12], 4
jmp 0x40474d
mov eax, dword [0x46b518]
test eax, eax
je 0x40474d
call eax
mov ebx, eax
test ebx, ebx
je 0x40474d
mov eax, dword [0x46b51c]
test eax, eax
je 0x40474d
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x46b514]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405dae
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x405ddc
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x405de3
cmp ebx, dword [eax + 4]
jae 0x405de3
xor eax, eax
jmp 0x405fd3
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x405df4
xor eax, eax
inc eax
jmp 0x405fd2
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x405e0a
cmp ecx, edx
jae 0x405f4f
cmp dword [eax + 4], 0
je 0x405e13
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x405dfb
cmp dword [ebp + 8], 0
je 0x405e35
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x405f4f
cmp eax, esi
jae 0x405f4f
mov eax, dword [0x46b530]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x405e5a
cmp dword [esi*4 + 0x46b538], edi
je 0x405f53
inc esi
cmp esi, eax
jl 0x405e48
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x405fcf
cmp dword [ebp - 8], 0x1000000
jne 0x405fcf
test byte [ebp - 0xc], 0xcc
je 0x405ed8
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x405fcf
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x405fcf
cmp word [eax + 0x18], 0x10b
jne 0x405fcf
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x405fcf
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x405ed8
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x405ed8
test byte [ecx + 0x27], 0x80
jne 0x405f4f
push 1
push 0x46b578
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x405dec
mov ecx, dword [0x46b530]
test ecx, ecx
mov edx, ecx
jle 0x405f0c
lea eax, [ecx*4 + 0x46b534]
cmp dword [eax], edi
je 0x405f0c
dec edx
sub eax, 4
test edx, edx
jg 0x405f00
test edx, edx
jne 0x405f3d
push 0xf
pop ebx
cmp ecx, ebx
jg 0x405f19
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x405f31
lea eax, [edx*4 + 0x46b538]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x405f1f
cmp ecx, 0x10
jge 0x405f3d
inc ecx
mov dword [0x46b530], ecx
push 0
push 0x46b578
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x405dec
xor eax, eax
jmp 0x405fd2
test esi, esi
jle 0x405dec
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x46b578
call ebx
test eax, eax
jne 0x405dec
cmp dword [esi*4 + 0x46b538], edi
je 0x405fa9
mov eax, dword [0x46b530]
lea esi, [eax - 1]
test esi, esi
jl 0x405f97
cmp dword [esi*4 + 0x46b538], edi
je 0x405f93
dec esi
jns 0x405f87
test esi, esi
jge 0x405fa7
cmp eax, 0x10
jge 0x405fa2
inc eax
mov dword [0x46b530], eax
lea esi, [eax - 1]
jmp 0x405fa9
je 0x405fc1
xor ecx, ecx
test esi, esi
jl 0x405fc1
lea eax, [ecx*4 + 0x46b538]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x405faf
push 0
push 0x46b578
call ebx
jmp 0x405dec
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406df9
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00404570
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x406e94
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x46b3bc]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x406e94
cmp eax, 1
je 0x406eb5
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x406e94
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x406e61
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x406e90
xor eax, eax
inc eax
jmp 0x406ed4
cmp edi, eax
jae 0x406e98
xor eax, eax
jmp 0x406ed4
cmp eax, esi
jae 0x406e9f
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x46b3bc]
jmp 0x406eb8
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4d1eb0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x8f000]
push edi
jmp 0x4d1eca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4d1ed1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4d1ec0
mov eax, 1
add ebx, ebx
jne 0x4d1ee3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4d1ef4
jne 0x4d1f13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4d1f13
dec eax
add ebx, ebx
jne 0x4d1f00
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4d1ed8
add ebx, ebx
jne 0x4d1f0f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4d1f65
xor ecx, ecx
sub eax, 3
jb 0x4d1f2b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4d1f9a
sar eax, 1
mov ebp, eax
jmp 0x4d1f36
add ebx, ebx
jne 0x4d1f36
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4d1f04
inc ecx
add ebx, ebx
jne 0x4d1f44
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4d1f04
add ebx, ebx
jne 0x4d1f51
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4d1f46
jne 0x4d1f62
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4d1f46
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4d1f84
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4d1f76
jmp 0x4d1ec6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4d1f84
add edi, ecx
jmp 0x4d1ec6
pop esi
mov edi, esi
mov ecx, 0x377e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4d1fa2
cmp byte [edi], 0x11
jne 0x4d1fa2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4d1fa7
lea edi, [esi + 0xcd000]
mov eax, dword [edi]
or eax, eax
je 0x4d201f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xf1d5c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xf1eb0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4d1fd4
mov ecx, edi
jns 0x4d2003
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 + 0xf1eb4]
or eax, eax
je 0x4d2019
mov dword [ebx], eax
add ebx, 4
jmp 0x4d1ff1
call dword [esi + 0xf1ec4]
mov ebp, dword [esi + 0xf1eb8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4d2053
sub esp, 0xffffff80
jmp 0x416310
Function at 0x4018ba
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0x240
mov dword [ebp - 0x1c], 0xc23
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0x1b0
mov dword [ebp - 0x10], 0xbc4
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x2c], 0
mov word [ebp - 0x30], 0xa
mov word [ebp - 0x2e], 0xa
mov ecx, dword [0x40c1f8]
call fcn.00403b59
mov word [ebp - 0x28], ax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x34], 0x9c402450
push 0
lea eax, [ebp - 0x38]
push eax
push 0x28
lea ecx, [ebp - 0x30]
push ecx
push 0x28
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [0x40c204]
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 0x40], eax
lea edx, [ebp - 0x144]
push edx
mov ecx, dword [0x40c1f8]
call fcn.00403a04
lea eax, [ebp - 0x44]
push eax
push 3
push 0
lea ecx, [ebp - 0x144]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x401984
jmp 0x401a7c
mov dword [ebp - 4], 4
mov dword [ebp - 0x3c], 4
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 0
push str.OffsetX
mov edx, dword [ebp - 0x44]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 4]
push edx
push 0
push str.ScrDx
mov eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 4]
push eax
push 0
push 0x40b5c4
mov ecx, dword [ebp - 0x44]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 0
push str.OffsetY
mov edx, dword [ebp - 0x44]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 4]
push edx
push 0
push str.ScrDy
mov eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
push 0
push 0x40b5d8
mov ecx, dword [ebp - 0x44]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 0
push str.SwapXY
mov edx, dword [ebp - 0x44]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x401af1
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 0xc], 0
jl 0x401b20
mov ecx, dword [0x40c1f8]
call fcn.00403c6c
sub eax, 1
cmp dword [ebp + 0xc], eax
jg 0x401b20
mov ecx, dword [0x40c210]
call fcn.00404439
cmp eax, 0x20
jle 0x401b2a
mov eax, 1
jmp 0x401c14
mov ecx, dword [0x40c210]
call fcn.0040428c
mov ecx, dword [0x40c210]
call fcn.004045da
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [0x40c1f8]
call fcn.00403c7d
push 2
mov edx, dword [ebp + 8]
push edx
call fcn.00402321
add esp, 8
test eax, eax
je 0x401b72
mov eax, 1
jmp 0x401c14
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.00404b95
add esp, 0xc
test eax, eax
je 0x401b94
mov eax, 1
jmp 0x401c14
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
mov dword [ecx], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 8]
add edx, 0x14
push edx
push 0
mov eax, dword [ebp - 8]
push eax
push 0x401cc6
push 0x200
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 8]
cmp dword [edx + 0xc], 0
jne 0x401bec
mov eax, 1
jmp 0x401c14
mov eax, dword [ebp - 8]
push eax
call fcn.00404d5b
add esp, 4
test eax, eax
je 0x401c03
mov eax, 1
jmp 0x401c14
push 2
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x402edc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov dword [ebp - 0x228], 0xffffffff
mov ecx, dword [0x40c1f8]
call fcn.00403823
test eax, eax
jne 0x402f05
xor eax, eax
jmp 0x4030bb
mov ecx, dword [0x40c1f8]
call fcn.00403c6c
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], 0
mov ecx, dword [0x40c1f8]
call fcn.00403b35
cmp eax, 0xffffffff
je 0x402f39
call fcn.00403260
test eax, eax
jne 0x402f62
mov eax, dword [ebp - 0x21c]
add eax, 1
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x228], 0xffffffff
jne 0x402f62
mov ecx, dword [0x40c1f8]
call fcn.00403b59
mov dword [ebp - 0x228], eax
mov ecx, dword [0x40c1f8]
call fcn.00403897
test eax, eax
jne 0x402f20
cmp dword [ebp + 8], 1
jne 0x402f83
mov ecx, dword [0x40c208]
mov dword [ebp - 0x21c], ecx
mov edx, dword [0x40c1d0]
cmp edx, dword [ebp - 0x220]
jg 0x402f9a
cmp dword [ebp - 0x21c], 0
jne 0x402fa1
xor eax, eax
jmp 0x4030bb
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x40b740
lea ecx, [ebp - 0x218]
push ecx
call fcn.00405400
add esp, 8
push str.EloVa
lea edx, [ebp - 0x218]
push edx
call fcn.00405400
add esp, 8
mov byte [ebp - 0x114], 0
cmp dword [ebp - 0x21c], 1
jne 0x40305c
mov ecx, dword [0x40c1f8]
call fcn.00403823
mov dword [ebp - 0x224], 0
jmp 0x403011
mov eax, dword [ebp - 0x224]
add eax, 1
mov dword [ebp - 0x224], eax
mov ecx, dword [ebp - 0x224]
cmp ecx, dword [ebp - 0x220]
jge 0x40303e
mov ecx, dword [0x40c1f8]
call fcn.00403b35
cmp eax, 0xffffffff
jne 0x403031
jmp 0x40303e
mov ecx, dword [0x40c1f8]
call fcn.00403897
jmp 0x403002
mov edx, dword [ebp - 0x224]
add edx, 1
push edx
push str.__t_d
lea eax, [ebp - 0x114]
push eax
call fcn.0040533a
add esp, 0xc
cmp dword [0x40c208], 0
je 0x403079
push str.__t0
lea ecx, [ebp - 0x114]
push ecx
call fcn.0040533a
add esp, 8
lea edx, [ebp - 0x114]
push edx
lea eax, [ebp - 0x218]
push eax
call fcn.00405400
add esp, 8
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x218]
push edx
call fcn.004030bf
add esp, 8
test eax, eax
je 0x4030b9
lea eax, [ebp - 0x10]
push eax
call fcn.00404ce5
add esp, 4
mov eax, 1
jmp 0x4030bb
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4030bf
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov dword [ebp - 0x48], 0x44
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x18], 0
mov word [ebp - 0x16], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x48]
push ecx
push 0
push 0
push 8
push 0
push 0
push 0
mov edx, dword [ebp + 8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x403175
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x4c], eax
jmp 0x4031b0
push 0x2710
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x4031b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x4c], eax
push 0x29a
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x403260
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
lea eax, [ebp - 0x150]
push eax
mov ecx, dword [0x40c1f8]
call fcn.00403a04
lea ecx, [ebp - 0x50]
push ecx
push 3
push 0
lea edx, [ebp - 0x150]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x4032a5
xor eax, eax
jmp 0x403362
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x154], 0x20
lea eax, [ebp - 0x154]
push eax
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x24]
push edx
push 0
push str.SerialNumber
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x4032e3
xor eax, eax
jmp 0x403362
lea ecx, [ebp - 0x4c]
push ecx
mov ecx, dword [0x40c1f8]
call fcn.00403ad2
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x4c]
push eax
call fcn.004054e0
add esp, 8
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], 1
cmp dword [ebp - 0x28], 0
je 0x403355
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x24], 4
mov dword [ebp - 0x154], 0xffffffff
push 4
mov ecx, dword [ebp - 0x154]
push ecx
mov edx, dword [ebp - 0x24]
push edx
push 0
push str.MonitorNumber
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0xffffffffffffffff
mov ecx, dword [0x40c1f8]
call fcn.00403bb9
mov ecx, dword [ebp - 0x50]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x2c]
mov esp, ebp
pop ebp
ret