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

Disassembly:
push 0xffffffffffffffff
push 0x43f348
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45060c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x4c]
mov ebp, dword [esi + 0x40]
mov edi, dword [esi + 0x34]
mov dword [esp + 0x18], eax
movzx eax, ax
movzx ecx, di
movzx ebx, bp
mov dword [esp + 0x1c], eax
add eax, ebx
lea eax, [eax + ecx + 0x2e]
push 0
mov dword [esp + 0x18], ecx
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x28], eax
call fcn.0040e940
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x28]
mov dword [edx], ecx
movzx eax, word [esi + 8]
mov ecx, dword [esp + 0x28]
mov word [ecx + 4], ax
movzx edx, word [esi + 0xa]
mov eax, dword [esp + 0x28]
mov word [eax + 6], dx
movzx ecx, word [esi + 0xc]
mov edx, dword [esp + 0x28]
mov word [edx + 8], cx
movzx eax, word [esi + 0xe]
mov ecx, dword [esp + 0x28]
mov word [ecx + 0xa], ax
movzx edx, word [esi + 0x10]
mov eax, dword [esp + 0x28]
mov word [eax + 0xc], dx
movzx ecx, word [esi + 0x12]
mov edx, dword [esp + 0x28]
mov word [edx + 0xe], cx
mov eax, dword [esi + 0x14]
mov ecx, dword [esp + 0x28]
mov dword [ecx + 0x10], eax
mov edx, dword [esi + 0x18]
mov eax, dword [esp + 0x28]
mov dword [eax + 0x14], edx
mov ecx, dword [esi + 0x1c]
mov edx, dword [esp + 0x28]
mov dword [edx + 0x18], ecx
mov eax, dword [esp + 0x28]
mov word [eax + 0x1c], bp
mov ecx, dword [esp + 0x28]
mov ebp, dword [esp + 0x18]
mov word [ecx + 0x1e], di
mov edx, dword [esp + 0x28]
mov word [edx + 0x20], bp
movzx eax, word [esi + 0x20]
mov ecx, dword [esp + 0x28]
mov word [ecx + 0x22], ax
movzx edx, word [esi + 0x22]
mov eax, dword [esp + 0x28]
mov word [eax + 0x24], dx
mov ecx, dword [esi + 0x24]
mov edx, dword [esp + 0x28]
mov dword [edx + 0x26], ecx
mov eax, dword [esi + 0x28]
mov ecx, dword [esp + 0x28]
mov dword [ecx + 0x2a], eax
mov eax, dword [esi + 0x3c]
mov edx, dword [esp + 0x28]
push ebx
push eax
add edx, 0x2e
push edx
mov dword [esp + 0x44], 0
call fcn.0042aa20
add esp, 0xc
test di, di
je 0x4116f0
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 0x30]
mov edx, dword [esp + 0x28]
push ecx
push eax
lea eax, [ebx + edx + 0x2e]
push eax
call fcn.0042aa20
add esp, 0xc
test bp, bp
je 0x411715
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov esi, dword [esi + 0x48]
mov eax, dword [esp + 0x28]
push ecx
add ebx, edx
lea ecx, [ebx + eax + 0x2e]
push esi
push ecx
call fcn.0042aa20
add esp, 0xc
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x40]
push 1
push esi
push edx
call fcn.004136c0
lea ecx, [esp + 0x24]
mov dword [esp + 0x38], 0xffffffff
call fcn.0040e970
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4

Function at 0x412040
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
neg eax
sbb eax, eax
neg eax
ret
Function at 0x4121b0
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4121d2
cmp byte [esp + 0xc], al
je 0x4121ce
push esi
push 0x71
call fcn.0040bc60
xor al, al
pop esi
ret
mov al, 1
pop esi
ret

Function at 0x412240
Capabilities:
Access peb ldr_data
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x43f428
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
mov eax, dword [0x45060c]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov eax, dword [esp + 0x34]
push eax
lea ecx, [esp + 0x10]
call fcn.0040cd80
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0
call fcn.00412210
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
mov eax, dword [esp + 8]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4122b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00411b00
mov al, bl
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop ebx
add esp, 0x28
ret
Function at 0x4122e0
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x43f460
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45060c]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov eax, dword [esp + 0x54]
push eax
lea ecx, [esp + 0x30]
call fcn.0040cd80
lea ecx, [esp + 0x14]
push ecx
xor ebx, ebx
lea ecx, [esp + 0x30]
mov dword [esp + 0x50], ebx
call fcn.00412210
mov esi, dword [esp + 0x14]
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x28]
push edx
push esi
mov byte [esp + 0x60], 1
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x41240f
push 0x4423a4
lea ecx, [esp + 0x18]
call fcn.00401f40
mov esi, dword [esp + 0x14]
mov ebp, dword [esi - 0xc]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
lea edi, [ebp + 1]
sub eax, edi
or eax, ecx
jge 0x41238c
push edi
lea ecx, [esp + 0x18]
call fcn.00401640
mov esi, dword [esp + 0x14]
cmp edi, ebx
mov byte [esi + ebp], 0x5c
jl 0x412405
cmp edi, dword [esi - 8]
jg 0x412405
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x28]
push eax
mov dword [esi - 0xc], edi
push esi
mov byte [edi + esi], bl
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x41240f
lea eax, [esi - 0x10]
mov byte [esp + 0x4c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4123de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x4c], 0xffffffff
call fcn.00411b00
xor eax, eax
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
push 0x80070057
call fcn.00401090
mov edi, dword [esp + 0x1c]
imul edi, dword [esp + 0x20]
imul edi, dword [esp + 0x24]
lea eax, [esi - 0x10]
mov dword [esp + 0x18], ebx
mov byte [esp + 0x4c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412441
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x4c], 0xffffffff
call fcn.00411b00
mov eax, edi
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret

Function at 0x412470
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push esi
push 0
push 0
call ebp
mov esi, eax
test esi, esi
jne 0x412489
pop esi
xor al, al
pop ebp
ret
push ebx
push edi
push esi
call fcn.00419316
add esp, 4
mov edi, eax
push edi
push esi
mov bl, 1
call ebp
test eax, eax
jne 0x4124b2
push edi
xor bl, bl
call fcn.0041930b
add esp, 4
pop edi
mov al, bl
pop ebx
pop esi
pop ebp
ret
mov ecx, dword [esp + 0x14]
push edi
call fcn.00402e40
push edi
call fcn.0041930b
add esp, 4
pop edi
mov al, bl
pop ebx
pop esi
pop ebp
ret
Function at 0x4126d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43f511
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
mov eax, dword [0x45060c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [esp + 0x40]
xor esi, esi
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], esi
call fcn.00403c50
movzx ecx, byte [0x4429c1]
push ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x3c], esi
call fcn.00401bc0
mov edx, dword [esp + 0xc]
push edx
lea ecx, [esp + 0x1c]
call fcn.0040cd80
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c], 1
call fcn.0040d800
mov ecx, dword [esp + 0xc]
xor edx, edx
cmp ecx, esi
setne dl
mov byte [esp + 0x38], 2
mov dword [esp + 0x10], 1
cmp edx, esi
jne 0x412765
push 0x80004005
call fcn.00401090
mov eax, dword [eax]
push ecx
push eax
call fcn.0042885c
add esp, 8
cmp eax, esi
sete al
or esi, 0xffffffff
test al, al
jne 0x412792
mov ecx, dword [esp + 0xc]
push ecx
call fcn.00412080
add esp, 4
cmp eax, esi
je 0x412792
xor bl, bl
jmp 0x412794
mov bl, 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x38], 1
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4127bb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x4128a4
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0040d800
mov eax, dword [eax]
push eax
mov byte [esp + 0x3c], 3
call fcn.004126d0
add esp, 4
test al, al
mov eax, dword [esp + 0x14]
sete bl
add eax, 0xfffffff0
mov byte [esp + 0x38], 1
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41280a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x412851
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 0
call fcn.00411b00
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x38], esi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x41283d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x30
ret
mov ecx, dword [esp + 0xc]
push ecx
call fcn.004120c0
add esp, 4
test al, al
jne 0x4128a4
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], al
call fcn.00411b00
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x38], esi
lea edx, [eax + 0xc]
lock xadd dword [edx], esi
dec esi
test esi, esi
jg 0x41283d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x30
ret
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 0
call fcn.00411b00
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov dword [esp + 0x38], esi
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x4128d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x30
ret
Function at 0x41d306
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x41d32a
cmp dword [edi + 0x54], 0
jne 0x41d32a
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0041a00a
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0041d2c7
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x423e52
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x423e99
call fcn.0041a00a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x423e99
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x423eb5
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004239cc
mov esi, eax
test edi, edi
je 0x423eb3
test ebx, ebx
je 0x423eb3
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x429433
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45060c]
jne 0x42943d
repz ret
jmp fcn.00431adc

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x429a20
call fcn.0042b6ef
mov dword [eax], esi
call fcn.0042b6dc
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0042feff
add esp, 0x14
push 0x16
pop eax
jmp 0x429a75
test dword [ebp + 0xc], 0xfffffff9
jne 0x4299fc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x429a4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042b702
pop ecx
call fcn.0042b6dc
mov eax, dword [eax]
jmp 0x429a75
test al, 0x10
jne 0x429a73
test al, 1
je 0x429a73
test byte [ebp + 0xc], 2
je 0x429a73
call fcn.0042b6ef
mov dword [eax], 5
call fcn.0042b6dc
mov dword [eax], 0xd
jmp 0x429a44
xor eax, eax
pop esi
pop ebp
ret
Function at 0x43a8c5
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.0042f80a
and dword [ebp - 4], 0
cmp dword [0x454778], 0
mov ebx, eax
jne 0x43a976
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x43aa27
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4470f0
push edi
call esi
test eax, eax
je 0x43aa27
push eax
call fcn.0042f798
mov dword [esp], 0x4470e0
push edi
mov dword [0x454778], eax
call esi
push eax
call fcn.0042f798
mov dword [esp], 0x4470cc
push edi
mov dword [0x45477c], eax
call esi
push eax
call fcn.0042f798
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x454780], eax
call esi
push eax
call fcn.0042f798
pop ecx
mov dword [0x454788], eax
test eax, eax
je 0x43a976
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042f798
pop ecx
mov dword [0x454784], eax
mov eax, dword [0x454784]
cmp eax, ebx
je 0x43a9ce
cmp dword [0x454788], ebx
je 0x43a9ce
push eax
call fcn.0042f813
push dword [0x454788]
mov esi, eax
call fcn.0042f813
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x43a9ce
test edi, edi
je 0x43a9ce
call esi
test eax, eax
je 0x43a9c5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43a9c5
test byte [ebp - 0xc], 1
jne 0x43a9ce
or dword [ebp + 0x10], 0x200000
jmp 0x43aa07
mov eax, dword [0x45477c]
cmp eax, ebx
je 0x43aa07
push eax
call fcn.0042f813
pop ecx
test eax, eax
je 0x43aa07
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x43aa07
mov eax, dword [0x454780]
cmp eax, ebx
je 0x43aa07
push eax
call fcn.0042f813
pop ecx
test eax, eax
je 0x43aa07
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x454778]
call fcn.0042f813
pop ecx
test eax, eax
je 0x43aa27
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43aa29
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x401d2f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x46fc00]
xor eax, dword [ebp + 4]
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
xor edi, edi
push 0xf003f
push edi
push 0x4011d4
push 0x80000001
mov dword [ebp - 0x20], edi
mov dword [ebp - 8], edi
mov word [ebp - 0x54], di
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401e1a
push ebx
push esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x2c]
push eax
push edi
push dword [ebp - 8]
xor esi, esi
inc esi
mov dword [ebp - 0x18], edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [ebp - 0x14], 5
mov dword [ebp - 0xc], 0x28
mov dword [ebp - 0x10], esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_CompareStringW]
jmp 0x401dec
cmp dword [ebp - 0x1c], 0x103
je 0x401e09
inc dword [ebp - 0x18]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x14], 5
push dword [ebp - 8]
mov dword [ebp - 0xc], 0x28
mov dword [ebp - 0x10], esi
call edi
push 0xffffffffffffffff
push 0x401158
push 0xffffffffffffffff
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x54]
push eax
push esi
push 0x7f
call ebx
cmp eax, 2
jne 0x401db1
mov dword [ebp - 0x20], esi
cmp dword [ebp - 8], 0
pop esi
pop ebx
je 0x401e1a
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
mov eax, dword [ebp - 0x20]
pop edi
call fcn.00403138
leave
ret
Function at 0x401ec3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x46fc00]
xor eax, dword [ebp + 4]
push esi
push 0x404
push 0x40120c
mov dword [ebp - 4], eax
lea eax, [ebp - 0x3c]
xor esi, esi
push 0xa
push eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 8], esi
call fcn.00401e2b
add esp, 0x10
lea eax, [ebp - 8]
push eax
push 0xf003f
push esi
push 0x4011d4
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401f9e
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
push edi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x18], esi
push esi
jmp 0x401f5d
cmp eax, 0x103
je 0x401f8d
inc dword [ebp - 0x18]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x18]
push dword [ebp - 8]
mov dword [ebp - 0x10], 1
mov dword [ebp - 0xc], 0x28
mov dword [ebp - 0x14], 5
call ebx
push 2
pop ecx
lea edi, [ebp - 0x3c]
lea esi, [ebp - 0x5c]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
jne 0x401f3a
mov dword [ebp - 0x1c], 1
cmp dword [ebp - 8], 0
pop edi
pop ebx
je 0x401f9e
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
mov eax, dword [ebp - 0x1c]
pop esi
call fcn.00403138
leave
ret

Function at 0x401ff3
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
xor esi, esi
push esi
push 0xf003f
push esi
push esi
push esi
push 0x401318
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40204f
call fcn.00401d2f
neg eax
sbb eax, eax
neg eax
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
push esi
push 0x401304
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret
Function at 0x40238f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov dword [ebp - 0xc], 0x409058
mov dword [ebp - 0x10], 0xd
push edi
mov esi, dword [ebp - 0xc]
xor ebx, ebx
mov dword [ebp - 8], ebx
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x402475
cmp eax, ebx
jne 0x4023c4
mov eax, 0x80000000
jmp 0x4023de
cmp eax, 1
jne 0x4023d0
mov eax, 0x80000001
jmp 0x4023de
cmp eax, 2
jne 0x402462
mov eax, 0x80000002
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 4]
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
lea ecx, [esi + 4]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x402462
push 0x104
lea edi, [esi + 0x20c]
push edi
call fcn.00401ea5
test eax, eax
je 0x402415
mov ebx, edi
lea edi, [esi + 0x2d4]
cmp word [edi], 0x23
jne 0x402438
movzx eax, word [esi + 0x2d6]
sub eax, 0x30
mov dword [ebp - 0x14], eax
push 4
lea eax, [ebp - 0x14]
push eax
push 4
jmp 0x40244b
push 0x104
push edi
call fcn.00401ea5
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push 0
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
inc dword [ebp - 8]
add esi, 0x39c
cmp dword [ebp - 8], 0x1f
jb 0x4023ae
add dword [ebp - 0xc], 0x6fe4
dec dword [ebp - 0x10]
jne 0x4023a6
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x40260a
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc04
mov eax, dword [0x46fc00]
xor eax, dword [ebp + 4]
and dword [ebp - 0x1c], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynW]
push esi
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 0x4075f0
mov dword [ebp - 0x10], 0x4068b8
mov dword [ebp - 0x18], 0xd
mov esi, 0x104
mov edi, 0x105
mov eax, dword [ebp - 0x10]
and dword [ebp - 0xc], 0
mov dword [ebp - 8], eax
push esi
push dword [ebp - 8]
call fcn.00401ea5
test eax, eax
je 0x402764
push esi
push 0x46f9d8
call fcn.00401ea5
test eax, eax
je 0x402698
push 0x46f9d8
push edi
lea eax, [ebp - 0x434]
push eax
call fcn.00401c08
push 0x401218
push edi
lea eax, [ebp - 0x434]
push eax
call fcn.00401e73
push esi
push dword [ebp - 8]
lea eax, [ebp - 0x434]
push eax
call ebx
push esi
push dword [ebp - 0x14]
lea eax, [ebp - 0x228]
push eax
call ebx
push 0x401218
push edi
lea eax, [ebp - 0x228]
push eax
call fcn.00401e73
push dword [ebp - 8]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00401e73
push 0
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x434]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x402753
push eax
push 0x3e8
lea eax, [ebp - 0xc04]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push 0x40155c
call fcn.00401faf
lea eax, [ebp - 0x228]
push eax
call fcn.00401faf
lea eax, [ebp - 0xc04]
push eax
call fcn.00401faf
push dword [ebp - 8]
mov dword [ebp - 0x1c], 1
push 0x401534
push esi
push 0x46f7d0
call fcn.00401e2b
add esp, 0x10
inc dword [ebp - 0xc]
add dword [ebp - 8], 0x1a
cmp dword [ebp - 0xc], 0xa
jb 0x402654
add dword [ebp - 0x10], esi
add dword [ebp - 0x14], 0x208
dec dword [ebp - 0x18]
jne 0x40264a
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
pop ebx
call fcn.00403138
leave
ret
Function at 0x402bd8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x46fc00]
xor eax, dword [ebp + 4]
push esi
push edi
push 0x40157c
push dword [ebp + 8]
mov dword [ebp - 4], eax
call dword [sym.imp.msvcrt.dll_wcsstr]
test eax, eax
pop ecx
pop ecx
je 0x402c43
push 0x11
pop ecx
xor eax, eax
lea edi, [ebp - 0x70]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 6
stosd dword es:[edi], eax
pop ecx
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
mov esi, 0x4018bc
lea edi, [ebp - 0x2c]
lea eax, [ebp - 0x70]
push eax
rep movsd dword es:[edi], dword [esi]
xor esi, esi
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x70], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
jmp 0x402c6d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
xor esi, esi
cmp edi, esi
je 0x402c6d
push 0x4018a8
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x402c66
call eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
xor eax, eax
pop edi
inc eax
pop esi
call fcn.00403138
leave
ret 4