joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405bc0
Capabilities:
Check os version
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a0
mov dword [ebp - 4], 0x100
push 0x100
push 0
lea eax, [ebp - 0x1a0]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x1a0]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x405c02
xor al, al
jmp 0x405e00
mov eax, dword [ebp - 4]
mov byte [ebp + eax - 0x1a0], 0
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp + 8]
mov byte [eax + edx], 0
lea ecx, [ebp - 0x1a0]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
add esp, 8
mov dword [ebp - 8], 0x100
push 0x100
push 0
lea eax, [ebp - 0x2a0]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x2a0]
push edx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x405c68
xor al, al
jmp 0x405e00
mov eax, dword [ebp - 8]
mov byte [ebp + eax - 0x2a0], 0
push 0x407694
mov ecx, dword [ebp + 8]
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
add esp, 8
lea edx, [ebp - 0x2a0]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
add esp, 8
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp + 8]
mov byte [eax + edx + 0x40], 0
push 0x94
push 0
lea ecx, [ebp - 0xa0]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0xa0], 0x94
lea edx, [ebp - 0xa0]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x405cdf
xor al, al
jmp 0x405e00
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 1
je 0x405d8e
cmp dword [ebp - 0xc], 2
je 0x405cfd
jmp 0x405dda
cmp dword [ebp - 0x9c], 5
jne 0x405d23
cmp dword [ebp - 0x98], 2
jne 0x405d23
push str.Windows2003
mov ecx, dword [ebp + 8]
add ecx, 0x40
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
add esp, 8
cmp dword [ebp - 0x9c], 5
jne 0x405d49
cmp dword [ebp - 0x98], 1
jne 0x405d49
push str.WindowsXP
mov edx, dword [ebp + 8]
add edx, 0x40
push edx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
add esp, 8
cmp dword [ebp - 0x9c], 5
jne 0x405d6f
cmp dword [ebp - 0x98], 0
jne 0x405d6f
push str.Windows2000
mov eax, dword [ebp + 8]
add eax, 0x40
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
add esp, 8
cmp dword [ebp - 0x9c], 4
ja 0x405d8c
push str.WindowsNT
mov ecx, dword [ebp + 8]
add ecx, 0x40
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
add esp, 8
jmp 0x405dda
cmp dword [ebp - 0x9c], 4
jne 0x405db4
cmp dword [ebp - 0x98], 0
jne 0x405db4
push str.Windows95
mov edx, dword [ebp + 8]
add edx, 0x40
push edx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
add esp, 8
cmp dword [ebp - 0x9c], 4
jne 0x405dda
cmp dword [ebp - 0x98], 0xa
jne 0x405dda
push str.Windows98
mov eax, dword [ebp + 8]
add eax, 0x40
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
add esp, 8
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp + 8]
mov byte [eax + edx + 0x4c], 0
push str.060211
mov ecx, dword [ebp + 8]
add ecx, 0x4c
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
add esp, 8
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x4066ad
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x100014b5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x828
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x828]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push 2
push 0
push 0x10003318
push 0x80000000
mov dword [ebp - 0x828], 0x208
call dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
test eax, eax
jmp 0x1000aa8d

Function at 0x100016a9
Capabilities:
Check for time delay via gettickcount
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 8], eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x1388
push dword [0x100042ac]
mov dword [ebp - 4], eax
call edi
mov ebx, 0x102
jmp 0x10001708
call esi
cmp eax, dword [ebp - 4]
jb 0x10001713
sub eax, dword [ebp - 4]
cmp eax, 0x6ddd00
ja 0x10001713
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
cmp eax, dword [ebp - 8]
jne 0x10001713
push 0x1388
push dword [0x100042ac]
call edi
cmp eax, ebx
je 0x100016df
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
xor eax, eax
inc eax
jmp 0x1000170e

Function at 0x10001adc
Capabilities:
Create thread
Resume thread
Terminate thread

Disassembly:
push esi
xor esi, esi
push esi
push 4
push esi
push 0x100019a3
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xfffffffffffffff1
push eax
mov dword [0x100042a8], eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
je 0x10001b13
push dword [0x100042a8]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x10001b26
push esi
push dword [0x100042a8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [0x100042a8], esi
pop esi
ret
Function at 0x4041e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x418acb
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x41f268]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push edi
mov eax, dword [0x41f268]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
mov edi, ecx
push 0x10
lea ecx, [esp + 0x7c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x94], 0xf
mov dword [esp + 0x90], ebx
mov byte [esp + 0x80], bl
call fcn.00404f20
push 1
push ebx
push 0xfffffffffffffff0
mov dword [esp + 0xac], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call ebx
cmp eax, 0xffffffff
jne 0x404287
cmp dword [esp + 0x8c], 0x10
jb 0x404280
mov ecx, dword [esp + 0x78]
push ecx
call fcn.00408bbb
add esp, 4
xor al, al
jmp 0x4043c4
cmp dword [esp + 0x8c], 0x10
mov eax, dword [esp + 0x78]
jae 0x404299
lea eax, [esp + 0x78]
push 0
lea edx, [esp + 0x1c]
push edx
push 0x10
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4042cc
cmp dword [esp + 0x8c], 0x10
jb 0x404280
mov eax, dword [esp + 0x78]
push eax
call fcn.00408bbb
add esp, 4
xor al, al
jmp 0x4043c4
push 1
push 0
push 0xffffffffffffffec
push esi
call ebx
cmp eax, 0xffffffff
je 0x404269
push 0
lea edx, [esp + 0x1c]
push edx
push 4
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x404398
push 1
mov ecx, 0xfffffffc
sub ecx, dword [esp + 0x18]
push 0
push ecx
push esi
call ebx
cmp eax, 0xffffffff
je 0x404398
mov edx, dword [esp + 0x14]
push 0
push edx
mov ecx, edi
call fcn.00404d90
cmp dword [edi + 0x18], 0x10
jb 0x40432a
mov eax, dword [edi + 4]
jmp 0x40432d
lea eax, [edi + 4]
mov edx, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x1c]
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x404398
push edi
lea eax, [esp + 0x40]
push eax
call fcn.0041738c
lea edi, [esp + 0x20]
mov ecx, eax
mov byte [esp + 0xa0], 1
call fcn.004173e2
mov ecx, eax
lea eax, [esp + 0x74]
mov byte [esp + 0xa0], 2
call fcn.00404ee0
mov ecx, edi
mov byte [esp + 0x13], al
call fcn.00401a30
lea eax, [esp + 0x3c]
call fcn.00417172
cmp byte [esp + 0x13], 0
je 0x4043a5
mov ecx, dword [esp + 0x1c]
mov byte [ecx], 0
lea ecx, [esp + 0x74]
call fcn.00401a30
xor al, al
jmp 0x4043c4
mov edx, dword [esp + 0x14]
push 1
push 0
neg edx
push edx
push esi
call ebx
cmp eax, 0xffffffff
lea ecx, [esp + 0x74]
setne bl
call fcn.00401a30
mov al, bl
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.004088c0
mov esp, ebp
pop ebp
ret
Function at 0x4088c0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41f268]
jne 0x4088ca
repz ret
jmp fcn.0040aac4

Function at 0x41188b
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.0040b130
and dword [ebp - 4], 0
cmp dword [0x421930], 0
mov ebx, eax
jne 0x41193c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4119ed
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41ac40
push edi
call esi
test eax, eax
je 0x4119ed
push eax
call fcn.0040b0be
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x421930], eax
call esi
push eax
call fcn.0040b0be
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x421934], eax
call esi
push eax
call fcn.0040b0be
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x421938], eax
call esi
push eax
call fcn.0040b0be
pop ecx
mov dword [0x421940], eax
test eax, eax
je 0x41193c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040b0be
pop ecx
mov dword [0x42193c], eax
mov eax, dword [0x42193c]
cmp eax, ebx
je 0x411994
cmp dword [0x421940], ebx
je 0x411994
push eax
call fcn.0040b139
push dword [0x421940]
mov esi, eax
call fcn.0040b139
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x411994
test edi, edi
je 0x411994
call esi
test eax, eax
je 0x41198b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41198b
test byte [ebp - 0xc], 1
jne 0x411994
or dword [ebp + 0x10], 0x200000
jmp 0x4119cd
mov eax, dword [0x421934]
cmp eax, ebx
je 0x4119cd
push eax
call fcn.0040b139
pop ecx
test eax, eax
je 0x4119cd
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4119cd
mov eax, dword [0x421938]
cmp eax, ebx
je 0x4119cd
push eax
call fcn.0040b139
pop ecx
test eax, eax
je 0x4119cd
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x421930]
call fcn.0040b139
pop ecx
test eax, eax
je 0x4119ed
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4119ef
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41738c
Capabilities:
Hash data with md5

Disassembly:
push 4
mov eax, 0x417ef4
call fcn.0040979d
mov esi, dword [ebp + 8]
and dword [esi + 0x10], 0
and dword [esi + 0x14], 0
lea eax, [esi + 0x18]
push eax
call fcn.00403c57
and dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
push esi
mov byte [esi + 0x30], 0
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
call fcn.00417368
mov eax, esi
call fcn.0040983c
ret 8
Function at 0x408c9b
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
movzx eax, byte [ebp + 0x1c]
test eax, eax
je 0x408d4d
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
lea eax, [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x20], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
test eax, eax
je 0x408d33
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
test eax, eax
je 0x408cfb
push 0x9b0
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x408d31
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
movzx eax, byte [eax]
test eax, eax
je 0x408d31
push 0
push 0x1a6e
push 0x178
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_GetSystemPaletteEntries]
jmp 0x408d4b
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
push 0
push 0x1b0a
push dword [ebp - 0x24]
call fcn.0040c332
add esp, 0xc
jmp 0x408d72
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2c], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
movzx eax, byte [eax]
push eax
push 0x1cf0
push 1
push dword [ebp - 0x2c]
call fcn.00408c79
add esp, 0x10
mov esp, ebp
pop ebp
ret
Function at 0x4103ce
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x410484
lea eax, [ebp + 0xc]
mov dword [ebp - 8], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x41045c
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
test eax, eax
je 0x41042e
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x41042c
push 0x9b0
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x41045a
mov byte [ebp - 2], 0
push 1
push 1
push 1
push 0x595d
push 0x7239
lea eax, [ebp - 2]
push eax
push 0x4a2f
push 1
push 0x366d
call fcn.0040c1ab
add esp, 0x24
jmp 0x410482
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
push 1
push dword [ebp - 0x18]
push 1
push 0x2894
push 0x79ca
push 0x3b92
push 0
call fcn.0040ec82
add esp, 0x1c
jmp 0x4104d4
lea eax, [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
movzx eax, byte [eax]
test eax, eax
je 0x4104be
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
push dword [ebp - 0x24]
push 0
push 0x51ca
push 0xecf
push 0x4d28
call fcn.0041bf8a
add esp, 0x14
jmp 0x4104d4
push 0x6c36
push 0x3651
push 1
push 1
call fcn.00408f2c
add esp, 0x10
mov esp, ebp
pop ebp
ret
Function at 0x410712
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x4107fc
lea eax, [ebp + 0x18]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2c], eax
lea eax, [ebp + 0x20]
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
test eax, eax
je 0x4107a3
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax]
test eax, eax
je 0x410781
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x4107a1
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x4107a1
push 0x9b0
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x4107fa
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x30]
movzx eax, byte [eax]
test eax, eax
je 0x4107d0
push 1
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_FlashWindow]
jmp 0x4107fa
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov eax, dword [eax]
movzx eax, word [eax]
and eax, 0xfff
mov ecx, dword [ebp - 0x48]
mov dword [ecx], eax
jmp 0x410819
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x4c], eax
push 0x27e3
push 0x5304
push dword [ebp - 0x4c]
push 1
call fcn.00408883
add esp, 0x10
mov esp, ebp
pop ebp
ret
Function at 0x4138b5
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x41393f
lea eax, [ebp + 0x18]
mov dword [ebp - 8], eax
lea eax, [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x4138e9
push 1
push 0x13f1
call fcn.00413984
pop ecx
pop ecx
jmp 0x41393d
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
test eax, eax
je 0x413933
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x413931
push 0x766d
push 0
push 0
push 0x5313
push 0x1ba
push 1
push 0x5978
push 0x48a3
push 0x2340
call fcn.0041c199
add esp, 0x24
jmp 0x41393d
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
jmp 0x413980
lea eax, [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax]
test eax, eax
je 0x41396f
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push 0x4b9c
push 0
call fcn.0041052f
add esp, 0xc
jmp 0x413980
push 0
push 0
push 0x2fb2
call fcn.0040aada
add esp, 0xc
mov esp, ebp
pop ebp
ret
Function at 0x413bd2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x413c75
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 8], eax
lea eax, [ebp + 0x20]
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
test eax, eax
je 0x413c1a
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
push dword [ebp - 0xc]
push 1
call fcn.00413d0d
pop ecx
pop ecx
jmp 0x413c70
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax]
test eax, eax
je 0x413c44
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
jmp 0x413c70
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
movzx eax, byte [eax]
test eax, eax
je 0x413c70
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_GetWindowOrgEx]
jmp 0x413d09
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x38], eax
lea eax, [ebp + 0x28]
mov dword [ebp - 0x28], eax
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
movzx eax, byte [eax]
test eax, eax
je 0x413cb1
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
push 0
push 0x4406
push dword [ebp - 0x30]
call fcn.0041aa01
add esp, 0xc
jmp 0x413d09
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x3c]
movzx eax, byte [eax]
test eax, eax
je 0x413ce0
push 0x21ff
push 0xd65
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
jmp 0x413d09
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
movzx eax, byte [eax]
test eax, eax
je 0x413d09
push 0x272
push 1
push 0
push 1
call fcn.0040aec1
add esp, 0x10
mov esp, ebp
pop ebp
ret
Function at 0x41b4b0
Capabilities:
Delete registry key
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
movzx eax, byte [ebp + 8]
test eax, eax
je 0x41b4ee
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x10], eax
push 1
push dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
push eax
push 1
push dword [ebp - 0x14]
call fcn.0041b588
add esp, 0x14
jmp 0x41b584
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
lea eax, [ebp + 0x14]
mov dword [ebp - 0x24], eax
lea eax, [ebp + 0x24]
mov dword [ebp - 0x18], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax]
test eax, eax
je 0x41b54b
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
movzx eax, byte [eax]
test eax, eax
je 0x41b52a
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
jmp 0x41b549
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x41b549
push 0x543e
push 1
push 0
push 1
call fcn.00411870
add esp, 0x10
jmp 0x41b584
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
movzx eax, byte [eax]
test eax, eax
je 0x41b57a
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x41b584
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esp, ebp
pop ebp
ret
Function at 0x42a561
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x42a64d
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0x1c]
mov dword [ebp - 0xc], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 0x1c], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x42a5db
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
test eax, eax
je 0x42a5cf
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x42a5cd
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_SetTextColor]
jmp 0x42a5d9
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
jmp 0x42a64b
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
movzx eax, byte [eax]
test eax, eax
je 0x42a626
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
movzx eax, byte [eax]
test eax, eax
je 0x42a624
push 0x21ff
push 0xd65
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
jmp 0x42a64b
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
movzx eax, byte [eax]
test eax, eax
je 0x42a64b
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_ShowOwnedPopups]
jmp 0x42a660
push 0x3c
push 0x6af4
push 0
push 1
call fcn.0042fb91
add esp, 0x10
mov esp, ebp
pop ebp
ret