joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40fd2f
Capabilities:
Check os version
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push 0x4e2d58
mov dword [0x4e2d58], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [0x4e2d5c], 5
je 0x40fd57
xor eax, eax
leave
ret
mov eax, dword [0x4e2d60]
push ebx
push edi
xor edi, edi
sub eax, edi
je 0x40fd72
dec eax
jne 0x40fdf3
mov ebx, 0x39000
jmp 0x40fd77
mov ebx, 0x30000
push esi
push str.DevicePhysicalMemory
lea eax, [ebp - 8]
push eax
call dword [0x4e2d20]
lea eax, [ebp - 8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
push 6
mov esi, 0x4e2e90
push esi
mov dword [ebp - 0x20], 0x18
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
call dword [0x4e2cf8]
cmp eax, 0xc0000022
jne 0x40fdee
lea eax, [ebp - 0x20]
push eax
push 0x60000
push esi
call dword [0x4e2cf8]
push dword [0x4e2e90]
call fcn.0040fc61
pop ecx
push dword [0x4e2e90]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x20]
push eax
push 6
push esi
call dword [0x4e2cf8]
cmp eax, edi
pop esi
jge 0x40fdf7
xor eax, eax
jmp 0x40fe1b
push 0x1000
push ebx
push edi
push 6
push dword [0x4e2e90]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x4e2e8c], eax
neg eax
sbb eax, eax
and eax, dword [0x4e2e90]
pop edi
pop ebx
leave
ret

Function at 0x40fe1f
Capabilities:
Read file via mapping

Disassembly:
mov ecx, dword [esp + 4]
push edi
mov edi, dword [esp + 0xc]
mov eax, edi
shr eax, 0x16
mov eax, dword [ecx + eax*4]
test al, 1
jne 0x40fe38
xor eax, eax
pop edi
ret
test al, al
push esi
jns 0x40fe4b
mov esi, eax
xor esi, edi
and esi, 0x3fffff
xor esi, eax
jmp 0x40fe93
push 0x1000
and eax, 0xfffff000
push eax
push 0
push 4
push dword [0x4e2e90]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, edi
shr ecx, 0xc
and ecx, 0x3ff
mov ecx, dword [eax + ecx*4]
test ecx, 1
jne 0x40fe80
xor eax, eax
jmp 0x40fe95
mov esi, ecx
xor esi, edi
and esi, 0xfff
push eax
xor esi, ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, esi
pop esi
pop edi
ret

Function at 0x40fe98
Capabilities:
Read file via mapping

Disassembly:
push esi
push dword [esp + 8]
push dword [0x4e2e8c]
call fcn.0040fe1f
pop ecx
pop ecx
push 0x1000
mov esi, eax
and eax, 0xfffff000
push eax
push 0
push 6
push dword [0x4e2e90]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
jne 0x40fecd
pop esi
ret
shr esi, 2
and esi, 0x3ff
mov esi, dword [eax + esi*4]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, esi
pop esi
ret

Function at 0x40ffbb
Capabilities:
Check mutex on windows

Disassembly:
push esi
push dword [esp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x40ffd9
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, esi
pop esi
ret
Function at 0x40ffdd
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
xor esi, esi
cmp word [eax], si
push edi
je 0x41002b
cmp word [eax + 2], si
je 0x41002b
cmp word [eax + 4], si
je 0x41002b
cmp word [eax + 6], si
je 0x41002b
cmp word [eax + 8], si
je 0x41002b
cmp word [eax + 0xa], si
je 0x41002b
cmp word [eax + 0xc], si
je 0x41002b
cmp word [eax + 0xe], si
je 0x41002b
lea ecx, [eax + 0x10]
jmp 0x410026
cmp word [ecx], 0x5c
jne 0x410024
mov word [ecx], 0x2f
inc ecx
inc ecx
cmp word [ecx], si
jne 0x410019
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
cmp edi, esi
je 0x410043
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, edi
pop edi
pop esi
ret

Function at 0x410133
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 7
push 0xc0000000
push str.C:pe.debug.log
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x41018f
push esi
push 2
push ebx
push ebx
push edi
call fcn.00441183
mov esi, dword [ebp + 8]
add esp, 0x10
cmp byte [esi], bl
je 0x410187
push ebx
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
pop ebx
leave
ret

Function at 0x41031f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
push 0x80000000
push dword [ebp + 8]
call fcn.0041029e
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 4], eax
je 0x4103b6
push esi
push eax
call fcn.004102fd
mov esi, dword [ebp + 0x10]
test esi, esi
pop ecx
mov dword [ebp - 8], eax
je 0x410351
mov dword [esi], eax
jmp 0x410354
lea esi, [ebp - 8]
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x41037a
add eax, 0x10
push eax
lea ecx, [ebp + 0xc]
call fcn.00446437
mov edi, dword [ebp + 0xc]
and dword [ebp + 0xc], 0
lea ecx, [ebp + 0xc]
call fcn.0043fe25
test edi, edi
je 0x4103aa
and dword [ebp + 0xc], 0
push 0
lea eax, [ebp + 0xc]
push eax
push dword [esi]
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp + 0xc]
test eax, eax
jge 0x410399
xor eax, eax
push 6
mov dword [esi], eax
add eax, edi
push 0
push eax
call fcn.004b4520
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
jmp 0x4103b9
mov edi, dword [ebp + 0xc]
mov eax, edi
pop edi
leave
ret
Function at 0x410be4
Capabilities:
Parse pe header

Disassembly:
cmp dword [esp + 8], 0x40
jb 0x410bf9
mov eax, dword [esp + 4]
mov dword [ecx + 0x10], eax
cmp word [eax], 0x5a4d
je 0x410bfd
xor eax, eax
jmp 0x410c72
mov edx, dword [eax + 0x3c]
push esi
lea esi, [edx + 0xf8]
cmp dword [esp + 0xc], esi
jae 0x410c11
xor eax, eax
jmp 0x410c71
add edx, eax
mov dword [ecx + 0x14], edx
cmp dword [edx], 0x4550
jne 0x410c0d
mov si, word [edx + 0x16]
test si, 0x2002
movzx eax, si
je 0x410c0d
test byte [edx + 0x16], 2
je 0x410c0d
cmp word [edx + 0x14], 0xe0
jne 0x410c0d
add edx, 0xf8
push edi
mov edi, dword [ecx + 0x14]
xor esi, esi
mov dword [ecx + 0x18], edx
cmp word [edi + 6], si
jbe 0x410c70
add edx, 0x10
mov edi, dword [edx + 4]
add edi, dword [edx]
cmp edi, dword [esp + 0x10]
ja 0x410c6e
mov edi, dword [ecx + 0x14]
movzx edi, word [edi + 6]
inc esi
add edx, 0x28
cmp esi, edi
jl 0x410c52
jmp 0x410c70
xor eax, eax
pop edi
pop esi
ret 8

Function at 0x410ce6
Capabilities:
Set thread local storage value

Disassembly:
push ebx
push esi
xor esi, esi
cmp dword [0x4e2bdc], esi
setne bl
test bl, bl
je 0x410d46
push 0x28
push 8
push dword [0x4e321c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x410d1a
push 2
call fcn.004462c5
cmp eax, 4
pop ecx
je 0x410cf7
mov dword [esi + 4], 0xaa55
and dword [esi + 4], 0
mov dword [esi], 0x20
or dword [esi + 0x1c], 0xffffffff
add esi, 8
push esi
mov dword [esi + 0x10], 0xfff80000
push dword [0x4e2bdc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x410d50
mov dword [eax], esi
pop esi
mov al, bl
pop ebx
ret

Function at 0x410d55
Capabilities:
Get thread local storage value
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push edi
mov edi, 0x4e2d00
jne 0x410d80
push dword [0x4e2bdc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, ebx
je 0x410d89
cmp dword [eax], ebx
je 0x410d89
mov edi, eax
jmp 0x410d89
cmp dword [ebp + 0xc], 0xffffffff
je 0x410d89
mov edi, dword [ebp + 0xc]
cmp dword [edi], ebx
lea esi, [edi + 4]
je 0x410dde
cmp byte [ebp + 8], bl
je 0x410dde
cmp dword [esi + 4], ebx
jle 0x410dde
mov eax, dword [esi]
cmp word [eax], bx
je 0x410dde
test byte [0x4e34b4], 2
push eax
je 0x410dc3
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
lea ecx, [ebp - 4]
push ecx
push eax
push dword [esi]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x410dde
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
lea ecx, [ebp + 0xc]
push ecx
add eax, eax
push eax
push dword [esi]
mov dword [ebp + 0xc], ebx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
dec eax
cmp eax, 0x1ffff
jb 0x410dfc
push 0x10002
mov ecx, esi
mov dword [esi + 8], 0x10000
call fcn.004465d3
mov eax, dword [esi]
mov word [eax], bx
pop edi
mov dword [esi + 4], ebx
pop esi
pop ebx
leave
ret
Function at 0x4111fc
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
xor esi, esi
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
cmp dword [ebp + 0x10], esi
je 0x411234
cdq
jmp 0x411247
cmp dword [ebp + 0xc], esi
je 0x411241
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
jmp 0x411247
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
pop esi
leave
ret

Function at 0x411272
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [0x4e2bdc]
mov edi, 0x4e2d00
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
xor ebx, ebx
cmp eax, ebx
je 0x41129c
cmp dword [eax], ebx
je 0x41129c
mov dword [ebp - 4], eax
mov edi, eax
cmp dword [edi], ebx
lea esi, [edi + 4]
je 0x411360
push 0x4e3d84
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [edi], ebx
je 0x411355
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
sub ecx, eax
cmp ecx, 0xc96
jge 0x4112da
add eax, 0x10c96
push eax
mov ecx, esi
mov dword [esi + 8], eax
call fcn.004465d3
mov eax, dword [esi + 4]
mov ecx, dword [esi]
lea eax, [ecx + eax*2 + 0x1000]
mov word [eax], bx
mov edi, dword [ebp + 0xc]
cmp edi, 0xffff
ja 0x41130b
push 0x400
push eax
push dword [ebp + 0xc]
mov edi, eax
push dword [0x4e2c88]
call dword [sym.imp.USER32.dll_LoadStringW]
mov ecx, dword [esi]
mov eax, dword [esi + 4]
lea eax, [ecx + eax*2]
lea ecx, [ebp + 0x10]
push ecx
push edi
push 0x7fd
push eax
call fcn.004b4891
add esp, 0x10
cmp eax, ebx
jge 0x41132c
xor eax, eax
add dword [esi + 4], eax
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov word [ecx + eax*2], bx
cmp dword [esi + 4], 0x10000
jg 0x411349
cmp byte [0x4e2d19], bl
je 0x411355
push dword [ebp - 4]
push 1
call fcn.00410d55
pop ecx
pop ecx
push 0x4e3d84
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x411365
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
push edi
push dword [0x4e2bdc]
mov edi, 0x4e2d00
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
xor ebx, ebx
cmp eax, ebx
je 0x411385
cmp dword [eax], ebx
je 0x411385
mov edi, eax
cmp dword [edi], ebx
lea esi, [edi + 4]
je 0x411416
push 0x4e3d84
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [edi], ebx
je 0x41140b
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
sub ecx, eax
cmp ecx, 0x896
jge 0x4113bf
add eax, 0x10896
push eax
mov ecx, esi
mov dword [esi + 8], eax
call fcn.004465d3
mov ecx, dword [esi]
mov eax, dword [esi + 4]
lea eax, [ecx + eax*2]
lea ecx, [esp + 0x18]
push ecx
push dword [esp + 0x18]
push 0x7fd
push eax
call fcn.004b4891
add esp, 0x10
cmp eax, ebx
jge 0x4113e4
xor eax, eax
add dword [esi + 4], eax
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov word [ecx + eax*2], bx
cmp dword [esi + 4], 0x10000
jg 0x411401
cmp byte [0x4e2d19], bl
je 0x41140b
push edi
push 1
call fcn.00410d55
pop ecx
pop ecx
push 0x4e3d84
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
ret
Function at 0x41158a
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0xffffffffffffffec
push ebx
call dword [sym.imp.USER32.dll_GetWindowLongW]
push ebx
mov dword [ebp - 0x10], eax
call dword [sym.imp.USER32.dll_GetParent]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x30]
xor edi, edi
push eax
push ebx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
call dword [sym.imp.USER32.dll_ScreenToClient]
push dword [ebp - 0x1c]
lea eax, [ebp - 0x30]
push dword [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
lea eax, [esi + 0x1b]
push eax
lea ecx, [ebp + 8]
call fcn.004465ac
mov eax, dword [ebp + 8]
lea ecx, [esi + 0xb]
push ecx
push eax
push ebx
mov dword [ebp - 0x18], eax
mov word [eax], di
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [ebp + 8]
push edi
push edi
push 0x31
mov word [eax + esi*2 + 0x14], di
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push ebx
call esi
or dword [ebp - 0xc], 0xffffffff
or dword [ebp - 8], 0xffffffff
mov dword [ebp - 0x14], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0xb0
push ebx
call esi
push edi
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp + 0x10], edi
jge 0x411656
push ebx
call dword [sym.imp.USER32.dll_DestroyWindow]
movzx edx, word [ebp + 0x10]
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
sub ecx, dword [ebp - 0x30]
push edi
push dword [0x4e2fc8]
push edx
push dword [ebp - 4]
push eax
push ecx
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push dword [ebp + 0xc]
push edi
push 0x4c8e04
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 1
push dword [ebp - 0x14]
mov edi, eax
push 0x30
push edi
call esi
push dword [ebp - 0x18]
push edi
call dword [sym.imp.USER32.dll_SetWindowTextW]
push dword [ebp - 8]
push dword [ebp - 0xc]
push 0xb1
push edi
call esi
lea ecx, [ebp + 8]
call fcn.0043fe25
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x411b0d
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
push ebx
push esi
push edi
push 0x325
lea ecx, [ebp - 8]
call fcn.004465ac
mov esi, dword [ebp - 8]
push esi
push 0x324
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov ebx, dword [ebp + 8]
mov edi, dword [sym.imp.USER32.dll_CharUpperW]
push ebx
call edi
push esi
call edi
cmp word [esi], 0
je 0x411ba1
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
add eax, 0x10
mov dword [ebp - 0xc], eax
push esi
call fcn.0041124a
cmp eax, dword [ebp - 0xc]
pop ecx
jb 0x411b90
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
dec eax
dec eax
je 0x411b8a
dec eax
jne 0x411b90
mov ax, word [esi]
mov word [edi + 2], ax
mov cx, word [esi]
xor eax, eax
inc eax
cmp cx, word [ebx]
mov dword [ebp - 4], eax
jb 0x411b90
mov esi, eax
jmp 0x411ba4
mov ax, word [esi]
mov word [edi], ax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
cmp word [esi], 0
jne 0x411b57
mov esi, dword [ebp - 4]
lea ecx, [ebp - 8]
call fcn.0043fe25
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x41214f
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
push ebx
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x412180
xor eax, eax
jmp 0x4121ef
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea eax, [ebp - 4]
push eax
push 0x40
lea eax, [ebp - 0x48]
push eax
push ebx
mov dword [ebp - 8], edi
call esi
cmp dword [ebp - 4], 0x40
jne 0x4121e4
cmp word [ebp - 0x48], 0x5a4d
jne 0x4121e4
push edi
push edi
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4121e4
push edi
lea eax, [ebp - 4]
push eax
mov edi, 0xf8
push edi
lea eax, [ebp - 0x140]
push eax
push ebx
call esi
cmp dword [ebp - 4], edi
jne 0x4121e4
cmp dword [ebp - 0x140], 0x4550
jne 0x4121e4
mov dword [ebp - 8], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
pop esi
pop edi
pop ebx
leave
ret

Function at 0x4123f8
Capabilities:
Terminate process

Disassembly:
push esi
push dword [esp + 8]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x41242e
push dword [esp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x412427
mov eax, dword [esp + 0x10]
test eax, eax
je 0x412427
and dword [eax], 0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret
Function at 0x4124e0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp byte [esi], 1
jne 0x412523
push 0x5c
push 0
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
test eax, eax
je 0x412523
sub eax, dword [ebp + 0xc]
lea ecx, [ebp + 8]
sar eax, 1
inc eax
push eax
push dword [ebp + 0xc]
call fcn.00450608
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [ebp + 8]
mov byte [esi], 2
call fcn.0043fe25
mov al, byte [esi]
pop esi
pop ebp
ret

Function at 0x412528
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push esi
push edi
mov esi, 0x4c903c
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
mov byte [ebp - 1], 0
mov byte [ebp - 2], 0
mov edi, 0x4e3110
movsx ax, byte [ebp - 2]
add eax, 0x41
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
jne 0x4125c2
movsx ebx, byte [ebp - 1]
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 0x218]
push str.HKLMSYSTEMCurrentControlSetControlSession_ManagerEnvironmentCDROM_u_s
push eax
call esi
add esp, 0x10
push 0
lea eax, [ebp - 0x218]
push eax
mov ecx, edi
call fcn.00463863
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 0x218]
push str.CDROM_u
push eax
call esi
add esp, 0x10
inc byte [ebp - 1]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x218]
push eax
mov ecx, edi
call fcn.00445c44
inc byte [ebp - 2]
cmp byte [ebp - 2], 0x1a
jl 0x412552
cmp byte [ebp - 1], 0
pop edi
pop esi
pop ebx
jle 0x4125e6
mov ecx, dword [ebp + 8]
xor eax, eax
push eax
push eax
push eax
push str.THREAD_Envi
call fcn.00434f28
leave
ret
Function at 0x4129dd
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
add dword [ebp + 8], 2
push esi
push edi
lea ecx, [ebp - 8]
call fcn.0044658e
lea ecx, [ebp - 4]
call fcn.0044658e
push 0x2c
xor esi, esi
push esi
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
mov edi, eax
cmp edi, esi
je 0x412abf
push ebx
push 1
push esi
lea eax, [ebp - 8]
mov word [edi], si
push eax
push dword [ebp + 8]
mov esi, 0x4e3110
mov ecx, esi
call fcn.0045937c
mov ebx, dword [ebp - 8]
push 1
push 0
lea eax, [ebp - 4]
push eax
add edi, 2
push edi
mov ecx, esi
mov dword [ebp + 8], ebx
call fcn.0045937c
cmp byte [ebp + 0xc], 0
mov esi, dword [ebp - 4]
mov dword [ebp - 0xc], esi
je 0x412a76
lea ecx, [ebp + 8]
call fcn.0040fb41
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
push dword [ebp + 8]
push 1
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000002
jmp 0x412ab2
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
call esi
add eax, eax
push eax
push ebx
push 1
push str.RegisteredOwner
mov edi, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push edi
mov ebx, 0x80000002
push ebx
call fcn.004410db
add esp, 0x18
push dword [ebp - 0xc]
call esi
shl eax, 1
push eax
push dword [ebp - 0xc]
push 1
push str.RegisteredOrganization
push edi
push ebx
call fcn.004410db
add esp, 0x18
xor esi, esi
pop ebx
jmp 0x412ac2
xor esi, esi
inc esi
lea ecx, [ebp - 4]
call fcn.0043fe25
lea ecx, [ebp - 8]
call fcn.0043fe25
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x412ffc
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
test edi, edi
jge 0x41300d
call fcn.00412fa1
mov edi, eax
mov eax, dword [esp + 0x14]
test eax, eax
mov esi, dword [esp + 0xc]
jg 0x413021
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
dec eax
js 0x41302d
inc eax
xor word [esi], di
inc esi
inc esi
dec eax
jne 0x413025
mov eax, edi
pop edi
shl eax, 0x10
pop esi
ret

Function at 0x4131be
Capabilities:
Log keystrokes via application hook

Disassembly:
cmp dword [0x4e2fb8], 0
jne 0x4131e1
push 0
push dword [0x4e2fc8]
push 0x4130bd
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x4e2fb8], eax
ret

Function at 0x413352
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
push edi
jne 0x41336d
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
push esi
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x22c], 0x22c
mov dword [ebp - 0x228], ebx
mov ecx, 0x89
lea edi, [ebp - 0x224]
push 2
rep stosd dword es:[edi], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
lea eax, [ebp - 0x22c]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x4133bc
cmp dword [ebp - 0x224], esi
je 0x4133c2
lea eax, [ebp - 0x22c]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4133a7
jmp 0x4133c8
mov ebx, dword [ebp - 0x214]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
dec dword [ebp + 0xc]
cmp dword [ebp + 0xc], 0
mov esi, ebx
jg 0x41336d
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x41366a
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
push edi
je 0x41368e
cmp dword [ebp + 0xc], 2
jne 0x4136bd
mov edi, dword [ebp + 0x14]
push 0x104
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x413691
mov edi, dword [ebp + 0x10]
cmp dword [ebp + 0x18], 0
je 0x4136a1
push dword [ebp + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [esi + 2]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push edi
push esi
mov ecx, 0x4e3110
call fcn.00445c44
pop esi
pop edi
pop ebp
ret

Function at 0x4136c0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0xc11
lea ecx, [ebp - 4]
call fcn.004465ac
push 0x822
push 0
push dword [ebp - 4]
call fcn.004b4520
mov eax, dword [ebp - 4]
mov ebx, dword [ebp + 8]
lea esi, [eax + 0x410]
and word [esi], 0
add esp, 0xc
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0x10], eax
lea edi, [ebx + 2]
je 0x413707
mov edi, dword [ebp + 0xc]
and dword [ebp - 8], 0
push 0x104
push esi
push edi
mov dword [ebp - 0xc], 0x410
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp word [esi], 0
je 0x413733
push esi
push ebx
mov ecx, 0x4e3110
call fcn.00445c44
jmp 0x413766
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders
push 0x80000001
call fcn.00441077
add esp, 0x18
test eax, eax
jne 0x413766
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push esi
push dword [ebp - 8]
push ebx
call fcn.0041366a
add esp, 0x14
lea ecx, [ebp - 4]
call fcn.0043fe25
pop edi
pop esi
pop ebx
leave
ret