joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4083c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x556560
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5adf10]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x14]
push eax
push 0x2001f
xor edi, edi
push edi
push ecx
push SysReAllocString
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x18], eax
cmp eax, edi
je 0x408421
push 0x5a0810
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 0x1c], eax
call fcn.00534862
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push edi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov dword [ebp - 0x18], esi
cmp esi, edi
je 0x40845b
push 0x5a0810
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], esi
call fcn.00534862
mov eax, 0x408458
ret
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x408469
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x408480
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x556540
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x5adf10]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, 4
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x14]
push eax
push 0x20019
xor edi, edi
push edi
push ecx
push SysReAllocString
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x18], eax
cmp eax, edi
je 0x4084ec
push 0x5a0810
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 0x1c], eax
call fcn.00534862
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x24]
push edx
push edi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov dword [ebp - 0x18], esi
cmp esi, edi
je 0x40852a
push 0x5a0810
lea edx, [ebp - 0x28]
push edx
mov dword [ebp - 0x28], esi
call fcn.00534862
mov eax, 0x408527
ret
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x408538
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40c3b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x557bee
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x5adf10]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
push 0x207
lea eax, [ebp - 0x21b]
mov dword [ebp - 4], ebx
push ebx
push eax
mov dword [ebp - 0x224], ebx
mov byte [ebp - 0x21c], bl
call fcn.005344b0
add esp, 0xc
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x230], 0x208
mov dword [ebp - 0x228], ebx
call fcn.00405fd0
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x220]
call fcn.00405be0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x220]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x40c469
push ebx
lea ecx, [ebp - 0x220]
call fcn.004061b0
mov edx, dword [ebp - 0x220]
lea ecx, [ebp - 0x224]
push ecx
push 0x20019
push ebx
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
je 0x40c49d
push 0x5a0810
lea edx, [ebp - 0x234]
push edx
mov dword [ebp - 0x234], eax
call fcn.00534862
push 0x208
lea eax, [ebp - 0x21c]
push ebx
push eax
call fcn.005344b0
add esp, 0xc
lea ecx, [ebp - 0x230]
push ecx
mov ecx, dword [ebp - 0x224]
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 0x228]
push eax
push ebx
push str.UninstallString
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x40c4f5
push 0x5a0810
lea edx, [ebp - 0x22c]
push edx
mov dword [ebp - 0x22c], eax
call fcn.00534862
lea eax, [ebp - 0x21c]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40c500
sub eax, edx
cmp eax, ebx
jbe 0x40c549
push ecx
mov ecx, esp
mov dword [ebp - 0x238], esp
push str._SP____VERYSILENT__norestart
call fcn.00405fd0
push ecx
lea eax, [ebp - 0x21c]
mov ecx, esp
mov dword [ebp - 0x23c], esp
push eax
mov byte [ebp - 4], 3
call fcn.00405fd0
mov ecx, dword [ebp + 8]
push ecx
mov byte [ebp - 4], 2
call fcn.0040da70
add esp, 0xc
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x224]
cmp eax, ebx
je 0x40c561
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x64
mov dword [ebp - 0x224], ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c594
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c5ba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0052d75c
mov esp, ebp
pop ebp
ret
Function at 0x40d460
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4f4
mov eax, dword [0x5adf10]
xor eax, esp
mov dword [esp + 0x4f0], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax + 8]
push edi
mov edi, dword [eax + 4]
xor ebx, ebx
push 0x207
lea eax, [esp + 0x2f5]
push ebx
push eax
mov dword [esp + 0x24], edi
mov byte [esp + 0x2fc], bl
call fcn.005344b0
add esp, 0xc
xor eax, eax
jmp 0x40d4b0
mov cl, byte [eax + str.CNSRCB_UsbKey_Setup.exe]
mov byte [esp + eax + 0x1e8], cl
inc eax
cmp cl, bl
jne 0x40d4b0
push 0x18c
lea ecx, [esp + 0x5c]
push ebx
push ecx
call fcn.005344b0
add esp, 0xc
mov dword [esp + 0xdc], 0x82
cmp esi, ebx
jle 0x40d504
mov edx, dword [str.USBKey1]
mov eax, dword [0x58729c]
mov dword [esp + 0xe4], edx
mov dword [esp + 0xe8], eax
mov esi, 1
jmp 0x40d520
mov ecx, dword [str.USBKey0]
mov edx, dword [0x5872a4]
mov dword [esp + 0xe4], ecx
mov dword [esp + 0xe8], edx
xor esi, esi
push 0xff
lea eax, [esp + 0x1ed]
push ebx
push eax
mov byte [esp + 0x1f4], bl
call fcn.005344b0
shl esi, 7
lea ecx, [esi + str.EnterSafe]
add esp, 0xc
lea ebx, [esp + 0x1e8]
mov dword [esp + 0x14], ecx
call fcn.00417ea0
mov eax, ebx
lea edx, [eax + 1]
jmp 0x40d560
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d560
sub eax, edx
cmp eax, 1
jbe 0x40d657
xor esi, esi
xor eax, eax
jmp 0x40d580
mov cl, byte [esp + eax + 0x1e8]
mov byte [esp + eax + 0x2f0], cl
inc eax
test cl, cl
jne 0x40d580
push 0x38
lea ecx, [esp + 0x24]
push esi
push ecx
mov dword [esp + 0x28], 0x3c
call fcn.005344b0
add esp, 0xc
lea eax, [esp + 0x1c]
lea edx, [esp + 0x2f0]
push eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], 0x40
mov dword [esp + 0x34], str.__S
mov dword [esp + 0x3c], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x40d657
mov edx, dword [esp + 0x54]
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x14], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push edx
call esi
mov edi, 0x103
cmp dword [esp + 0x10], edi
jne 0x40d61d
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x54]
lea eax, [esp + 0x10]
push eax
push ecx
call esi
push 0x1f4
call ebx
cmp dword [esp + 0x10], edi
je 0x40d604
lea eax, [esp + 0x2f0]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d627
sub eax, edx
cmp eax, 3
jbe 0x40d646
mov edx, dword [esp + 0x14]
push edx
lea ecx, [esp + 0x2f4]
call fcn.00418030
mov edi, dword [esp + 0x18]
mov dword [esp + 0xe0], 3
jmp 0x40d662
mov dword [esp + 0xe0], 2
test edi, edi
je 0x40d675
lea eax, [esp + 0x58]
push eax
mov eax, edi
call fcn.00417780
add esp, 4
mov ecx, dword [esp + 0x4fc]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0052d75c
mov esp, ebp
pop ebp
ret
Function at 0x40da70
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push 0x38
xor esi, esi
lea eax, [ebp - 0x38]
push esi
push eax
mov dword [ebp - 0x3c], 0x3c
call fcn.005344b0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], ecx
add esp, 0xc
lea ecx, [ebp - 0x3c]
push ecx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x28], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x40dafe
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40dad8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40daf7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
lea ecx, [ebp + 8]
push ecx
mov dword [ebp + 8], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push edx
call esi
cmp dword [ebp + 8], 0x103
jne 0x40db3c
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 4]
lea eax, [ebp + 8]
push eax
push ecx
call esi
push 0x1f4
call edi
cmp dword [ebp + 8], 0x103
je 0x40db21
pop edi
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40db5b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40db7a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40f8f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5569e0
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push esi
push edi
mov eax, dword [0x5adf10]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x44
lea eax, [ebp - 0x6c]
push 0
push eax
mov dword [ebp - 4], 0
call fcn.005344b0
mov ecx, dword [ebp + 8]
xor eax, eax
push 0x5c
push ecx
mov dword [ebp - 0x6c], 0x44
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
call fcn.0052e0c8
add esp, 0x14
test eax, eax
jne 0x40f959
or eax, 0xffffffff
jmp 0x40f95c
sub eax, dword [ebp + 8]
push eax
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp + 8]
call fcn.00406680
mov byte [ebp - 4], 1
mov edx, dword [ebp + 8]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x40f98c
push 0
lea ecx, [ebp + 8]
call fcn.004061b0
mov edx, dword [ebp + 8]
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x6c]
push ecx
push edi
push 0
push 0
push 0
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40fa07
mov byte [ebp - 4], al
lea eax, [edi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f9ce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f9f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x40fa13
mov ecx, dword [ebp - 0x24]
push 0xffffffffffffffff
push ecx
jmp 0x40fa18
mov edx, dword [ebp - 0x24]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [ebp - 0x20]
push ecx
call esi
lea eax, [edi - 0x10]
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40fa50
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fa76
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40fa90
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5579c9
mov eax, dword fs:[0]
push eax
sub esp, 0x1c4
mov eax, dword [0x5adf10]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x1b0], esi
mov dword [ebp - 0x1ac], edi
mov dword [ebp - 4], edi
call fcn.0043c63a
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40faea
push 0x80004005
call fcn.004063a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x1ac], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x1d0]
push edx
call fcn.00406900
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c8]
push eax
lea ecx, [ebp - 0x1a8]
call fcn.00405fd0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x1a8]
cmp dword [ecx - 0xc], 1
jge 0x40fb45
lea edx, [ebp + 8]
push edx
lea ecx, [ebp - 0x1a8]
call fcn.00406890
lea eax, [ebp - 0x1a4]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov edx, dword [ebp - 0x1a8]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x40fb7e
push edi
lea ecx, [ebp - 0x1a8]
call fcn.004061b0
mov edx, dword [ebp - 0x1a8]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, edi
jne 0x40fb9b
mov ecx, dword [ebp + 8]
push ecx
push str.Cant_resolve__s_r_n
lea edx, [ebp - 0x1ac]
push edx
jmp 0x40fbb6
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push 0x5875fc
lea eax, [ebp - 0x1ac]
push eax
call fcn.00405bc0
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov edi, dword [ebp - 0x1ac]
add edi, 0xfffffff0
push edi
call fcn.00406330
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1a8]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
add esp, 4
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fc01
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [ebp - 0x1d0]
call fcn.00406a60
or edx, 0xffffffff
lea ecx, [edi + 0xc]
mov byte [ebp - 4], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fc29
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fc4f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1b0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0052d75c
mov esp, ebp
pop ebp
ret
Function at 0x410de0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x560
mov eax, dword [0x5adf10]
xor eax, esp
mov dword [esp + 0x55c], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [esp + 0xc], eax
call fcn.00420e50
push 0
push 0x20
lea ecx, [esp + 0x460]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x410e34
push 0
lea edx, [esp + 0x45c]
push 0
push edx
call fcn.00420ef0
add esp, 0xc
push 0x1ff
lea eax, [esp + 0x15]
push 0
push eax
mov byte [esp + 0x1c], 0
call fcn.005344b0
add esp, 0xc
push 0xb4
lea ecx, [esp + 0x3a4]
push 0
push ecx
mov dword [esp + 0x2a4], 0
call fcn.005344b0
add esp, 0xc
mov esi, str.IDS_DELETE_TEMP_FILE
mov ecx, str.CheckRes
call fcn.00419bb0
lea edx, [esp + 0x3a0]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x410e87
xor eax, eax
jmp 0x410ea0
mov cl, byte [esp + eax + 0x3a0]
mov byte [esp + eax + 0x29c], cl
inc eax
test cl, cl
jne 0x410ea0
lea eax, [esp + 0x10]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410ec0
lea edi, [esp + 0x29c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x410ed1
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x210]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.00417780
mov ecx, dword [esp + 0x568]
add esp, 4
pop edi
pop esi
xor ecx, esp
call fcn.0052d75c
mov esp, ebp
pop ebp
ret 4
Function at 0x4129d0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x557112
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x5adf10]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0xb4], esi
mov dword [ebp - 0xb0], 0
call fcn.0043c63a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x412a2d
push 0x80004005
call fcn.004063a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
lea ecx, [ebp - 0xac]
mov dword [ebp - 4], 0
mov ebx, 1
push ecx
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 0xac], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebp - 0xa8]
cmp eax, 5
jne 0x412aa3
mov eax, dword [ebp - 0xa4]
test eax, eax
jne 0x412a85
push 0xc
push str.Windows_2000
jmp 0x412b1f
cmp eax, 2
jne 0x412a96
push 0xc
push str.Windows_2003
jmp 0x412b1f
cmp eax, ebx
jne 0x412b18
push 0xa
push str.Windows_XP
jmp 0x412b1f
cmp eax, 6
jne 0x412b18
mov eax, dword [ebp - 0xa4]
test eax, eax
jne 0x412ad1
mov ecx, esi
cmp byte [ebp - 0x12], bl
jne 0x412ac5
push str.Windows_Vista
call fcn.00405f90
jmp 0x412b26
push str.Windows_2008
call fcn.00405f90
jmp 0x412b26
cmp eax, ebx
jne 0x412af4
mov ecx, esi
cmp byte [ebp - 0x12], bl
jne 0x412ae8
push str.Windows_7
call fcn.00405f90
jmp 0x412b26
push str.WINDOWS_2008_R2
call fcn.00405f90
jmp 0x412b26
cmp eax, 2
jne 0x412b18
mov ecx, esi
cmp byte [ebp - 0x12], bl
jne 0x412b0c
push str.Windows_8
call fcn.00405f90
jmp 0x412b26
push str.Windows_Server_2012
call fcn.00405f90
jmp 0x412b26
push 0x1b
push 0x5879a4
mov ecx, esi
call fcn.00406280
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052d75c
mov esp, ebp
pop ebp
ret
Function at 0x415d80
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0xd4]
sub esp, 0xc
push ebx
push esi
push edi
push ecx
lea ecx, [esp + 0x14]
call fcn.00444102
mov esi, dword [ebp + 0xc]
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov edi, 0x100
cmp dword [esi + 4], edi
jne 0x415dcf
push 0x74
call ebx
test ax, ax
jns 0x415dcf
lea ecx, [esp + 0x10]
call fcn.0044383a
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov edx, 0x8000
test dx, ax
je 0x415e0b
cmp dword [esi + 4], edi
jne 0x415e0b
push 0x4f
call ebx
test ax, ax
js 0x415dbb
cmp dword [esi + 4], edi
jne 0x415e0b
push 0x50
call ebx
test ax, ax
js 0x415dbb
cmp dword [esi + 4], edi
jne 0x415e0b
push 0x4e
call ebx
test ax, ax
js 0x415dbb
cmp dword [esi + 8], 8
lea ecx, [esp + 0x10]
je 0x415dbf
call fcn.0044383a
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x416570
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov ebx, eax
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
jne 0x41658d
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push edi
call fcn.0042dec6
mov esi, eax
add esp, 4
test esi, esi
je 0x416618
push edi
push 0
push esi
call fcn.005344b0
add esp, 0xc
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41660f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x41660f
push edi
push eax
push esi
call fcn.00536c40
mov eax, dword [ebp + 8]
add esp, 0xc
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
test ebx, ebx
je 0x41660f
push 0
lea ecx, [ebp - 4]
push ecx
push edi
push esi
push ebx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
test eax, eax
jne 0x416621
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.0042debb
add esp, 4
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
cmp edi, dword [ebp - 4]
jne 0x416610
call fcn.0042debb
add esp, 4
pop esi
pop edi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x417600
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x5adf10]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x103
lea eax, [ebp - 0x10f]
push 0
push eax
mov byte [ebp - 0x110], 0
call fcn.005344b0
add esp, 0xc
lea ecx, [ebp - 0x110]
call fcn.004178d0
lea eax, [ebp - 0x110]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x417642
mov ecx, dword [str.Log_]
mov dl, byte [0x588040]
mov dword [eax], ecx
lea ecx, [ebp - 0x110]
mov byte [eax + 4], dl
call fcn.004195d0
test eax, eax
jne 0x417678
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test esi, esi
je 0x417692
lea eax, [ebp - 0x110]
mov edx, esi
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x417688
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052d75c
mov esp, ebp
pop ebp
ret

Function at 0x4176a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x5adf10]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x7f
lea eax, [ebp - 0x83]
push 0
push eax
mov byte [ebp - 0x84], 0
call fcn.005344b0
push 0x7f
lea ecx, [ebp - 0x84]
push 0x20
push ecx
call fcn.005344b0
mov eax, edi
add esp, 0x18
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4176e2
sub eax, ecx
push eax
lea edx, [ebp - 0x84]
push edi
push edx
call fcn.00536c40
lea eax, [ebp - 0x84]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417705
mov ecx, dword [esi]
push ecx
sub eax, edx
push eax
lea edx, [ebp - 0x84]
push 1
push edx
call fcn.0053018e
mov eax, dword [esi]
push eax
push 1
push 1
push str._t_t_t_t
call fcn.0053018e
mov eax, ebx
add esp, 0x20
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417740
mov ecx, dword [esi]
push ecx
sub eax, edx
push eax
push 1
push ebx
call fcn.0053018e
mov edx, dword [esi]
push edx
push 1
push 2
push 0x586cb0
call fcn.0053018e
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0x20
call fcn.0052d75c
mov esp, ebp
pop ebp
ret