joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5064ec
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 0x5067a6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x528e6c]
mov eax, dword [eax]
mov edx, 0x5067c0
call fcn.00483db4
push 5
mov eax, dword [0x528e6c]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
push ebp
push 0x50676d
push dword fs:[edx]
mov dword fs:[edx], esp
call fcn.004e8760
lea eax, [ebp - 0x10]
call fcn.004875cc
mov eax, dword [ebp - 0x10]
call fcn.00415a94
lea edx, [ebp - 0x14]
xor eax, eax
call fcn.00487128
mov edx, dword [ebp - 0x14]
mov eax, 0x530168
call fcn.00406448
call fcn.00504878
lea ecx, [ebp - 0x18]
mov edx, 0x5067e0
mov eax, dword [0x530168]
call fcn.0048620c
mov edx, dword [ebp - 0x18]
mov eax, 0x53016c
call fcn.00406448
lea ecx, [ebp - 0x1c]
mov edx, 0x5067f8
mov eax, dword [0x530168]
call fcn.0048620c
mov edx, dword [ebp - 0x1c]
mov eax, 0x530170
call fcn.00406448
push 2
push 0
push 1
mov ecx, dword [0x530168]
mov dl, 1
mov eax, dword [0x48902c]
call fcn.0048936c
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x506644
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.0048932c
lea edx, [ebp - 0xc]
mov ecx, 8
mov eax, dword [ebp - 4]
call fcn.00489304
cmp dword [ebp - 0xc], 0x67734d49
je 0x50661f
mov cl, 1
xor edx, edx
mov eax, dword [0x530170]
call fcn.0048a5f0
jmp 0x50662e
mov cl, 1
mov edx, dword [ebp - 8]
mov eax, dword [0x530168]
call fcn.0048a5f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50664b
mov eax, dword [ebp - 4]
call fcn.00404098
ret
Function at 0x300061c5
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 8], 0
je 0x30006212
mov eax, dword [esi + 0xc]
test eax, eax
je 0x30006212
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x30006212
cmp dword [esi + 4], 0xffffffff
je 0x30006212
push eax
push 4
push esi
push 0x3000604e
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0x10], eax
je 0x30006212
mov eax, dword [esi]
mov ecx, dword [eax + 4]
push esi
call ecx
mov edx, dword [esi + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
ret

Function at 0x300068d0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x3000207c]
jne 0x300072ff
ret
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x3000b638], eax
mov dword [0x3000b634], ecx
mov dword [0x3000b630], edx
mov dword [0x3000b62c], ebx
mov dword [0x3000b628], esi
mov dword [0x3000b624], edi
mov word [0x3000b650], ss
mov word [0x3000b644], cs
mov word [0x3000b620], ds
mov word [0x3000b61c], es
mov word [0x3000b618], fs
mov word [0x3000b614], gs
pushfd
pop dword [0x3000b648]
mov eax, dword [ebp]
mov dword [0x3000b63c], eax
mov eax, dword [ebp + 4]
mov dword [0x3000b640], eax
lea eax, [ebp + 8]
mov dword [0x3000b64c], eax
mov eax, dword [ebp - 0x320]
mov dword [0x3000b588], 0x10001
mov eax, dword [0x3000b640]
mov dword [0x3000b53c], eax
mov dword [0x3000b530], 0xc0000409
mov dword [0x3000b534], 1
mov eax, dword [0x3000207c]
mov dword [ebp - 0x328], eax
mov eax, dword [0x3000b0a4]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x3000b580], eax
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x300023f0
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x3000b580], 0
jne 0x300073ef
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret

Function at 0x300068dd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x300020c8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x30006935
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push 0
push 0
push 0x300020c0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x30006935
mov al, 1
jmp 0x30006937
xor al, al
leave
ret 8
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x40287f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x40288e
pop dword [ebp - 0x40]
mov eax, 0x40288e
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0x518c41b2
sub dword [ebp - 0x50], 0x339fc67
mov dword [ebp - 0x4c], 0x25891a4c
sub dword [ebp - 0x4c], 0xf355ce07
mov dword [ebp - 0x48], 0xf9de683f
sub dword [ebp - 0x48], 0xad922411
mov dword [ebp - 0x44], 0x353d690f
sub dword [ebp - 0x44], 0x353d690f
lea eax, [ebp - 0x50]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0x8d175e75
add dword [ebp - 0x50], 0xe75b0ae1
mov dword [ebp - 0x4c], 0xa02f21c6
sub dword [ebp - 0x4c], 0x5ec2c051
mov dword [ebp - 0x48], 0xd72af690
sub dword [ebp - 0x48], 0x73bb8a24
mov dword [ebp - 0x44], 0x910d2f01
sub dword [ebp - 0x44], 0x910d2f01
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0x7ff35bea
add eax, 0x804d14be
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x35bfe
push 0
call eax
mov ecx, 0x449d
mov edx, eax
mov edi, 0x35397728
add edi, 0xcb0788d8
add edi, dword [ebp - 0x40]
mov esi, 0xdf5cb2ec
xor dword [ebp - 0x10], 0x7b5f7928
mov ebx, dword [edi]
sub dword [ebp - 0x2c], 0x91314f5e
sub ebx, esi
add dword [ebp - 0x1c], 0x7d684329
mov dword [edx], ebx
add dword [ebp - 0x2c], 0x31882f4c
add edx, 0xb86cb0af
add edx, 0x47934f55
add edi, 0x6b746e34
sub edi, 0x6b746e30
loop 0x40299a
add eax, 0x10547
xor ebx, ebx
add ebx, eax
add eax, 0x773701a4
add eax, 0x88c8fe61
mov ecx, 0xb3109bbf
sub ecx, 0xb2d09bbf
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x1000d210
Capabilities:
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x244
mov ebx, dword [ebp + 8]
test byte [0x10013318], 8
je 0x1000d26d
cmp ebx, 0xe
ja 0x1000d2a8
mov eax, dword [ebx*4 + 0x100172e0]
test eax, eax
je 0x1000d2a8
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.__s__p__p__n
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], esi
mov dword [esp + 8], str.GetUserNameExW
mov dword [esp + 4], 0x10013318
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
cmp ebx, 0xc
ja case.0x1000d272.4
jmp dword [ebx*4 + 0x100170cc]
test byte [0x10013318], 1
jne 0x1000d3a0
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x534
xor eax, eax
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 0xc
mov eax, ebx
call sym._debugstr_NameFormat.part.0
jmp 0x1000d237
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x57
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret 0xc
lea esi, [ebp - 0x230]
lea ebx, [ebp - 0x22a]
mov dword [ebp - 0x230], 0x10
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_GetComputerNameW]
sub esp, 8
test eax, eax
je 0x1000d29a
cmp word [ebp - 0x22a], 0
mov eax, ebx
je 0x1000d319
lea esi, [esi]
lea edi, [edi]
add eax, 2
cmp word [eax], 0
jne 0x1000d310
mov ecx, 0x5c
add eax, 2
mov dword [ebp - 0x230], 0x101
mov word [eax - 2], cx
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_GetUserNameW]
sub esp, 8
test eax, eax
je 0x1000d29a
mov eax, dword [ebp + 0x10]
cmp word [ebp - 0x22a], 0
mov edx, dword [eax]
je 0x1000d40c
mov eax, ebx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x1000d360
sub eax, ebx
sar eax, 1
cmp eax, edx
jb 0x1000d3d0
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0xea
mov eax, ebx
add eax, 2
cmp word [eax], 0
jne 0x1000d380
sub eax, ebx
sar eax, 1
add eax, 1
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
xor eax, eax
jmp 0x1000d29c
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.NameFormat__d_not_implemented_n
mov dword [esp + 8], str.GetUserNameExW
mov dword [esp + 4], 0x10013318
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_3
jmp 0x1000d28d
xor eax, eax
lea esi, [esi]
movzx edx, word [ebx + eax]
mov ecx, dword [ebp + 0xc]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x1000d3d8
mov eax, ebx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x1000d3f0
sub eax, ebx
sar eax, 1
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov eax, 1
jmp 0x1000d29c
test edx, edx
jne 0x1000d427
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0xea
mov eax, 1
jmp 0x1000d390
mov eax, dword [ebp + 0xc]
xor edx, edx
mov word [eax], dx
xor eax, eax
jmp 0x1000d3fd
Function at 0x401434
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x401443
pop dword [ebp - 0x10]
mov eax, 0x401443
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x677a10a
add dword [ebp - 0x20], 0x47daa441
mov dword [ebp - 0x1c], 0xe819d614
add dword [ebp - 0x1c], 0x4a197631
mov dword [ebp - 0x18], 0x97a323cd
add dword [ebp - 0x18], 0xb4a92061
mov dword [ebp - 0x14], 0x14fe4382
add dword [ebp - 0x14], 0xeb01bc7e
lea eax, [ebp - 0x20]
push eax
mov eax, 0xf0869260
sub eax, 0xf046115c
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x9dd9016d
add dword [ebp - 0x20], 0xd69967e9
mov dword [ebp - 0x1c], 0x526127
add dword [ebp - 0x1c], 0x411a004e
mov dword [ebp - 0x18], 0xe02a6c69
add dword [ebp - 0x18], 0x83450003
mov dword [ebp - 0x14], 0xb72e4bca
add dword [ebp - 0x14], 0x48d1b436
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0xba03bc23
add eax, 0x463cc4dd
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x384c2
push 0
call eax
mov ecx, 0x4807
xor edx, edx
add edx, eax
mov ebx, 0x7cf7f6b
add ebx, 0xf8776495
add ebx, dword [ebp - 0x10]
mov edi, 0x88525cf8
sub edi, 0xb83ff627
xor dword [ebp - 0xc], 0xa81a34a9
mov esi, dword [ebx]
sub esi, edi
sub dword [ebp - 8], ecx
mov dword [edx], esi
xor dword [ebp - 0xc], 0x4046bb25
add edx, 4
add ebx, 4
loop 0x40155c
add eax, 0x271a6cdf
sub eax, 0x271959f0
mov ebx, eax
add eax, 0xe3e76bc8
add eax, 0x1c18943d
mov ecx, 0x400000
add ecx, dword [ebp - 0x10]
call ebx
leave
ret

Function at 0x402c93
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x42a2f0]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x402d27
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x402ce4
cmp dword [ebp + 0x10], ebx
jne 0x402d1b
lea eax, [ebp - 0x210]
push ebx
push eax
push dword [ebp - 4]
call fcn.00401434
test eax, eax
jne 0x402cf6
lea eax, [ebp - 0x210]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402ccb
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.004065ec
cmp eax, ebx
je 0x402d2e
push ebx
push dword [0x42a2f0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402d27
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x42a2f0], ebx
jne 0x402d24
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x402d24
jmp 0x402d27
Function at 0x4055a0
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5171f8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x57f578]
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 eax, dword [ebp + 8]
xor ecx, ecx
mov bl, 1
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], cx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x34]
cmp ecx, eax
je 0x40560d
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x405601
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x34]
call fcn.004092c0
lea eax, [ebp - 0x34]
push eax
push 0x4054f0
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [ebp - 0x18]
xor esi, esi
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x405660
mov edi, dword [sym.imp.USER32.dll_SendMessageTimeoutW]
push 0
push 0xbb8
push 3
push 0
push 0
push 0x464
push dword [ecx + esi*4]
call edi
mov ecx, dword [ebp - 0x1c]
neg eax
sbb al, al
inc esi
and bl, al
mov eax, dword [ebp - 0x18]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x405633
test ecx, ecx
je 0x4056a5
mov edx, dword [ebp - 0x14]
mov eax, ecx
sub edx, ecx
and edx, 0xfffffffc
cmp edx, 0x1000
jb 0x405686
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4056cd
push edx
push ecx
call fcn.004e6b81
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x34]
call fcn.00409250
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.004e679a
mov esp, ebp
pop ebp
ret 4
call fcn.004ed63c
int3
Function at 0x40e220
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x518044
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x57f578]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00408fb0
mov dword [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.00408fb0
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.00408fb0
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.00408fb0
mov byte [ebp - 4], 3
lea ecx, [esi + 0x70]
mov word [esi + 0x60], 0x101
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
call fcn.00408fb0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40e990
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x628]
sub esp, 0x628
push 0xffffffffffffffff
push 0x5182d0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x57f578]
xor eax, ebp
mov dword [ebp + 0x624], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 0x630]
lea ecx, [ebp - 0x24]
mov ebx, dword [ebp + 0x634]
call fcn.00408fb0
mov dword [ebp - 4], 0
mov eax, dword [0x584888]
mov dword [ebp], 0
mov dword [ebp], 0x584888
test eax, eax
je 0x40ea04
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 1
mov ecx, 0x584898
call fcn.00408e80
test al, al
jne 0x40ea48
mov ecx, 0x584898
call fcn.00409140
lea ecx, [ebp - 0x24]
cmp ecx, eax
je 0x40eafd
mov ecx, 0x584898
call fcn.00409140
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x40ea3f
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
jmp 0x40eaf5
push 0x20c
lea eax, [ebp + 0x418]
push 0
push eax
call fcn.004e8f30
add esp, 0xc
lea eax, [ebp + 0x418]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x40eb99
xor eax, eax
push 0x412
push eax
mov word [ebp + 0x622], ax
lea eax, [ebp + 4]
push eax
call fcn.004e8f30
add esp, 0xc
lea eax, [ebp + 4]
push 0x208
push eax
lea eax, [ebp + 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x40eade
test eax, eax
je 0x40eade
add eax, eax
cmp eax, 0x412
jae 0x40ebec
xor ecx, ecx
mov word [ebp + eax + 4], cx
lea eax, [ebp + 4]
push eax
call fcn.00409590
add esp, 4
push eax
lea eax, [ebp + 4]
jmp 0x40eaf4
lea eax, [ebp + 0x418]
push eax
call fcn.00409590
add esp, 4
push eax
lea eax, [ebp + 0x418]
push eax
lea ecx, [ebp - 0x24]
call fcn.004092c0
mov byte [ebp - 4], 0
mov eax, dword [0x584888]
test eax, eax
je 0x40eb11
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
push edi
lea eax, [ebp - 0x24]
mov dword [ebp], 0
push eax
mov ecx, esi
call fcn.0040e920
test al, al
je 0x40eb30
mov bl, 1
jmp 0x40ebb6
push 0x20c
lea eax, [ebp + 0x418]
push 0
push eax
call fcn.004e8f30
add esp, 0xc
lea eax, [ebp + 0x418]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x40ebb4
xor eax, eax
mov word [ebp + 0x622], ax
lea eax, [ebp + 0x418]
push eax
call fcn.00409590
add esp, 4
lea ecx, [ebp - 0x24]
push eax
lea eax, [ebp + 0x418]
push eax
call fcn.004092c0
push ebx
push edi
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
call fcn.0040e920
mov bl, al
jmp 0x40ebb6
mov byte [ebp - 4], 0
mov eax, dword [0x584888]
test eax, eax
je 0x40ebad
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp], 0
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00408080
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 + 0x624]
xor ecx, ebp
call fcn.004e679a
lea esp, [ebp + 0x628]
pop ebp
ret 8
call fcn.004e6f1e
int3
Function at 0x40fd50
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5185a0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x57f578]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.00408e80
test al, al
je 0x40fd90
xor al, al
jmp 0x40ff4b
push edi
call fcn.0040f570
add esp, 4
test al, al
je 0x40fda4
mov al, 1
jmp 0x40ff4b
push 0
mov ecx, edi
call fcn.00408e90
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call ebx
test eax, eax
jne 0x40fdf3
lea ecx, [ebp - 0x2c]
call fcn.00408fb0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x2c]
mov ecx, edi
call fcn.0042e430
test al, al
je 0x40fde4
push 0
lea ecx, [ebp - 0x2c]
call fcn.00408e90
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00408080
push edi
call fcn.0040f570
add esp, 4
test al, al
jne 0x40fd9d
mov ecx, edi
call fcn.004092b0
xor esi, esi
mov dword [ebp - 0x48], eax
test eax, eax
je 0x40feec
mov ecx, edi
call fcn.00409140
mov ebx, eax
nop dword [eax]
mov ecx, dword [ebx + 0x14]
mov eax, ebx
cmp ecx, 8
jb 0x40fe2c
mov eax, dword [ebx]
mov edx, 0x2f
cmp dx, word [eax + esi*2]
mov edx, 0x5c
je 0x40fe4f
mov eax, ebx
cmp ecx, 8
jb 0x40fe45
mov eax, dword [ebx]
cmp dx, word [eax + esi*2]
jne 0x40fedc
push esi
push 0
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
call fcn.0040da20
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00408e80
test al, al
jne 0x40fecd
lea eax, [ebp - 0x2c]
push eax
call fcn.0040f350
add esp, 4
test al, al
jne 0x40fecd
push 0
lea ecx, [ebp - 0x2c]
call fcn.00408e90
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40fecd
lea ecx, [ebp - 0x44]
call fcn.00408fb0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.0042e430
test al, al
je 0x40fec1
push 0
lea ecx, [ebp - 0x44]
call fcn.00408e90
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.00408080
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00408080
inc esi
cmp esi, dword [ebp - 0x48]
jb 0x40fe20
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
call fcn.0040f350
add esp, 4
test al, al
jne 0x40ff42
push 0
mov ecx, edi
call fcn.00408e90
push eax
call ebx
test eax, eax
jne 0x40ff42
lea ecx, [ebp - 0x44]
call fcn.00408fb0
mov dword [ebp - 4], 3
lea edx, [ebp - 0x44]
mov ecx, edi
call fcn.0042e430
test al, al
je 0x40ff33
push 0
lea ecx, [ebp - 0x44]
call fcn.00408e90
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00408080
push edi
call fcn.0040f570
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004e679a
mov esp, ebp
pop ebp
ret
Function at 0x4107b0
Capabilities:
Check mutex on windows

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
mov dword [esi], 0
mov word [esi + 4], 0
call fcn.00408e80
test al, al
jne 0x4107d7
mov ecx, dword [esp + 8]
call fcn.00408e90
jmp 0x4107d9
xor eax, eax
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
je 0x410801
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov eax, esi
jne 0x410803
mov byte [esi + 5], 1
pop esi
ret 4
mov eax, esi
pop esi
ret 4

Function at 0x410860
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5186d8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x57f578]
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 0x4108a6
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.00428960
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x4108cf
lea ebx, [esi + 8]
jmp 0x4108d1
xor ebx, ebx
mov ecx, dword [ebp - 0x18]
call fcn.00408e80
test al, al
jne 0x4108e7
mov ecx, dword [ebp - 0x18]
call fcn.00408e90
jmp 0x4108e9
xor eax, eax
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
je 0x41090a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41090a
mov byte [edi + 5], 1
cmp dword [edi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x410933
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 0x410948
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.004e6b81
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.004e679a
mov esp, ebp
pop ebp
ret 4