joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420b00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x26c]
push ebx
push esi
mov dword [ebp - 4], eax
mov byte [ebp - 8], dl
mov bl, cl
mov edx, 0x44c5e8
lea eax, [ebp - 0x268]
call fcn.0040dc40
xor eax, eax
push fcn.00420ae0
push ebp
push 0x413390
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test eax, eax
jne 0x420b43
mov eax, 0x456a30
push eax
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
jne 0x420b8b
call sub.kernel32.dll_GetLastError
cmp eax, 0xa1
jbe 0x420b5f
clc
jmp 0x420b66
bt dword [0x44bc30], eax
jb 0x420b7f
mov eax, ebp
call fcn.00420c30
test al, al
je 0x420b7f
mov byte [ebp - 0x26c], 1
jmp 0x420c10
mov byte [ebp - 0x26c], 0
jmp 0x420c10
mov eax, esi
and eax, 0x10
movzx edx, byte [ebp - 8]
cmp eax, dword [edx*4 + 0x446850]
sete byte [ebp - 0x26c]
mov al, bl
and al, byte [ebp - 0x26c]
je 0x420c10
and esi, 0x400
je 0x420c10
lea ebx, [ebp - 0x268]
mov edx, 0x44c5e8
mov eax, ebx
call fcn.0040dd00
mov edx, ebx
mov eax, dword [ebp - 4]
xor cl, cl
call fcn.004207a0
test eax, eax
je 0x420be4
sub eax, 1
je 0x420bfc
jmp 0x420c08
mov dl, byte [ebp - 8]
mov eax, dword [ebp - 0x268]
xor cl, cl
call fcn.00420b00
mov byte [ebp - 0x26c], al
jmp 0x420c10
mov byte [ebp - 0x26c], 1
jmp 0x420c10
mov byte [ebp - 0x26c], 0
nop
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00420ae0
mov al, byte [ebp - 0x26c]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x420e20
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edx
test eax, eax
jne 0x420e2e
mov eax, 0x456a30
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
je 0x420e3c
xor ebx, ebx
jmp 0x420e43
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x420e70
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x34]
push ebx
push esi
push edi
test al, al
jne 0x420e88
mov byte [ebp - 4], 0x5c
mov byte [ebp - 3], 0
jmp 0x420e9f
and eax, 0xff
add eax, 0x40
mov byte [ebp - 4], al
mov byte [ebp - 3], 0x3a
mov byte [ebp - 2], 0x5c
mov byte [ebp - 1], 0
cmp dword [0x457f70], 0
je 0x420edb
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 4]
push eax
call dword [0x457f70]
test eax, eax
je 0x420ecd
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x34], eax
mov edi, dword [ebp - 0x1c]
jmp 0x420f26
mov dword [ebp - 0x34], 0xffffffff
mov edi, 0xffffffff
jmp 0x420f26
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call sub.kernel32.dll_GetDiskFreeSpaceA
test eax, eax
je 0x420f1a
mov eax, dword [ebp - 8]
mul dword [ebp - 0x14]
mov ebx, eax
mov eax, dword [ebp - 0xc]
xor esi, esi
mov ecx, ebx
imul ecx, esi
imul edx, eax
add ecx, edx
mul ebx
add edx, ecx
mov dword [ebp - 0x34], eax
mov edi, edx
jmp 0x420f26
mov dword [ebp - 0x34], 0xffffffff
mov edi, 0xffffffff
mov edx, edi
mov eax, dword [ebp - 0x34]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x420f70
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc]
push ebx
push esi
push edi
mov edi, eax
mov esi, edx
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
xor eax, eax
push fcn.00420f60
push ebp
push 0x413390
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoW
mov ebx, eax
test ebx, ebx
jle 0x420fe0
lea edx, [ebx - 1]
lea eax, [ebp - 4]
call fcn.0040ae60
cmp ebx, 1
jle 0x420fd0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoW
mov ebx, eax
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
xor dx, dx
call fcn.0040a730
jmp 0x420feb
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00408560
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.00420f60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4213f0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
push ebx
push esi
mov dword [ebp - 0x10], 0
xor eax, eax
push fcn.004213e0
push ebp
push 0x413390
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea esi, [esi]
add ebx, 1
lea eax, [ebx*4 + 0x457f0c]
xor edx, edx
call fcn.00408560
mov dword [ebx*4 + 0x457f2c], 0xffffffff
cmp ebx, 7
jl 0x421418
call sub.kernel32.dll_GetThreadLocale
mov esi, eax
push 0xb
lea eax, [ebp - 0xc]
push eax
push 0x100b
push esi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x4214a4
lea esi, [esi]
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
xor cx, cx
mov edx, 0xa
call fcn.00408f50
mov eax, dword [ebp - 0x10]
mov edx, 1
call fcn.00418080
mov ebx, eax
sub eax, 3
cmp eax, 3
jae 0x4214a4
push 4
push ebx
push esi
mov eax, 0x4212c0
push eax
call sub.kernel32.dll_EnumCalendarInfoA
push 3
push ebx
push esi
mov eax, 0x421350
push eax
call sub.kernel32.dll_EnumCalendarInfoA
nop
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.004213e0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x421af0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x1c]
push ebx
push esi
push edi
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
xor edx, edx
push fcn.00421ac0
push ebp
push 0x413390
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0xc]
call fcn.00417d00
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 4]
call fcn.00408560
lea eax, [ebp - 4]
mov cl, 1
mov dx, 1
call fcn.00409af0
mov eax, dword [ebp - 0x18]
xor edx, edx
call fcn.00408560
call sub.kernel32.dll_GetEnvironmentStringsA
mov dword [ebp - 0x1c], eax
mov ebx, eax
jmp 0x421bfc
lea ecx, [ebp - 8]
mov eax, ebx
xor dx, dx
call fcn.00408eb0
mov eax, dword [ebp - 8]
test eax, eax
je 0x421b87
mov eax, dword [eax - 4]
mov edi, eax
lea eax, [ebp - 8]
xor cl, cl
mov dx, 1
call fcn.00409af0
mov edx, dword [ebp - 8]
mov ecx, 1
mov al, 0x3d
call fcn.00409490
mov esi, eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [esi - 1]
mov eax, dword [ebp - 8]
mov edx, 1
call fcn.00409330
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.00417d00
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.004090d0
test eax, eax
jne 0x421bf4
push dword [ebp - 0x18]
mov eax, dword [ebp - 8]
test eax, eax
je 0x421be3
mov eax, dword [eax - 4]
sub eax, esi
mov ecx, eax
lea edx, [esi + 1]
mov eax, dword [ebp - 8]
call fcn.00409330
jmp 0x421c05
lea eax, [ebx + edi]
add eax, 1
mov ebx, eax
cmp byte [ebx], 0
jne 0x421b70
push dword [ebp - 0x1c]
call sub.kernel32.dll_FreeEnvironmentStringsA
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00421ac0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x421c40
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x94]
mov dword [0x457f70], 0
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
mov eax, dword [ebp - 0x84]
mov dword [0x457dd0], eax
mov eax, dword [ebp - 0x90]
mov dword [0x457de0], eax
mov eax, dword [ebp - 0x8c]
mov dword [0x457df0], eax
mov eax, dword [ebp - 0x88]
mov dword [0x457e00], eax
mov edx, 0x457e11
lea eax, [ebp - 0x80]
mov ecx, pe_nt_image_headers32
call fcn.004035f0
lea eax, [ebp - 0x80]
call fcn.004044e0
mov byte [0x457e10], al
mov eax, str.kernel32
push eax
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x457f80], eax
test eax, eax
je 0x421ce0
mov eax, str.GetDiskFreeSpaceExA
push eax
push dword [0x457f80]
call sub.kernel32.dll_GetProcAddress
mov dword [0x457f70], eax
nop
cmp dword [0x457de0], 6
jae 0x421cf4
mov dword [0x446110], 0
nop
cmp dword [0x457de0], 6
jb 0x421d10
cmp dword [0x457df0], 1
jb 0x421d10
mov dword [0x446120], 2
mov esp, ebp
pop ebp
ret
Function at 0x423720
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x118]
push ebx
push esi
push edi
mov esi, eax
mov edi, edx
mov dword [ebp - 0x118], ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x114], eax
mov al, byte [ebp + 8]
mov byte [ebp - 0x110], al
mov dword [ebp - 0xc], 0
xor eax, eax
push fcn.00423710
push ebp
push 0x413390
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebp - 0x114]
push dword [ebp - 0x118]
push edi
call sub.kernel32.dll_FindResourceA
mov dword [esi + 0x10], eax
test eax, eax
jne 0x423830
mov al, byte [ebp - 0x110]
test al, al
je 0x4237f9
push 0xff
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x10c]
mov edx, 0xffffffff
call fcn.00404a90
lea ecx, [ebp - 0xc]
xor dx, dx
lea eax, [ebp - 0x10c]
call fcn.00408de0
xor cl, cl
xor dx, dx
lea eax, [ebp - 0xc]
call fcn.00409af0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xb
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x44ccf0
call fcn.0041f840
mov edx, 0x42378a
mov ecx, ebp
call fcn.00413250
jmp 0x423830
mov eax, dword [ebp - 0x118]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 6
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x44ccf0
call fcn.0041f840
mov edx, 0x4237f9
mov ecx, ebp
call fcn.00413250
push dword [esi + 0x10]
push edi
call sub.kernel32.dll_LoadResource
mov dword [esi + 0x14], eax
test eax, eax
jne 0x4238f4
mov al, byte [ebp - 0x110]
test al, al
je 0x4238bd
push 0xff
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x10c]
mov edx, 0xffffffff
call fcn.00404a90
lea ecx, [ebp - 0xc]
xor dx, dx
lea eax, [ebp - 0x10c]
call fcn.00408de0
xor cl, cl
xor dx, dx
lea eax, [ebp - 0xc]
call fcn.00409af0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xb
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x44ccf0
call fcn.0041f840
mov edx, 0x42384e
mov ecx, ebp
call fcn.00413250
jmp 0x4238f4
mov eax, dword [ebp - 0x118]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 6
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x44ccf0
call fcn.0041f840
mov edx, 0x4238bd
mov ecx, ebp
call fcn.00413250
push dword [esi + 0x10]
push edi
call sub.kernel32.dll_SizeofResource
mov ebx, eax
push dword [esi + 0x14]
call sub.kernel32.dll_LockResource
mov edx, eax
mov eax, esi
mov ecx, ebx
call fcn.004230e0
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00423710
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x430fc0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x24]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov byte [ebp - 0xc], cl
push 4
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call sub.kernel32.dll_GetLocaleInfoW
mov dword [ebp - 0x1c], eax
cmp eax, 2
jle 0x43106a
mov eax, dword [ebp - 0x1c]
sub eax, 2
test eax, eax
jl 0x431086
mov dword [ebp - 0x20], 0xffffffff
lea esi, [esi]
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
mov dx, word [ebp + edx*2 - 0x18]
mov word [ebp - 0x24], dx
mov edx, dword [ebp - 0x20]
mov dx, word [ebp + edx*2 - 0x18]
cmp dx, 0x20
jb 0x431086
sub dx, 0x20
je 0x431060
sub dx, 0x80
je 0x431060
sub dx, 0x1f62
jb 0x431086
sub dx, 1
jbe 0x431060
sub dx, 6
je 0x431060
sub dx, 0x26
jne 0x431086
nop
jmp 0x431060
cmp eax, dword [ebp - 0x20]
jg 0x431008
lea esi, [esi]
jmp 0x431086
cmp dword [ebp - 0x1c], 2
jne 0x43107a
mov ax, word [ebp - 0x18]
mov word [ebp - 0x24], ax
jmp 0x431086
mov al, byte [ebp - 0xc]
call fcn.0040ab90
mov word [ebp - 0x24], ax
mov ax, word [ebp - 0x24]
sub ax, 0x7f
jbe 0x431104
sub ax, 0x21
je 0x431118
sub ax, 0x17
je 0x431124
sub ax, 0x222
je 0x431130
sub ax, 0x392
je 0x431138
sub ax, 1
je 0x431140
sub ax, 0x1996
je 0x431148
sub ax, 1
je 0x431150
sub ax, 6
je 0x431158
sub ax, 0xb
je 0x431168
sub ax, 0x1b
je 0x431160
sub ax, 0x367
je 0x431170
jmp 0x431178
mov ax, word [ebp - 0x24]
call fcn.0040ac00
mov byte [ebp - 0x10], al
jmp 0x431180
mov byte [ebp - 0x10], 0x20
jmp 0x431180
mov byte [ebp - 0x10], 0x2e
jmp 0x431180
mov byte [ebp - 0x10], 0x27
jmp 0x431180
mov byte [ebp - 0x10], 0x2c
jmp 0x431180
mov byte [ebp - 0x10], 0x27
jmp 0x431180
mov byte [ebp - 0x10], 0x20
jmp 0x431180
mov byte [ebp - 0x10], 0x20
jmp 0x431180
mov byte [ebp - 0x10], 0x20
jmp 0x431180
mov byte [ebp - 0x10], 0x20
jmp 0x431180
mov byte [ebp - 0x10], 0x2d
jmp 0x431180
mov byte [ebp - 0x10], 0x27
jmp 0x431180
mov al, byte [ebp - 0xc]
mov byte [ebp - 0x10], al
mov esi, esi
mov al, byte [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x491b5d
Capabilities:
Encode data using xor

Disassembly:
push esi
xor eax, eax
push edi
mov edi, dword [esp + 0x10]
shr edi, 2
mov ecx, edi
dec edi
test ecx, ecx
je 0x491b8b
mov edx, dword [esp + 0xc]
mov esi, dword [esp + 0x14]
mov ecx, esi
mov esi, dword [edx]
add eax, esi
xor ecx, esi
mov dword [edx], ecx
add edx, 4
mov ecx, edi
dec edi
test ecx, ecx
jne 0x491b77
pop edi
pop esi
ret

Function at 0x491c23
Capabilities:
Inspect section memory permissions

Disassembly:
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
imul ecx, ecx, 0x28
mov ecx, dword [ecx + eax + 0x24]
test ecx, 0x20000000
je 0x491c5c
test ecx, 0x40000000
je 0x491c55
mov eax, ecx
and eax, 0x80000000
cmp eax, 1
sbb eax, eax
and al, 0xe0
add eax, 0x40
jmp 0x491c6d
mov eax, 0x10
jmp 0x491c6d
mov eax, ecx
and eax, 0x80000000
cmp eax, 1
sbb eax, eax
and al, 0xfe
add eax, 4
test ecx, 0x4000000
je 0x491c7a
add eax, 0x200
ret
Function at 0x493738
Capabilities:
Get common file path

Disassembly:
push ebp
mov edx, dword [esp + 0xc]
mov ebp, esp
sub esp, 0x104
test edx, edx
push esi
push edi
je 0x493794
mov edi, dword [ebp + 8]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edi, [ebp - 0x104]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp byte [ebp + edx - 0x105], 0x5c
je 0x49379b
mov esi, 0x48e534
lea edi, [ebp - 0x104]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
movsw word es:[edi], word [esi]
jmp 0x49379b
mov byte [ebp - 0x104], 0
push dword [ebp + 8]
push 0
push 0x48e538
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameA]
test eax, eax
mov eax, 0
je 0x4937cd
push 0x10
push 0x48e53c
push dword [ebp + 8]
call fcn.00491aa9
add esp, 0xc
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4937d3
Capabilities:
Delete file
Get common file path
Query environment variable

Disassembly:
push ebp
mov eax, 0x4220
mov ebp, esp
call fcn.00493e30
push esi
push edi
push 0
call fcn.004936c3
add esp, 4
mov dword [0x48e524], eax
cmp eax, 0xffffffff
jne 0x493911
mov edi, 0x104
lea eax, [ebp - 0x11c]
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
push eax
lea ecx, [ebp - 0x11c]
push ecx
call fcn.00493738
add esp, 8
mov esi, eax
test esi, esi
jne 0x493899
push edi
lea eax, [ebp - 0x220]
push eax
lea edi, [ebp - 0x220]
push str.PATH
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableA]
mov al, byte [edi]
test al, al
je 0x493886
xor ecx, ecx
inc edi
mov byte [ebp - 0x11c], al
cmp al, cl
je 0x493868
cmp byte [ebp + ecx - 0x11c], 0x3b
je 0x493868
inc ecx
mov al, byte [edi]
inc edi
mov byte [ebp + ecx - 0x11c], al
test al, al
jne 0x49384f
push ecx
lea eax, [ebp - 0x11c]
mov byte [ebp + ecx - 0x11c], 0
push eax
call fcn.00493738
add esp, 8
mov esi, eax
test esi, esi
je 0x49383c
test esi, esi
jne 0x493899
push 0xc
push 0x48e548
call fcn.004922f6
add esp, 8
push 0x1050
lea eax, [ebp - 0x4220]
push eax
push 0x48d4d4
call fcn.00491a89
add esp, 0xc
test eax, eax
jne 0x4938c2
push 2
push 0
call fcn.004922f6
add esp, 8
lea edi, [ebp - 0x41e0]
xor eax, eax
mov ecx, 0x10
rep stosd dword es:[edi], eax
push esi
mov eax, dword [0x48d4d0]
push eax
lea ecx, [ebp - 0x4220]
push ecx
call fcn.00491afc
add esp, 0xc
push esi
call fcn.00491a9c
add esp, 4
lea ecx, [ebp - 0x11c]
push ecx
call fcn.004936c3
add esp, 4
mov dword [0x48e524], eax
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
cmp dword [0x48e524], 0xffffffff
jne 0x493926
push 0xc
push 0x48e54c
jmp 0x4939d3
xor esi, esi
lea eax, [ebp - 8]
push esi
lea ecx, [ebp - 0x18]
push eax
push 0x10
push ecx
push esi
push esi
push 1
push dword [0x48e524]
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
je 0x4939cc
cmp dword [ebp - 0x18], 0x328
jne 0x4939c3
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 8]
push ecx
mov dword [ebp - 0x10], edx
push 4
lea edx, [ebp - 4]
push edx
mov dword [ebp - 0xc], eax
push 0x10
lea eax, [ebp - 0x18]
push eax
push 2
push dword [0x48e524]
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
je 0x493999
mov eax, dword [ebp - 4]
mov dword [0x48e528], eax
jmp 0x4939db
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x76
je 0x4939b2
cmp eax, 0x77
je 0x4939b2
push 0xc
push 0x48e578
jmp 0x4939d3
push 0
call dword [sym.imp.KERNEL32.DLL_SetLastError]
push 1
push str.___please_restart_your_system_and_retry
jmp 0x4939d3
push 0xc
push 0x48e57c
jmp 0x4939d3
push 0xc
push 0x48e580
call fcn.004922f6
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Delete directory
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x402488
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
push edi
mov edi, dword [esp + 0x44]
mov esi, 0x4040a8
mov eax, edi
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x40104e
test cl, cl
je 0x40104a
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x40104e
add eax, 2
add esi, 2
test cl, cl
jne 0x401026
xor eax, eax
jmp 0x401053
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4011b1
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x44]
mov dword [esp + 0x3c], 0
call sub.MFC42.DLL_CString::CString_1
push edi
lea eax, [esp + 0x10]
push str._s.
push eax
mov byte [esp + 0x48], 1
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x18]
call fcn.00401fca
mov ecx, dword [esp + 0xc]
push 0
push ecx
lea ecx, [esp + 0x20]
mov byte [esp + 0x44], 2
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x401174
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebp
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea ecx, [esp + 0x1c]
mov ebp, eax
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x40116b
mov edx, dword [esp + 0x1c]
push 0x10
lea ecx, [esp + 0x20]
call dword [edx + 0x40]
test eax, eax
je 0x40112d
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
call sub.MFC42.DLL_CFileFind::GetFileName
mov ecx, dword [eax]
lea edx, [esp + 0x48]
push ecx
push edi
push str._s_s
push edx
mov byte [esp + 0x50], 3
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 2
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x48]
push eax
call section..text
add esp, 4
jmp 0x40116b
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFileFind::GetFileName
mov edx, dword [eax]
lea eax, [esp + 0x48]
push edx
push edi
push str._s_s
push eax
mov byte [esp + 0x50], 4
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], 2
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x48]
push ecx
call esi
test ebp, ebp
jne 0x4010ba
pop ebp
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CFileFind::Close
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 1
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0x44]
mov byte [esp + 0x3c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x3c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x34]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret

Function at 0x401210
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
jne 0x401224
ret
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
neg eax
sbb eax, eax
neg eax
ret
Function at 0x402733
Capabilities:
Terminate process

Disassembly:
call section..text
push 0
push 0x405018
push 0x405014
call fcn.00402c5f
push 0
push 0x405020
push 0x40501c
call fcn.00402c5f
add esp, 0x18
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x403106
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x405764]
test eax, eax
je 0x40311f
call eax
test eax, eax
jne 0x40311f
push 0xfffffffffffffffe
jmp 0x403139
push 1
push 0x405010
push 0x405008
call fcn.00402c5f
add esp, 0xc
test eax, eax
je 0x40313f
push 0xfffffffffffffffd
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
push 0
push 0x405004
push section..data
call fcn.00402c5f
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
test esi, esi
jne 0x403165
mov esi, 0x4045b1
mov cl, 0x20
jmp 0x40316e
cmp al, 0x20
ja 0x403178
inc esi
mov al, byte [esi]
test al, al
jne 0x403169
cmp al, 0x20
jbe 0x40318f
mov al, byte [esi]
cmp al, 0x22
jne 0x403181
xor cl, 0x20
inc esi
mov al, byte [esi]
cmp al, cl
ja 0x40317a
jmp 0x40318f
cmp al, cl
ja 0x403195
inc esi
mov al, byte [esi]
test al, al
jne 0x40318a
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test eax, 0xa0d0a0d
sub eax, 0x54524357
sub eax, 0xa0d0a0d
test byte [ebp - 0x18], 1
je 0x4031be
movzx eax, word [ebp - 0x14]
jmp 0x4031c1
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.00402733
pop ecx
pop esi
leave
ret

Function at 0x4031f8
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0x40517f], eax
push 0
push dword [ebp + 8]
push 0
push 0
push 0
push 0x80000000
push 0xfffffc18
push 0xfffffc18
push 0xcf0000
push 0x4055c0
push 0x405628
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x403242
xor eax, eax
jmp 0x403259
push 0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
inc eax
leave
ret