joyce8/EMBER2024-capa huggingface dataset:
Function at 0x474ad8
Capabilities:
Create process on windows
Self delete

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x474ae0
push ecx
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x474ca1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x4159cc]
call fcn.00403170
mov dword [ebp - 8], eax
mov dl, 1
mov eax, dword [0x4159cc]
call fcn.00403170
mov dword [ebp - 4], eax
lea edx, [ebp - 0x10]
mov eax, 0x474cbc
call fcn.0040d900
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov edx, 0x474cd0
call fcn.00404280
call fcn.00402938
push dword [ebp - 0x10]
push 0x474cf4
mov eax, 0x2710
call fcn.00402bac
lea edx, [ebp - 0x20]
call fcn.00408418
push dword [ebp - 0x20]
push 0x474d00
lea eax, [ebp - 0x18]
mov edx, 4
call fcn.004042f4
push 0
push 0x474d10
push dword [ebp - 0x18]
push 0x474d34
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.004042f4
mov eax, dword [ebp - 0x24]
call fcn.00404434
push eax
call sub.kernel32.dll_WinExec
push 0x7d0
call sub.kernel32.dll_Sleep_1
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x68]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x474c38
inc eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0xc], 0
lea ecx, [ebp - 0x14]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, 0x474d40
mov eax, dword [ebp - 0x14]
call fcn.0042db18
test al, al
jne 0x474bf3
mov edx, 0x474d54
mov eax, dword [ebp - 0x14]
call fcn.0042db18
test al, al
je 0x474c30
xor eax, eax
push ebp
push 0x474c26
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x28]
mov edx, 0x11
mov eax, dword [ebp - 0x14]
call fcn.0042db88
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x474c30
inc dword [ebp - 0xc]
dec dword [ebp - 0x1c]
jne 0x474bc3
push 0x1f4
call sub.kernel32.dll_Sleep_1
push 0
push 0x474d70
push dword [ebp - 0x18]
push 0x474d34
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.004042f4
mov eax, dword [ebp - 0x2c]
call fcn.00404434
push eax
call sub.kernel32.dll_WinExec
push 0x1f4
call sub.kernel32.dll_Sleep_1
mov ebx, dword [ebp - 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x474ca8
lea eax, [ebp - 0x2c]
mov edx, 4
call fcn.00403f98
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00403f98
ret
Function at 0x416113
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x416152
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x416152
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x416152
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x416152
cmp dword [ecx + 0x74], 0xe
jbe 0x416152
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x428520
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42854d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42854d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40c6a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa000]
push edi
or ebp, 0xffffffff
jmp 0x40c6c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40c6c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40c6b8
mov eax, 1
add ebx, ebx
jne 0x40c6db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40c6d0
jne 0x40c6ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40c6d0
xor ecx, ecx
sub eax, 3
jb 0x40c700
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40c772
mov ebp, eax
add ebx, ebx
jne 0x40c70b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40c718
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40c73c
inc ecx
add ebx, ebx
jne 0x40c728
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40c71d
jne 0x40c739
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40c71d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40c75c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40c74d
jmp 0x40c6be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40c75c
add edi, ecx
jmp 0x40c6be
pop esi
lea edi, [esi + 0xa000]
mov eax, dword [edi]
or eax, eax
je 0x40c7c4
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xc000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xc050]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40c779
mov ecx, edi
jns 0x40c7a8
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 + 0xc054]
or eax, eax
je 0x40c7be
mov dword [ebx], eax
add ebx, 4
jmp 0x40c796
call dword [esi + 0xc05c]
mov ebp, dword [esi + 0xc058]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
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 0x40c7f8
sub esp, 0xffffff80
jmp 0x40a94c
Function at 0x401290
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [esp + 8]
push eax
push 4
push esi
push ebx
mov dword [esp + 0x18], 0
call ebp
test eax, eax
je 0x40130c
cmp dword [esp + 4], 4
jb 0x40130c
mov ecx, dword [esi]
mov eax, ecx
and eax, 0xff0000
mov edx, ecx
shr edx, 0x10
or eax, edx
mov edx, ecx
and edx, 0xff00
shl ecx, 0x10
or edx, ecx
shr eax, 8
shl edx, 8
or eax, edx
cmp eax, 1
mov dword [esi], eax
jb 0x40130c
add eax, 1
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [edi], eax
je 0x40130c
mov edx, dword [esi]
push 0
lea ecx, [esp + 8]
push ecx
push edx
push eax
push ebx
call ebp
mov eax, dword [edi]
mov ecx, dword [esi]
mov byte [eax + ecx], 0
pop ebp
pop ecx
ret
Function at 0x402904
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40e050]
jne 0x40290e
repz ret
jmp fcn.00404423

Function at 0x405792
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x40e928]
je 0x4057ad
inc edi
cmp edi, 0x17
jb 0x40579e
cmp edi, 0x17
jae 0x40592d
push ebp
push 3
call fcn.00408ceb
cmp eax, 1
pop ecx
je 0x4058f9
push 3
call fcn.00408ceb
test eax, eax
pop ecx
jne 0x4057e1
cmp dword [0x40e060], 1
je 0x4058f9
cmp ebx, 0xfc
je 0x40592c
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x40f500
push ebp
call fcn.00407b99
add esp, 0xc
test eax, eax
je 0x405817
push esi
push esi
push esi
push esi
push esi
call fcn.004042b5
add esp, 0x14
push 0x104
mov esi, 0x40f519
push esi
push 0
mov byte [0x40f61d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40585b
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00407b99
add esp, 0xc
test eax, eax
je 0x40585b
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004042b5
add esp, 0x14
push esi
call fcn.00408000
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4058a0
push esi
call fcn.00408000
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x40f814
push 0x40ba44
sub ecx, eax
push ecx
push eax
call fcn.00407ae6
add esp, 0x14
test eax, eax
je 0x4058a0
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004042b5
add esp, 0x14
jmp 0x4058a2
xor esi, esi
push 0x40ba40
push ebx
push ebp
call fcn.00407a2e
add esp, 0xc
test eax, eax
je 0x4058c2
push esi
push esi
push esi
push esi
push esi
call fcn.004042b5
add esp, 0x14
push dword [edi*8 + 0x40e92c]
push ebx
push ebp
call fcn.00407a2e
add esp, 0xc
test eax, eax
je 0x4058e4
push esi
push esi
push esi
push esi
push esi
call fcn.004042b5
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00408b2e
add esp, 0xc
jmp 0x40592c
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x40592c
cmp ebp, 0xffffffff
je 0x40592c
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x40e92c]
push dword [esi]
call fcn.00408000
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x408b2e
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00403dc9
xor ebx, ebx
cmp dword [0x40f964], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x408c04
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x408ce4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40c474
push edi
call esi
cmp eax, ebx
je 0x408ce4
push eax
call fcn.00403d5b
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40f964], eax
call esi
push eax
call fcn.00403d5b
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40f968], eax
call esi
push eax
call fcn.00403d5b
mov dword [0x40f96c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040551f
test eax, eax
pop ecx
pop ecx
je 0x408bd2
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004042b5
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x408c04
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00403d5b
cmp eax, ebx
pop ecx
mov dword [0x40f974], eax
je 0x408c04
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403d5b
pop ecx
mov dword [0x40f970], eax
mov eax, dword [0x40f970]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x408c89
cmp dword [0x40f974], ecx
je 0x408c89
push eax
call fcn.00403dd2
push dword [0x40f974]
mov esi, eax
call fcn.00403dd2
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x408c89
cmp edi, ebx
je 0x408c89
call esi
cmp eax, ebx
je 0x408c56
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x408c56
test byte [ebp - 0x18], 1
jne 0x408c89
lea eax, [ebp - 0x10]
push eax
call fcn.00405556
test eax, eax
pop ecx
je 0x408c71
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004042b5
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x408c80
or dword [ebp + 0x10], 0x200000
jmp 0x408cc4
or dword [ebp + 0x10], 0x40000
jmp 0x408cc4
mov eax, dword [0x40f968]
cmp eax, dword [ebp - 8]
je 0x408cc4
push eax
call fcn.00403dd2
cmp eax, ebx
pop ecx
je 0x408cc4
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x408cc4
mov eax, dword [0x40f96c]
cmp eax, dword [ebp - 8]
je 0x408cc4
push eax
call fcn.00403dd2
cmp eax, ebx
pop ecx
je 0x408cc4
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40f964]
call fcn.00403dd2
cmp eax, ebx
pop ecx
je 0x408ce4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408ce6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401100
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x10]
push 0
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40112e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 2
pop esi
ret
mov eax, dword [esp + 0x10]
sub eax, esi
pop esi
neg eax
sbb eax, eax
and eax, 3
ret

Function at 0x402180
Capabilities:
Get disk size

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x124
push ebp
or ebp, 0xffffffff
test eax, eax
push edi
je 0x402199
mov dword [eax], 1
mov edi, dword [esp + 0x130]
test edi, edi
je 0x40230e
cmp byte [edi], 0
je 0x40230e
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
push esi
lea edx, [esp + 0x2c]
mov eax, ecx
mov esi, edi
mov edi, edx
mov bl, 0x5c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp byte [esp + 0x2d], 0x3a
jne 0x4021e8
cmp byte [esp + 0x2e], bl
jne 0x4021e8
mov byte [esp + 0x2f], 0
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x402284
push str.GetDiskFreeSpaceExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x40226d
cmp byte [esp + 0x2c], bl
jne 0x402227
cmp byte [esp + 0x2d], bl
jne 0x402227
lea ecx, [esp + 0x2c]
push ecx
call fcn.00402060
jmp 0x402231
lea edx, [esp + 0x2c]
push edx
call fcn.004020b0
add esp, 4
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x24]
lea edx, [esp + 0x14]
push eax
push ecx
lea eax, [esp + 0x34]
push edx
push eax
call edi
test eax, eax
je 0x40226d
mov ebp, dword [esp + 0x18]
cmp ebp, 0x400
jb 0x402261
mov ebp, 0xfffffffe
jmp 0x40226d
mov ecx, dword [esp + 0x14]
shl ebp, 0x16
shr ecx, 0xa
add ebp, ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp ebp, 0xffffffff
je 0x402284
mov eax, dword [esp + 0x13c]
test eax, eax
je 0x402301
mov al, byte [esp + 0x2c]
mov dword [esp + 0x10], 0
cmp al, bl
mov al, byte [esp + 0x2d]
jne 0x40229c
cmp al, bl
je 0x4022a9
cmp al, 0x3a
jne 0x4022a9
mov byte [esp + 0x2e], bl
mov byte [esp + 0x2f], 0
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push edx
lea ecx, [esp + 0x28]
push eax
lea edx, [esp + 0x24]
push ecx
lea eax, [esp + 0x38]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x402301
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
cmp ebp, 0xffffffff
jne 0x4022e9
mov ebp, eax
imul ebp, ecx
shr ebp, 8
imul ebp, dword [esp + 0x10]
shr ebp, 2
mov edx, dword [esp + 0x13c]
test edx, edx
je 0x402301
imul eax, ecx
add eax, 0x3ff
shr eax, 0xa
mov dword [edx], eax
pop esi
pop ebx
mov eax, ebp
pop edi
pop ebp
add esp, 0x124
ret
pop edi
or eax, 0xffffffff
pop ebp
add esp, 0x124
ret
Function at 0x402660
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x210]
push edi
push 5
push 0
push 0
push ebx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
ja 0x40273a
mov ecx, dword [esp + 0x218]
lea eax, [esp + 8]
push eax
push ecx
push 0x80000000
call fcn.00402750
add esp, 0xc
test eax, eax
jne 0x40273a
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 8]
push str._shellopencommand
push edx
call edi
lea eax, [esp + 8]
lea ecx, [esp + 8]
push eax
push ecx
push 0x80000000
call fcn.00402750
add esp, 0xc
test eax, eax
jne 0x40273a
push esi
lea edx, [esp + 0xc]
push str.__1_
push edx
call fcn.00419420
mov esi, eax
add esp, 8
test esi, esi
jne 0x40271d
lea eax, [esp + 0xc]
push 0x4222fc
push eax
call fcn.00419420
mov esi, eax
add esp, 8
test esi, esi
jne 0x40271d
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xb]
jmp 0x402720
mov byte [esi], 0
push 0x4222f8
push esi
call edi
push ebx
push esi
call edi
lea edx, [esp + 0xc]
push 5
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
pop esi
pop edi
pop ebx
add esp, 0x208
ret

Function at 0x402750
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x402799
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
lea eax, [esp + 8]
mov dword [esp + 8], 0x104
push eax
push ecx
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
ret

Function at 0x4027a0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x20c
lea eax, [esp + 4]
push esi
push edi
mov edi, dword [esp + 0x218]
push 0x208
push eax
push edi
call fcn.00402870
add esp, 0xc
push edi
call dword [sym.imp.GDI32.dll_AddFontResourceA]
mov al, byte [esp + 0xc]
test al, al
je 0x40284a
push 0x5c
push edi
call fcn.00418f20
mov esi, eax
add esp, 8
test esi, esi
je 0x4027e5
inc esi
jmp 0x4027e7
mov esi, edi
lea ecx, [esp + 0xc]
push str.__TrueType_
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [0x42763c]
mov eax, str.SoftwareMicrosoftWindowsCurrentVersionFonts
test ecx, ecx
je 0x40280b
mov eax, str.SoftwareMicrosoftWindows_NTCurrentVersionFonts
lea edx, [esp + 8]
push edx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40284a
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0xc]
push esi
push 1
push eax
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0
push 0x1d
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
add esp, 0x20c
ret
Function at 0x402a90
Capabilities:
Delete registry value

Disassembly:
sub esp, 0x20c
lea eax, [esp + 4]
push esi
mov esi, dword [esp + 0x214]
push 0x208
push eax
push esi
call fcn.00402870
add esp, 0xc
push esi
call dword [sym.imp.GDI32.dll_RemoveFontResourceA]
mov al, byte [esp + 8]
test al, al
je 0x402b1f
push 0x5c
push esi
call fcn.00418f20
add esp, 8
lea ecx, [esp + 8]
push str.__TrueType_
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [0x42763c]
mov eax, str.SoftwareMicrosoftWindowsCurrentVersionFonts
test ecx, ecx
je 0x402aef
mov eax, str.SoftwareMicrosoftWindows_NTCurrentVersionFonts
lea edx, [esp + 4]
push edx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x402b1f
mov ecx, dword [esp + 4]
lea eax, [esp + 8]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0
push 0x1d
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageA]
pop esi
add esp, 0x20c
ret

Function at 0x402bc0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push ebx
push ebp
push edi
push 0x208
call fcn.00419070
mov ebp, eax
xor ebx, ebx
add esp, 4
cmp ebp, ebx
jne 0x402be4
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x54
ret
mov eax, dword [esp + 0x68]
push esi
cmp eax, ebx
je 0x402c08
cmp byte [eax], bl
je 0x402c08
push eax
mov eax, dword [esp + 0x6c]
push eax
push str._s__s
push ebp
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x402c29
mov edi, dword [esp + 0x68]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x10]
mov edi, dword [esp + 0x70]
lea ecx, [esp + 0x20]
push eax
push ecx
push ebx
push ebx
push 0x20
push 1
push ebx
push ebx
push ebp
push ebx
mov dword [edi], ebx
mov dword [esp + 0x48], 0x44
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x74], ebx
mov word [esp + 0x7a], bx
mov dword [esp + 0x7c], ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push ebp
mov esi, eax
call fcn.004191d3
add esp, 4
cmp esi, ebx
pop esi
jne 0x402c83
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x54
ret
mov edx, dword [esp + 0xc]
mov eax, 1
mov dword [edi], edx
pop edi
pop ebp
pop ebx
add esp, 0x54
ret
Function at 0x405190
Capabilities:
Get common file path

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, 1
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push esi
call fcn.00402060
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ebx
add ecx, esi
push ebp
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
push 0
push esi
call fcn.00401040
add esp, 0x14
cmp eax, 0xffffffff
je 0x4051eb
push eax
call fcn.004012c0
add esp, 4
or eax, 0xffffffff
jmp 0x4051f9
push esi
call fcn.00401090
add esp, 4
cmp eax, 0xffffffff
jne 0x405202
inc ebx
cmp ebx, 0x3e7
jl 0x4051a1
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x405330
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
xor bl, bl
test edi, edi
jbe 0x40535a
mov eax, dword [esi]
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov al, byte [ecx]
xor al, dl
xor al, 0x6a
inc word [ecx]
add bl, al
dec edi
jne 0x405345
mov edi, dword [esi]
mov dl, byte [edi]
inc edi
mov dword [esi], edi
mov al, byte [ecx]
xor al, dl
pop edi
xor al, 0x6a
inc word [ecx]
xor ecx, ecx
cmp bl, al
sete cl
pop esi
mov eax, ecx
pop ebx
ret

Function at 0x405380
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
lea eax, [esp + 0x14]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1a]
and eax, 0xffff
and edx, 0xffff
xor esi, esi
mov byte [esp + 0x13], 0
lea eax, [eax + eax*4]
mov ebp, 8
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x1e]
and ecx, 0xffff
xor edi, edi
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea edx, [ecx + eax*4]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x30]
mov bl, byte [ecx]
mov al, dl
xor al, bl
lea esi, [esi + esi*4]
xor al, 0x6a
inc ecx
mov byte [esp + 0x2c], al
inc edx
mov ebx, dword [esp + 0x2c]
and ebx, 0xff
lea esi, [ebx + esi*2 - 0x41]
mov bl, byte [esp + 0x13]
add bl, al
dec ebp
mov byte [esp + 0x13], bl
jne 0x4053db
mov ebp, 8
mov bl, byte [ecx]
mov al, dl
xor al, bl
lea edi, [edi + edi*4]
xor al, 0x6a
inc ecx
mov byte [esp + 0x2c], al
inc edx
mov ebx, dword [esp + 0x2c]
and ebx, 0xff
lea edi, [ebx + edi*2 - 0x41]
mov bl, byte [esp + 0x13]
add bl, al
dec ebp
mov byte [esp + 0x13], bl
jne 0x40540c
mov al, byte [ecx]
mov cl, bl
xor al, dl
xor al, 0x6a
cmp cl, al
jne 0x40545d
mov eax, dword [esp + 0x14]
cmp eax, esi
jb 0x40545d
cmp eax, edi
jae 0x40545d
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x18
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret