joyce8/EMBER2024-capa huggingface dataset:
Function at 0x439044
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x114
mov eax, 0x4b4425
call fcn.004879f3
mov eax, dword [0x4f7be0]
cmp eax, 0xffffffff
jne 0x439220
xor edi, edi
mov dword [ebp - 0x120], 1
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x11c], 0x100
mov dword [ebp - 0x118], edi
call fcn.004038ee
mov dword [ebp - 4], edi
xor edx, edx
mov ecx, str.Shdocvw.dll
call fcn.0043ba75
sub eax, 0x1d6
je 0x439201
sub eax, 1
je 0x4391fa
sub eax, 1
je 0x4391f3
sub eax, 0x1c
je 0x4391ec
sub eax, 0x32
je 0x4391e5
lea eax, [ebp - 0x118]
mov dword [0x4f7be0], 0x258
push eax
push 0x20019
push edi
push str.SOFTWAREMicrosoftInternet_Explorer
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4391d1
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x120]
push eax
push edi
push str.Version
push dword [ebp - 0x118]
call esi
test eax, eax
jne 0x4391d1
lea eax, [ebp - 0x110]
push eax
call fcn.0048c5e3
pop ecx
push eax
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x114]
call fcn.00402592
push dword [ebp - 0x114]
call fcn.0048fc76
imul eax, eax, 0x64
mov ebx, 0x384
pop ecx
mov dword [0x4f7be0], eax
cmp eax, ebx
jne 0x4391d1
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x120]
push eax
push edi
push str.svcVersion
push dword [ebp - 0x118]
call esi
test eax, eax
jne 0x4391d1
lea eax, [ebp - 0x110]
push eax
call fcn.0048c5e3
pop ecx
push eax
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x114]
call fcn.00402592
push dword [ebp - 0x114]
call fcn.0048fc76
imul eax, eax, 0x64
pop ecx
cmp eax, ebx
jle 0x4391d1
push dword [ebp - 0x114]
call fcn.0048fc76
imul eax, eax, 0x64
pop ecx
mov dword [0x4f7be0], eax
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [0x4f7be0]
jmp 0x43920c
mov esi, 0x226
jmp 0x439206
mov esi, 0x1f4
jmp 0x439206
mov esi, 0x191
jmp 0x439206
mov esi, 0x190
jmp 0x439206
mov esi, 0x12c
mov dword [0x4f7be0], esi
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x114]
add ecx, 0xfffffff0
call fcn.004028cb
mov eax, esi
call fcn.0048799d
ret
Function at 0x43ba75
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x4f6560]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
mov ebx, edx
push esi
push edi
mov dword [ebp - 0x248], eax
mov esi, ecx
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x244], eax
mov word [ebp - 0x204], ax
lea eax, [ebp - 0x248]
push eax
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
xor ecx, ecx
mov dword [ebp - 0x240], eax
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0045a5c8
pop ecx
mov edi, eax
push edi
push dword [ebp - 0x240]
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x43bbbb
mov esi, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x23c]
push eax
push 0x4c97f4
push edi
call esi
push 0x34
push dword [ebp - 0x23c]
lea eax, [ebp - 0x238]
push eax
call fcn.00488ba0
add esp, 0xc
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x23c]
push eax
push str.VarFileInfoTranslation
push edi
call esi
push 4
push dword [ebp - 0x23c]
lea eax, [ebp - 0x244]
push eax
call fcn.00488ba0
mov ecx, dword [ebp - 0x244]
mov eax, ecx
push 0x4d698c
shr eax, 0x10
push eax
movzx eax, cx
push eax
lea eax, [ebp - 0x204]
push str.StringFileInfo_04X_04X_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x20
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x204]
push eax
push edi
call esi
push dword [ebp - 0x23c]
mov esi, 0x100
lea eax, [ebp - 0x204]
push esi
push eax
call fcn.00491204
add esp, 0xc
test ebx, ebx
je 0x43bbbb
push dword [ebp - 0x23c]
push esi
push ebx
call fcn.00491204
add esp, 0xc
push edi
call fcn.0045a5c3
lea eax, [ebp - 0x204]
mov dword [esp], 0x4c90b8
push eax
call fcn.0048fce5
pop ecx
pop ecx
pop edi
pop esi
pop ebx
test eax, eax
je 0x43bbf7
lea eax, [ebp - 0x204]
push eax
call fcn.004975b9
fmul qword [0x4ded70]
pop ecx
call fcn.00487c70
jmp 0x43bbf9
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00487168
leave
ret
Function at 0x458234
Capabilities:
Read .ini file

Disassembly:
push 0x20c
mov eax, 0x4b33cd
call fcn.004879f3
mov edi, ecx
and dword [ebp - 4], 0
mov esi, dword [ebp + 8]
mov dword [ebp - 0x218], esi
and dword [ebp - 0x214], 0
mov dword [ebp - 4], 2
mov ecx, esi
call fcn.004038ee
cmp dword [ebp + 0x14], 0
lea eax, [ebp - 0x210]
mov dword [ebp - 0x214], 1
jne 0x4582c4
push dword [edi + 0x178]
push 0x100
push eax
push 0x4c90b8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x210]
push eax
call fcn.0048c5e3
pop ecx
push eax
lea eax, [ebp - 0x210]
mov ecx, esi
push eax
call fcn.00402592
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jne 0x4582fd
lea eax, [ebp - 0x210]
push dword [edi + 0x17c]
push 0x100
push eax
push 0x4c90b8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x210]
push eax
call fcn.0048c5e3
pop ecx
push eax
lea eax, [ebp - 0x210]
mov ecx, esi
push eax
call fcn.00402592
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.004028cb
and dword [ebp - 4], 0
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.004028cb
mov eax, esi
call fcn.0048799d
ret 0x10
Function at 0x458f44
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4f6560]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x210]
mov dword [ebp - 0x214], 0x104
push eax
mov esi, 0xf003f
xor ebx, ebx
push esi
push ebx
mov edi, str.SYSTEMCurrentControlSetServicesEventLogApplicationCrystalDiskInfo
mov dword [ebp - 0x210], ebx
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x458fac
push ebx
lea eax, [ebp - 0x210]
push eax
push ebx
push esi
push ebx
push ebx
push ebx
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x459028
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
push ebx
push str.EventMessageFile
push dword [ebp - 0x210]
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x459039
push 0x104
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call fcn.0048c5e3
pop ecx
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 2
push ebx
push str.EventMessageFile
push dword [ebp - 0x210]
call edi
test eax, eax
je 0x459039
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00487168
leave
ret
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
push ebx
push str.TypesSupported
push dword [ebp - 0x210]
call esi
test eax, eax
je 0x459088
push 4
pop ecx
push ecx
lea eax, [ebp - 0x218]
mov dword [ebp - 0x218], 7
push eax
push ecx
push ebx
push str.TypesSupported
push dword [ebp - 0x210]
mov dword [ebp - 0x214], ecx
call edi
test eax, eax
jne 0x45901c
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x459028
inc eax
jmp 0x45902a

Function at 0x459d7d
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
mov edi, ecx
mov ecx, dword [0x4fc7f8]
lea ecx, [ecx + 0x228]
call fcn.0040ad5e
mov ecx, dword [edi + 0xd0]
push ecx
mov ecx, dword [0x4fc7f8]
mov eax, dword [eax + 0x1724]
lea ecx, [ecx + 0x228]
test eax, eax
je 0x459db8
push 0x3c
jmp 0x459dba
push 0x32
push dword [ebp + 8]
call fcn.0040ad5e
push dword [eax + 0x1890]
push str.AlarmTemperature
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push 1
push eax
push 2
push dword [edi + 0x210]
call dword [sym.imp.USER32.dll_SetScrollPos]
push 1
lea ecx, [edi + 0x1f0]
call fcn.0045bcd4
push 2
push dword [edi + 0x210]
call dword [sym.imp.USER32.dll_GetScrollPos]
push eax
lea eax, [edi + 0x1e4]
push 0x4cf7a4
push eax
call fcn.004038da
add esp, 0xc
push 2
push dword [edi + 0x210]
call dword [sym.imp.USER32.dll_GetScrollPos]
imul eax, eax, 9
push 5
pop ecx
cdq
idiv ecx
add eax, 0x20
push eax
lea eax, [edi + 0x1e8]
push 0x4cf77c
push eax
call fcn.004038da
add esp, 0xc
mov ecx, edi
push 0
call fcn.00460e1b
pop edi
pop ebp
ret 4
Function at 0x45b0e6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x84], ebx
test ebx, 0xffff0000
jne 0x45b111
cmp dword [edi + 0x80], 0
jne 0x45b111
movzx eax, bx
mov dword [edi + 0x80], eax
call fcn.00466d8e
push 5
push ebx
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ecx, edi
push eax
call fcn.0045b33e
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x45c29c
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x4b8946
call fcn.004879bf
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x45c2c2
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x45c31c
lea ecx, [ebp - 0x10]
call fcn.004038ee
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call dword [0x4bb7bc]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.00498330
push eax
call fcn.004028ed
add esp, 0x14
test esi, esi
je 0x45c30f
push esi
call fcn.0048c5e3
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004028cb
mov eax, ebx
call fcn.00487988
ret 8

Function at 0x45e661
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
mov ebx, ecx
push edi
cmp dword [ebp + 8], esi
je 0x45e6a0
call fcn.00466d8e
push 0xf0
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x45e6a0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x45e6a8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push esi
mov ecx, ebx
call fcn.0045a043
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x45ed67
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x45edf3
cmp dword [esi + 0x20], 0
je 0x45edf3
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45edf3
cmp dword [ebp + 8], 0
je 0x45edf3
xor edi, edi
mov ebx, edi
call fcn.00466d8e
push 0x4bca28
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 8], eax
test eax, eax
je 0x45edd7
mov ebx, dword [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 8]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x45edf3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push edi
push ebx
push esi
call fcn.004731f0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x45edef
mov ecx, esi
call fcn.0045eb41
mov eax, edi
jmp 0x45edf5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4655af
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x465602
push esi
push dword [ebp + 8]
call fcn.00465798
mov edi, eax
test edi, edi
je 0x4655fd
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4655fd
mov eax, dword [ebp - 8]
jmp 0x465614
mov eax, dword [ebp + 0x10]
jmp 0x465614
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop edi
pop esi
leave
ret 0xc

Function at 0x468ab1
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.00468b0a
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x468af9
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0045ae50
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0045ae73
jmp 0x468b04
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00471973
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x478240
Capabilities:
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x4f6560]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0x230
xor edi, edi
push edi
push esi
call fcn.00488a40
push 0xffffffffffffffff
push dword [ebx + 0xc]
lea eax, [esi + 0x24]
push 0x104
push eax
call fcn.00498330
push eax
call fcn.004028ed
mov eax, dword [ebx + 4]
add esp, 0x20
cmp eax, dword [0x4be388]
je 0x4783aa
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x4783be
lea eax, [ebp - 0x30]
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4783be
mov eax, dword [ebp - 0x30]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0x1c], eax
mov eax, dword [ebx + 0xc]
cmp dword [eax - 0xc], edi
jne 0x4782d9
mov eax, edi
jmp 0x478308
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x4782f6
lea edx, [ebp - 0x28]
push edx
push edi
push eax
call fcn.00478047
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, dword [ebp - 0x28]
jmp 0x4782ff
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
lea eax, [ecx + 1]
neg eax
sbb eax, eax
and eax, ecx
mov dword [esi + 0x20], eax
lea eax, [ebp - 0x38]
push eax
call fcn.00478501
test eax, eax
je 0x47832d
push 0xffffffffffffffff
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x50]
call fcn.00477ed3
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x478331
mov ecx, edi
mov eax, edi
mov dword [esi], ecx
mov dword [esi + 4], eax
lea eax, [ebp - 0x40]
push eax
call fcn.00478501
test eax, eax
je 0x478358
push 0xffffffffffffffff
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x50]
call fcn.00477ed3
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x47835c
mov ecx, edi
mov eax, edi
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x48]
push eax
call fcn.00478501
test eax, eax
je 0x478384
push 0xffffffffffffffff
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x50]
call fcn.00477ed3
mov edi, dword [eax]
mov ecx, dword [eax + 4]
jmp 0x478386
mov ecx, edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], ecx
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x478398
mov dword [esi], edi
mov dword [esi + 4], ecx
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x4783aa
mov eax, edi
mov dword [esi + 0x10], eax
mov eax, ecx
mov dword [esi + 0x14], eax
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00487168
leave
ret 4
xor eax, eax
jmp 0x4783ad
Function at 0x481451
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
mov eax, ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], edi
je 0x481496
call fcn.00466d8e
push 0xf0
push dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x481493
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4814dd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov eax, dword [ebp - 4]
push ebx
xor ebx, ebx
inc ebx
test edi, edi
je 0x4814b9
mov ecx, dword [eax]
push dword [ebp + 0x10]
push edi
mov esi, dword [ecx + 0x20]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4bb7bc]
mov ecx, dword [ebp - 4]
call esi
mov ebx, eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x70]
test edi, edi
je 0x4814da
mov edx, dword [edi]
push dword [ebp + 0x10]
mov esi, dword [edx + 0xa0]
mov ecx, esi
call dword [0x4bb7bc]
mov ecx, edi
call esi
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret 0xc

Function at 0x4a35bf
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004a327e

Function at 0x4a35ca
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004a3401

Function at 0x4a450e
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004a41b0
Function at 0x401c57
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x401c66
pop dword [ebp - 0x4c]
mov eax, 0x7f67ff01
sub eax, 0x7f27e29b
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0xb1df8df
add dword [ebp - 0x5c], 0x43344c6c
mov dword [ebp - 0x58], 0xe6826e2d
add dword [ebp - 0x58], 0x4bb0de18
mov dword [ebp - 0x54], 0xb36b4e24
sub dword [ebp - 0x54], 0x671f09f6
mov dword [ebp - 0x50], 0x455c472f
sub dword [ebp - 0x50], 0x455c472f
lea eax, [ebp - 0x5c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0xf5dc93b5
add dword [ebp - 0x5c], 0x7e95d5a1
mov dword [ebp - 0x58], 0xc56a3a91
add dword [ebp - 0x58], 0x7c0226e4
mov dword [ebp - 0x54], 0xba0a3777
sub dword [ebp - 0x54], 0x569acb0b
mov dword [ebp - 0x50], 0xf51b511
add dword [ebp - 0x50], 0xf0ae4aef
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, 0xb305db07
add eax, 0x4d3a5525
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x32daa
push 0
call eax
mov ecx, 0x82e18757
sub ecx, 0x82e14dd9
xor edi, edi
add edi, eax
mov edx, 0x569abd6b
add edx, 0xa9a5b295
add edx, dword [ebp - 0x4c]
mov esi, 0x61c549be
add esi, 0xac2aadd2
add dword [ebp - 0x20], 0x9ce4138d
mov ebx, dword [edx]
add dword [ebp - 0x38], ebx
sub ebx, esi
xor dword [ebp - 0x24], 0x495a95a3
mov dword [edi], ebx
add dword [ebp - 8], 0xfa81daf6
add edi, 0x892668ce
sub edi, 0x892668ca
add edx, 0x19ad83da
sub edx, 0x19ad83d6
loop 0x401d85
add eax, 0x221ecbd3
sub eax, 0x221df308
xor ebx, ebx
add ebx, eax
add eax, 0xd72020e0
add eax, 0x28dfdf25
mov ecx, 0xf69a84f2
sub ecx, 0xf65a84f2
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret

Function at 0x401fb2
Capabilities:
Delete file
Move file

Disassembly:
mov ecx, 0x404f28
jmp fcn.0040170c

Function at 0x401ff6
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push esi
mov esi, 0x404f28
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402013
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
test eax, eax
je 0x402018
push 1
pop eax
pop esi
ret
call fcn.00401fb2
pop esi
ret
Function at 0x401816
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x4111f0
sub esp, 0xc
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ebx
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ecx
push edx
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x411232
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0xc
ret 0xc
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0
push edi
push ecx
call ebx
test eax, eax
je 0x41125e
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0xc]
cmp eax, 1
ja 0x411272
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0xc
ret 0xc
inc eax
push eax
push 0x40
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x41128f
pop edi
pop esi
pop ebx
add esp, 0xc
ret 0xc
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x18]
push esi
push eax
push 0
push edi
push ecx
call ebx
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0xc
ret 0xc
Function at 0x409950
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41ffc0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
mov dword [ebp - 0x10], esp
push str.VirtualFree
push str.kernel32.dll
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
nop
nop
nop
nop
nop
push str.VirtualProtect
push str.kernel32.dll
call esi
push eax
call edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [eax]
mov cx, word [eax + 0x14]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 0x18], edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea eax, [ebp - 0x14]
push 0x42b038
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0x40
call sub.MSVCRT.dll__CxxThrowException
mov edi, dword [ebp + 8]
xor ebx, ebx
mov ecx, dword [edi]
cmp word [ecx + 6], bx
jbe 0x409aa3
mov edx, dword [ebp - 0x18]
lea esi, [edx + 0x24]
mov eax, dword [esi]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
and ecx, 1
and edx, 1
shr eax, 0x1f
nop
nop
nop
nop
test byte [esi + 3], 2
je 0x409a25
mov eax, dword [esi - 0x14]
mov ecx, dword [esi - 0x1c]
push 0x4000
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x409a8f
nop
nop
nop
nop
nop
lea edx, [edx + ecx*2]
lea eax, [eax + edx*2]
mov edx, dword [eax*4 + 0x475e54]
mov eax, dword [esi]
test eax, 0x4000000
je 0x409a43
or dh, 2
nop
nop
nop
nop
nop
nop
mov eax, dword [esi - 0x14]
test eax, eax
jne 0x409a68
mov ecx, dword [esi]
test cl, 0x40
je 0x409a5e
mov ecx, dword [edi]
mov eax, dword [ecx + 0x20]
jmp 0x409a68
test cl, 0x80
je 0x409a68
mov eax, dword [edi]
mov eax, dword [eax + 0x24]
nop
nop
nop
nop
nop
nop
test eax, eax
jbe 0x409a8f
mov eax, dword [esi - 0x1c]
lea ecx, [ebp + 8]
push ecx
push edx
mov edx, dword [esi - 0x14]
push edx
push eax
call dword [ebp - 0x1c]
test eax, eax
jne 0x409a8f
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [edi]
xor edx, edx
inc ebx
add esi, 0x28
mov dx, word [ecx + 6]
cmp ebx, edx
jl 0x4099f1
mov eax, 0x409aa9
ret