joyce8/EMBER2024-capa huggingface dataset:
Function at 0x454c50
Capabilities:
Contain obfuscated stackstrings
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57b08e
mov eax, dword fs:[0]
push eax
sub esp, 0x2a8
mov eax, dword [0x5c1068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x264]
push 0x208
push 0
push eax
mov dword [ebp - 0x5c], 0x61004d
mov ebx, 0x6c
mov dword [ebp - 0x58], 0x720063
mov dword [ebp - 0x54], 0x6d006f
mov dword [ebp - 0x50], 0x640065
mov dword [ebp - 0x4c], 0x46005c
mov dword [ebp - 0x48], 0x61006c
mov dword [ebp - 0x44], 0x680073
mov dword [ebp - 0x40], 0x46005c
mov dword [ebp - 0x3c], 0x61006c
mov dword [ebp - 0x38], 0x680073
mov dword [ebp - 0x34], 0x650048
mov dword [ebp - 0x30], 0x70006c
mov dword [ebp - 0x2c], 0x720065
mov dword [ebp - 0x28], 0x650053
mov dword [ebp - 0x24], 0x760072
mov dword [ebp - 0x20], 0x630069
mov dword [ebp - 0x1c], 0x2e0065
mov dword [ebp - 0x18], 0x780065
mov dword [ebp - 0x14], 0x65
call fcn.0054d380
add esp, 0xc
lea eax, [ebp - 0x264]
push eax
push 0
push 0
push 0x29
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x2b4]
call fcn.00402330
mov dword [ebp - 4], 0
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x29c]
call fcn.00402330
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2b4]
push eax
lea edx, [ebp - 0x29c]
lea ecx, [ebp - 0x27c]
call fcn.0045e9c0
add esp, 4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x29c]
call fcn.004022b0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2b4]
call fcn.004022b0
lea ecx, [ebp - 0x27c]
call fcn.0045e250
test al, al
je 0x454e52
push 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [ebp - 0x280], 0
call fcn.005349db
add esp, 4
mov dword [ebp - 0x284], eax
mov byte [ebp - 4], 5
mov dword [eax], 0
mov dword [eax], 0xffffffff
mov byte [ebp - 4], 4
mov dword [ebp - 0x280], eax
mov byte [ebp - 4], 6
lea eax, [ebp - 0x27c]
push 0x80
push 4
push 1
push 0x80000000
push eax
lea ecx, [ebp - 0x280]
call fcn.00473a40
test al, al
jne 0x454e56
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x280]
test esi, esi
je 0x454e52
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x454e3d
test eax, eax
je 0x454e3d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push 4
push esi
call fcn.00534a0b
add esp, 8
mov dword [ebp - 0x280], 0
xor bl, bl
jmp 0x454e9f
push esi
lea ecx, [ebp - 0x280]
call fcn.00473b60
mov bl, al
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x280]
test esi, esi
je 0x454e9f
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x454e8a
test eax, eax
je 0x454e8a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push 4
push esi
call fcn.00534a0b
add esp, 8
mov dword [ebp - 0x280], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x27c]
call fcn.004022b0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005349ca
mov esp, ebp
pop ebp
ret 4
Function at 0x45b720
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57b9bc
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5c1068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea edi, [ebx + 0x10]
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
lea esi, [edi + 0x18]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 4
lea ecx, [esi + 0x48]
call fcn.004022b0
mov byte [ebp - 4], 3
lea ecx, [esi + 0x30]
call fcn.004022b0
mov byte [ebp - 4], 2
lea ecx, [esi + 0x18]
call fcn.004022b0
mov byte [ebp - 4], 0
mov ecx, esi
call fcn.004022b0
mov dword [ebp - 4], 0xffffffff
mov ecx, edi
call fcn.004022b0
push 0x88
push ebx
call fcn.00534a0b
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x45d0d0
Capabilities:
Check os version

Disassembly:
sub esp, 0x128
mov eax, dword [0x5c1068]
xor eax, esp
mov dword [esp + 0x124], eax
push esi
push 0x110
lea eax, [esp + 0x14]
mov esi, ecx
push 0
push eax
call fcn.0054d380
add esp, 0xc
mov dword [esp + 0xc], 0x114
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x45d148
cmp dword [esp + 0x10], 6
jb 0x45d148
lea eax, [esp + 8]
mov dword [esp + 8], 0x207
push eax
push esi
push str.Progid
mov edx, str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociationshttpUserChoice
mov ecx, 0x80000001
call fcn.0045cf40
add esp, 0xc
test al, al
je 0x45d148
cmp word [esi], 0
jne 0x45d1a0
lea eax, [esp + 4]
mov dword [esp + 4], 0x207
push eax
push esi
push 0
mov edx, str.http_shellopencommand
mov ecx, 0x80000000
call fcn.0045cf40
add esp, 0xc
test al, al
je 0x45d174
cmp word [esi], 0
jne 0x45d1a0
lea eax, [esp + 4]
mov dword [esp + 4], 0x207
push eax
push esi
push 0
mov edx, str.SoftwareClasses.html
mov ecx, 0x80000001
call fcn.0045cf40
add esp, 0xc
test al, al
je 0x45d1b8
cmp word [esi], 0
je 0x45d1b8
mov al, 1
pop esi
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.005349ca
add esp, 0x128
ret
mov ecx, dword [esp + 0x128]
xor al, al
pop esi
xor ecx, esp
call fcn.005349ca
add esp, 0x128
ret
Function at 0x45d720
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57bbeb
mov eax, dword fs:[0]
push eax
mov eax, 0x285c
call fcn.00535a70
mov eax, dword [0x5c1068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x2000
xor ebx, ebx
lea eax, [ebp - 0x2218]
push ebx
push eax
call fcn.0054d380
add esp, 0xc
mov eax, 0x22
mov word [ebp - 0x2218], ax
test esi, esi
je 0x45d934
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call edi
cmp eax, 1
jl 0x45d934
push esi
call edi
cmp eax, 0xffa
jge 0x45d934
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x2218]
push eax
call esi
push 0x59d684
lea eax, [ebp - 0x2218]
push eax
call esi
push str.Shell32.dll
lea ecx, [ebp - 0x2868]
call fcn.00402330
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x2868]
push eax
call fcn.00468400
mov ecx, eax
call fcn.004684c0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2868]
call fcn.004022b0
test esi, esi
je 0x45d934
push str.ShellExecuteW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x284c], eax
test eax, eax
je 0x45d934
lea ecx, [ebp - 0x2848]
call fcn.0045d1d0
xor edi, edi
lea esi, [ebp - 0x2848]
nop dword [eax]
cmp word [esi], 0
je 0x45d854
push 1
push 0
lea eax, [ebp - 0x2218]
push eax
push esi
push str.open
push 0
call dword [ebp - 0x284c]
cmp eax, 0x20
ja 0x45d862
inc edi
add esi, 0x210
cmp edi, 3
jl 0x45d830
jmp 0x45d884
imul ebx, edi, 0x210
cmp dword [ebp + ebx - 0x2640], 0
mov ebx, dword [ebp + ebx - 0x263c]
jne 0x45d87c
add ebx, 0x10
test ebx, ebx
jne 0x45d930
mov edi, dword [ebp - 0x284c]
lea eax, [ebp - 0x2218]
push 1
push 0
push 0
push eax
push str.open
push 0
call edi
cmp eax, 0x20
ja 0x45d92b
mov dword [ebp - 0x2850], str._programfiles_x86__Internet_Exploreriexplore.exe
xor esi, esi
mov dword [ebp - 0x284c], str._programfiles_Internet_Exploreriexplore.exe
nop
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0054d380
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x103
push eax
push dword [ebp + esi*4 - 0x2850]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45d921
push 1
push 0
lea eax, [ebp - 0x2218]
push eax
lea eax, [ebp - 0x218]
push eax
push str.open
push 0
call edi
cmp eax, 0x20
ja 0x45d92b
inc esi
cmp esi, 2
jb 0x45d8c0
mov eax, ebx
jmp 0x45d936
mov ebx, 0x10
mov eax, ebx
jmp 0x45d936
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005349ca
mov esp, ebp
pop ebp
ret
Function at 0x45da60
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x140
mov eax, dword [0x5c1068]
xor eax, esp
mov dword [esp + 0x13c], eax
push esi
mov esi, ecx
push 0x118
push 0
lea eax, [esi + 4]
push eax
call fcn.0054d380
add esp, 0xc
mov dword [esi], 0x11c
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x45dba2
cmp dword [esi + 4], 6
push edi
ja 0x45dab6
jne 0x45db3e
cmp dword [esi + 8], 2
jb 0x45db3e
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x45db3e
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x45db3e
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x45db3e
movups xmm0, xmmword [0x59f030]
push eax
movups xmmword [esp + 0x128], xmm0
movups xmm0, xmmword [0x59f040]
movups xmmword [esp + 0x138], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x45db3e
lea eax, [esp + 0x124]
push eax
lea ecx, [edi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x45db3e
cmp word [edi + 2], ax
jbe 0x45db3e
movzx edx, word [edi + 0x32]
movzx ecx, word [edi + 0x30]
movzx eax, word [edi + 0x36]
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x45db89
push 0x118
lea eax, [esp + 0x10]
push 0
push eax
call fcn.0054d380
add esp, 0xc
mov dword [esp + 8], 0x11c
lea eax, [esp + 8]
push eax
call edi
test eax, eax
jne 0x45db89
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x13c]
xor ecx, esp
call fcn.005349ca
add esp, 0x140
ret
mov ecx, dword [esp + 0x140]
xor al, al
pop esi
xor ecx, esp
call fcn.005349ca
add esp, 0x140
ret
Function at 0x45e4e0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57bcc0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x5c1068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.00402c90
test al, al
je 0x45e51d
xor al, al
jmp 0x45e6c9
mov ecx, edi
call fcn.0045e360
test al, al
je 0x45e52f
mov al, 1
jmp 0x45e6c9
push 0
mov ecx, edi
call fcn.00402ca0
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call ebx
test eax, eax
jne 0x45e57e
lea ecx, [ebp - 0x28]
call fcn.00402380
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.00474260
test al, al
je 0x45e56f
push 0
lea ecx, [ebp - 0x28]
call fcn.00402ca0
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004022b0
mov ecx, edi
call fcn.0045e360
test al, al
jne 0x45e528
mov ecx, edi
call fcn.00402e50
xor esi, esi
mov dword [ebp - 0x44], eax
test eax, eax
je 0x45e66e
mov ecx, edi
call fcn.00402430
mov ebx, eax
mov ecx, dword [ebx + 0x14]
mov eax, ebx
cmp ecx, 8
jb 0x45e5b2
mov eax, dword [ebx]
mov edx, 0x2f
cmp dx, word [eax + esi*2]
mov edx, 0x5c
je 0x45e5d5
mov eax, ebx
cmp ecx, 8
jb 0x45e5cb
mov eax, dword [ebx]
cmp dx, word [eax + esi*2]
jne 0x45e65e
push esi
push 0
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.0040c900
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00402c90
test al, al
jne 0x45e64f
lea ecx, [ebp - 0x28]
call fcn.0045e150
test al, al
jne 0x45e64f
push 0
lea ecx, [ebp - 0x28]
call fcn.00402ca0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x45e64f
lea ecx, [ebp - 0x40]
call fcn.00402380
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.00474260
test al, al
je 0x45e643
push 0
lea ecx, [ebp - 0x40]
call fcn.00402ca0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.004022b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004022b0
inc esi
cmp esi, dword [ebp - 0x44]
jb 0x45e5a6
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, edi
call fcn.0045e150
test al, al
jne 0x45e6c2
push 0
mov ecx, edi
call fcn.00402ca0
push eax
call ebx
test eax, eax
jne 0x45e6c2
lea ecx, [ebp - 0x40]
call fcn.00402380
mov dword [ebp - 4], 3
lea edx, [ebp - 0x40]
mov ecx, edi
call fcn.00474260
test al, al
je 0x45e6b3
push 0
lea ecx, [ebp - 0x40]
call fcn.00402ca0
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004022b0
mov ecx, edi
call fcn.0045e360
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005349ca
mov esp, ebp
pop ebp
ret
Function at 0x45eb40
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x414]
sub esp, 0x414
push 0xfffffffffffffffe
push 0x5b8b70
push 0x54bf50
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x5c1068]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x410], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.00402430
mov dword [ebp - 0x24], 0
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
jb 0x45ebb2
mov eax, dword [eax]
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.004026b0
add esp, 8
mov edx, esi
mov ecx, edi
call fcn.0045eca0
mov bl, al
mov byte [ebp - 0x19], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x45ebf1
test bl, bl
jne 0x45ec74
cmp edi, 0x1a
jne 0x45ec74
mov ecx, esi
call fcn.00402430
mov dword [ebp - 0x20], 0
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
jb 0x45ec17
mov eax, dword [eax]
lea ecx, [ebp - 0x20]
push ecx
push eax
call fcn.004026b0
push 0x410
push 0
lea eax, [ebp]
push eax
call fcn.0054d380
add esp, 0x14
push 0x207
lea eax, [ebp]
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp]
push eax
call fcn.00402710
add esp, 4
push eax
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.004024a0
mov ecx, esi
call fcn.00402c90
movzx ebx, bl
mov ecx, 1
test al, al
cmove ebx, ecx
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.005349ca
lea esp, [ebp + 0x414]
pop ebp
ret
Function at 0x45ee40
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57ae91
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5c1068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], esi
mov ecx, edi
mov dword [ebp - 0x2c], 0
call fcn.00402430
mov edx, eax
cmp dword [eax + 0x14], 8
jb 0x45ee8d
mov edx, dword [eax]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x45eea4
mov eax, edx
cmp word [eax], 0x25
je 0x45eed8
add eax, 2
sub ecx, 1
jne 0x45ee96
push edi
mov ecx, esi
call fcn.00402ce0
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005349ca
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x45eea4
sub eax, edx
sar eax, 1
cmp eax, 0xffffffff
je 0x45eea4
push edi
lea ecx, [ebp - 0x28]
call fcn.00402ce0
mov dword [ebp - 4], 1
mov ecx, edi
push 0
push 0
call fcn.00402ca0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x45ef2b
push edi
mov ecx, esi
call fcn.00402ce0
mov dword [ebp - 0x2c], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004022b0
jmp 0x45eeba
xor ecx, ecx
add eax, 2
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00534f2f
mov edx, dword [ebp - 0x30]
add esp, 4
inc edx
mov ebx, eax
mov ecx, edi
push edx
push ebx
call fcn.00402ca0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x45ef7f
cmp eax, dword [ebp - 0x30]
ja 0x45ef7f
xor ecx, ecx
push ebx
mov word [ebx + eax*2], cx
call fcn.00402710
add esp, 4
lea ecx, [ebp - 0x28]
push eax
push ebx
call fcn.004024a0
push ebx
call fcn.00534f38
add esp, 4
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00404c60
jmp 0x45ef16

Function at 0x460fd0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x41c
mov eax, dword [0x5c1068]
xor eax, esp
mov dword [esp + 0x418], eax
push esi
mov esi, ecx
call fcn.00402430
mov dword [esp + 4], 0
cmp dword [eax + 0x14], 8
mov dword [eax + 0x10], 0
jb 0x461003
mov eax, dword [eax]
lea ecx, [esp + 4]
push ecx
push eax
call fcn.004026b0
push 0x412
lea eax, [esp + 0x14]
push 0
push eax
call fcn.0054d380
add esp, 0x14
lea eax, [esp + 8]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x46104e
xor al, al
pop esi
mov ecx, dword [esp + 0x418]
xor ecx, esp
call fcn.005349ca
add esp, 0x41c
ret
cmp eax, 0x208
jae 0x461036
xor eax, eax
mov word [esp + 0x418], ax
lea eax, [esp + 8]
push eax
call fcn.00402710
add esp, 4
mov ecx, esi
push eax
lea eax, [esp + 0xc]
push eax
call fcn.004024a0
mov ecx, dword [esp + 0x41c]
mov al, 1
pop esi
xor ecx, esp
call fcn.005349ca
add esp, 0x41c
ret
Function at 0x461550
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57c398
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x5c1068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [edi]
test eax, eax
je 0x461596
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
lea ecx, [ebp - 0x14]
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.00474330
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x4615bf
lea ebx, [esi + 8]
jmp 0x4615c1
xor ebx, ebx
mov ecx, dword [ebp - 0x18]
call fcn.00402c90
test al, al
jne 0x4615d7
mov ecx, dword [ebp - 0x18]
call fcn.00402ca0
jmp 0x4615d9
xor eax, eax
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
je 0x4615fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4615fa
mov byte [edi + 5], 1
cmp dword [edi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x461623
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x461638
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.00534a0b
add esp, 8
mov dword [ebp - 0x14], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005349ca
mov esp, ebp
pop ebp
ret 4
Function at 0x466fa0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x575f18
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x5c1068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esi + 8]
test edi, edi
jne 0x466fdb
xor al, al
jmp 0x46707e
add edi, 0x20
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], edi
je 0x466ff7
mov eax, dword [edi]
test eax, eax
je 0x466ff7
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov eax, dword [esi + 8]
cmp dword [eax + 4], 0
je 0x46705b
push 1
lea ebx, [esi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov eax, dword [esi + 8]
add eax, 0xc
push eax
push 4
push esi
push 0x466b40
push 0
push 0
call fcn.00556276
mov ecx, dword [esi + 8]
add esp, 0x18
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 8]
cmp dword [eax + 0x10], 0
jne 0x46709a
mov eax, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0xffffffffffffffff
push ebx
call eax
sub eax, 1
jne 0x467053
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
call fcn.00466d00
xor bl, bl
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x46707c
mov eax, dword [edi]
test eax, eax
je 0x467075
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x14], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005349ca
mov esp, ebp
pop ebp
ret
mov byte [eax + 8], 1
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x4670b2
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 8]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x46703d
mov bl, 1
jmp 0x46705d
Function at 0x467370
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x120]
sub esp, 0x120
push 0xffffffffffffffff
push 0x57d1d2
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5c1068]
xor eax, ebp
mov dword [ebp + 0x11c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi], 0
je 0x4673b4
call fcn.00467500
cmp byte [0x5c619c], 0
jne 0x4673c7
mov eax, 0x80000001
jmp 0x4674dc
mov eax, dword [esi]
test eax, eax
jne 0x467432
push 8
call fcn.005349db
mov edi, eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
push 1
call fcn.005349db
mov dword [edi + 4], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [ebp + 4]
push eax
call fcn.0054d380
add esp, 0x14
mov dword [ebp], 0x11c
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x467421
cmp dword [ebp + 4], 6
mov eax, dword [edi + 4]
setae cl
mov byte [eax], cl
mov dword [ebp - 4], 0xffffffff
mov dword [esi], edi
mov dword [edi], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x4674cb
call fcn.00472100
test al, al
jne 0x46746c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esi]
push eax
add ecx, 4
call fcn.00472280
test al, al
je 0x4674cb
mov ecx, dword [esi]
add ecx, 4
call fcn.00471c20
call fcn.00472100
test al, al
je 0x4674cb
push str.Advapi32.dll
lea ecx, [ebp - 0x28]
call fcn.00402330
mov dword [ebp - 4], 2
lea eax, [ebp - 0x28]
push eax
call fcn.00468400
mov ecx, eax
call fcn.004684c0
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004022b0
test edi, edi
je 0x4674cb
push str.RegOpenCurrentUser
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4674cb
push dword [esi]
push dword [ebp + 0x128]
call eax
test eax, eax
je 0x4674cb
mov eax, dword [esi]
mov dword [eax], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x4674da
mov dword [eax], 0x80000001
mov eax, dword [esi]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x11c]
xor ecx, ebp
call fcn.005349ca
lea esp, [ebp + 0x120]
pop ebp
ret 4