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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x20c], edx
mov esi, eax
xor eax, eax
push ebp
push 0x6a4aad
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x208]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryW
mov ebx, eax
test ebx, ebx
jle 0x6a4a83
cmp ebx, 0x104
jge 0x6a4a83
lea eax, [ebp - 0x20c]
lea edx, [ebp - 0x208]
mov ecx, 0x104
call fcn.0040b318
mov eax, dword [ebp - 0x20c]
mov edx, esi
call fcn.006a490c
jmp 0x6a4a94
mov eax, 0x6a4ac8
call fcn.0060c89c
mov eax, esi
call fcn.0040a1c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6a4ab4
lea eax, [ebp - 0x20c]
call fcn.0040a1c8
ret

Function at 0x6a4af0
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 0x6a4c3f
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.006a490c
lea eax, [ebp - 8]
call fcn.006a4a1c
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, 0x6a4c4c
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 0x6a4b9b
call sub.kernel32.dll_GetLastError
cmp eax, 0x4c7
jne 0x6a4b91
call fcn.00428fd4
mov eax, 0x6a4c64
call fcn.0060c7e4
cmp dword [ebp - 0x10], 0
jne 0x6a4bab
mov eax, 0x6a4c90
call fcn.0060c688
xor edx, edx
push ebp
push 0x6a4c1d
push dword fs:[edx]
mov dword fs:[edx], esp
call fcn.006a4618
push 0x4ff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x10]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x6a4bb9
cmp eax, 0xffffffff
jne 0x6a4be6
mov eax, 0x6a4ce4
call fcn.0060c7e4
call fcn.006a4618
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetExitCodeProcess
test eax, eax
jne 0x6a4c06
mov eax, 0x6a4d24
call fcn.0060c7e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6a4c24
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
ret
Function at 0x6a4d4c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x6a4e1b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x6a43ec]
call fcn.006a4e44
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x6a4df4
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, 0x6a4e34
call fcn.004244f0
mov edx, dword [ebp - 8]
mov eax, dword [0x6cceac]
mov eax, dword [eax]
call fcn.005b8250
call fcn.006a4618
call sub.user32.dll_GetFocus
mov edx, dword [0x6cceac]
mov edx, dword [edx]
cmp eax, dword [edx + 0x188]
jne 0x6a4dd7
push 0x7a
call sub.user32.dll_GetKeyState
test ax, ax
jl 0x6a4dde
call sub.user32.dll_WaitMessage
jmp 0x6a4db1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6a4dfb
mov eax, dword [ebp - 4]
call fcn.00408444
ret

Function at 0x6b1908
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 0x6b192d
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebx
call sub.kernel32.dll_GetTickCount
mov ebx, eax
jmp 0x6b36f8
call sub.kernel32.dll_GetTickCount
sub eax, ebx
cmp eax, 0x3e8
jae 0x6b3701
call fcn.006b23a0
mov eax, 0xa
call fcn.005c770c
call fcn.006b23a0
call fcn.006b3698
test al, al
jne 0x6b36d6
pop ebx
ret

Function at 0x6b3c28
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [0x6cc8f8]
cmp dword [eax], 0
je 0x6b3cd3
mov eax, dword [0x6cc8f8]
mov eax, dword [eax]
call fcn.0051b7e8
test al, al
je 0x6b3cd3
mov eax, dword [0x6cc8f8]
mov eax, dword [eax]
cmp byte [eax + 0x215], 0
je 0x6b3c7d
cmp byte [ebx + 0x3e1], 0
jne 0x6b3c7d
mov eax, dword [0x6cceac]
mov eax, dword [eax]
mov eax, dword [eax + 0x188]
push eax
call sub.user32.dll_IsIconic
test eax, eax
je 0x6b3c81
xor eax, eax
jmp 0x6b3c83
mov al, 1
mov ebx, eax
mov eax, dword [0x6cc8f8]
mov eax, dword [eax]
call fcn.0051b414
push 0xfffffffffffffff0
push eax
call sub.user32.dll_GetWindowLongW
test eax, 0x10000000
setne al
cmp bl, al
je 0x6b3cd3
test bl, bl
je 0x6b3cbf
push 5
mov eax, dword [0x6cc8f8]
mov eax, dword [eax]
call fcn.0051b414
push eax
call sub.user32.dll_ShowWindow
jmp 0x6b3cd3
push 0
mov eax, dword [0x6cc8f8]
mov eax, dword [eax]
call fcn.0051b414
push eax
call sub.user32.dll_ShowWindow
pop ebx
ret
Function at 0x6b4004
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, 0x6b4074
mov edx, 0x80000002
xor eax, eax
call fcn.005c6790
test eax, eax
jne 0x6b406d
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 0x6b40c8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x6b4064
cmp dword [ebp - 0xc], 4
jne 0x6b4064
cmp dword [ebp - 8], 4
jne 0x6b4064
movzx eax, word [ebp - 0x10]
mov word [0x6d57d0], ax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
mov esp, ebp
pop ebp
ret

Function at 0x6b52ac
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 0x6b5354
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x6b5370
push ebx
push 0x6b5380
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 0x6b5332
mov eax, dword [0x6ccec0]
mov eax, dword [eax + 0x20c]
call fcn.006b5200
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 0x6b535b
lea eax, [ebp - 4]
call fcn.0040a1c8
ret
Function at 0x6b76a0
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 0x6b77dd
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x25c]
mov ecx, 0x6b77f8
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 0x6b77b7
xor eax, eax
push ebp
push 0x6b77b0
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x6b7814
lea eax, [ebp - 0x22c]
mov ecx, 5
call fcn.00424198
test eax, eax
jne 0x6b7781
test byte [ebp - 0x258], 0x10
jne 0x6b7781
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 0x6b7779
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.00423a18
lea eax, [ebp - 0x258]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x6b7711
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6b77b7
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 0x6b77e4
lea eax, [ebp - 0x260]
mov edx, 2
call fcn.0040a228
lea eax, [ebp - 4]
call fcn.0040a1c8
ret
Function at 0x44aaa0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x3e000]
push edi
or ebp, 0xffffffff
jmp 0x44aac2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x44aac9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x44aab8
mov eax, 1
add ebx, ebx
jne 0x44aadb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x44aaec
jne 0x44ab0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x44ab0b
dec eax
add ebx, ebx
jne 0x44aaf8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x44aad0
add ebx, ebx
jne 0x44ab07
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x44ab5d
xor ecx, ecx
sub eax, 3
jb 0x44ab23
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x44ab92
sar eax, 1
mov ebp, eax
jmp 0x44ab2e
add ebx, ebx
jne 0x44ab2e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x44aafc
inc ecx
add ebx, ebx
jne 0x44ab3c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x44aafc
add ebx, ebx
jne 0x44ab49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x44ab3e
jne 0x44ab5a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x44ab3e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x44ab7c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x44ab6e
jmp 0x44aabe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x44ab7c
add edi, ecx
jmp 0x44aabe
pop esi
mov edi, esi
mov ecx, 0x9a7
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x44ab9a
cmp byte [edi], 0
jne 0x44ab9a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x44ab9f
lea edi, [esi + 0x48000]
mov eax, dword [edi]
or eax, eax
je 0x44ac0e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x4fd98]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x4fe24]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x44abcc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x4fe28]
or eax, eax
je 0x44ac08
mov dword [ebx], eax
add ebx, 4
jmp 0x44abe9
call dword [esi + 0x4fe30]
mov ebp, dword [esi + 0x4fe2c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x44ac42
sub esp, 0xffffff80
jmp 0x410510
Function at 0x40134f
Capabilities:
Create thread

Disassembly:
push 8
push 0x44cf88
call fcn.00422d90
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
lea edi, [esi + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebp - 4], 0xfffffffe
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x2c], eax
test eax, eax
je 0x4013b6
push ebx
push 1
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x30], eax
test eax, eax
je 0x4013b6
push ebx
push ebx
push dword [ebp + 8]
push 0x401470
push ebx
push ebx
call fcn.0042621c
add esp, 0x18
mov dword [esi + 0x34], eax
test eax, eax
je 0x4013b6
mov al, 1
jmp 0x4013f0
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
jmp 0x4013ee
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x401cc3
Capabilities:
Delete directory
Delete file

Disassembly:
push 0x54
mov eax, 0x43b54c
call fcn.004227df
mov esi, ecx
push ecx
push str._cleanup_
call fcn.00404d40
mov edi, eax
cmp edi, 0xffffffff
jne 0x401cea
xor al, al
jmp 0x401e28
push 8
pop ebx
add edi, 0xa
mov ecx, esi
cmp dword [esi + 0x14], ebx
jb 0x401cf9
mov ecx, dword [esi]
push dword [ebp - 0x18]
mov edx, dword [esi + 0x10]
push 2
push ecx
push edi
call fcn.004054d3
add esp, 0x10
cmp eax, 0xffffffff
je 0x401e26
mov ecx, esi
cmp dword [esi + 0x14], ebx
jb 0x401d1d
mov ecx, dword [esi]
cmp word [ecx + eax*2], 0x3d
je 0x401e26
sub eax, edi
mov ecx, esi
push eax
push edi
lea eax, [ebp - 0x30]
push eax
call fcn.00404cea
and dword [ebp - 4], 0
lea edi, [ebp - 0x30]
cmp dword [ebp - 0x1c], ebx
jb 0x401d46
mov edi, dword [ebp - 0x30]
mov edx, dword [ebp - 0x20]
push 0x3b
pop eax
mov word [ebp - 0x18], ax
test edx, edx
je 0x401d6c
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.0040584a
mov esi, eax
pop ecx
test esi, esi
je 0x401d6c
sub esi, edi
sar esi, 1
jmp 0x401d6f
or esi, 0xffffffff
push esi
push 0
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x30]
call fcn.00404cea
push 0xffffffffffffffff
lea eax, [esi + 1]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x30]
call fcn.00404cea
cmp dword [eax + 0x14], ebx
jb 0x401d9b
mov eax, dword [eax]
push eax
call fcn.00426ee0
pop ecx
lea ecx, [ebp - 0x60]
mov esi, eax
call fcn.0040818b
cmp dword [ebp - 0x38], 0
je 0x401e16
test esi, esi
je 0x401e16
push esi
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x401ddd
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x44ac60
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x60]
call fcn.0040519b
pop ecx
cmp dword [eax + 0x14], ebx
jb 0x401df5
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x60]
call fcn.0040818b
lea eax, [ebp - 0x48]
cmp dword [ebp - 0x34], ebx
jb 0x401e0f
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [ebp - 0x48]
call fcn.0040818b
lea ecx, [ebp - 0x30]
call fcn.0040818b
mov al, 1
call fcn.0042278e
ret
Function at 0x402855
Capabilities:
Get common file path

Disassembly:
push 0x24
mov eax, 0x43b66b
call fcn.004227df
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x14], esi
lea ecx, [ebp - 0x2c]
xor ebx, ebx
mov dword [ebp - 0x18], 7
push ebx
mov byte [ebp - 0x14], bl
xor eax, eax
push dword [ebp - 0x14]
mov edi, 0x104
mov dword [ebp - 0x2c], ebx
push edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
call fcn.0040685a
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x2c]
push 8
pop ebx
cmp dword [ebp - 0x18], ebx
jb 0x4028a4
mov eax, dword [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x402908
push 6
pop ecx
mov edi, esi
rep stosd dword es:[edi], eax
xor edi, edi
mov dword [esi + 0x14], 7
mov dword [esi], edi
mov word [esi], ax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x10], edi
cmp eax, ebx
jb 0x4029c1
mov ecx, dword [ebp - 0x2c]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x14], ecx
cmp eax, 0x1000
jb 0x4029b8
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004012fb
mov eax, dword [ebp - 0x30]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x14]
jmp 0x4029b8
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jb 0x402913
mov ecx, dword [ebp - 0x2c]
lea edx, [ecx + 2]
xor edi, edi
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x402918
sub ecx, edx
sar ecx, 1
cmp ecx, dword [ebp - 0x1c]
ja 0x402942
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jb 0x402937
mov eax, dword [ebp - 0x2c]
xor edx, edx
mov dword [ebp - 0x1c], ecx
mov word [eax + ecx*2], dx
jmp 0x40294f
sub ecx, dword [ebp - 0x1c]
push edi
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004067b1
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jb 0x40295a
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 2], 0x5c
jne 0x40297a
dec ecx
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jb 0x402971
mov eax, dword [ebp - 0x2c]
xor edx, edx
mov dword [ebp - 0x1c], ecx
mov word [eax + ecx*2], dx
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
call fcn.00404a9f
mov eax, dword [ebp - 0x18]
cmp eax, ebx
jb 0x4029c1
mov ecx, dword [ebp - 0x2c]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x30], ecx
cmp eax, 0x1000
jb 0x4029b8
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004012fb
mov eax, dword [ebp - 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x30]
push eax
push ecx
call fcn.00421c79
pop ecx
pop ecx
mov eax, esi
call fcn.0042278e
ret
Function at 0x4029c9
Capabilities:
Query environment variable

Disassembly:
push 0x24
mov eax, 0x43b66b
call fcn.004227df
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x14], esi
lea ecx, [ebp - 0x2c]
xor ebx, ebx
mov dword [ebp - 0x18], 7
push ebx
mov byte [ebp - 0x14], bl
xor eax, eax
push dword [ebp - 0x14]
mov edi, 0x104
mov dword [ebp - 0x2c], ebx
push edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
call fcn.0040685a
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x2c]
push 8
pop ebx
cmp dword [ebp - 0x18], ebx
jb 0x402a18
mov eax, dword [ebp - 0x2c]
push edi
push eax
push str._ALLUSERSPROFILE_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x402a81
push 6
pop ecx
mov edi, esi
rep stosd dword es:[edi], eax
xor edi, edi
mov dword [esi + 0x14], 7
mov dword [esi], edi
mov word [esi], ax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x10], edi
cmp eax, ebx
jb 0x402b3a
mov ecx, dword [ebp - 0x2c]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x14], ecx
cmp eax, 0x1000
jb 0x402b31
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004012fb
mov eax, dword [ebp - 0x30]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x14]
jmp 0x402b31
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jb 0x402a8c
mov ecx, dword [ebp - 0x2c]
lea edx, [ecx + 2]
xor edi, edi
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x402a91
sub ecx, edx
sar ecx, 1
cmp ecx, dword [ebp - 0x1c]
ja 0x402abb
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jb 0x402ab0
mov eax, dword [ebp - 0x2c]
xor edx, edx
mov dword [ebp - 0x1c], ecx
mov word [eax + ecx*2], dx
jmp 0x402ac8
sub ecx, dword [ebp - 0x1c]
push edi
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004067b1
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jb 0x402ad3
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 2], 0x5c
jne 0x402af3
dec ecx
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jb 0x402aea
mov eax, dword [ebp - 0x2c]
xor edx, edx
mov dword [ebp - 0x1c], ecx
mov word [eax + ecx*2], dx
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
call fcn.00404a9f
mov eax, dword [ebp - 0x18]
cmp eax, ebx
jb 0x402b3a
mov ecx, dword [ebp - 0x2c]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x30], ecx
cmp eax, 0x1000
jb 0x402b31
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004012fb
mov eax, dword [ebp - 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x30]
push eax
push ecx
call fcn.00421c79
pop ecx
pop ecx
mov eax, esi
call fcn.0042278e
ret
Function at 0x403007
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4510e8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea ecx, [ebp - 0x1c]
call fcn.00402855
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
jb 0x40302d
mov eax, dword [ebp - 0x1c]
xor ebx, ebx
push ebx
push 0x2000000
push 3
push ebx
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x403062
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x403088
cmp eax, 2
je 0x403088
cmp eax, 5
je 0x403070
mov bl, 1
cmp esi, 0xffffffff
je 0x403070
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x1c]
call fcn.0040818b
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.00421c3b
leave
ret
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
jb 0x403094
mov eax, dword [ebp - 0x1c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
jmp 0x403070

Function at 0x40314f
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, ecx
call fcn.0040212a
test al, al
jne 0x403197
push ecx
push str._initialNonSecureSetupPath
mov ecx, esi
call fcn.00404d40
cmp eax, 0xffffffff
jne 0x403197
push ecx
push str._restarted
mov ecx, esi
call fcn.00404d40
cmp eax, 0xffffffff
jne 0x403197
call fcn.00403007
test al, al
je 0x403191
call fcn.004030b5
test al, al
jne 0x403197
pop esi
jmp fcn.00402f6e
pop esi
ret
Function at 0x403b2c
Capabilities:
Create process on windows

Disassembly:
push 0x16c
mov eax, 0x43b959
call fcn.004227df
mov ebx, ecx
xor eax, eax
lea edi, [ebp - 0xcc]
stosd dword es:[edi], eax
push 0x44
pop esi
push esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0xbc]
xor edi, edi
push edi
push eax
call fcn.00423cf0
add esp, 0xc
mov dword [ebp - 0xbc], esi
lea ecx, [ebp - 0x58]
call fcn.00401e2e
mov dword [ebp - 4], edi
cmp dword [ebp - 0x48], edi
je 0x403cfe
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
lea ecx, [ebp - 0x16]
mov eax, esi
xor edx, edx
push 0xa
pop esi
div esi
sub ecx, 2
mov esi, eax
lea eax, [edx + 0x30]
mov word [ecx], ax
test esi, esi
jne 0x403b84
push ecx
lea eax, [ebp - 0x16]
push eax
push ecx
lea ecx, [ebp - 0x118]
call fcn.00406086
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x178]
call fcn.0040526d
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x160]
mov edx, eax
mov dword [esp], 0x44aab4
call fcn.004051f1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x148]
mov edx, eax
mov dword [esp], str._cleanup_
call fcn.004051f1
pop ecx
push ebx
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.0040604b
push eax
lea ecx, [ebp - 0x100]
call fcn.00404a9f
push 0x44aaec
lea edx, [ebp - 0x100]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x130]
call fcn.004051f1
pop ecx
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 6
push ecx
push eax
push dword [ebp - 0xd0]
lea ecx, [ebp - 0xe8]
call fcn.00405632
push 0x44aac4
lea edx, [ebp - 0xe8]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x70]
call fcn.004051f1
pop ecx
lea ecx, [ebp - 0xe8]
call fcn.0040818b
lea ecx, [ebp - 0x130]
call fcn.0040818b
lea ecx, [ebp - 0x100]
call fcn.0040818b
lea ecx, [ebp - 0x148]
call fcn.0040818b
lea ecx, [ebp - 0x160]
call fcn.0040818b
lea ecx, [ebp - 0x178]
call fcn.0040818b
lea ecx, [ebp - 0x118]
call fcn.0040818b
cmp dword [ebp - 0x5c], 8
lea ecx, [ebp - 0x70]
jb 0x403cb2
mov ecx, dword [ebp - 0x70]
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
jb 0x403cbe
mov eax, dword [ebp - 0x58]
lea edx, [ebp - 0xcc]
push edx
lea edx, [ebp - 0xbc]
push edx
push edi
push edi
push edi
push edi
push edi
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x403cf6
push dword [ebp - 0xc8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xcc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x70]
call fcn.0040818b
lea ecx, [ebp - 0x58]
call fcn.0040818b
call fcn.0042278e
ret