joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404219
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4100a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ecx
push 2
push ebx
push dword [ebp + 8]
mov esi, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x40426c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4043bc
movzx esi, si
or esi, 0x80070000
jmp 0x4043bc
push ebx
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov edi, eax
test edi, edi
jne 0x40429e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4043b3
movzx esi, si
or esi, 0x80070000
jmp 0x4043b3
push edi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x404280
push edi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], ecx
mov edi, eax
cmp byte [ecx + eax], bl
je 0x40432f
lea edi, [ecx + 1]
cmp edi, 0x400
ja 0x4042e9
mov ecx, edi
call fcn.00403da3
test al, al
je 0x4042e9
mov eax, edi
call fcn.0040f8f0
mov edi, esp
jmp 0x40430a
lea eax, [edi + 8]
cmp eax, edi
jae 0x4042f4
mov edi, ebx
jmp 0x40430a
push eax
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
test eax, eax
je 0x4042f0
mov esi, eax
mov dword [eax], ebx
mov dword [ebp - 0x14], esi
lea edi, [eax + 8]
test edi, edi
jne 0x404318
mov esi, 0x8007000e
jmp 0x4043b3
mov eax, dword [ebp - 8]
inc eax
push eax
push dword [ebp - 0xc]
push edi
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 8]
add esp, 0xc
mov byte [edi + eax], bl
test edi, edi
je 0x4043a5
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404338
sub ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0xc], eax
add eax, eax
mov dword [ebp - 8], eax
cmp eax, 0x400
ja 0x40436a
mov ecx, eax
call fcn.00403da3
test al, al
mov eax, dword [ebp - 8]
je 0x40436a
call fcn.0040f8f0
mov esi, esp
jmp 0x404385
lea ecx, [eax + 8]
cmp ecx, eax
jb 0x4043a5
push ecx
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
test eax, eax
je 0x4043a5
mov dword [eax], esi
lea esi, [eax + 8]
mov dword [ebp - 0x14], eax
test esi, esi
je 0x4043a5
push dword [ebp - 0xc]
xor eax, eax
push esi
push 0xffffffffffffffff
push edi
push ebx
push ebx
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, eax
neg ebx
sbb ebx, ebx
and ebx, esi
push dword [ebp + 0x14]
lea ecx, [ebp - 0x1c]
push ebx
call fcn.00404d9a
mov esi, eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x14]
call fcn.00405e0f
mov eax, esi
lea esp, [ebp - 0x28]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f200
mov esp, ebp
pop ebp
ret 0x10
Function at 0x404466
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
xor eax, eax
mov dword [ebp - 8], edx
push edi
mov edi, ecx
cmp word [edx], ax
jne 0x404481
mov eax, edi
jmp 0x404507
movzx eax, word [edi]
push ebx
push esi
test ax, ax
je 0x404503
mov esi, edi
mov ebx, edx
test ax, ax
je 0x4044e6
movzx eax, word [ebx]
test ax, ax
je 0x40450c
movzx ecx, word [esi]
sub ecx, eax
jne 0x4044e6
push esi
call dword [sym.imp.USER32.dll_CharNextW]
push ebx
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_CharNextW]
mov edx, dword [ebp - 4]
mov ecx, eax
mov eax, edx
sub ecx, ebx
sub eax, esi
xor ecx, eax
test ecx, 0xfffffffe
jne 0x4044e6
jmp 0x4044db
add esi, 2
add ebx, 2
movzx eax, word [ebx]
movzx ecx, word [esi]
sub ecx, eax
je 0x4044df
cmp esi, edx
jb 0x4044cb
xor eax, eax
cmp word [esi], ax
jne 0x404494
xor edx, edx
cmp word [ebx], dx
je 0x40450c
push edi
call dword [sym.imp.USER32.dll_CharNextW]
mov edx, dword [ebp - 8]
mov edi, eax
movzx ecx, word [edi]
mov eax, ecx
test cx, cx
jne 0x40448b
xor eax, eax
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
mov eax, edi
jmp 0x404505
Function at 0x406c1f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
call fcn.00406a9c
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x406c41
mov eax, 0x80070057
jmp 0x406d27
push edi
xor ecx, ecx
lea eax, [ebp - 8]
push eax
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], ecx
push eax
push ecx
push dword [ebp + 0xc]
mov edi, 0x80070057
mov dword [ebp - 8], ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406d24
cmp dword [ebp - 4], 1
je 0x406c81
cmp dword [ebp - 4], 2
je 0x406c81
cmp dword [ebp - 4], 7
jne 0x406d24
mov eax, dword [ebp - 8]
shr eax, 1
test byte [esi + 8], 0x20
mov dword [ebp - 8], eax
je 0x406ccc
mov ecx, dword [esi + 4]
cmp eax, ecx
jb 0x406c9b
mov dword [ebp - 8], ecx
mov eax, ecx
add eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push dword [esi]
push 0
push 0
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esi + 4]
mov edx, eax
test ecx, ecx
jle 0x406cc6
mov eax, dword [esi]
xor ebx, ebx
mov word [eax + ecx*2 - 2], bx
test edx, edx
jne 0x406d24
jmp 0x406d11
push eax
mov ecx, esi
call fcn.0040710f
mov ebx, eax
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x406d24
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0xc]
push eax
push ebx
push 0
push 0
push dword [ebp + 0xc]
add ecx, ecx
push dword [ebp + 8]
mov dword [ebp - 0xc], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, esi
test eax, eax
je 0x406d0b
lea eax, [ebp - 0x10]
push eax
call fcn.0040713d
jmp 0x406d24
push ebx
call fcn.0040715b
cmp dword [ebp - 4], 2
je 0x406d1b
xor edi, edi
jmp 0x406d24
mov ecx, esi
call fcn.00406db0
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40790c
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
xor ebx, ebx
lea ecx, [ebp - 0x10]
call fcn.004067af
push 0x4028a4
mov ecx, esi
call fcn.00407fab
test al, al
je 0x4079c7
mov ecx, dword [esi + 0x28]
call fcn.0040e7ce
test al, al
je 0x407949
push 4
jmp 0x4079d9
mov byte [ebp - 1], bl
test ecx, ecx
je 0x40795a
xor eax, eax
cmp word [ecx], bx
setne al
jmp 0x40795c
mov eax, ebx
test al, al
je 0x407981
mov dl, byte [ecx]
movzx eax, dl
cmp ax, word [ecx]
jne 0x407981
mov al, dl
mov byte [ebp - 1], al
movzx eax, al
mov al, byte [eax + 0x410b30]
test al, al
je 0x407981
movzx ebx, al
jmp 0x4079da
push 3
push ecx
lea ecx, [ebp - 0x10]
call fcn.004068ca
test eax, eax
js 0x4079da
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ebx, eax
cmp ebx, 2
jne 0x4079bb
push dword [ebp - 0x10]
call fcn.0040a1c7
cmp eax, 0x15e
je 0x4079b6
cmp eax, 0x20d
jne 0x4079bb
mov ebx, 0x80
movzx eax, byte [ebp - 1]
mov byte [eax + 0x410b30], bl
jmp 0x4079da
push 0x40286c
mov ecx, esi
call fcn.00407fab
test al, al
je 0x4079da
push 5
pop ebx
lea ecx, [ebp - 0x10]
call fcn.00406a9c
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409b45
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4100a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x40259c]
push ebx
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [0x4025a0]
mov dword [ebp - 8], eax
call dword [sym.imp.msvcrt.dll_towupper]
movzx ebx, ax
lea eax, [ebp - 0xc]
pop ecx
push eax
mov word [ebp - 0xc], bx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
jne 0x409bad
push 0x41
xor esi, esi
pop edi
jmp 0x409ba6
lea eax, [ebp - 0xc]
mov word [ebp - 0xc], di
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
jne 0x409ba5
inc esi
inc edi
cmp di, bx
jb 0x409b91
jmp 0x409bb0
or esi, 0xffffffff
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f200
mov esp, ebp
pop ebp
ret 4
Function at 0x40a1c7
Capabilities:
Check os version
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x4100a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x23c]
push edi
call fcn.004067af
test esi, esi
je 0x40a3dd
movzx ecx, word [esi]
mov dx, 0x19
lea eax, [ecx - 0x41]
cmp dx, ax
sbb edi, edi
add ecx, 0xffffffc0
and edi, 0xffffffe0
add edi, ecx
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor esi, esi
inc esi
test eax, eax
jns 0x40a2d8
xor ebx, ebx
push ebx
push 0x4000000
push ebx
push ebx
push ebx
push ebx
push 0x4025ec
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x22c], eax
cmp eax, 0xffffffff
je 0x40a394
push ebx
lea ecx, [ebp - 0x228]
mov byte [ebp - 0x228], bl
mov dword [ebp - 0x1fc], ecx
lea ecx, [ebp - 0x230]
push ecx
push 0x1c
lea ecx, [ebp - 0x200]
mov dword [ebp - 0x200], edi
push ecx
push 0x1c
push ecx
push esi
push eax
mov dword [ebp - 0x1f8], 0x860
mov dword [ebp - 0x1f4], 0x440d
mov dword [ebp - 0x1e8], esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je case.default.0x40a2aa
test byte [ebp - 0x1e8], 1
jne case.default.0x40a2aa
movzx eax, byte [ebp - 0x227]
cmp eax, 9
ja case.default.0x40a2aa
jmp dword [eax*4 + 0x40a3ff]
mov esi, 0x20d
jmp case.0x40a2aa.5
mov esi, 0x15e
jmp case.0x40a2aa.5
mov esi, 0x320
jmp case.0x40a2aa.5
push 2
pop esi
jmp case.0x40a2aa.5
mov esi, ebx
push dword [ebp - 0x22c]
jmp 0x40a38c
lea esi, [edi + 0x40]
push esi
lea eax, [ebp - 0x23c]
push 0x4025f8
push eax
call fcn.00406bac
add esp, 0xc
xor ebx, ebx
test eax, eax
js 0x40a394
push ebx
push ebx
push 3
push ebx
push 2
push ebx
push dword [ebp - 0x23c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x230], eax
cmp eax, 0xffffffff
je 0x40a39d
push ebx
lea ecx, [ebp - 0x22c]
push ecx
push 0x1e0
lea ecx, [ebp - 0x1e4]
push ecx
push ebx
push ebx
push 0x70c00
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40a384
cmp dword [ebp - 0x22c], ebx
jbe 0x40a384
mov eax, dword [ebp - 0x1dc]
cmp eax, 1
je 0x40a37d
jle 0x40a384
cmp eax, 5
jle 0x40a376
cmp eax, 0xa
jle 0x40a37d
cmp eax, 0xb
je 0x40a371
cmp eax, 0xc
jne 0x40a384
xor esi, esi
inc esi
jmp 0x40a386
push 2
pop esi
jmp 0x40a386
mov esi, 0x15e
jmp 0x40a386
mov esi, 0x20d
jmp 0x40a386
mov esi, ebx
push dword [ebp - 0x230]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40a396
mov esi, ebx
test esi, esi
jne 0x40a3df
lea esi, [edi + 0x40]
push esi
lea eax, [ebp - 0x23c]
push 0x402608
push eax
call fcn.0040b7dd
add esp, 0xc
push dword [ebp - 0x23c]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
je 0x40a3d8
cmp eax, 3
je 0x40a3d3
jbe 0x40a3cf
cmp eax, 6
jbe 0x40a3d8
mov esi, ebx
jmp 0x40a3df
xor esi, esi
inc esi
jmp 0x40a3df
push 2
pop esi
jmp 0x40a3df
xor esi, esi
lea ecx, [ebp - 0x23c]
call fcn.00406a9c
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f200
mov esp, ebp
pop ebp
ret 4
Function at 0x40a9fc
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x74
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], 0x80070005
lea ecx, [ebp - 0x70]
call fcn.00407635
push edi
push 2
lea ecx, [ebp - 0x70]
call fcn.00407818
mov ebx, 0x80072af9
test eax, eax
js 0x40aa6c
lea ecx, [ebp - 0x70]
call fcn.0040790c
cmp eax, 4
jne 0x40aa6c
lea ecx, [ebp - 0x70]
call fcn.0040b64c
cmp byte [0x410c54], 0
mov esi, eax
mov dword [ebp - 4], esi
je 0x40aa6f
test esi, esi
js 0x40aa5e
lea eax, [ebp - 0x70]
push eax
call fcn.0040b91c
jmp 0x40aa6c
cmp esi, ebx
jne 0x40aa6f
push ebx
lea eax, [ebp - 0x70]
push eax
call fcn.0040b89b
mov esi, dword [ebp - 4]
test esi, esi
jns 0x40ab37
cmp esi, ebx
je 0x40ab37
lea eax, [ebp - 8]
xor ebx, ebx
push eax
push ebx
push edi
push 0x40a960
push ebx
push ebx
call dword [sym.imp.msvcrt.dll__beginthreadex]
mov esi, eax
add esp, 0x18
test esi, esi
je 0x40ab34
sub esp, 0x14
push 0xfa0
push 0x4028d0
call fcn.0040d1b9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40ab2d
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x40ab2d
mov eax, dword [0x410048]
cmp eax, 0x410048
je 0x40aaf7
test byte [eax + 0x44], 1
je 0x40aaf7
cmp byte [eax + 0x41], 3
jb 0x40aaf7
push dword [ebp - 4]
push dword [eax + 0x3c]
push dword [eax + 0x38]
push 0xb
pop ecx
call fcn.0040a67f
cmp dword [ebp - 4], ebx
je 0x40ab05
mov dword [ebp - 4], 0x80070005
jmp 0x40ab2d
cmp byte [0x410c54], bl
je 0x40ab2d
mov ecx, dword [ebp - 0x54]
test ecx, ecx
je 0x40ab1e
xor eax, eax
cmp word [ecx], bx
setne al
jmp 0x40ab20
mov eax, ebx
test al, al
je 0x40ab2d
lea eax, [ebp - 0x70]
push eax
call fcn.0040b91c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 4]
lea ecx, [ebp - 0x70]
call fcn.0040637d
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b987
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x8c
push ebx
push esi
push edi
sub esp, 0x14
xor eax, eax
mov edi, eax
movzx eax, byte [ebp + 0xc]
mov dword [ebp - 4], eax
push 0xea60
push 0x4028b0
call fcn.0040d1b9
mov ecx, 0x4104f0
mov dword [ebp - 0x14], eax
call fcn.0040b86f
push dword [ebp + 8]
mov esi, 0x41051c
push esi
call fcn.0040bbe1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40ba02
push ebx
mov ecx, esi
call fcn.0040bdda
lea esi, [eax + 0x208]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi]
cmp eax, dword [ebp - 0x14]
jae 0x40ba32
push ebx
mov ecx, 0x41051c
call fcn.0040bdda
mov edi, dword [eax + 0x20c]
jmp 0x40ba39
push dword [ebp + 8]
mov esi, 0x41050c
push esi
call fcn.0040b7dd
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40ba39
push ebx
mov ecx, esi
call fcn.0040bdda
lea esi, [eax + 0x208]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi]
cmp eax, dword [ebp - 0x14]
jb 0x40ba39
mov dword [ebp - 4], 1
mov ecx, 0x4104f0
call fcn.0040b7dd
cmp dword [ebp - 4], 0
je 0x40bb8f
test edi, edi
js 0x40bb8f
lea ecx, [ebp - 0x10]
call fcn.004067af
lea ecx, [ebp - 0x88]
call fcn.00407635
lea ecx, [ebp - 0x20]
call fcn.004067af
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x88]
push eax
call fcn.0040768d
push ecx
lea ecx, [ebp - 0x88]
call fcn.00407b61
mov edi, eax
test edi, edi
js 0x40bb74
lea eax, [ebp - 0x10]
push eax
push 0xa
lea ecx, [ebp - 0x88]
call fcn.0040775d
mov edi, eax
test edi, edi
js 0x40bb74
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x88]
call fcn.00407f07
mov edi, eax
test edi, edi
js 0x40bb74
mov ecx, dword [ebp - 0x10]
xor edx, edx
test ecx, ecx
je 0x40badc
xor eax, eax
cmp word [ecx], dx
setne al
jmp 0x40bade
mov eax, edx
test al, al
je 0x40bb13
lea ecx, [ebp - 0x10]
call fcn.00406d2f
mov ecx, dword [ebp - 0x20]
mov edi, eax
mov esi, dword [ebp - 0x10]
call fcn.0040e6d4
cmp word [esi + edi*2 - 2], ax
jne 0x40bb10
lea ecx, [ebp - 0x10]
call fcn.00406d2f
mov ecx, dword [ebp - 0x10]
xor edx, edx
mov word [ecx + eax*2 - 2], dx
mov ecx, dword [ebp - 0x10]
call fcn.0040a9fc
mov edi, eax
test edi, edi
jns 0x40bb74
cmp ebx, 0xffffffff
je 0x40bb74
mov ecx, 0x4104f0
call fcn.0040b86f
push dword [ebp + 8]
push 0x41051c
call fcn.0040b7dd
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40bb6a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, 0x41051c
mov esi, eax
push ebx
mov ecx, edi
call fcn.0040bdda
push ebx
mov ecx, edi
mov dword [eax + 0x208], esi
call fcn.0040bdda
mov edi, dword [eax + 0x20c]
mov ecx, 0x4104f0
call fcn.0040b887
lea ecx, [ebp - 0x20]
call fcn.00406a9c
lea ecx, [ebp - 0x88]
call fcn.0040637d
lea ecx, [ebp - 0x10]
call fcn.00406a9c
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40c12e
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov ebx, edx
xor esi, esi
push edi
mov edi, ecx
test ebx, ebx
je 0x40c22f
test edi, edi
je 0x40c22f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x410c80]
cmp eax, 0xea60
jae 0x40c17e
mov edx, edi
mov ecx, 0x410c74
call fcn.0040678c
test al, al
je 0x40c17e
mov eax, dword [0x410c70]
mov dword [ebx], eax
jmp 0x40c234
push ebx
push edi
mov edx, 0x402b40
mov ecx, SysReAllocStringLen
call fcn.0040bfd1
cmp eax, 3
je 0x40c199
cmp eax, 2
jne 0x40c1d2
push ebx
push edi
mov edx, 0x402bb0
mov ecx, SysReAllocStringLen
call fcn.0040bfd1
cmp eax, 3
je 0x40c1b4
cmp eax, 2
jne 0x40c1d2
mov ecx, edi
call fcn.004073f0
cmp eax, 0xffffffff
je 0x40c1cb
mov ecx, eax
call fcn.0040becc
mov dword [ebx], eax
jmp 0x40c1d0
mov esi, 0xc00d0fda
xor eax, eax
test eax, eax
je 0x40c1e5
jg 0x40c1dc
mov esi, eax
jmp 0x40c1e5
movzx esi, ax
or esi, 0x80070000
test esi, esi
js 0x40c234
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 5
pop ecx
cmp eax, ecx
jae 0x40c234
push 0x22
pop eax
push 0xffffffffffffffff
mov dword [ebp - 8], ecx
lea ecx, [ebp - 0xc]
push edi
mov dword [ebp - 0xc], 0x410c74
mov word [ebp - 4], ax
call fcn.004068ca
mov eax, dword [ebx]
mov dword [0x410c70], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [ebp - 0xc]
mov dword [0x410c80], eax
call fcn.00406a9c
jmp 0x40c234
mov esi, 0x80004003
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ccd0
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x410c84], 0
push esi
push edi
mov edi, ecx
jne 0x40cd19
xor eax, eax
push eax
push eax
push eax
push 0x40cb10
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x40cd10
push 0xbb8
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x410c84], 0
je 0x40cd62
lea ecx, [ebp - 0xc]
call fcn.004067af
push 0xffffffffffffffff
push edi
lea ecx, [ebp - 0xc]
call fcn.004068ca
test eax, eax
js 0x40cd5a
mov esi, dword [ebp - 0xc]
test esi, esi
je 0x40cd3e
mov ecx, esi
call fcn.00406d40
push esi
mov ecx, 0x4109a0
push ecx
call fcn.0040dd62
test al, al
je 0x40cd5a
lea ecx, [ebp - 0xc]
call fcn.00406a9c
mov al, 1
jmp 0x40cd64
lea ecx, [ebp - 0xc]
call fcn.00406a9c
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40cec7
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 0x10]
xor edx, edx
mov eax, dword [esi]
add eax, eax
mov dword [esi], edx
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push edx
lea eax, [ebp - 4]
push eax
push edx
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40cf10
cmp dword [ebp - 4], 1
je 0x40cf07
cmp dword [ebp - 4], 2
je 0x40cf07
push 0xd
pop eax
jmp 0x40cf10
mov eax, dword [ebp - 8]
shr eax, 1
mov dword [esi], eax
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40e2be
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push edi
mov edi, ecx
cmp byte [edi + 0x10], 0
jne 0x40e3f4
push esi
lea eax, [ebp - 8]
mov byte [edi + 0x10], 1
push eax
push 0x20019
xor esi, esi
push esi
push 0x403490
push SysReAllocStringLen
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40e3f3
push ebx
mov ebx, dword [ebp - 8]
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0x104
call fcn.004067af
push 0x104
lea ecx, [ebp - 0x20]
call fcn.00406887
jmp 0x40e3d7
lea ecx, [ebp - 0x14]
mov eax, esi
push ecx
xor ecx, ecx
inc esi
push ecx
push ecx
push ecx
lea ecx, [ebp - 4]
mov dword [ebp - 0xc], esi
mov esi, dword [ebp - 0x20]
push ecx
push esi
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x40e3df
test esi, esi
je 0x40e357
xor ecx, ecx
cmp word [esi], cx
setne al
test al, al
je 0x40e3b3
cmp dword [ebp - 4], 0
je 0x40e3b3
lea ecx, [ebp - 0x2c]
call fcn.004067af
push 0x2e
pop eax
lea ecx, [ebp - 0x2c]
push 0xffffffffffffffff
cmp ax, word [esi]
jne 0x40e37c
lea eax, [esi + 2]
push eax
jmp 0x40e37d
push esi
call fcn.004068ca
mov esi, dword [ebp - 0x2c]
xor eax, eax
test esi, esi
je 0x40e393
xor ecx, ecx
cmp word [esi], cx
setne al
test al, al
je 0x40e3ab
mov ecx, esi
call fcn.00407351
cmp eax, 0xffffffff
jne 0x40e3ab
push esi
mov ecx, edi
call fcn.0040df33
lea ecx, [ebp - 0x2c]
call fcn.00406a9c
lea ecx, [ebp - 0x20]
call fcn.00406a9c
mov esi, 0x104
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], esi
call fcn.004067af
push esi
lea ecx, [ebp - 0x20]
call fcn.00406887
mov esi, dword [ebp - 0xc]
test eax, eax
jns 0x40e324
lea ecx, [ebp - 0x20]
call fcn.00406a9c
test ebx, ebx
je 0x40e3f2
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x40f1c0
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x40faf0
call fcn.0040f538
xor ebx, ebx
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x410c98
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x40eff5
cmp eax, esi
jne 0x40efe8
xor esi, esi
inc esi
mov edi, esi
jmp 0x40eff8
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40efcc
xor esi, esi
inc esi
cmp dword [0x410c9c], esi
jne 0x40f00a
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x40f044
cmp dword [0x410c9c], ebx
jne 0x40f03e
mov dword [0x410c9c], esi
push 0x401d5c
push 0x401d50
call fcn.0040f174
pop ecx
pop ecx
test eax, eax
je 0x40f044
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x40f16e
mov dword [0x410104], esi
cmp dword [0x410c9c], esi
jne 0x40f067
push 0x401d4c
push 0x401d10
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x410c9c], 2
test edi, edi
jne 0x40f074
xor eax, eax
mov ecx, 0x410c98
xchg dword [ecx], eax
cmp dword [0x410ca0], 0
je 0x40f0a0
push 0x410ca0
call fcn.0040f390
pop ecx
test eax, eax
je 0x40f0a0
push ebx
push 2
push ebx
mov esi, dword [0x410ca0]
mov ecx, esi
call dword [0x411248]
call esi
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov ecx, dword [eax]
test ecx, ecx
je 0x40f02d
mov dword [ebp - 0x24], ecx
push 0x20
pop esi
mov edx, dword [ebp - 0x20]
movzx eax, word [ecx]
cmp ax, si
ja 0x40f10b
test ax, ax
je 0x40f0da
test edx, edx
jne 0x40f10b
test ax, ax
je 0x40f0da
cmp ax, si
ja 0x40f0da
add ecx, 2
mov dword [ebp - 0x24], ecx
movzx eax, word [ecx]
jmp 0x40f0c5
test byte [ebp - 0x40], 1
je 0x40f0e6
movzx eax, word [ebp - 0x3c]
jmp 0x40f0e9
push 0xa
pop eax
push eax
push ecx
push ebx
push 0x400000
call main
mov dword [0x410100], eax
cmp dword [0x410118], 0
jne 0x40f153
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp eax, 0x22
jne 0x40f11c
xor eax, eax
test edx, edx
sete al
mov edx, eax
mov dword [ebp - 0x20], edx
add ecx, 2
mov dword [ebp - 0x24], ecx
jmp 0x40f0b4
cmp dword [0x410104], 0
jne 0x40f167
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x410100]
mov dword [ebp - 4], 0xfffffffe
call fcn.0040f580
ret
call fcn.0040f483
jmp 0x40efa3

Function at 0x40f294
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x40fb10
call fcn.0040f83c
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x40f2f4
cmp eax, 0xffffffff
je 0x40f2f4
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x40f2ed
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x40f2ed
cmp edx, 0x10000000
jae 0x40f2ed
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x40f2ea
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
call fcn.0040f881
ret 4