joyce8/EMBER2024-capa huggingface dataset:
Function at 0x479690
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x108], edx
mov esi, eax
xor eax, eax
push ebp
push 0x479722
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x104]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
mov ebx, eax
test ebx, ebx
jle 0x4796f8
cmp ebx, 0x104
jge 0x4796f8
lea eax, [ebp - 0x108]
lea edx, [ebp - 0x104]
mov ecx, 0x104
call fcn.0040355c
mov eax, dword [ebp - 0x108]
mov edx, esi
call fcn.004795b8
jmp 0x479709
mov eax, 0x479738
call fcn.00453cbc
mov eax, esi
call fcn.00403400
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x479729
lea eax, [ebp - 0x108]
call fcn.00403400
ret

Function at 0x47974c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x47989a
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004795b8
lea eax, [ebp - 0xc]
call fcn.00479690
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x3c
call fcn.00402934
mov dword [ebp - 0x48], 0x3c
mov dword [ebp - 0x44], 0x800540
mov eax, 0x4798a8
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 8]
call fcn.00403738
mov dword [ebp - 0x38], eax
mov eax, esi
call fcn.00403738
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0xc]
call fcn.00403738
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 1
lea eax, [ebp - 0x48]
push eax
call sub.shell32.dll_ShellExecuteExA
test eax, eax
jne 0x4797f8
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x4c7
jne 0x4797ee
call fcn.00409030
mov eax, 0x4798b8
call fcn.00453c04
cmp dword [ebp - 0x10], 0
jne 0x479808
mov eax, 0x4798d0
call fcn.00453aac
xor edx, edx
push ebp
push 0x479878
push dword fs:[edx]
mov dword fs:[edx], esp
call fcn.004792d8
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x10]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x479816
inc eax
jne 0x479841
mov eax, 0x4798fc
call fcn.00453c04
call fcn.004792d8
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetExitCodeProcess
test eax, eax
jne 0x479861
mov eax, 0x479920
call fcn.00453c04
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47987f
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
Function at 0x479934
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4799ff
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, 0x4792c8
call fcn.00479a20
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4799d8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0xc], 0
lea edx, [ebp - 0x10]
xor ecx, ecx
mov eax, 0x479a18
call fcn.00407d44
mov edx, dword [ebp - 8]
mov eax, dword [reloc.user32.dll_MessageBeep]
call fcn.00424714
call fcn.004792d8
call sub.user32.dll_GetFocus
mov edx, dword [reloc.user32.dll_MessageBeep]
cmp eax, dword [edx + 0x20]
jne 0x4799bb
push 0x7a
call sub.user32.dll_GetKeyState
test ax, ax
jl 0x4799c2
call sub.user32.dll_WaitMessage
jmp 0x47999a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4799df
mov eax, dword [ebp - 4]
call fcn.00402b58
ret

Function at 0x4803c8
Capabilities:
Hide graphical window

Disassembly:
mov byte [0x49e48d], 1
call fcn.00455d80
test al, al
jne 0x48040a
push 5
mov eax, dword [reloc.user32.dll_MessageBeep]
mov eax, dword [eax + 0x20]
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [reloc.user32.dll_MessageBeep]
mov eax, dword [eax + 0x20]
push eax
call sub.user32.dll_SetForegroundWindow
push 0
push 1
push 1
mov cl, 2
xor edx, edx
mov eax, dword [0x49dd78]
call fcn.004802d4
ret

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

Disassembly:
push ebx
call sub.kernel32.dll_GetTickCount
mov ebx, eax
jmp 0x484868
call sub.kernel32.dll_GetTickCount
sub eax, ebx
cmp eax, 0x3e8
jae 0x484871
call fcn.00483894
mov eax, 0xa
call fcn.0042f0c4
call fcn.00483894
call fcn.00484808
test al, al
jne 0x484846
pop ebx
ret

Function at 0x484d28
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
cmp dword [0x49e0ac], 0
je 0x484dbf
mov eax, dword [0x49e0ac]
call fcn.004187c8
test al, al
je 0x484dbf
mov eax, dword [0x49e0ac]
cmp byte [eax + 0xc7], 0
je 0x484d6f
cmp byte [ebx + 0x1b9], 0
jne 0x484d6f
mov eax, dword [reloc.user32.dll_MessageBeep]
mov eax, dword [eax + 0x20]
push eax
call sub.user32.dll_IsIconic
test eax, eax
je 0x484d73
xor eax, eax
jmp 0x484d75
mov al, 1
mov ebx, eax
push 0xfffffffffffffff0
mov eax, dword [0x49e0ac]
call fcn.00418630
push eax
call sub.user32.dll_GetWindowLongA
test eax, 0x10000000
setne al
cmp bl, al
je 0x484dbf
test bl, bl
je 0x484dad
push 5
mov eax, dword [0x49e0ac]
call fcn.00418630
push eax
call sub.user32.dll_ShowWindow
jmp 0x484dbf
push 0
mov eax, dword [0x49e0ac]
call fcn.00418630
push eax
call sub.user32.dll_ShowWindow
pop ebx
ret
Function at 0x484e68
Capabilities:
Get system information on windows

Disassembly:
push ebx
push esi
add esp, 0xffffffd8
mov byte [0x49e446], 0
push 0x484f40
call sub.kernel32.dll_GetModuleHandleA_1
mov ebx, eax
push 0x484f50
push ebx
call sub.kernel32.dll_GetProcAddress
test eax, eax
je 0x484ef4
lea edx, [esp + 4]
push edx
call eax
push 0x484f64
push ebx
call sub.kernel32.dll_GetProcAddress
mov esi, eax
test esi, esi
je 0x484efe
push esp
call sub.kernel32.dll_GetCurrentProcess
push eax
call esi
test eax, eax
je 0x484efe
cmp dword [esp], 0
je 0x484efe
call fcn.00452e60
test al, al
je 0x484efe
push 0x484f74
push ebx
call sub.kernel32.dll_GetProcAddress
test eax, eax
je 0x484efe
push 0x484f90
push 0x484fa0
call sub.kernel32.dll_GetModuleHandleA_1
push eax
call sub.kernel32.dll_GetProcAddress
test eax, eax
je 0x484efe
mov byte [0x49e446], 1
jmp 0x484efe
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ax, word [esp + 4]
sub ax, 1
jb 0x484f17
sub ax, 5
je 0x484f20
sub ax, 3
je 0x484f29
jmp 0x484f32
mov byte [0x49bc94], 1
jmp 0x484f39
mov byte [0x49bc94], 3
jmp 0x484f39
mov byte [0x49bc94], 2
jmp 0x484f39
mov byte [0x49bc94], 0
add esp, 0x28
pop esi
pop ebx
ret

Function at 0x484fb0
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, 0x485020
mov edx, 0x80000002
xor eax, eax
call fcn.0042e26c
test eax, eax
jne 0x485019
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 0x48504c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x485010
cmp dword [ebp - 0xc], 4
jne 0x485010
cmp dword [ebp - 8], 4
jne 0x485010
mov ax, word [ebp - 0x10]
mov word [0x49e45c], ax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
mov esp, ebp
pop ebp
ret

Function at 0x485194
Capabilities:
Check os version

Disassembly:
add esp, 0xfffffed0
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x485246
xor eax, eax
mov al, byte [esp + 4]
shl eax, 0x18
xor edx, edx
mov dl, byte [esp + 8]
shl edx, 0x10
or eax, edx
movzx edx, word [esp + 0xc]
or eax, edx
mov dword [0x49e458], eax
cmp byte [0x49e445], 0
je 0x485246
mov eax, dword [esp + 4]
cmp eax, 5
jl 0x485237
mov dword [esp + 0x94], 0x9c
lea eax, [esp + 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x485246
xor eax, eax
mov al, byte [esp + 0x128]
shl eax, 8
xor edx, edx
mov dl, byte [esp + 0x12a]
or ax, dx
mov word [0x49e45c], ax
mov al, byte [esp + 0x12e]
mov byte [0x49e45e], al
mov ax, word [esp + 0x12c]
mov word [0x49e460], ax
jmp 0x485246
cmp eax, 4
jne 0x485246
call fcn.00484fb0
call fcn.00485058
add esp, 0x130
ret
Function at 0x48f508
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x48f6a9
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 0x10]
mov ecx, 0x200
xor edx, edx
call fcn.004034e0
push 0
xor eax, eax
mov al, byte [ebp + 8]
mov eax, dword [eax*4 + 0x49c104]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00403738
mov ecx, eax
mov edx, edi
mov eax, ebx
call fcn.0042e26c
test eax, eax
jne 0x48f68e
xor edx, edx
push ebp
push 0x48f683
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [esi]
xor ecx, ecx
mov edx, dword [esi + 4]
call fcn.00436f7c
xor ebx, ebx
mov eax, dword [ebp - 0x10]
call fcn.00403574
mov dword [ebp - 0x18], eax
cmp byte [ebp + 8], 0
je 0x48f5c0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
call fcn.00403744
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegEnumKeyExA
jmp 0x48f5df
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
call fcn.00403744
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegEnumValueA
sub eax, 1
jb 0x48f62d
sub eax, 0xe9
je 0x48f5f2
sub eax, 0x19
je 0x48f66c
jmp 0x48f626
mov eax, dword [ebp - 0x10]
call fcn.00403574
cmp eax, 0x10000
jl 0x48f60b
call fcn.004031bc
jmp 0x48f68e
mov eax, dword [ebp - 0x10]
call fcn.00403574
mov ecx, eax
add ecx, ecx
lea eax, [ebp - 0x10]
xor edx, edx
call fcn.004034e0
jmp 0x48f58e
call fcn.004031bc
jmp 0x48f68e
lea ecx, [ebx + 1]
mov eax, dword [esi]
mov edx, dword [esi + 4]
call fcn.00436f7c
lea eax, [ebp - 0x10]
call fcn.00403744
mov edx, eax
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
call fcn.004034e0
lea ecx, [ebp - 0x24]
mov eax, esi
mov edx, ebx
call fcn.0044399c
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0x14]
call fcn.00435ecc
inc ebx
jmp 0x48f58e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48f68a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48f6b0
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00403420
ret
Function at 0x497c88
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x497d2b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x497d44
push ebx
push 0x497d50
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.00403634
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00402934
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.00403738
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x497d09
mov eax, dword [0x49ddfc]
call fcn.00497be0
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
mov ebx, dword [ebp - 0x58]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x497d32
lea eax, [ebp - 4]
call fcn.00403400
ret
Function at 0x498538
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x498709
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
call fcn.0042de68
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00454024
test al, al
jne 0x49859f
xor eax, eax
push ebp
push 0x498595
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
xor eax, eax
call fcn.00454498
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49859f
push 0
mov eax, dword [ebp - 4]
call fcn.00403738
push eax
mov eax, dword [0x49e540]
call fcn.00403738
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
jne 0x4985c8
mov eax, dword [0x49ddf8]
call fcn.00497be0
push 0x80
mov eax, dword [ebp - 4]
call fcn.00403738
push eax
call sub.kernel32.dll_SetFileAttributesA
push 0
mov eax, dword [0x49d014]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x498718
push 0x49871c
push 0
call sub.user32.dll_CreateWindowExA
mov dword [ebp - 8], eax
push 0x497d90
push 0xfffffffffffffffc
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_SetWindowLongA
mov dword [0x49e56c], eax
xor eax, eax
push ebp
push 0x4986dc
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x97
push 0
push 0
push 0
push 0
push 0
mov eax, dword [reloc.user32.dll_MessageBeep]
mov eax, dword [eax + 0x20]
push eax
call sub.user32.dll_SetWindowPos
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x24]
xor eax, eax
call fcn.0042d89c
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0
lea edx, [ebp - 0x20]
mov ecx, 1
mov eax, 0x49872c
call fcn.00407d44
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x24]
call fcn.0042d77c
mov edx, dword [ebp - 0x24]
pop eax
call fcn.0040357c
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00497c88
mov dword [ebp - 0xc], eax
call fcn.00497d54
test al, al
jne 0x4986bc
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0xc]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x49869c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4986e3
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_DestroyWindow
ret
Function at 0x499644
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4998a9
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x4998c0
mov eax, dword [reloc.user32.dll_MessageBeep]
call fcn.00424714
push 5
mov eax, dword [reloc.user32.dll_MessageBeep]
mov eax, dword [eax + 0x20]
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
push ebp
push 0x499875
push dword fs:[edx]
mov dword fs:[edx], esp
call fcn.00480610
lea eax, [ebp - 0x10]
call fcn.0042dd14
mov eax, dword [ebp - 0x10]
call fcn.004076f8
lea edx, [ebp - 0x10]
xor eax, eax
call fcn.0042d89c
mov edx, dword [ebp - 0x10]
mov eax, 0x49e540
call fcn.00403450
call fcn.00497f30
lea ecx, [ebp - 0x10]
mov edx, 0x4998d4
mov eax, dword [0x49e540]
call fcn.0042c948
mov edx, dword [ebp - 0x10]
mov eax, 0x49e544
call fcn.00403450
lea ecx, [ebp - 0x10]
mov edx, 0x4998e4
mov eax, dword [0x49e540]
call fcn.0042c948
mov edx, dword [ebp - 0x10]
mov eax, 0x49e548
call fcn.00403450
push 2
push 0
push 1
mov ecx, dword [0x49e540]
mov dl, 1
mov eax, 0x450c14
call int.00450e70
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49978c
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 4]
mov edx, dword [ebp - 0x18]
sub edx, 8
mov eax, dword [ebp - 4]
call fcn.00450e34
lea edx, [ebp - 0xc]
mov ecx, 8
mov eax, dword [ebp - 4]
call fcn.00450e0c
cmp dword [ebp - 0xc], 0x67734d49
je 0x499767
mov cl, 1
xor edx, edx
mov eax, dword [0x49e548]
call fcn.00451cf4
jmp 0x499776
mov cl, 1
mov edx, dword [ebp - 8]
mov eax, dword [0x49e540]
call fcn.00451cf4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x499793
mov eax, dword [ebp - 4]
call fcn.00402b58
ret
Function at 0x49998c
Capabilities:
Enumerate files on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x14c], edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x499aca
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x148]
push eax
mov edx, ebx
lea eax, [ebp - 0x14c]
call fcn.00403494
lea eax, [ebp - 0x14c]
mov edx, 0x499ae0
call fcn.0040357c
mov eax, dword [ebp - 0x14c]
call fcn.00403738
push eax
call sub.kernel32.dll_FindFirstFileA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x499aa9
xor eax, eax
push ebp
push 0x499aa2
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x499af0
lea eax, [ebp - 0x11c]
mov ecx, 5
call fcn.004078a8
test eax, eax
jne 0x499a73
test byte [ebp - 0x148], 0x10
jne 0x499a73
lea eax, [ebp - 0x14c]
lea edx, [ebp - 0x11c]
mov ecx, 0x104
call fcn.0040355c
mov ecx, dword [ebp - 0x14c]
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004035c0
mov esi, dword [ebp - 0x148]
test esi, 1
je 0x499a6b
and esi, 0xfffffffe
push esi
mov eax, dword [ebp - 8]
call fcn.00403738
push eax
call sub.kernel32.dll_SetFileAttributesA
mov eax, dword [ebp - 8]
call fcn.004073a0
lea eax, [ebp - 0x148]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x499a03
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x499aa9
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_FindClose
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x499ad1
lea eax, [ebp - 0x14c]
call fcn.00403400
lea eax, [ebp - 8]
call fcn.00403400
ret
Function at 0x499af8
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 - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x499bee
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00403400
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0042cda4
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, 0x499c04
call fcn.00407d44
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.004035c0
mov eax, dword [ebp - 0x10]
call fcn.00403738
push eax
call sub.kernel32.dll_GetFileAttributesA
mov esi, eax
cmp esi, 0xffffffff
je 0x499b96
test esi, 0x10
jne 0x499bc6
test esi, 1
je 0x499b96
and esi, 0xfffffffe
push esi
mov eax, dword [ebp - 0x10]
call fcn.00403738
push eax
call sub.kernel32.dll_SetFileAttributesA
push 1
mov eax, dword [ebp - 0x10]
call fcn.00403738
push eax
mov eax, dword [ebp - 4]
call fcn.00403738
push eax
call sub.kernel32.dll_MoveFileExA
test eax, eax
je 0x499bc0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
call fcn.00403494
jmp 0x499bd3
inc edi
cmp edi, 0xa
je 0x499bd3
inc ebx
cmp ebx, 0x3e8
jne 0x499b37
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x499bf5
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00403420
ret
Function at 0x1e213620
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add byte [eax], al
and byte [ebp - 0x6b8], 0
and byte [ebp - 0x6b7], 0
mov byte [ebp - 0x6b6], 0x9b
and byte [ebp - 0x6b5], 0
mov byte [ebp - 0x6b4], 0x33
mov byte [ebp - 0x6b3], 0x16
mov byte [ebp - 0x6b2], 0xd
mov byte [ebp - 0x6b1], 0x10
invalid
test dword [eax - 7], edx
invalid
invalid

Function at 0x1e213d40
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, dword [ebp - 0x700]
inc eax
mov dword [ebp - 0x700], eax
cmp dword [ebp - 0x700], 5
jge 0x1e213d7a
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
movsx ecx, byte [ebp - 0x24]
xor eax, ecx
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
not eax
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
jmp 0x1e213d24
call fcn.1e212924
invalid
Function at 0x40785b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x417400]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00406549
and dword [ebp - 0x14], 0
cmp dword [0x445cd8], 0
mov dword [ebp - 0x18], eax
jne 0x40790e
push 0x401e7c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4079b6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401e70
push ebx
call edi
test eax, eax
je 0x4079b6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x401e60
push ebx
mov dword [0x445cd8], eax
call edi
push eax
call esi
push 0x401e4c
push ebx
mov dword [0x445cdc], eax
call edi
push eax
call esi
push 0x401e30
push ebx
mov dword [0x445ce0], eax
call edi
push eax
call esi
mov dword [0x445ce8], eax
test eax, eax
je 0x40790e
push 0x401e18
push ebx
call edi
push eax
call esi
mov dword [0x445ce4], eax
mov eax, dword [0x445ce4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x407967
cmp dword [0x445ce8], ecx
je 0x407967
push eax
call esi
push dword [0x445ce8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x407967
test ebx, ebx
je 0x407967
call edi
test eax, eax
je 0x40795e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40795e
test byte [ebp - 8], 1
jne 0x407967
or dword [ebp + 0x10], 0x200000
jmp 0x40799a
mov eax, dword [0x445cdc]
cmp eax, dword [ebp - 0x18]
je 0x40799a
push eax
call esi
test eax, eax
je 0x40799a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40799a
mov eax, dword [0x445ce0]
cmp eax, dword [ebp - 0x18]
je 0x40799a
push eax
call esi
test eax, eax
je 0x40799a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x445cd8]
call esi
test eax, eax
je 0x4079b6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4079b8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407bd5
leave
ret

Function at 0x407bd5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x417400]
jne 0x407bdf
repz ret
jmp fcn.0040bc1c
Function at 0x4149d0
Capabilities:
Access the windows event log
Connect pipe
Delete directory
Delete file
Get common file path
Get uefi variable
Read pipe
Write pipe

Disassembly:
mov eax, 0x1004
call fcn.0040eec0
cmp dword [0x2b6f85c], 0x37
jne 0x414a9c
push 0x4035a8
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetLocaleInfoW]
push 0
lea eax, [esp + 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0
lea ecx, [esp + 4]
push ecx
push 0
lea edx, [esp + 0x10]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x40356c
push 0x403594
call dword [sym.imp.KERNEL32.dll_WriteProfileSectionA]
push 0x403628
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
lea eax, [esp + 0x408]
push eax
push 0x403644
push 0x403660
call dword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetDevicePowerState]
push 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push 0
lea ecx, [esp + 0xc08]
push ecx
push 0x40367c
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointA]
mov edx, dword [0x2b6fc70]
mov ecx, dword [0x2b6f340]
mov al, byte [edx + esi + 0x38d6]
mov byte [ecx + esi], al
add esp, 0x1004
ret