joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6a71bc
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x6a730b
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.006a6fd8
lea eax, [ebp - 8]
call fcn.006a70e8
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x3c
call fcn.00407760
mov dword [ebp - 0x48], 0x3c
mov dword [ebp - 0x44], 0x800540
mov eax, 0x6a7318
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 4]
call fcn.0040b278
mov dword [ebp - 0x38], eax
mov eax, esi
call fcn.0040b278
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 8]
call fcn.0040b278
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 1
lea eax, [ebp - 0x48]
push eax
call sub.shell32.dll_ShellExecuteExW
test eax, eax
jne 0x6a7267
call sub.kernel32.dll_GetLastError
cmp eax, 0x4c7
jne 0x6a725d
call fcn.00428ff4
mov eax, 0x6a7330
call fcn.0060d1c0
cmp dword [ebp - 0x10], 0
jne 0x6a7277
mov eax, 0x6a735c
call fcn.0060d064
xor edx, edx
push ebp
push 0x6a72e9
push dword fs:[edx]
mov dword fs:[edx], esp
call fcn.006a6ce4
push 0x4ff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x10]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x6a7285
cmp eax, 0xffffffff
jne 0x6a72b2
mov eax, 0x6a73b0
call fcn.0060d1c0
call fcn.006a6ce4
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetExitCodeProcess
test eax, eax
jne 0x6a72d2
mov eax, 0x6a73f0
call fcn.0060d1c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6a72f0
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
ret
Function at 0x6ad9a0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x6ad9a8
push ecx
push ebx
xor eax, eax
push ebp
push 0x6adaf6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
call fcn.0060db4c
mov edx, dword [ebp - 0x10]
mov eax, 0x6d853c
call fcn.0040a5a8
lea eax, [ebp - 0x14]
mov ecx, dword [0x6d853c]
mov edx, 0x6adb10
call fcn.0040b4c8
mov eax, dword [ebp - 0x14]
call fcn.0061674c
mov eax, dword [0x6d0054]
cmp byte [eax], 0
je 0x6ada03
mov eax, dword [0x6d853c]
call fcn.00615e58
lea edx, [ebp - 0x18]
mov eax, dword [0x6d853c]
call fcn.005c4ebc
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 4]
mov ecx, 0x6adb58
call fcn.0040b4c8
push 0
mov eax, dword [ebp - 4]
call fcn.0040b278
push eax
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
jne 0x6ada9d
call sub.kernel32.dll_GetLastError
mov ebx, eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 4]
mov ax, 0x3d
call fcn.005cd844
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x28], eax
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x30]
call fcn.00423044
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x24], eax
lea edx, [ebp - 0x34]
mov eax, ebx
call fcn.005c86b0
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x20], eax
lea edx, [ebp - 0x28]
mov ecx, 2
mov ax, 0x81
call fcn.005cd814
mov ecx, dword [ebp - 0x1c]
mov dl, 1
mov eax, dword [0x41baa4]
call fcn.00429020
call fcn.004098c4
lea eax, [ebp - 8]
call fcn.00625b68
cmp dword [ebp - 8], 0
je 0x6adace
lea eax, [ebp - 0xc]
mov ecx, 0x6adb74
mov edx, dword [ebp - 4]
call fcn.0040b4c8
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.006ad948
mov eax, dword [ebp - 0xc]
call fcn.00625bc0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6adafd
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.0040a228
lea eax, [ebp - 0x1c]
mov edx, 7
call fcn.0040a228
ret

Function at 0x6b066c
Capabilities:
Hide graphical window

Disassembly:
mov byte [0x6d8831], 1
call fcn.0060fcf4
test al, al
jne 0x6b06be
push 5
mov eax, dword [0x6cff3c]
mov eax, dword [eax]
mov eax, dword [eax + 0x188]
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [0x6cff3c]
mov eax, dword [eax]
mov eax, dword [eax + 0x188]
push eax
call sub.user32.dll_SetForegroundWindow
push 0
push 1
push 1
mov eax, dword [0x6cff50]
mov eax, dword [eax + 0x15c]
mov cl, 2
xor edx, edx
call fcn.006b037c
ret

Function at 0x6b4020
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 4], eax
mov ecx, 3
lea ebx, [ebp - 8]
lea esi, [ebp - 0xc]
lea edi, [ebp - 4]
movzx eax, byte [esi]
movzx edx, byte [ebx]
sub eax, edx
imul dword [ebp - 0x10]
push ecx
mov ecx, 0xff
cdq
idiv ecx
pop ecx
movzx edx, byte [ebx]
add eax, edx
mov byte [edi], al
inc edi
inc esi
inc ebx
dec ecx
jne 0x6b4045
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x6b5e78
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
call sub.kernel32.dll_GetTickCount
mov ebx, eax
jmp 0x6b5ea4
call sub.kernel32.dll_GetTickCount
sub eax, ebx
cmp eax, 0x3e8
jae 0x6b5ead
call fcn.006b4ab8
mov eax, 0xa
call fcn.005c8ccc
call fcn.006b4ab8
call fcn.006b5e44
test al, al
jne 0x6b5e82
pop ebx
ret

Function at 0x6b63d4
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [0x6cf980]
cmp dword [eax], 0
je 0x6b647f
mov eax, dword [0x6cf980]
mov eax, dword [eax]
call fcn.0051b800
test al, al
je 0x6b647f
mov eax, dword [0x6cf980]
mov eax, dword [eax]
cmp byte [eax + 0x215], 0
je 0x6b6429
cmp byte [ebx + 0x3e1], 0
jne 0x6b6429
mov eax, dword [0x6cff3c]
mov eax, dword [eax]
mov eax, dword [eax + 0x188]
push eax
call sub.user32.dll_IsIconic
test eax, eax
je 0x6b642d
xor eax, eax
jmp 0x6b642f
mov al, 1
mov ebx, eax
mov eax, dword [0x6cf980]
mov eax, dword [eax]
call fcn.0051b42c
push 0xfffffffffffffff0
push eax
call sub.user32.dll_GetWindowLongW
test eax, 0x10000000
setne al
cmp bl, al
je 0x6b647f
test bl, bl
je 0x6b646b
push 5
mov eax, dword [0x6cf980]
mov eax, dword [eax]
call fcn.0051b42c
push eax
call sub.user32.dll_ShowWindow
jmp 0x6b647f
push 0
mov eax, dword [0x6cf980]
mov eax, dword [eax]
call fcn.0051b42c
push eax
call sub.user32.dll_ShowWindow
pop ebx
ret
Function at 0x6b6530
Capabilities:
Get system information on windows

Disassembly:
push ebx
push esi
add esp, 0xffffffd4
mov byte [0x6d87e9], 0
push 0x6b66bc
call sub.kernel32.dll_GetModuleHandleW
mov ebx, eax
push 0x6b66d8
push ebx
call fcn.00414030
mov esi, eax
test esi, esi
je 0x6b65d8
lea eax, [esp + 2]
push eax
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call esi
test eax, eax
je 0x6b65d8
cmp word [esp], 0
je 0x6b65d8
mov byte [0x6d87e9], 1
movzx eax, word [esp + 2]
sub ax, 0x14c
je 0x6b659c
sub ax, 0xb4
je 0x6b65a8
sub ax, 0x8464
je 0x6b65b4
sub ax, 0x2400
je 0x6b65c0
jmp 0x6b65cc
mov byte [0x6cf7b5], 1
jmp 0x6b6674
mov byte [0x6cf7b5], 3
jmp 0x6b6674
mov byte [0x6cf7b5], 2
jmp 0x6b6674
mov byte [0x6cf7b5], 4
jmp 0x6b6674
mov byte [0x6cf7b5], 0
jmp 0x6b6674
push 0x6b66f8
push ebx
call fcn.00414030
test eax, eax
je 0x6b6620
lea edx, [esp + 8]
push edx
call eax
push 0x6b6720
push ebx
call fcn.00414030
mov esi, eax
test esi, esi
je 0x6b662a
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call esi
test eax, eax
je 0x6b662a
cmp dword [esp + 4], 0
je 0x6b662a
mov byte [0x6d87e9], 1
jmp 0x6b662a
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetSystemInfo
movzx eax, word [esp + 8]
sub ax, 1
jb 0x6b6649
sub ax, 5
je 0x6b6652
sub ax, 3
je 0x6b665b
sub ax, 3
je 0x6b6664
jmp 0x6b666d
mov byte [0x6cf7b5], 1
jmp 0x6b6674
mov byte [0x6cf7b5], 3
jmp 0x6b6674
mov byte [0x6cf7b5], 2
jmp 0x6b6674
mov byte [0x6cf7b5], 4
jmp 0x6b6674
mov byte [0x6cf7b5], 0
cmp byte [0x6d87e9], 0
je 0x6b66b5
call fcn.0060c2a8
test al, al
je 0x6b66ae
push 0x6b6740
push ebx
call fcn.00414030
test eax, eax
je 0x6b66ae
push 0x6b6774
push 0x6b6794
call sub.kernel32.dll_GetModuleHandleW
push eax
call fcn.00414030
test eax, eax
jne 0x6b66b5
mov byte [0x6d87e9], 0
add esp, 0x2c
pop esi
pop ebx
ret

Function at 0x6b67b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push 0
push 1
lea eax, [ebp - 4]
push eax
mov ecx, 0x6b6820
mov edx, 0x80000002
xor eax, eax
call fcn.005c7a60
test eax, eax
jne 0x6b6819
mov dword [ebp - 8], 4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x6b6874
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x6b6810
cmp dword [ebp - 0xc], 4
jne 0x6b6810
cmp dword [ebp - 8], 4
jne 0x6b6810
movzx eax, word [ebp - 0x10]
mov word [0x6d8800], ax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
mov esp, ebp
pop ebp
ret
Function at 0x6b6a1c
Capabilities:
Check os version

Disassembly:
add esp, 0xfffffdd0
mov dword [esp], 0x114
push esp
call sub.kernel32.dll_GetVersionExW
test eax, eax
je 0x6b6acb
movzx eax, byte [esp + 4]
shl eax, 0x18
movzx edx, byte [esp + 8]
shl edx, 0x10
or eax, edx
movzx edx, word [esp + 0xc]
or eax, edx
mov dword [0x6d87fc], eax
cmp byte [0x6d87e8], 0
je 0x6b6acb
mov eax, dword [esp + 4]
cmp eax, 5
jb 0x6b6abc
mov dword [esp + 0x114], 0x11c
lea eax, [esp + 0x114]
push eax
call sub.kernel32.dll_GetVersionExW
test eax, eax
je 0x6b6acb
movzx eax, byte [esp + 0x228]
shl eax, 8
movzx edx, byte [esp + 0x22a]
or ax, dx
mov word [0x6d8800], ax
movzx eax, byte [esp + 0x22e]
mov byte [0x6d8802], al
movzx eax, word [esp + 0x22c]
mov word [0x6d8804], ax
jmp 0x6b6acb
cmp eax, 4
jne 0x6b6acb
call fcn.006b67b0
call fcn.006b688c
add esp, 0x230
ret

Function at 0x6b7a6c
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x6b7b14
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x6b7b30
push ebx
push 0x6b7b40
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.0040b550
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00407760
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0040b278
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x6b7af2
mov eax, dword [0x6cff50]
mov eax, dword [eax + 0x20c]
call fcn.006b79c0
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle
mov ebx, dword [ebp - 0x58]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6b7b1b
lea eax, [ebp - 4]
call fcn.0040a1c8
ret
Function at 0x6b84e0
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x6b84e8
push ecx
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x6b86ef
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
call fcn.005c7630
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 4]
call fcn.0060d970
mov ebx, eax
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.005c4ebc
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 8]
mov ecx, 0x6b870c
call fcn.0040b4c8
test bl, bl
jne 0x6b856f
xor eax, eax
push ebp
push 0x6b8565
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 8]
xor eax, eax
call fcn.0060decc
xor ecx, ecx
mov edx, dword [ebp - 4]
xor eax, eax
call fcn.0060decc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x6b856f
push 0
mov eax, dword [ebp - 8]
call fcn.0040b278
mov ebx, eax
push ebx
mov eax, dword [0x6d88dc]
call fcn.0040b278
push eax
call sub.kernel32.dll_CopyFileW
test eax, eax
jne 0x6b85a0
mov eax, dword [0x6cff50]
mov eax, dword [eax + 0x208]
call fcn.006b79c0
push 0x80
push ebx
call sub.kernel32.dll_SetFileAttributesW
push 0
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [0x6d4634]
push eax
push 0
mov ecx, 0x6b8724
mov edx, 0x6b8728
xor eax, eax
call fcn.00414db8
mov dword [ebp - 0xc], eax
push 0x6b7b84
push 0xfffffffffffffffc
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_SetWindowLongW
mov dword [0x6d8908], eax
xor eax, eax
push ebp
push 0x6b86b3
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x97
push 0
push 0
push 0
push 0
push 0
mov eax, dword [0x6cff3c]
mov eax, dword [eax]
mov eax, dword [eax + 0x188]
push eax
call sub.user32.dll_SetWindowPos
lea eax, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x30]
xor eax, eax
call fcn.005c6fc8
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0x11
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
lea edx, [ebp - 0x2c]
mov ecx, 1
mov eax, 0x6b8744
call fcn.00424510
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
call fcn.005c6ea8
mov edx, dword [ebp - 0x34]
pop eax
call fcn.0040b470
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.006b7a6c
mov dword [ebp - 0x10], eax
call fcn.006b7b48
test al, al
jne 0x6b8693
push 0x4ff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x10]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x6b8671
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6b86ba
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_DestroyWindow
ret
Function at 0x6b9ab4
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x6b9d6a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x6cff3c]
mov eax, dword [eax]
mov edx, 0x6b9d84
call fcn.005b8268
push 5
mov eax, dword [0x6cff3c]
mov eax, dword [eax]
mov eax, dword [eax + 0x188]
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
push ebp
push 0x6b9d31
push dword fs:[edx]
mov dword fs:[edx], esp
call fcn.006b08f8
lea eax, [ebp - 0x10]
call fcn.005c74a8
mov eax, dword [ebp - 0x10]
call fcn.00424038
lea edx, [ebp - 0x14]
xor eax, eax
call fcn.005c6fc8
mov edx, dword [ebp - 0x14]
mov eax, 0x6d88dc
call fcn.0040a5a8
call fcn.006b7d54
lea ecx, [ebp - 0x18]
mov edx, 0x6b9da4
mov eax, dword [0x6d88dc]
call fcn.005c4fa8
mov edx, dword [ebp - 0x18]
mov eax, 0x6d88e0
call fcn.0040a5a8
lea ecx, [ebp - 0x1c]
mov edx, 0x6b9dbc
mov eax, dword [0x6d88dc]
call fcn.005c4fa8
mov edx, dword [ebp - 0x1c]
mov eax, 0x6d88e4
call fcn.0040a5a8
push 2
push 0
push 1
mov ecx, dword [0x6d88dc]
mov dl, 1
mov eax, dword [0x5cb998]
call fcn.005cc2f4
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x6b9c0c
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 4]
mov edx, dword [ebp - 0x24]
sub edx, 8
mov eax, dword [ebp - 4]
call fcn.005cc2b4
lea edx, [ebp - 0xc]
mov ecx, 8
mov eax, dword [ebp - 4]
call fcn.005cc28c
cmp dword [ebp - 0xc], 0x67734d49
je 0x6b9be7
mov cl, 1
xor edx, edx
mov eax, dword [0x6d88e4]
call fcn.005cd9f8
jmp 0x6b9bf6
mov cl, 1
mov edx, dword [ebp - 8]
mov eax, dword [0x6d88dc]
call fcn.005cd9f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6b9c13
mov eax, dword [ebp - 4]
call fcn.00408444
ret
Function at 0x6b9f00
Capabilities:
Enumerate files on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 0x25c], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x6ba03d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x25c]
mov ecx, 0x6ba058
mov edx, ebx
call fcn.0040b4c8
mov eax, dword [ebp - 0x25c]
call fcn.0040b278
push eax
call sub.kernel32.dll_FindFirstFileW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x6ba017
xor eax, eax
push ebp
push 0x6ba010
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x6ba074
lea eax, [ebp - 0x22c]
mov ecx, 5
call fcn.004241b8
test eax, eax
jne 0x6b9fe1
test byte [ebp - 0x258], 0x10
jne 0x6b9fe1
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x22c]
mov ecx, 0x104
call fcn.0040b318
mov ecx, dword [ebp - 0x260]
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040b4c8
mov esi, dword [ebp - 0x258]
test esi, 1
je 0x6b9fd9
and esi, 0xfffffffe
push esi
mov eax, dword [ebp - 4]
call fcn.0040b278
push eax
call sub.kernel32.dll_SetFileAttributesW
mov eax, dword [ebp - 4]
call fcn.00423a38
lea eax, [ebp - 0x258]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x6b9f71
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6ba017
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindClose
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6ba044
lea eax, [ebp - 0x260]
mov edx, 2
call fcn.0040a228
lea eax, [ebp - 4]
call fcn.0040a1c8
ret
Function at 0x6ba080
Capabilities:
Check if file exists
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x6ba17e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
call fcn.0040a1c8
lea edx, [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.005c5440
xor edi, edi
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x18], 0
lea edx, [ebp - 0x1c]
xor ecx, ecx
mov eax, 0x6ba198
call fcn.00424510
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.0040b4c8
mov eax, dword [ebp - 8]
call fcn.0040b278
push eax
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x6ba11e
test esi, 0x10
jne 0x6ba14e
test esi, 1
je 0x6ba11e
and esi, 0xfffffffe
push esi
mov eax, dword [ebp - 8]
call fcn.0040b278
push eax
call sub.kernel32.dll_SetFileAttributesW
push 1
mov eax, dword [ebp - 8]
call fcn.0040b278
push eax
mov eax, dword [ebp - 0xc]
call fcn.0040b278
push eax
call sub.kernel32.dll_MoveFileExW
test eax, eax
je 0x6ba148
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.0040a5a8
jmp 0x6ba15b
inc edi
cmp edi, 0xa
je 0x6ba15b
inc ebx
cmp ebx, 0x3e8
jne 0x6ba0bf
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6ba185
lea eax, [ebp - 0x14]
call fcn.0040a1c8
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040a228
ret
Function at 0x403297
Capabilities:
Get common file path

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push 0x400
call fcn.00407fb0
mov dword [esp], eax
push dword [0x40e7a8]
push dword [0x40e7a8]
call fcn.0040811d
lea eax, [esp + 8]
push eax
call fcn.0040ab90
push dword [esp]
push 0
push 0x40d01e
push dword [esp + 0x10]
call sub.KERNEL32.dll_GetTempFileNameA
push dword [0x40e7a8]
push dword [0x40e7a8]
push dword [esp + 8]
call fcn.00407ec0
lea eax, [0x40e4b0]
push eax
call fcn.0040ab90
push dword [esp]
call fcn.00407fd0
push dword [0x40e4b0]
call fcn.004081ac
push dword [0x40e4b0]
call fcn.004081ba
push dword [0x40e7a8]
push dword [0x40e7a8]
call fcn.00408055
lea eax, [0x40e44c]
push eax
call fcn.0040ab90
push dword [esp + 0x14]
pop eax
call fcn.00407ff0
push eax
xor ebx, ebx
cmp ebx, dword [esp]
jne 0x403370
mov edx, dword [0x40e4b0]
push dword [0x40e7a8]
call fcn.0040ac40
lea eax, [0x40e44c]
push eax
call fcn.0040ab90
mov dword [esp + 0xc], 2
jmp 0x403382
mov ebx, 1
cmp ebx, dword [esp]
jne 0x403382
mov dword [esp + 0xc], 1
pop eax
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 8]
push ebx
pop eax
call fcn.00407ff0
mov dword [0x40e47c], eax
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 8]
inc ebx
push ebx
pop eax
call fcn.00407ff0
mov dword [0x40e3e0], eax
mov eax, 1
jmp 0x4033b5
push dword [esp + 4]
call fcn.0040aca0
add esp, 0xc
pop ebx
ret 4
Function at 0x4037f1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
xor eax, eax
push eax
push eax
mov edx, dword [esp + 0x10]
lea ecx, [esp]
call fcn.00404060
push 0xa
push dword [esp + 4]
push dword [esp + 0x14]
call sub.KERNEL32.dll_FindResourceA
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
je 0x403842
push dword [esp + 4]
push dword [esp + 0x10]
call sub.KERNEL32.dll_LoadResource
mov dword [0x40e3e4], eax
push dword [esp + 4]
push dword [esp + 0x10]
call sub.KERNEL32.dll_SizeofResource
mov dword [0x40e3f8], eax
mov eax, dword [esp + 4]
jmp 0x40384a
push dword [esp]
call fcn.0040aca0
add esp, 8
ret 8
Function at 0x404af1
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [esp + 0x10], ebx
je 0x404b40
push dword [esp + 0x10]
push 0x404a6f
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x40e4dc]
cmp esi, ebx
je 0x404b94
mov edi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x404b38
cmp byte [esi + 0x10], bl
je 0x404b38
push 3
push ebx
push ebx
push ebx
push ebx
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
mov esi, edi
cmp edi, ebx
jne 0x404b15
jmp 0x404b94
mov esi, dword [0x40e4dc]
cmp esi, ebx
je 0x404b94
push ebp
mov ebp, dword [esi]
lea edi, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi], eax
jne 0x404b8d
cmp byte [esi + 0x11], bl
je 0x404b6a
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], bl
je 0x404b80
push 3
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
push edi
push 0x40e4dc
call fcn.0040a87d
pop ecx
pop ecx
mov esi, ebp
cmp ebp, ebx
jne 0x404b4b
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x405fb4
Capabilities:
Get graphical window text

Disassembly:
push edi
push dword [esp + 8]
push dword [0x40e818]
call fcn.0040a1aa
mov edi, eax
test edi, edi
je 0x406016
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x405fdd
push dword [esp + 0xc]
push edi
call eax
jmp 0x406016
push ebx
push esi
push dword [edi]
call dword [sym.imp.USER32.DLL_GetWindowTextLengthA]
push dword [esp + 0x14]
mov esi, eax
push esi
call fcn.0040add0
mov ebx, eax
lea eax, [esi + 1]
push eax
push ebx
mov byte [ebx], 0
push dword [edi]
call dword [sym.imp.USER32.DLL_GetWindowTextA]
push ebx
call sub.MSVCRT.dll_strlen
pop ecx
sub esi, eax
push esi
call fcn.0040af00
pop esi
pop ebx
pop edi
ret 8

Function at 0x40633f
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x130
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0x1c]
push eax
mov ebx, 0xc8
mov dword [ebp - 0x1c], 0x94
call edi
test eax, eax
je 0x406428
mov eax, dword [ebp - 0xc]
dec eax
je 0x40640b
dec eax
jne 0x406428
lea eax, [ebp - 0xb8]
push eax
xor esi, esi
mov dword [ebp - 0xb8], 0x9c
call edi
test eax, eax
je 0x40639e
cmp byte [ebp - 0x1e], 1
jne 0x40639e
inc esi
mov eax, dword [ebp - 0x18]
sub eax, 3
je 0x406407
dec eax
je 0x406403
dec eax
je 0x4063e1
dec eax
jne 0x406428
mov eax, dword [ebp - 0x14]
sub eax, 0
je 0x4063d5
dec eax
je 0x4063c9
dec eax
jne 0x406428
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x5f]
jmp 0x406428
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x55]
jmp 0x406428
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x4b]
jmp 0x406428
mov eax, dword [ebp - 0x14]
sub eax, 0
je 0x4063ff
dec eax
je 0x4063fb
dec eax
jne 0x406428
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x41]
jmp 0x406428
push 0x3c
jmp 0x406427
push 0x32
jmp 0x406427
push 0x14
jmp 0x406427
push 5
jmp 0x406427
cmp dword [ebp - 0x14], 0
je 0x406425
cmp dword [ebp - 0x14], 0xa
je 0x406421
cmp dword [ebp - 0x14], 0x5a
jne 0x406428
push 0x28
jmp 0x406427
push 0x1e
jmp 0x406427
push 0xa
pop ebx
pop edi
pop esi
mov eax, ebx
pop ebx
add ebp, 0x78
leave
ret