joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ae604
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x4ae6a6
cmp dword [ebx + 0x90], 0
jne 0x4ae6a0
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4ae57c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x8c]
cmp dword [eax + 8], 0
je 0x4ae6a0
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
test al, 8
je 0x4ae666
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x8c]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4ae6a0
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x8c]
call fcn.00484bc8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4ae675
inc dword [ebx + 0x90]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4ae8c4
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x558344]
cmp dword [eax + 0x170], 0
je 0x4aea29
test bl, bl
jne 0x4ae977
cmp dword [esi + 0x98], 0
jne 0x4ae96c
mov eax, esi
call fcn.004b11a4
push eax
push 0x4ae7d0
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x40], 0
je 0x4ae93d
mov eax, dword [0x558344]
cmp byte [eax + 0xcf], 0
je 0x4ae93d
mov eax, dword [esi + 0xd4]
call fcn.0040783c
mov edi, eax
cmp edi, 0
jl 0x4ae93d
push 0
mov eax, dword [esi + 0xd4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4ae926
mov eax, dword [esi + 0x94]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4ae96c
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x94]
call fcn.00484bc8
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4ae94c
inc dword [esi + 0x98]
jmp 0x4aea29
cmp dword [esi + 0x98], 0
jle 0x4aea29
dec dword [esi + 0x98]
cmp dword [esi + 0x98], 0
jne 0x4aea29
cmp dword [esi + 0x40], 0
je 0x4ae9d4
mov eax, dword [0x558344]
cmp byte [eax + 0xcf], 0
je 0x4ae9d4
mov eax, dword [esi + 0xd4]
call fcn.0040783c
mov edi, eax
cmp edi, 0
jl 0x4ae9d4
push 5
mov eax, dword [esi + 0xd4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4ae9bd
mov eax, dword [esi + 0x94]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4aea03
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x94]
call fcn.00484bc8
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4ae9e3
mov eax, dword [esi + 0x94]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xd4]
mov ecx, 1
mov edx, dword [0x4a41f8]
call fcn.004079fc
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x4af5e4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa8], 0
je 0x4af64f
cmp byte [ebx + 0xcf], 0
jne 0x4af64f
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004063f8
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x4af63c
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4af65c
mov eax, esi
mov edx, dword [ebx + 0x88]
call fcn.004062bc
jmp 0x4af65c
mov eax, esi
mov edx, dword [ebx + 0x88]
call fcn.004062bc
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x4b0964
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x80]
test esi, esi
je 0x4b09d2
mov eax, esi
call fcn.004cc1f4
test al, al
je 0x4b09d2
mov eax, dword [ebx + 0x80]
call fcn.004cbeec
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4b09d2
mov eax, dword [ebx + 0x80]
mov edx, dword [eax]
call dword [edx + 0xec]
test al, al
je 0x4b09c6
push 0
mov eax, dword [ebx + 0x80]
call fcn.004cbeec
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x80]
call fcn.004c366c
jmp 0x4b09d2
mov cl, 1
mov edx, dword [ebx + 0x70]
mov eax, ebx
call fcn.004b07b0
pop esi
pop ebx
ret

Function at 0x4b2720
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.004062bc
push 0
mov eax, esi
movzx eax, al
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x4b2767
push pe_nt_image_headers32
lea edx, [esp + 4]
push edx
push eax
call sub.user32.dll_GetKeyNameTextW
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.004064bc
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x4b7b80
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4b7cb9
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
call sub.user32.dll_GetKeyboardLayoutNameW
mov dl, 1
mov eax, dword [0x491f54]
call fcn.00492210
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x4b7c8f
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.004922b0
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.004064bc
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x4b7cd4
call fcn.00406690
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.0049243c
test al, al
je 0x4b7c79
lea ecx, [ebp - 4]
mov edx, 0x4b7d48
mov eax, dword [ebp - 0xc]
call fcn.00492734
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0047899c
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x4b7c72
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x4b7d60
mov eax, dword [ebp - 8]
push eax
call fcn.0040929c
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x54b244]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b7c79
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b7c96
mov eax, dword [ebp - 0xc]
call fcn.00404224
ret

Function at 0x4b7dc4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, eax
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movzx ebx, byte [esp + 4]
test bx, bx
je 0x4b7e0b
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4b7dee
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4b7dff
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x4b7e0b
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x4c0e10
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x5583e0], 0
je 0x4c0f51
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x5510d4]
mov edx, dword [edx]
xor al, byte [edx + 0xb8]
je 0x4c0f51
mov eax, dword [0x5583e4]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x5583e0]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x4c0f20
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x5583e0]
call fcn.00484bc8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x4c0f18
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1e2], 0
je 0x4c0f18
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
je 0x4c0f18
mov eax, dword [ebp - 0x14]
call fcn.004cbeec
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4c0f18
push ebp
call fcn.004c0dcc
pop ecx
test al, al
jne 0x4c0f18
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.00404434
test al, al
je 0x4c0f18
mov byte [ebp - 1], 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbc
call fcn.00404434
cmp byte [ebp - 1], 0
je 0x4c0f18
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x28]
call fcn.00408cbc
test al, al
je 0x4c0f18
mov edx, dword [ebp - 0x14]
mov eax, dword [0x5583e4]
call fcn.004c0544
inc edi
dec ebx
jne 0x4c0e75
mov eax, dword [0x5583e4]
cmp dword [eax + 8], 0
jle 0x4c0f38
mov eax, dword [0x5583e4]
call fcn.004c05fc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4c0f51
push ebp
mov eax, dword [ebp - 0x18]
call fcn.004c0c30
pop ecx
test al, al
jne 0x4c0f51
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c8bd8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffed8
mov ebx, ecx
mov edi, edx
mov esi, eax
call sub.user32.dll_GetMessagePos
call fcn.00408ca4
mov dword [esp + 8], eax
movsx eax, word [esp + 8]
mov dword [esp + 0xc], eax
movsx eax, word [esp + 0xa]
mov dword [esp + 0x10], eax
mov ecx, esp
lea edx, [esp + 0xc]
mov eax, esi
call fcn.004c328c
test ebx, ebx
jne 0x4c8c2b
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.004c8a6c
mov ebx, eax
test ebx, ebx
je 0x4c8d16
cmp esi, ebx
je 0x4c8c54
mov eax, dword [esp]
sub eax, dword [ebx + 0x40]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x44]
mov dword [esp + 0x118], eax
jmp 0x4c8c69
mov eax, dword [esp]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x11c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x124], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x4c8ca1
add eax, 0xffffff5f
sub eax, 2
jb 0x4c8cb9
dec eax
sub eax, 2
jb 0x4c8ccd
dec eax
sub eax, 2
jb 0x4c8cc3
jmp 0x4c8cd7
add eax, 0xfffffdff
sub eax, 2
jb 0x4c8cb9
dec eax
sub eax, 2
jb 0x4c8ccd
dec eax
sub eax, 2
jb 0x4c8cc3
jmp 0x4c8cd7
mov byte [esp + 0x120], 0
jmp 0x4c8cdf
mov byte [esp + 0x120], 2
jmp 0x4c8cdf
mov byte [esp + 0x120], 1
jmp 0x4c8cdf
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.004a48a0
mov byte [esp + 0x121], al
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.004c4a34
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x4c8d18
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret
Function at 0x4d333c
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x18], ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x14]
mov edx, dword [0x4336dc]
call fcn.00406ccc
xor eax, eax
push ebp
push 0x4d34fd
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x54b438], 0
jne 0x4d3390
mov ecx, dword [0x550b34]
mov dl, 1
mov eax, dword [0x46ccc4]
call fcn.00475d28
call fcn.00404cc4
lea eax, [ebp - 0x2c]
xor ecx, ecx
mov edx, 0x10
call fcn.0040396c
mov eax, ebx
call fcn.004060c0
mov dword [ebp - 0x28], eax
push esi
mov esi, 0x4d350c
lea edi, [ebp - 0x3c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
call fcn.004082f8
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, ebx
test eax, eax
je 0x4d33d7
sub eax, 4
mov eax, dword [eax]
shr eax, 1
test eax, eax
jle 0x4d34a3
mov dword [ebp - 0x1c], 0x20
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x5c]
push eax
call sub.kernel32.dll_GetComputerNameW
test eax, eax
je 0x4d348f
lea eax, [ebp - 4]
lea edx, [ebp - 0x5c]
mov ecx, 0x10
call fcn.004064bc
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00406524
mov eax, dword [ebp - 4]
test eax, eax
je 0x4d3432
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4d3432
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.0040568c
mov ebx, eax
test ebx, ebx
je 0x4d343d
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [ebp - 8]
test eax, eax
je 0x4d345a
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4d345a
lea eax, [ebp - 8]
mov edx, dword [ebp - 8]
call fcn.0040568c
mov edi, eax
test edi, edi
je 0x4d3465
sub edi, 4
mov edi, dword [edi]
push edi
mov eax, dword [ebp - 8]
call fcn.00406348
push eax
push ebx
mov eax, dword [ebp - 4]
call fcn.00406348
call dword cs:[eax + 0x6a]
add dword [eax], ebp
add al, 0
add al, ch
xlatb
pop edx
inc dword [ebx - 0x3f7afd18]
sete al
jmp 0x4d3491
xor eax, eax
test al, al
je 0x4d349c
mov ebx, 0x15
jmp 0x4d34a8
mov ebx, 0x10
jmp 0x4d34a8
mov ebx, 0x15
lea eax, [ebp - 0x14]
push eax
push 1
lea eax, [ebp - 0x2c]
push eax
push ebx
push 0
push esi
call dword [0x54b438]
call fcn.004d31a8
mov eax, dword [ebp - 0xc]
call fcn.004d31a8
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
call fcn.00408310
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d3504
lea eax, [ebp - 0x14]
mov edx, dword [0x4336dc]
call fcn.00406da4
lea eax, [ebp - 8]
mov edx, 2
call fcn.004062b4
ret
Function at 0x4d5508
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 8], ebx
test dl, dl
je 0x4d5521
add esp, 0xfffffff0
call fcn.0040465c
mov dword [ebp - 4], ecx
mov byte [ebp - 9], dl
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004062a4
xor eax, eax
push ebp
push 0x4d56a5
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebx + 0x24], eax
mov byte [ebx + 0x21], 0
mov byte [ebx + 0x20], 0
mov dword [ebx + 0x1c], 0xffffffff
lea eax, [ebx + 0x18]
xor edx, edx
call fcn.004062bc
mov byte [ebx + 0x22], 0
xor ecx, ecx
xor edx, edx
mov eax, ebx
call fcn.0048ebc8
lea eax, [ebx + 0xc]
sub eax, 4
mov eax, dword [eax]
mov dword [ebx + 0x14], eax
call fcn.00404224
mov dl, 1
mov eax, dword [0x4d4420]
call fcn.0048724c
mov esi, eax
mov dword [ebx + 0x14], esi
lea eax, [ebx + 0xc]
sub eax, 4
mov dword [eax], esi
lea eax, [ebx + 0x10]
mov edx, dword [ebp - 4]
call fcn.004062bc
cmp dword [ebx + 0x10], 0
je 0x4d5674
mov edx, dword [ebx + 0x10]
mov eax, ebx
call fcn.004d5214
mov eax, dword [ebx + 0x10]
call fcn.0046f32c
test al, al
jne 0x4d566a
lea edx, [ebp - 4]
mov eax, dword [ebx + 0x10]
call fcn.0046f7b0
mov eax, dword [ebp - 4]
test eax, eax
je 0x4d55ec
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4d55ec
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.0040568c
test eax, eax
je 0x4d55f5
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x4d5601
mov eax, dword [ebp - 4]
call fcn.004d5348
push 0
push 0x80
push 4
push 0
push 1
push 0xc0000000
mov eax, dword [ebx + 0x10]
call fcn.00406348
push eax
call sub.kernel32.dll_CreateFileW_1
mov esi, eax
cmp esi, 0xffffffff
je 0x4d566a
cmp dword [ebp + 8], 0
je 0x4d5664
mov eax, dword [ebp + 8]
mov dword [ebx + 0xc], eax
lea edx, [ebp - 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 8]
call fcn.00407834
test eax, eax
jle 0x4d5664
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.00407834
push eax
mov eax, dword [ebp - 8]
push eax
push esi
call sub.kernel32.dll_WriteFile_1
push esi
call sub.kernel32.dll_CloseHandle_1
cmp dword [ebx + 0x24], 0
je 0x4d5674
mov byte [ebx + 0x21], 1
mov eax, dword [ebx + 0x14]
mov dword [eax + 0x34], ebx
mov dword [eax + 0x30], 0x4d546c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d56ac
lea eax, [ebp - 8]
mov edx, dword [0x46cc6c]
call fcn.00407b1c
lea eax, [ebp - 4]
call fcn.004062ac
ret
Function at 0x4d5f60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, ebx
mov edx, dword [ebp + 0xc]
call fcn.004062bc
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
mov eax, edi
call fcn.00406348
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x4d601f
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00406348
mov edi, eax
push edi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
cmp dword [ebp - 0xc], 0
je 0x4d6016
mov eax, dword [ebp - 0xc]
call fcn.00403030
mov esi, eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push 0
push edi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x4d600f
mov eax, dword [ebp - 0x10]
dec eax
sub eax, 2
jb 0x4d5ff8
sub eax, 4
jne 0x4d6003
mov eax, ebx
mov edx, esi
call fcn.00406468
jmp 0x4d600f
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov edx, esi
call fcn.004063f8
mov eax, esi
call fcn.00403064
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4d61a0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4d621a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
call sub.kernel32.dll_GetUserDefaultUILanguage
mov ecx, 0x4d6234
mov edx, 0x59
call fcn.00475268
push dword [ebp - 4]
push 0x4d6248
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_GetUserDefaultUILanguage
mov ecx, 0x4d6258
mov edx, 0x5a
call fcn.00475268
push dword [ebp - 8]
mov eax, ebx
mov edx, 3
call fcn.00406760
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d6221
lea eax, [ebp - 8]
mov edx, 2
call fcn.004062b4
ret

Function at 0x4d6260
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xfffffdf4
mov ebx, eax
mov dword [esp], 0x104
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameW
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x104
call fcn.004064bc
add esp, 0x20c
pop ebx
ret

Function at 0x4d6294
Capabilities:
Get session user name

Disassembly:
push ebx
add esp, 0xfffffdf4
mov ebx, eax
mov dword [esp], 0x104
push esp
lea eax, [esp + 8]
push eax
call sub.advapi32.dll_GetUserNameW
test eax, eax
je 0x4d62c5
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x104
call fcn.004064bc
jmp 0x4d62ce
mov eax, ebx
xor edx, edx
call fcn.004062bc
add esp, 0x20c
pop ebx
ret
Function at 0x4d6324
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
xor edx, edx
mov dword [ebp - 0x20c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4d6398
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x1a
lea eax, [ebp - 0x208]
push eax
mov eax, dword [0x554b20]
push eax
call sub.shell32.dll_SHGetSpecialFolderPathW
lea eax, [ebp - 0x20c]
lea edx, [ebp - 0x208]
mov ecx, 0x104
call fcn.004064bc
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.00477248
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d639f
lea eax, [ebp - 0x20c]
call fcn.004062ac
ret

Function at 0x4d63a4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
xor edx, edx
mov dword [ebp - 0x20c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4d6418
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x23
lea eax, [ebp - 0x208]
push eax
mov eax, dword [0x554b20]
push eax
call sub.shell32.dll_SHGetSpecialFolderPathW
lea eax, [ebp - 0x20c]
lea edx, [ebp - 0x208]
mov ecx, 0x104
call fcn.004064bc
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.00477248
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d641f
lea eax, [ebp - 0x20c]
call fcn.004062ac
ret

Function at 0x4d6424
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
push ebx
xor edx, edx
mov dword [ebp - 0x20c], edx
mov dword [ebp - 0x210], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4d64b9
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x26
lea eax, [ebp - 0x208]
push eax
mov eax, dword [0x554b20]
push eax
call sub.shell32.dll_SHGetSpecialFolderPathW
lea eax, [ebp - 0x210]
lea edx, [ebp - 0x208]
mov ecx, 0x104
call fcn.004064bc
mov eax, dword [ebp - 0x210]
lea edx, [ebp - 0x20c]
call fcn.00477248
mov edx, dword [ebp - 0x20c]
mov eax, ebx
mov ecx, 0x4d64d4
call fcn.00406690
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d64c0
lea eax, [ebp - 0x210]
mov edx, 2
call fcn.004062b4
ret

Function at 0x4d64f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
push ebx
xor edx, edx
mov dword [ebp - 0x210], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4d655f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x20a]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathW
lea eax, [ebp - 0x210]
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.004064bc
mov eax, dword [ebp - 0x210]
mov edx, ebx
call fcn.00477248
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d6566
lea eax, [ebp - 0x210]
call fcn.004062ac
ret
Function at 0x4d6820
Capabilities:
Check for time delay via gettickcount
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004062a4
xor eax, eax
push ebp
push 0x4d6a05
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
mov byte [ebp - 0x11], 0
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x4d6872
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4d6872
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.0040568c
test eax, eax
je 0x4d687b
sub eax, 4
mov eax, dword [eax]
lea ebx, [eax + 1]
mov eax, ebx
call fcn.0046ff7c
mov dword [ebp - 0x10], eax
mov edx, ebx
add edx, edx
mov eax, dword [ebp - 0x10]
xor ecx, ecx
call fcn.0040396c
mov ecx, ebx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
call fcn.0046fc70
lea eax, [ebp - 0x5c]
xor ecx, ecx
mov edx, 0x44
call fcn.0040396c
lea eax, [ebp - 0x6c]
xor ecx, ecx
mov edx, 0x10
call fcn.0040396c
mov dword [ebp - 0x5c], 0x44
mov dword [ebp - 0x30], 1
movzx eax, word [ebp - 8]
mov word [ebp - 0x2c], ax
xor edx, edx
push ebp
push 0x4d69e8
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x5c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
push 0
call sub.kernel32.dll_CreateProcessW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x4d691d
call fcn.00404db8
jmp 0x4d69ef
cmp dword [ebp + 0xc], 0
je 0x4d692b
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x64]
mov dword [eax], edx
test esi, esi
jbe 0x4d698f
cmp byte [ebp + 0x10], 0
je 0x4d697a
call sub.kernel32.dll_GetTickCount
mov edi, eax
push 0
mov eax, dword [ebp - 0x6c]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov ebx, eax
push 0xa
call sub.kernel32.dll_Sleep_2
mov eax, dword [0x5510d4]
mov eax, dword [eax]
call fcn.004afa60
cmp ebx, 0xffffffff
jne 0x4d6965
mov byte [ebp - 0x11], 0
call sub.kernel32.dll_GetTickCount
sub eax, edi
cmp esi, eax
jbe 0x4d698f
cmp ebx, 0x102
je 0x4d693c
jmp 0x4d698f
push esi
mov eax, dword [ebp - 0x6c]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4d698f
mov byte [ebp - 0x11], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d69ef
cmp byte [ebp - 0x11], 0
jne 0x4d69aa
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], 0
je 0x4d69c5
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x6c]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov dword [eax], edx
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x4d69d2
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x4d69df
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x10]
call fcn.0046ffbc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d6a0c
lea eax, [ebp - 4]
call fcn.004062ac
ret