joyce8/EMBER2024-capa huggingface dataset:
Function at 0x640da0
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov esi, ecx
mov ebp, edx
mov edi, eax
push 0
push 0
push ebp
push edi
call sub.KERNEL32.DLL_GetLocaleInfoA
mov ebx, eax
test ebx, ebx
jle 0x640de2
mov eax, esi
mov ecx, ebx
xor edx, edx
call fcn.00407018
push ebx
mov eax, dword [esi]
call fcn.00406f68
push eax
push ebp
push edi
call sub.KERNEL32.DLL_GetLocaleInfoW_1
mov ebx, eax
mov eax, esi
call fcn.00640d54
jmp 0x640e2a
mov eax, dword [0x67d698]
cmp dword [eax], 2
jne 0x640e2a
push 0
push 0
push ebp
push edi
call sub.KERNEL32.DLL_GetLocaleInfoW_1
mov ebx, eax
test ebx, ebx
jle 0x640e2a
mov eax, ebx
add eax, eax
call fcn.00403230
mov dword [esp], eax
push ebx
mov eax, dword [esp + 4]
push eax
push ebp
push edi
call sub.KERNEL32.DLL_GetLocaleInfoW_1
mov ebx, eax
mov edx, esi
mov eax, dword [esp]
call fcn.00407ed0
mov eax, dword [esp]
call fcn.0040324c
test ebx, ebx
jne 0x640e37
mov eax, esi
xor edx, edx
call fcn.00406edc
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x640f2c
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov ebx, ecx
add ebx, ebx
inc ebx
test ebx, ebx
js 0x640f48
shr ebx, 2
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x640f41
mov edx, esp
mov edi, ecx
mov dword [ebp - 4], edx
mov esi, eax
mov byte [ebp - 5], 0
xor ecx, ecx
push ebp
push 0x640fb5
push dword fs:[ecx]
mov dword fs:[ecx], esp
call fcn.00640cf8
mov ebx, eax
movzx eax, bx
xor ecx, ecx
xor edx, edx
call fcn.00640e40
cmp esi, eax
jne 0x640f88
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x640fc3
mov edx, edi
test edx, edx
jl 0x640fab
inc edx
mov eax, dword [ebp - 4]
cmp bx, word [eax]
jne 0x640fa5
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x640fc3
add eax, 2
dec edx
jne 0x640f92
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x640fc3
movzx eax, byte [ebp - 5]
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x640fd4
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
test esi, esi
js 0x640feb
mov edi, dword [ebx + esi*4]
dec esi
push edi
jns 0x640fe4
mov dword [ebp + 0x10], esp
mov ebx, ecx
add ebx, ebx
inc ebx
test ebx, ebx
js 0x641001
shr ebx, 2
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x640ffa
mov edx, esp
call fcn.00640f2c
mov ebx, eax
test bl, bl
jne 0x641076
xor ecx, ecx
push ebp
push 0x64106a
push dword fs:[ecx]
mov dword fs:[ecx], esp
call fcn.00640cf8
and ax, 0x3ff
cmp ax, 9
jne 0x641060
xor eax, eax
call fcn.0063f700
mov esi, eax
cmp dword [ebp + 8], 0
je 0x64103f
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov edx, dword [ebp + 0xc]
test edx, edx
jl 0x641060
inc edx
mov eax, dword [ebp + 0x10]
cmp esi, dword [eax]
jne 0x64105a
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x641076
add eax, 4
dec edx
jne 0x64104a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x641076
mov eax, ebx
mov edi, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov ebx, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x6421c8
Capabilities:
Hide graphical window

Disassembly:
push 9
mov eax, dword [0x67d250]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [0x67d250]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
push eax
call sub.user32.dll_SetForegroundWindow
mov eax, dword [0x67d250]
mov eax, dword [eax]
cmp byte [eax + 0x57], 0
jne 0x642223
mov eax, dword [0x67d250]
mov eax, dword [eax]
mov byte [eax + 0x57], 1
mov eax, dword [0x67d250]
mov eax, dword [eax]
mov eax, dword [eax + 0x40]
test eax, eax
je 0x642223
mov edx, dword [0x67d250]
mov dl, 1
call fcn.005133bc
ret
Function at 0x6431dc
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffebc
push ebx
push esi
push edi
mov dword [ebp - 4], 1
xor edx, edx
push ebp
push 0x643352
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x120]
xor ecx, ecx
mov edx, 0x11c
call fcn.00403d24
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call sub.KERNEL32.DLL_GetVersionExW
lea eax, [ebp - 0x144]
xor ecx, ecx
mov edx, 0x24
call fcn.00403d24
push 0x643368
push 0x643390
call sub.KERNEL32.DLL_GetModuleHandleW_2
push eax
call fcn.0040a328
test eax, eax
je 0x64325b
lea edx, [ebp - 0x144]
push edx
call eax
jmp 0x643267
lea eax, [ebp - 0x144]
push eax
call sub.KERNEL32.DLL_GetSystemInfo_1
cmp dword [ebp - 0x110], 2
jne 0x643348
mov eax, dword [ebp - 0x11c]
add eax, 0xfffffffd
sub eax, 2
jae 0x643289
mov dword [ebp - 4], 2
cmp dword [ebp - 0x11c], 5
jne 0x6432a7
cmp dword [ebp - 0x118], 0
jne 0x6432a7
mov dword [ebp - 4], 3
jmp 0x643348
cmp dword [ebp - 0x11c], 5
jne 0x6432c5
cmp dword [ebp - 0x118], 1
jne 0x6432c5
mov dword [ebp - 4], 4
jmp 0x643348
cmp dword [ebp - 0x11c], 5
jne 0x6432f9
cmp dword [ebp - 0x118], 2
jne 0x6432f9
cmp byte [ebp - 6], 1
jne 0x6432f0
cmp word [ebp - 0x144], 9
jne 0x6432f0
mov dword [ebp - 4], 4
jmp 0x643348
mov dword [ebp - 4], 5
jmp 0x643348
cmp dword [ebp - 0x11c], 6
jne 0x643314
cmp dword [ebp - 0x118], 0
jne 0x643314
mov dword [ebp - 4], 6
jmp 0x643348
cmp dword [ebp - 0x11c], 6
jne 0x64332f
cmp dword [ebp - 0x118], 1
jne 0x64332f
mov dword [ebp - 4], 7
jmp 0x643348
cmp dword [ebp - 0x11c], 6
jne 0x643348
cmp dword [ebp - 0x118], 2
jne 0x643348
mov dword [ebp - 4], 8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x64335c
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x6434ac
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406ec4
xor eax, eax
push ebp
push 0x64355a
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x64351c
push dword fs:[edx]
mov dword fs:[edx], esp
push 1
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00406f68
mov ebx, eax
push ebx
push 0x643568
push 0
call sub.shell32.dll_ShellExecuteW
cmp eax, 0x20
jg 0x643512
push 1
push 0
push ebx
push 0x643574
push 0x643568
push 0
call sub.shell32.dll_ShellExecuteW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x643544
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x643561
lea eax, [ebp - 4]
call fcn.00406ecc
ret
Function at 0x6439dc
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x18
push 0
push 0
dec ecx
jne 0x6439e4
push ebx
push esi
push edi
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x644339
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x643a23
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x644348
mov dl, 1
call fcn.00643934
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x643a2d
xor eax, eax
push ebp
push 0x643a4a
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.006436b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x643a54
mov eax, dword [ebp - 0x18]
call fcn.0064520c
xor edx, edx
mov eax, dword [0x6b8c60]
call fcn.004f8994
xor eax, eax
push ebp
push 0x643bd0
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x57b914]
call fcn.0057c614
mov dword [ebp - 0x24], eax
lea edx, [ebp - 0x34]
mov eax, 0x644378
call fcn.00470130
mov eax, dword [ebp - 0x34]
push eax
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x43c]
call fcn.00470130
mov eax, dword [ebp - 0x38]
pop edx
call fcn.00470330
test al, al
jne 0x643bac
lea edx, [ebp - 0x3c]
mov eax, 0x64439c
call fcn.00470130
mov eax, dword [ebp - 0x3c]
push eax
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x43c]
call fcn.00470130
mov eax, dword [ebp - 0x40]
pop edx
call fcn.00470330
test al, al
jne 0x643bac
lea eax, [ebp - 0x10]
xor edx, edx
call fcn.00406f30
lea eax, [ebp - 0x4c]
call fcn.0057f824
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x48]
call fcn.00471c9c
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x44]
call fcn.00479f18
mov edx, dword [ebp - 0x44]
lea eax, [ebp - 0x10]
mov ecx, 0x6443b8
call fcn.004072b0
mov ecx, dword [ebp - 0x10]
mov dl, 1
mov eax, dword [0x548878]
call fcn.0054893c
mov dword [ebp - 0x28], eax
mov ecx, 0x6443ec
mov edx, 0x64440c
mov eax, dword [ebp - 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x5c]
test al, al
jne 0x643b9e
mov ecx, 0x6443ec
mov edx, 0x644430
mov eax, dword [ebp - 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x5c]
test al, al
jne 0x643b9e
mov ecx, 0x6443ec
mov edx, 0x64445c
mov eax, dword [ebp - 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x5c]
test al, al
jne 0x643b9e
mov ecx, 0x6443ec
mov edx, 0x644480
mov eax, dword [ebp - 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x5c]
test al, al
jne 0x643b9e
mov al, 1
call fcn.005b7304
mov eax, 0x6444a8
call fcn.006431b4
push 0
mov cl, 1
xor edx, edx
mov eax, dword [ebp - 0x18]
call fcn.00647a50
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x643bd7
mov eax, dword [ebp - 0x24]
call fcn.004047c4
cmp dword [ebp - 0x28], 0
je 0x643bcf
mov eax, dword [ebp - 0x28]
call fcn.004047c4
ret
Function at 0x64a38c
Capabilities:
Log keystrokes

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov esi, eax
push esi
call sub.user32.dll_IsIconic
test eax, eax
je 0x64a3a5
push 9
push esi
call sub.user32.dll_ShowWindow
call sub.user32.dll_GetForegroundWindow
cmp esi, eax
je 0x64a498
mov eax, dword [0x67d698]
cmp dword [eax], 2
jne 0x64a3c6
mov eax, dword [0x67ce18]
cmp dword [eax], 4
jg 0x64a3fa
mov eax, dword [0x67d698]
cmp dword [eax], 1
jne 0x64a480
mov eax, dword [0x67ce18]
cmp dword [eax], 4
jg 0x64a3fa
mov eax, dword [0x67ce18]
cmp dword [eax], 4
jne 0x64a480
mov eax, dword [0x67d33c]
cmp dword [eax], 0
jle 0x64a480
xor ebx, ebx
push 0
call sub.user32.dll_GetForegroundWindow
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov edi, eax
push 0
push esi
call sub.user32.dll_GetWindowThreadProcessId
mov ebp, eax
push 0xffffffffffffffff
push edi
push ebp
call sub.user32.dll_AttachThreadInput
test eax, eax
je 0x64a438
push esi
call sub.user32.dll_BringWindowToTop
push esi
call sub.user32.dll_SetForegroundWindow
call sub.user32.dll_GetForegroundWindow
cmp esi, eax
sete bl
test bl, bl
jne 0x64a48c
push 0
lea eax, [esp + 4]
push eax
push 0
push 0x2000
call sub.user32.dll_SystemParametersInfoW
push 2
push 0
push 0
push 0x2001
call sub.user32.dll_SystemParametersInfoW
push esi
call sub.user32.dll_BringWindowToTop
push esi
call sub.user32.dll_SetForegroundWindow
push 2
mov eax, dword [esp + 4]
push eax
push 0
push 0x2001
call sub.user32.dll_SystemParametersInfoW
jmp 0x64a48c
push esi
call sub.user32.dll_BringWindowToTop
push esi
call sub.user32.dll_SetForegroundWindow
call sub.user32.dll_GetForegroundWindow
cmp esi, eax
sete bl
jmp 0x64a49a
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x64a4a4
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406ec4
mov eax, dword [ebp - 8]
call fcn.00406ec4
xor eax, eax
push ebp
push 0x64a5f3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test eax, eax
je 0x64a4e2
sub eax, 4
mov eax, dword [eax]
dec eax
jge 0x64a4e9
mov al, 1
jmp 0x64a4f9
mov eax, dword [ebp - 8]
test eax, eax
je 0x64a4f5
sub eax, 4
mov eax, dword [eax]
dec eax
setl al
test al, al
jne 0x64a5b8
xor eax, eax
push ebp
push 0x64a5ac
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00471794
test al, al
je 0x64a529
mov eax, dword [ebp - 4]
call fcn.00406f68
push eax
call sub.KERNEL32.DLL_DeleteFileW
push 0
call sub.ole32.dll_CoInitialize
lea edx, [ebp - 0xc]
mov eax, dword [0x67d02c]
call fcn.0051f918
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov ecx, 0x64a604
call fcn.004090c8
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0xc]
mov ecx, 0x64a614
call fcn.004090c8
mov eax, dword [ebp - 8]
call fcn.00406f68
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [eax]
call dword [eax + 0x50]
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.00471c9c
mov eax, dword [ebp - 0x18]
call fcn.00406f68
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [eax]
call dword [eax + 0x24]
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
call fcn.00406f68
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 0x18]
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x64a5b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x64a5fa
lea eax, [ebp - 0x18]
call fcn.00406ecc
lea eax, [ebp - 0x14]
call fcn.00409084
lea eax, [ebp - 0x10]
call fcn.00409084
lea eax, [ebp - 0xc]
call fcn.00409084
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406ed4
ret
Function at 0x64a624
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffebc
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406ec4
xor eax, eax
push ebp
push 0x64a7a2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00471794
test al, al
jne 0x64a660
mov word [ebp - 6], 0
jmp 0x64a78c
xor eax, eax
push ebp
push 0x64a785
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x64a759
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x48b468]
call fcn.00491df0
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx]
cmp edx, 0
jne 0x64a6a5
cmp eax, 0x1000
jae 0x64a6bf
jmp 0x64a6a7
jge 0x64a6bf
mov word [ebp - 6], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.00405750
jmp 0x64a78c
lea edx, [ebp - 0x4c]
mov ecx, 0x40
mov eax, dword [ebp - 0xc]
call fcn.00491b04
cmp word [ebp - 0x4c], 0x5a4d
je 0x64a6ef
mov word [ebp - 6], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.00405750
jmp 0x64a78c
xor ecx, ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x14]
lea edx, [ebp - 0x144]
mov ecx, 0xf8
mov eax, dword [ebp - 0xc]
call fcn.00491b04
cmp dword [ebp - 0x144], 0x4550
je 0x64a730
mov word [ebp - 6], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.00405750
jmp 0x64a78c
movzx eax, word [ebp - 0x12e]
and ax, 0x2000
cmp ax, 0x2000
jne 0x64a749
mov word [ebp - 6], 2
jmp 0x64a74f
mov word [ebp - 6], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x64a769
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x64a78c
cmp dword [ebp - 0xc], 0
je 0x64a784
mov eax, dword [ebp - 0xc]
call fcn.004047c4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x64a7a9
lea eax, [ebp - 4]
call fcn.00406ecc
ret
Function at 0x64ad28
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x64aef2
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x64ad6e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40c]
call fcn.00507a48
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x64ad78
mov eax, dword [ebp - 4]
call fcn.00661dc8
push 4
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x460]
call fcn.004f8a4c
mov eax, dword [ebp - 8]
call fcn.00406f68
push eax
lea eax, [ebp - 0xc]
push eax
mov ecx, 0x64af0c
mov edx, 0x64afa8
mov eax, dword [ebp - 4]
call fcn.006532c0
mov eax, dword [ebp - 0xc]
call fcn.00406f68
push eax
mov eax, dword [ebp - 4]
call fcn.00501360
push eax
call sub.user32.dll_MessageBoxW
cmp eax, 6
jne 0x64aecf
mov eax, dword [ebp - 4]
call fcn.0065bd90
mov eax, dword [ebp - 4]
cmp byte [eax + 0x6dc], 0
jne 0x64ae1a
lea edx, [ebp - 0x10]
mov eax, dword [0x67d250]
mov eax, dword [eax]
call fcn.0051cba8
mov eax, dword [ebp - 0x10]
push eax
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.0064c304
lea eax, [ebp - 0x14]
mov edx, 0x64afc8
call fcn.00407230
mov eax, dword [ebp - 0x14]
pop edx
call fcn.0064a4a4
mov eax, dword [ebp - 4]
mov byte [eax + 0x640], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x410]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x38]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.005133bc
mov eax, dword [ebp - 4]
cmp dword [eax + 0x628], 0
je 0x64ae5f
mov eax, dword [ebp - 4]
add eax, 0x628
mov edx, dword [eax]
xor ecx, ecx
mov dword [eax], ecx
mov eax, edx
call fcn.004047c4
push 0x64b018
push 0x64b018
lea edx, [ebp - 0x18]
mov eax, 3
call fcn.00471048
mov eax, dword [ebp - 0x18]
push eax
push 0x64b018
push 0x64b028
push 0x64b040
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x630]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x668]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x1c]
call fcn.00471254
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x658]
mov ecx, 0x64b018
mov eax, dword [ebp - 4]
call fcn.0065fb80
push 0
call sub.KERNEL32.DLL_GetCurrentProcess
push eax
call sub.KERNEL32.DLL_TerminateProcess
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x64aef9
lea eax, [ebp - 0x1c]
mov edx, 5
call fcn.00406ed4
lea eax, [ebp - 8]
call fcn.00406ecc
ret
Function at 0x64fea4
Capabilities:
Get disk information
Get file attributes
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov ebx, edx
mov byte [ebp - 1], 0
xor eax, eax
push ebp
push 0x64ff3c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x64ff60
call sub.KERNEL32.DLL_OutputDebugStringW
mov eax, ebx
call fcn.00406f68
mov esi, eax
push esi
call sub.KERNEL32.DLL_GetDriveTypeW
cmp eax, 3
jne 0x64ff2e
push 0x64ff84
call sub.KERNEL32.DLL_OutputDebugStringW
push esi
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 1
je 0x64ff32
push 0x64ffa8
call sub.KERNEL32.DLL_OutputDebugStringW
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
mov eax, dword [0x67cf3c]
mov eax, dword [eax]
call eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp + 0xc]
jne 0x64ff26
cmp eax, dword [ebp + 8]
jae 0x64ff32
jmp 0x64ff28
jge 0x64ff32
mov byte [ebp - 1], 1
jmp 0x64ff32
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x64ff46
push 0x64ffcc
call sub.KERNEL32.DLL_OutputDebugStringW
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x652554
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x6526fd
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x652710
call sub.KERNEL32.DLL_OutputDebugStringW
xor eax, eax
mov dword [ebp - 4], eax
mov dl, 1
mov eax, dword [0x49f730]
call fcn.0049f9ec
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x6526db
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x652784
call sub.KERNEL32.DLL_OutputDebugStringW
mov edx, 0x80000002
mov eax, dword [ebp - 8]
call fcn.0049fa8c
mov edx, 0x652800
mov eax, dword [ebp - 8]
call fcn.0049fc1c
test al, al
je 0x6526c5
mov eax, dword [ebp - 8]
call fcn.0049fa5c
mov edx, 0x652898
mov eax, dword [ebp - 8]
call fcn.0049fc1c
test al, al
je 0x6526b4
push 0x6528d0
call sub.KERNEL32.DLL_OutputDebugStringW
mov edx, 0x65294c
mov eax, dword [ebp - 8]
call fcn.004a0568
test al, al
je 0x6526a8
xor eax, eax
push ebp
push 0x652652
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x65294c
mov eax, dword [ebp - 8]
call fcn.004a03f8
mov ebx, eax
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.00471048
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0xc]
mov edx, 0x652968
call fcn.004072b0
mov eax, dword [ebp - 0xc]
call fcn.00406f68
push eax
call sub.KERNEL32.DLL_OutputDebugStringW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x65268d
test ebx, ebx
je 0x652696
cmp ebx, 4
jne 0x65269f
mov dword [ebp - 4], 1
jmp 0x6526c5
mov dword [ebp - 4], 2
jmp 0x6526c5
push 0x652a00
call sub.KERNEL32.DLL_OutputDebugStringW
jmp 0x6526c5
push 0x652a64
call sub.KERNEL32.DLL_OutputDebugStringW
mov dword [ebp - 4], 2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6526e2
mov eax, dword [ebp - 8]
call fcn.004047c4
ret
Function at 0x659368
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
call sub.KERNEL32.DLL_GetTickCount_1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x680], 0
je 0x659399
mov edx, 0x659404
mov eax, 0x659448
call fcn.0057db20
jmp 0x6593ef
xor eax, eax
push ebp
push 0x6593c4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x67d250]
mov eax, dword [eax]
call fcn.0051c130
push 0x64
call sub.KERNEL32.DLL_Sleep
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x6593ce
call sub.KERNEL32.DLL_GetTickCount_1
mov ebx, eax
sub ebx, dword [ebp - 8]
cmp ebx, 0x1f40
jbe 0x65937c
mov edx, 0x659404
mov eax, 0x6594b0
call fcn.0057db20
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x659500
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
call sub.KERNEL32.DLL_GetTickCount_1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x690], 0
je 0x659531
mov edx, 0x65959c
mov eax, 0x6595e0
call fcn.0057db20
jmp 0x659587
xor eax, eax
push ebp
push 0x65955c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x67d250]
mov eax, dword [eax]
call fcn.0051c130
push 0x64
call sub.KERNEL32.DLL_Sleep
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x659566
call sub.KERNEL32.DLL_GetTickCount_1
mov ebx, eax
sub ebx, dword [ebp - 8]
cmp ebx, 0x1f40
jbe 0x659514
mov edx, 0x65959c
mov eax, 0x659654
call fcn.0057db20
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x6596b0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
call sub.KERNEL32.DLL_GetTickCount_1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x6b0], 0
je 0x6596e1
mov edx, 0x65974c
mov eax, 0x659790
call fcn.0057db20
jmp 0x659737
xor eax, eax
push ebp
push 0x65970c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x67d250]
mov eax, dword [eax]
call fcn.0051c130
push 0x64
call sub.KERNEL32.DLL_Sleep
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x659716
call sub.KERNEL32.DLL_GetTickCount_1
mov ebx, eax
sub ebx, dword [ebp - 8]
cmp ebx, 0x1f40
jbe 0x6596c4
mov edx, 0x65974c
mov eax, 0x659804
call fcn.0057db20
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret