joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402bd5
Capabilities:
Copy file
Move file

Disassembly:
mov eax, 0x4157cd
call fcn.00411720
sub esp, 0x25c
push ebx
push esi
push edi
lea eax, [ebp - 0x60]
xor ebx, ebx
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
call fcn.0040110a
mov dword [ebp - 4], ebx
lea esi, [ebp - 0x38]
call fcn.00404fc9
mov byte [ebp - 4], 1
lea esi, [ebp - 0x28]
call fcn.00404fc9
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x3c]
push eax
push 0xff00aaee
mov byte [ebp - 0xd], bl
call fcn.00401cfe
test al, al
je 0x402d6a
cmp dword [ebp - 0x14], ebx
je 0x402d72
cmp dword [ebp - 0x18], ebx
jbe 0x402d72
push ebx
push dword [ebp - 0x18]
lea esi, [ebp - 0x38]
call fcn.00405143
mov eax, dword [ebp - 0x18]
push ebx
push dword [ebp - 0x14]
mov ecx, esi
call fcn.004051f2
mov eax, esi
lea ebx, [ebp - 0x60]
call fcn.00401375
lea eax, [ebp - 0x28]
mov edi, ebx
call fcn.00401558
cmp dword [ebp - 0x24], 0
jle 0x402d60
push 3
lea eax, [ebp - 0x268]
push eax
push dword [ebp + 8]
call fcn.004032d3
push str..exe
lea eax, [ebp - 0x268]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x268]
push eax
call fcn.00403f8d
mov esi, eax
test esi, esi
je 0x402d60
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp + 8]
call fcn.0040403a
test al, al
je 0x402cf4
push esi
push dword [ebp + 8]
call fcn.0040414b
mov ebx, eax
test ebx, ebx
je 0x402cf4
push 0
push ebx
xor edi, edi
call fcn.004029ac
test al, al
je 0x402cee
mov byte [ebp - 0xd], 1
push ebx
call fcn.00404f1a
call fcn.00401676
push eax
lea eax, [ebp - 0x268]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str..csp
lea eax, [ebp - 0x268]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x268]
push eax
call fcn.00401676
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x402d5a
push 0
call fcn.00401676
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [ebp - 0x268]
test eax, eax
je 0x402d5a
push 0x410
push eax
push 0x420e40
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push esi
call fcn.00404f1a
push dword [ebp - 0x14]
call fcn.00404f1a
xor ebx, ebx
mov al, byte [ebp - 0xd]
mov byte [ebp + 0xb], al
jmp 0x402d75
mov byte [ebp + 0xb], bl
mov byte [ebp - 4], 1
lea eax, [ebp - 0x28]
call fcn.004050f9
mov byte [ebp - 4], bl
lea eax, [ebp - 0x38]
call fcn.004050f9
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x60]
push eax
call fcn.00401160
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp + 0xb]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x402de4
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x754
push ebx
mov ebx, eax
push esi
push edi
test ebx, ebx
je 0x402fbd
cmp dword [ebp + 0xc], 0
je 0x402fbd
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea eax, [ebp - 0x750]
push eax
push dword [ebx]
call esi
mov edi, eax
lea eax, [ebp - 0x750]
push eax
push dword [ebx]
call esi
cmp eax, 0xffffffff
je 0x402fbd
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [ebp - 0x750], 0x10
je 0x402e6a
push 0x3c
pop ecx
mov edx, ecx
lea eax, [ebp - 0x88]
mov byte [eax], 0
inc eax
dec edx
jne 0x402e46
mov eax, dword [ebx]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x6c], 1
lea eax, [ebp - 0x88]
jmp 0x402f61
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
xor eax, eax
xor ecx, ecx
xor edi, edi
cmp dword [ebp + 0xc], ecx
mov word [ebp - 0x500], ax
jle 0x402eb2
push 0x418204
lea eax, [ebp - 0x500]
push eax
call esi
push dword [ebx + edi*4]
lea eax, [ebp - 0x500]
push eax
call esi
push 0x418208
lea eax, [ebp - 0x500]
push eax
call esi
inc edi
cmp edi, dword [ebp + 0xc]
jl 0x402e82
xor ecx, ecx
push 0x44
pop edi
mov edx, edi
lea eax, [ebp - 0xd0]
mov byte [eax], 0
inc eax
dec edx
jne 0x402ebd
push 0x10
pop edx
lea eax, [ebp - 0x10]
mov byte [eax], 0
inc eax
dec edx
jne 0x402eca
xor eax, eax
inc eax
mov word [ebp - 0xa0], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xd0]
push eax
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
lea eax, [ebp - 0x500]
push eax
push ecx
mov dword [ebp - 0xd0], edi
mov dword [ebp - 0xa4], 0x81
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x402f68
xor edi, edi
cmp dword [ebp + 0xc], edi
mov word [ebp - 0x500], ax
jle 0x402f3c
push dword [ebx + edi*4]
lea eax, [ebp - 0x500]
push eax
call esi
push 0x4180d0
lea eax, [ebp - 0x500]
push eax
call esi
inc edi
cmp edi, dword [ebp + 0xc]
jl 0x402f1c
push 0x3c
pop ecx
mov edx, ecx
lea eax, [ebp - 0x4c]
mov byte [eax], 0
inc eax
dec edx
jne 0x402f44
lea eax, [ebp - 0x500]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x30], 1
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push 8
pop ecx
push 0x7fffffff
push dword [ebp + 8]
xor eax, eax
lea edi, [ebp - 0xf0]
lea ebx, [ebp - 0xf0]
rep stosd dword es:[edi], eax
call fcn.004031c9
push eax
lea eax, [ebp - 0x500]
push 0x418210
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x500]
push eax
call fcn.00401676
push eax
xor edi, edi
call fcn.004029ac
test al, al
je 0x402fbd
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
xor al, al
pop ebx
leave
ret 8
Function at 0x402fc6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x644
push ebx
push esi
push edi
push 1
push 0x208
lea eax, [ebp - 0x438]
push eax
call fcn.00401697
test al, al
je 0x40314f
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push str..cmd
lea eax, [ebp - 0x438]
push eax
call esi
lea eax, [ebp - 0x438]
test eax, eax
jne 0x403011
or dword [ebp - 4], 0xffffffff
jmp 0x40302a
push 2
lea eax, [ebp - 0x438]
push eax
call fcn.00403c72
mov dword [ebp - 4], eax
test eax, eax
je 0x40314f
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, str._t_t_t_t_t_t_t_t__echo_del__0______TEMP_msicheck.cmd__n_t_t_t_t_t_t_t_t__echo_copy__y___SYSTEMROOT__system32ping.exe____TEMP__smss.exe_______TEMP_msicheck.cmd__n_t_t_t_t_t_t_t_t__echo_:z______TEMP_msicheck.cmd__n_t_t_t_t_t_t_t_t__echo_del__1______TEMP_msicheck.cmd__n_t_t_t_t_t_t_t_t__echo___TEMP__smss.exe__127.1__n
push edi
call ebx
xor ecx, ecx
cmp ecx, edi
je 0x403048
push eax
push edi
push dword [ebp - 4]
call fcn.00403d4a
push 0x14
lea eax, [ebp - 0x24]
push 0x418228
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
call ebx
lea ecx, [ebp - 0x24]
test ecx, ecx
je 0x403075
push eax
mov eax, ecx
push eax
push dword [ebp - 4]
call fcn.00403d4a
mov edi, str.__t_t_t_t_t_t_t_t_______TEMP_msicheck.cmd__n_t_t_t_t_t_t_t_t__echo_attrib__s__h__1______TEMP_msicheck.cmd__n_t_t_t_t_t_t_t_t__echo_if_exist__1_goto_z______TEMP_msicheck.cmd__n_t_t_t_t_t_t_t_t__echo_del___TEMP__smss.exe_______TEMP_msicheck.cmd__n_t_t_t_t_t_t_t_t__echo_del___TEMP_msicheck.cmd_______TEMP_msicheck.cmd__n_t_t_t_t_t_t_t_t____SYSTEMROOT__system32cmd.exe___c___TEMP_msicheck.cmd__n
push edi
call ebx
xor ecx, ecx
cmp ecx, edi
je 0x40308d
push eax
push edi
push dword [ebp - 4]
call fcn.00403d4a
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 0x104
push edi
lea eax, [ebp - 0x640]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
test eax, eax
je 0x4030c7
cmp eax, edi
jae 0x4030c7
push 0x417df4
lea eax, [ebp - 0x640]
push eax
call esi
jmp 0x4030d5
push str.cmd.exe
lea eax, [ebp - 0x640]
push eax
call ebx
push str.__c
lea eax, [ebp - 0x230]
push eax
call ebx
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x230]
push eax
call esi
push 0x4180d0
lea eax, [ebp - 0x230]
push eax
call esi
mov edi, 0x418204
push edi
lea eax, [ebp - 0x230]
push eax
call esi
call fcn.00401676
push eax
lea eax, [ebp - 0x230]
push eax
call esi
push edi
lea eax, [ebp - 0x230]
push eax
call esi
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x640]
push eax
lea edi, [ebp - 4]
call fcn.004029ac
test al, al
je 0x40314f
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov al, 1
jmp 0x403151
xor al, al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4031c9
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x4214a0], 0
jne 0x403217
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push edi
push 0xf0000040
push 1
push str.Microsoft_Strong_Cryptographic_Provider
push 0
mov edi, 0x4214a0
push edi
call esi
test eax, eax
jne 0x403215
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x403215
push 8
push 1
push 0
push str.MyKeyContainer
push edi
call esi
pop edi
pop esi
push ebx
push 0x20
push dword [0x4214a0]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x40322e
mov eax, dword [ebx]
jmp 0x403258
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
movzx ecx, word [ebp - 2]
shl eax, 0xd
xor eax, ecx
xor eax, dword [0x4214a4]
imul eax, eax, 0x19660d
add eax, 0x3c88596c
xor edx, edx
div dword [ebp + 0xc]
mov dword [0x4214a4], edx
mov eax, edx
leave
ret 8

Function at 0x4038c2
Capabilities:
Create thread

Disassembly:
sub esp, 0xc
and dword [esp], 0
cmp dword [ebx + 0x4f00], 0
jle 0x403961
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push edi
mov esi, 0x41f7f8
lea edi, [ebx + 0x2c04]
mov ecx, dword [edi - 4]
lea eax, [esi - 8]
mov dword [eax], ecx
mov dword [esi - 4], ebx
mov ecx, dword [edi]
mov dword [esi], ecx
lea ecx, [edi + 0x10c]
mov dword [esi + 4], ecx
mov cl, byte [edi + 0x110]
mov byte [esi + 8], cl
lea ecx, [esp + 0x14]
push ecx
push 0
push eax
push 0x403840
push 0x10000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
mov dword [esp + 0x14], eax
call ebp
cmp dword [esp + 0x10], 0xffffffff
je 0x40393e
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1f4
call ebp
inc dword [esp + 0xc]
mov eax, dword [esp + 0xc]
add edi, 0x118
add esi, 0x14
cmp eax, dword [ebx + 0x4f00]
jl 0x4038ea
pop edi
pop esi
pop ebp
mov al, 1
add esp, 0xc
ret

Function at 0x403a16
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
xor ebx, ebx
cmp dword [edi + 0x2bfc], ebx
push esi
jle 0x403a99
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [edi + 0xa0c]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x1c]
push eax
push 0x403967
push 0x10000
push 0
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
mov dword [ebp - 4], eax
call esi
cmp dword [ebp - 4], 0xffffffff
je 0x403a82
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
push dword [ebp - 4]
add dword [eax], ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xc8
call esi
add dword [ebp - 8], 0x118
inc ebx
cmp ebx, dword [edi + 0x2bfc]
jl 0x403a37
pop esi
mov al, 1
pop ebx
leave
ret
Function at 0x403af4
Capabilities:
Create thread

Disassembly:
push ecx
push ecx
mov eax, dword [edi + 0x810]
test eax, eax
jg 0x403b07
xor al, al
jmp 0x403b90
push ebp
xor ebp, ebp
test eax, eax
jle 0x403b8d
push ebx
push esi
mov esi, 0x41f670
lea ebx, [edi + 0x5a0]
xor eax, eax
lea ecx, [esp + 0x10]
push ecx
push eax
push esi
push 0x403a9f
push 0x10000
push eax
mov dword [esi], edi
mov dword [esi + 4], ebp
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0xc], 0xffffffff
je 0x403b71
cmp byte [ebx - 4], 0
jne 0x403b62
push 0xffffffffffffffff
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 8]
push dword [esp + 0xc]
add dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebp
add ebx, 0x14
add esi, 0xc
cmp ebp, dword [edi + 0x810]
jl 0x403b1b
pop esi
pop ebx
mov al, 1
pop ebp
pop ecx
pop ecx
ret

Function at 0x403bed
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push edi
push 0
push 2
mov dword [ebp - 0x22c], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x403c15
xor al, al
jmp 0x403c6f
lea eax, [ebp - 0x22c]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x403c66
push esi
mov esi, 0x41e874
lea eax, [ebp - 0x22c]
push esi
push eax
call fcn.00402dad
pop ecx
pop ecx
cmp al, 1
jne 0x403c65
jmp 0x403c54
lea eax, [ebp - 0x22c]
push esi
push eax
call fcn.00402dad
pop ecx
pop ecx
test al, al
je 0x403c65
lea eax, [ebp - 0x22c]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x403c41
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop edi
leave
ret

Function at 0x403d77
Capabilities:
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x288
test edi, edi
jne 0x403d88
xor al, al
jmp 0x403e00
push esi
push 0x20
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call esi
test eax, eax
jne 0x403dfc
cmp byte [ebp + 0xc], al
je 0x403dfa
push 0x104
push edi
lea eax, [ebp - 0x288]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
xor eax, eax
mov word [ebp - 0x80], ax
push 7
lea eax, [ebp - 0x80]
push eax
push dword [ebp + 8]
call fcn.00403269
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x288]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x288]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x403df1
push edi
call esi
lea eax, [ebp - 0x288]
push eax
call esi
test eax, eax
setne al
pop esi
leave
ret 8
Function at 0x403e04
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push edi
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
xor edi, edi
lea eax, [ebp - 0x20a]
push edi
push eax
call fcn.0040ad30
add esp, 0xc
cmp dword [ebp + 8], edi
jne 0x403e3a
xor eax, eax
jmp 0x403ee3
push esi
mov dword [ebp - 4], edi
cmp dword [0x421268], edi
je 0x403e72
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x421268]
cmp dword [ebp - 4], 1
jne 0x403e72
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
jmp 0x403e85
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, edi
je 0x403e8d
cmp eax, esi
jb 0x403e9f
push 0x418384
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebp + eax*2 - 0x20e], 0x5c
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x403ecb
push 0x417df0
lea eax, [ebp - 0x20c]
push eax
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call esi
lea edi, [ebp - 0x20c]
call fcn.0040358c
pop esi
pop edi
leave
ret 4

Function at 0x403ee8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
xor eax, eax
push 0x206
mov word [ebp - 0x208], ax
xor esi, esi
lea eax, [ebp - 0x206]
push esi
push eax
call fcn.0040ad30
add esp, 0xc
cmp dword [ebp + 8], esi
jne 0x403f1b
xor eax, eax
jmp 0x403f88
lea eax, [ebp - 0x208]
push eax
push esi
push esi
push 0x1c
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x403f43
push 0x418384
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebp + eax*2 - 0x20a], 0x5c
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x403f6f
push 0x417df0
lea eax, [ebp - 0x208]
push eax
call esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call esi
lea edi, [ebp - 0x208]
call fcn.0040358c
pop edi
pop esi
leave
ret 4
Function at 0x40403a
Capabilities:
Move file

Disassembly:
mov eax, 0x4156f5
call fcn.00411720
sub esp, 0x220
push ebx
push edi
push 1
push 0x104
lea eax, [ebp - 0x228]
push eax
call fcn.00401697
test al, al
je 0x404139
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
call fcn.0040176e
mov ebx, eax
lea edi, [ebp - 0x20]
mov dword [ebp - 0x10], ebx
call fcn.00404fec
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x20], ebx
je 0x40412d
push dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push dword [ebp - 0x20]
lea eax, [ebp - 0x10]
call fcn.00401741
cmp al, bl
je 0x40412d
lea eax, [ebp - 0x228]
test eax, eax
jne 0x4040b5
or edi, 0xffffffff
jmp 0x4040c9
push 2
lea eax, [ebp - 0x228]
push eax
call fcn.00403c72
mov edi, eax
cmp edi, ebx
je 0x40412d
push dword [ebp - 0x10]
push dword [ebp - 0x20]
push edi
call fcn.00403d4a
push edi
cmp eax, ebx
je 0x404117
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
cmp esi, ebx
je 0x404101
push ebx
push esi
call fcn.00403c72
cmp eax, 0xffffffff
je 0x404101
push eax
call edi
push 1
push dword [ebp + 8]
mov edi, esi
call fcn.00403d77
push esi
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x40412d
mov bl, 1
jmp 0x40411d
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x20]
call fcn.004050f9
mov al, bl
jmp 0x40413b
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x20]
call fcn.004050f9
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc
Function at 0x40459f
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x15ba8
call fcn.00410ce0
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
cmp edi, ebx
je 0x4045dc
push ebx
push edi
call fcn.00403c72
mov esi, eax
cmp esi, 0xffffffff
je 0x4045dc
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4045dc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
test edi, edi
je 0x40469b
push 0
push edi
call fcn.00403c72
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x40469b
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push dword [ebp - 8]
call fcn.00403d02
test al, al
je 0x4046a4
push 0x15b90
lea eax, [ebp - 0x15ba4]
push eax
push dword [ebp - 8]
call fcn.00403d1d
push 0xa
mov edi, eax
call esi
push 0
call esi
test edi, edi
jbe 0x404668
jmp 0x404640
push 0x493e0
call esi
push dword [ebp - 0xc]
lea eax, [ebp - 0x15ba4]
push ebx
push dword [ebp + 0x18]
push dword [ebp + 0xc]
push edi
push eax
push dword [ebp + 8]
call fcn.004022ef
test al, al
je 0x404639
push 0xa
call esi
push 0
call esi
add ebx, edi
cmp dword [ebp + 0x1c], 0
je 0x404682
push dword [ebp + 0x20]
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call dword [ebp + 0x1c]
add esp, 0x10
test al, al
je 0x404692
push 0xa
call esi
push 0
call esi
test edi, edi
ja 0x404604
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 0x1c
xor al, al
jmp 0x40469d
Function at 0x404ece
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, eax
cmp esi, 0x6400000
jle 0x404edd
xor eax, eax
pop esi
ret
test esi, esi
jne 0x404ee2
inc esi
add esi, 4
cmp dword [0x42126c], 0
jne 0x404ef7
call fcn.00404e9a
test al, al
je 0x404ed9
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
push 8
push dword [0x42126c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
jne 0x404edb
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x405798
Capabilities:
Check os version

Disassembly:
mov eax, 0x41567d
call fcn.00411720
sub esp, 0x11c
cmp dword [esi + 0x595c], 0xffffffff
push ebx
push edi
jne 0x4058bd
call fcn.00405753
mov ebx, 0x41fc70
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [ebp - 4], 0
and dword [esi + 0x595c], 0
mov ecx, 0x11c
mov edx, ecx
lea eax, [ebp - 0x128]
mov byte [eax], 0
inc eax
dec edx
jne 0x4057e0
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x128]
push eax
mov dword [ebp - 0x128], ecx
call edi
test eax, eax
jne 0x40582f
lea eax, [ebp - 0x128]
push eax
mov dword [ebp - 0x128], 0x114
call edi
test eax, eax
jne 0x40582f
and dword [esi + 0x595c], eax
or dword [ebp - 4], 0xffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0x4058c3
xor ecx, ecx
inc ecx
cmp dword [ebp - 0x118], ecx
jbe 0x4058ab
push 2
pop eax
cmp dword [ebp - 0x118], eax
jne 0x4058b2
cmp dword [ebp - 0x124], 6
jbe 0x40585a
mov dword [esi + 0x595c], 5
jmp 0x4058b2
jne 0x405879
cmp dword [ebp - 0x120], ecx
jae 0x40584e
cmp dword [ebp - 0x120], 0
jne 0x4058ab
mov dword [esi + 0x595c], 3
jmp 0x4058b2
cmp dword [ebp - 0x124], 5
jne 0x4058ab
cmp dword [ebp - 0x120], eax
jne 0x405892
mov dword [esi + 0x595c], eax
jmp 0x4058b2
cmp dword [ebp - 0x120], ecx
je 0x40588a
cmp dword [ebp - 0x120], 0
jne 0x4058ab
mov dword [esi + 0x595c], ecx
jmp 0x4058b2
and dword [esi + 0x595c], 0
or dword [ebp - 4], 0xffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0x595c]
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4058d1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
lea eax, [ebp - 4]
push eax
push 1
xor edi, edi
push edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
push 0x80000001
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], 3
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x405904
xor al, al
jmp 0x40597e
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0xc]
push eax
push edi
push str.SerialIID
push dword [ebp - 4]
call ebx
test eax, eax
je 0x405928
push dword [ebp - 4]
jmp 0x405951
mov eax, dword [ebp - 8]
cmp dword [esi], eax
jb 0x40596c
cmp dword [ebp + 0xc], edi
je 0x40596c
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push eax
push edi
push str.SerialIID
push dword [ebp - 4]
call ebx
push dword [ebp - 4]
test eax, eax
je 0x40595d
mov dword [esi], edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x40597d
mov eax, dword [ebp - 8]
mov dword [esi], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x40597d
push dword [ebp - 4]
mov dword [esi], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0xc], edi
sete al
pop ebx
pop edi
leave
ret 8

Function at 0x405983
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp + 0xc]
push eax
xor esi, esi
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4059b2
xor al, al
jmp 0x4059ec
cmp dword [ebp + 0x18], esi
je 0x4059e1
cmp dword [ebp + 0x1c], esi
je 0x4059e1
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
test eax, eax
je 0x4059e4
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4059ae
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
pop esi
leave
ret 0x18