joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4269d0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
push ebx
sub esp, 0x3c
mov dword [esp + 4], 0
mov dword [esp], 2
call sub.msvcrt.dll_setlocale
test eax, eax
je 0x426aa4
mov dword [esp], eax
mov esi, eax
mov ebx, esp
call sub.msvcrt.dll_strlen
lea edx, [eax + 1]
add eax, 0x10
shr eax, 4
shl eax, 4
call fcn.00428920
sub esp, eax
lea eax, [esp + 0xc]
mov dword [esp + 8], edx
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov dword [esp + 4], 0x4ca764
mov dword [esp], 2
mov esi, eax
call sub.msvcrt.dll_setlocale
mov dword [esp], esi
mov dword [esp + 4], eax
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x426ab0
mov dword [esp + 4], esi
mov dword [esp], 2
call sub.msvcrt.dll_setlocale
mov eax, esi
mov dword [esp + 4], 0x2e
mov dword [esp], eax
call sub.msvcrt.dll_strchr
test eax, eax
je 0x426aa0
add eax, 1
mov dword [esp], eax
call sub.msvcrt.dll_atoi
mov edi, eax
lea eax, [ebp - 0x2c]
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.KERNEL32.dll_GetCPInfo
sub esp, 8
test eax, eax
je 0x426aa0
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x426af0
xor edi, edi
mov esp, ebx
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], str.LC_ALL
call sub.msvcrt.dll_getenv
test eax, eax
jne 0x426a62
mov dword [esp], str.LC_CTYPE
call sub.msvcrt.dll_getenv
test eax, eax
jne 0x426a62
mov dword [esp], str.LANG
call sub.msvcrt.dll_getenv
test eax, eax
jne 0x426a62
mov eax, esi
jmp 0x426a62
mov esp, ebx
jmp 0x426aa4

Function at 0x428ca0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
call sub.KERNEL32.dll_GetLastError
mov esi, eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call sub.KERNEL32.dll_SetLastError
mov eax, ebx
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x428cd0
Capabilities:
Set thread local storage value

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsSetValue
sub esp, 8
test eax, eax
je 0x428cf8
xor eax, eax
add esp, 0x1c
ret
add esp, 0x1c
jmp sub.KERNEL32.dll_GetLastError
Function at 0x42cee0
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0x1c
mov dword [0xa51604], 0xffffffff
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xffff
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.dll_CreateSemaphoreW
sub esp, 0x10
mov dword [0xa51608], eax
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x42cf48
mov dword [esp + 4], 0x42cdf0
mov dword [esp], eax
mov dword [0xa51600], eax
call fcn.0042d560
test eax, eax
jne 0x4baa59
add esp, 0x1c
ret
call sub.KERNEL32.dll_GetLastError
jmp 0x42cf38
Function at 0x42cf50
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebp, dword [0xa50bcc]
mov esi, dword [esp + 0x40]
test ebp, ebp
jne 0x42cf78
mov eax, dword [esi + 8]
test eax, eax
je 0x42cfd0
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [esi + 8]
test edi, edi
je 0x42cfe0
mov ebx, dword [0xa51600]
call sub.KERNEL32.dll_GetLastError
mov dword [esp], ebx
mov ebp, eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov ebx, eax
mov dword [esp], ebp
call sub.KERNEL32.dll_SetLastError
sub esp, 4
test ebx, ebx
je 0x42d070
mov ebp, dword [ebx]
cmp ebp, edi
jb 0x42d0c0
lea ebx, [ebx + edi*4]
mov eax, dword [ebx]
test eax, eax
jne 0x42cf6c
mov eax, esi
call fcn.0042ce40
mov dword [ebx], eax
jmp 0x42cf6c
mov eax, esi
call fcn.0042ce40
mov dword [esi + 8], eax
jmp 0x42cf6c
mov edi, dword [0xa50bcc]
test edi, edi
je 0x42d148
mov ebx, dword [0x4c1584]
test ebx, ebx
je 0x42d118
mov dword [esp], 0xa51604
call sub.KERNEL32.dll_InterlockedIncrement
sub esp, 4
test eax, eax
jne 0x42d18b
mov edi, dword [esi + 8]
test edi, edi
je 0x42d153
mov eax, dword [0xa50bcc]
test eax, eax
je 0x42cf7f
mov dword [esp], 0xa51604
call sub.KERNEL32.dll_InterlockedDecrement
sub esp, 4
test eax, eax
js 0x42cf7f
mov eax, dword [0xa51608]
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.KERNEL32.dll_ReleaseSemaphore
sub esp, 0xc
jmp 0x42cf7f
lea eax, [edi + 0x21]
mov dword [esp + 4], 4
lea ebp, [edi + 0x20]
mov dword [esp], eax
call sub.msvcrt.dll_calloc
mov ebx, eax
test eax, eax
je 0x4baa5e
mov dword [eax], ebp
mov eax, dword [0xa51600]
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.KERNEL32.dll_TlsSetValue
sub esp, 8
test eax, eax
jne 0x42cfb6
call sub.KERNEL32.dll_GetLastError
jmp 0x42cfb6
lea edx, [ebp + ebp]
cmp edi, edx
jbe 0x42d0cb
lea edx, [edi + 0x20]
lea eax, [edx*4 + 4]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 0x1c], edx
call fcn.00420830
mov ebx, eax
test eax, eax
je 0x4baa5e
mov edx, dword [esp + 0x1c]
mov dword [eax], edx
sub edx, ebp
lea eax, [eax + ebp*4 + 4]
shl edx, 2
mov dword [esp + 4], 0
mov dword [esp + 8], edx
mov dword [esp], eax
call sub.msvcrt.dll_memset
jmp 0x42d092
mov dword [esp], 0x4c1588
call sub.KERNEL32.dll_InterlockedIncrement
sub esp, 4
test eax, eax
jne 0x42d17f
call fcn.0042cee0
mov dword [0x4c1584], 1
mov edx, dword [0xa50bcc]
test edx, edx
jne 0x42cffc
mov edi, dword [esi + 8]
test edi, edi
jne 0x42cf7f
mov eax, dword [0xa515fc]
lea edi, [eax + 1]
mov dword [0xa515fc], edi
mov dword [esi + 8], edi
jmp 0x42d01e
mov dword [esp], 0
call sub.KERNEL32.dll_Sleep
sub esp, 4
mov ecx, dword [0x4c1584]
test ecx, ecx
je 0x42d170
jmp 0x42d13a
mov eax, dword [0xa51608]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sub.KERNEL32.dll_WaitForSingleObject
sub esp, 8
test eax, eax
je 0x42d013
mov dword [esp], 0xa51604
call sub.KERNEL32.dll_InterlockedDecrement
sub esp, 4
jmp 0x42d013
Function at 0x430130
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ecx, 0x1a
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x80]
mov esi, 0x4c7945
push ebx
sub esp, 0x9c
mov eax, dword [str.not_enough_space_for_format_expansion__Please_submit_full_bug_report_at_https:__gcc.gnu.org_bugs__:_n]
mov dword [ebp - 0x81], eax
mov eax, dword [0x4c79a9]
mov dword [ebp - 0x1c], eax
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp + 8]
lea eax, [edx + 0x84]
and eax, 0xfffffff0
call fcn.00428920
mov ecx, 0x1a
sub esp, eax
lea esi, [ebp - 0x81]
mov dword [ebp - 0x8c], edx
lea ebx, [esp + 0x1b]
and ebx, 0xfffffff0
mov edi, ebx
lea eax, [ebx + 0x68]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 8]
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], ecx
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 0x8c]
mov byte [ebx + edx + 0x68], 0
mov dword [esp], ebx
call fcn.004b97f8
nop
nop
nop
nop
nop
nop
nop
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
cmp byte [0x4c2ffc], 0
jne 0x4b9e3c
mov byte [0x4c2ffc], 1
call fcn.004b76d0
test eax, eax
je 0x4b9e6e
mov ebx, dword [eax + 4]
xor eax, eax
cmp byte [ebx], 0x2a
mov dword [esp + 8], 0
sete al
mov dword [esp + 4], 0
add ebx, eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0xc], eax
mov dword [esp], ebx
call fcn.0041c5e0
mov edi, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x30
mov dword [esp + 4], 1
mov esi, eax
lea ebp, [edi + 0x40]
mov dword [esp], str.terminate_called_after_throwing_an_instance_of_
mov dword [esp + 0xc], ebp
call sub.msvcrt.dll_fwrite
mov edx, dword [esp + 0x1c]
mov dword [esp + 4], ebp
test edx, edx
jne 0x430208
mov dword [esp], esi
call sub.msvcrt.dll_fputs
lea eax, [edi + 0x40]
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x4c7fbd
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4b9e69
mov dword [esp], esi
call fcn.004208b0
jmp 0x4b9e69
mov dword [esp], ebx
call sub.msvcrt.dll_fputs
jmp 0x4301cc
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1d
mov dword [esp + 4], 1
add eax, 0x40
mov dword [esp], str.terminate_called_recursively_n
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
call sub.msvcrt.dll_abort
call fcn.004b7aa0
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x2d
mov dword [esp + 4], 1
add eax, 0x40
mov dword [esp], str.terminate_called_without_an_active_exception_n
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
call sub.msvcrt.dll_abort
sub edx, 1
mov dword [esp], eax
jne 0x4b9ef7
call fcn.004b75b0
add edi, 0x40
mov ecx, eax
mov eax, dword [eax]
call dword [eax + 8]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0xb
mov ebx, eax
mov dword [esp + 4], 1
mov dword [esp], str.__what__:
call sub.msvcrt.dll_fwrite
mov dword [esp + 4], edi
mov dword [esp], ebx
call sub.msvcrt.dll_fputs
mov dword [esp + 4], edi
mov dword [esp], 0xa
call sub.msvcrt.dll_fputc
call fcn.004b7720
jmp 0x4b9e96
call fcn.004b75b0
call fcn.004b7720
jmp 0x4b9e96
Function at 0x4ba910
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x6c
call fcn.0041ccc0
call sub.KERNEL32.dll_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sub.KERNEL32.dll_GetStartupInfoA
sub esp, 4
test ebx, ebx
jne 0x4ba94b
jmp 0x4ba99e
add ebx, 1
movzx eax, byte [ebx]
cmp al, 0x20
je 0x4ba948
cmp al, 9
je 0x4ba948
cmp al, 0x22
jne 0x4ba987
lea esi, [esi]
mov edx, ebx
movzx eax, byte [ebx + 1]
add ebx, 1
cmp al, 0x22
je 0x4ba975
test al, al
jne 0x4ba960
cmp al, 0x22
jne 0x4ba993
lea ebx, [edx + 2]
jmp 0x4ba993
cmp al, 9
je 0x4ba993
add ebx, 1
movzx eax, byte [ebx]
test al, 0xdf
jne 0x4ba980
jmp 0x4ba993
add ebx, 1
movzx eax, byte [ebx]
cmp al, 0x20
je 0x4ba990
cmp al, 9
je 0x4ba990
mov esi, 0xa
test byte [ebp - 0x30], 1
je 0x4ba9ad
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00412110
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x403ba0
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
push 0xfffffffffffffff0
push dword [esp + 0x10]
mov esi, ecx
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov cl, byte [esi + 8]
mov edi, eax
test edi, 0x10000000
je 0x403be2
push dword [esp + 0xc]
or cl, 4
mov byte [esi + 8], cl
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x403bdd
test edi, 0x21000000
jne 0x403bdd
or byte [esi + 8], 2
mov cl, byte [esi + 8]
jmp 0x403be8
and cl, 0xfd
mov byte [esi + 8], cl
test cl, 2
je 0x403bf9
mov ecx, esi
call fcn.004043b0
pop edi
pop esi
ret 4
push 0
push dword [esi + 0x40]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
ret 4
Function at 0x408270
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52cb78
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5938b4]
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 0x4082dd
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x4082d1
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x34]
call fcn.0040e470
lea eax, [ebp - 0x34]
push eax
push 0x4081c0
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [ebp - 0x18]
xor esi, esi
mov edx, dword [ebp - 0x1c]
sub eax, edx
sar eax, 2
test eax, eax
je 0x408330
mov edi, dword [sym.imp.USER32.dll_SendMessageTimeoutW]
push 0
push 0xbb8
push 3
push 0
push 0
push 0x464
push dword [edx + esi*4]
call edi
mov ecx, dword [ebp - 0x18]
neg eax
mov edx, dword [ebp - 0x1c]
sbb al, al
sub ecx, edx
inc esi
sar ecx, 2
and bl, al
cmp esi, ecx
jb 0x408303
lea ecx, [ebp - 0x34]
call fcn.00408360
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.004f8545
mov esp, ebp
pop ebp
ret 4
Function at 0x4123c0
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x140
mov eax, dword [0x5938b4]
xor eax, esp
mov dword [esp + 0x13c], eax
push esi
mov esi, dword [esp + 0x148]
push 0x118
push 0
lea eax, [esi + 4]
push eax
call fcn.004fb1f0
add esp, 0xc
mov dword [esi], 0x11c
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x412507
cmp dword [esi + 4], 6
push edi
ja 0x41241b
jne 0x4124a3
cmp dword [esi + 8], 2
jb 0x4124a3
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x4124a3
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4124a3
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4124a3
movups xmm0, xmmword [0x565860]
push eax
movups xmmword [esp + 0x128], xmm0
movups xmm0, xmmword [0x565870]
movups xmmword [esp + 0x138], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4124a3
lea eax, [esp + 0x124]
push eax
lea ecx, [edi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4124a3
cmp word [edi + 2], ax
jbe 0x4124a3
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 0x4124ee
push 0x118
lea eax, [esp + 0x10]
push 0
push eax
call fcn.004fb1f0
add esp, 0xc
mov dword [esp + 8], 0x11c
lea eax, [esp + 8]
push eax
call edi
test eax, eax
jne 0x4124ee
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.004f8545
add esp, 0x140
ret
mov ecx, dword [esp + 0x140]
xor al, al
pop esi
xor ecx, esp
call fcn.004f8545
add esp, 0x140
ret

Function at 0x413fa0
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52ddf4
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5938b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.0040e160
mov dword [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.0040e160
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.0040e160
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.0040e160
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.0040e160
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 0x4146f0
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x628]
sub esp, 0x628
push 0xffffffffffffffff
push 0x52e050
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x5938b4]
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.0040e160
mov dword [ebp - 4], 0
mov eax, dword [0x598d74]
mov dword [ebp], 0
mov dword [ebp], 0x598d74
test eax, eax
je 0x414764
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 1
mov ecx, 0x598d84
call fcn.0040e030
test al, al
jne 0x4147a8
mov ecx, 0x598d84
call fcn.00404df0
lea ecx, [ebp - 0x24]
cmp ecx, eax
je 0x41485d
mov ecx, 0x598d84
call fcn.00404df0
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x41479f
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
jmp 0x414855
push 0x20c
lea eax, [ebp + 0x418]
push 0
push eax
call fcn.004fb1f0
add esp, 0xc
lea eax, [ebp + 0x418]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x4148f9
xor eax, eax
push 0x412
push eax
mov word [ebp + 0x622], ax
lea eax, [ebp + 4]
push eax
call fcn.004fb1f0
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 0x41483e
test eax, eax
je 0x41483e
add eax, eax
cmp eax, 0x412
jae 0x41494c
xor ecx, ecx
mov word [ebp + eax + 4], cx
lea eax, [ebp + 4]
push eax
call fcn.0040e740
add esp, 4
push eax
lea eax, [ebp + 4]
jmp 0x414854
lea eax, [ebp + 0x418]
push eax
call fcn.0040e740
add esp, 4
push eax
lea eax, [ebp + 0x418]
push eax
lea ecx, [ebp - 0x24]
call fcn.0040e470
mov byte [ebp - 4], 0
mov eax, dword [0x598d74]
test eax, eax
je 0x414871
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.00414680
test al, al
je 0x414890
mov bl, 1
jmp 0x414916
push 0x20c
lea eax, [ebp + 0x418]
push 0
push eax
call fcn.004fb1f0
add esp, 0xc
lea eax, [ebp + 0x418]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x414914
xor eax, eax
mov word [ebp + 0x622], ax
lea eax, [ebp + 0x418]
push eax
call fcn.0040e740
add esp, 4
lea ecx, [ebp - 0x24]
push eax
lea eax, [ebp + 0x418]
push eax
call fcn.0040e470
push ebx
push edi
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
call fcn.00414680
mov bl, al
jmp 0x414916
mov byte [ebp - 4], 0
mov eax, dword [0x598d74]
test eax, eax
je 0x41490d
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.0040ac80
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.004f8545
lea esp, [ebp + 0x628]
pop ebp
ret 8
call fcn.004f8cce
int3
Function at 0x415f40
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52e450
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x5938b4]
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, dword [ebp + 8]
mov ecx, edi
call fcn.0040e030
test al, al
je 0x415f80
xor al, al
jmp 0x41613b
push edi
call fcn.00415610
add esp, 4
test al, al
je 0x415f94
mov al, 1
jmp 0x41613b
push 0
mov ecx, edi
call fcn.0040e040
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call ebx
test eax, eax
jne 0x415fe3
lea ecx, [ebp - 0x28]
call fcn.0040e160
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.004340a0
test al, al
je 0x415fd4
push 0
lea ecx, [ebp - 0x28]
call fcn.0040e040
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040ac80
push edi
call fcn.00415610
add esp, 4
test al, al
jne 0x415f8d
mov ecx, edi
call fcn.0040e460
xor esi, esi
mov dword [ebp - 0x44], eax
test eax, eax
je 0x4160dc
mov ecx, edi
call fcn.00404df0
mov ebx, eax
nop dword [eax]
mov ecx, dword [ebx + 0x14]
mov eax, ebx
cmp ecx, 8
jb 0x41601c
mov eax, dword [ebx]
mov edx, 0x2f
cmp dx, word [eax + esi*2]
mov edx, 0x5c
je 0x41603f
mov eax, ebx
cmp ecx, 8
jb 0x416035
mov eax, dword [ebx]
cmp dx, word [eax + esi*2]
jne 0x4160cc
push esi
push 0
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00413790
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.0040e030
test al, al
jne 0x4160bd
lea eax, [ebp - 0x28]
push eax
call fcn.004153f0
add esp, 4
test al, al
jne 0x4160bd
push 0
lea ecx, [ebp - 0x28]
call fcn.0040e040
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4160bd
lea ecx, [ebp - 0x40]
call fcn.0040e160
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.004340a0
test al, al
je 0x4160b1
push 0
lea ecx, [ebp - 0x40]
call fcn.0040e040
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.0040ac80
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040ac80
inc esi
cmp esi, dword [ebp - 0x44]
jb 0x416010
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
call fcn.004153f0
add esp, 4
test al, al
jne 0x416132
push 0
mov ecx, edi
call fcn.0040e040
push eax
call ebx
test eax, eax
jne 0x416132
lea ecx, [ebp - 0x40]
call fcn.0040e160
mov dword [ebp - 4], 3
lea edx, [ebp - 0x40]
mov ecx, edi
call fcn.004340a0
test al, al
je 0x416123
push 0
lea ecx, [ebp - 0x40]
call fcn.0040e040
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0040ac80
push edi
call fcn.00415610
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 - 0x10]
xor ecx, ebp
call fcn.004f8545
mov esp, ebp
pop ebp
ret
Function at 0x417110
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.0040e030
test al, al
jne 0x417137
mov ecx, dword [esp + 8]
call fcn.0040e040
jmp 0x417139
xor eax, eax
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
je 0x417161
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov eax, esi
jne 0x417163
mov byte [esi + 5], 1
pop esi
ret 4
mov eax, esi
pop esi
ret 4

Function at 0x4171c0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52e668
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x5938b4]
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 0x417206
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.0042f3c0
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x41722f
lea ebx, [esi + 8]
jmp 0x417231
xor ebx, ebx
mov ecx, dword [ebp - 0x18]
call fcn.0040e030
test al, al
jne 0x417247
mov ecx, dword [ebp - 0x18]
call fcn.0040e040
jmp 0x417249
xor eax, eax
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
je 0x41726a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41726a
mov byte [edi + 5], 1
cmp dword [edi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x417293
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 0x4172a8
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.004f8820
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.004f8545
mov esp, ebp
pop ebp
ret 4