joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49b280
Capabilities:
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
call fcn.0049af40
mov edx, dword [entry3]
test edx, edx
je 0x49b3b0
mov ebx, eax
test eax, eax
je 0x49b3b0
mov dword [eax + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebx + 0x3c], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebx + 0x1c], 0xffffffff
mov dword [ebx + 0x18], eax
sub esp, 0x10
lea eax, [ebx + 0x38]
mov dword [esp], eax
call fcn.0049aa40
cmp eax, 1
je 0x49b3bc
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebx + 0x38], 0xffffffff
mov dword [ebx + 0x64], 0
mov dword [ebx + 0x14], 0
call ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov esi, eax
call ebp
lea edx, [ebx + 0x14]
mov dword [esp + 8], edi
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
sub esp, 0x1c
test eax, eax
je fcn.005a5942
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [ebx + 0x68], 0
mov dword [ebx + 0x6c], eax
movzx eax, byte [ebx + 0x20]
sub esp, 4
and eax, 0xffffffcf
or eax, 0x10
mov byte [ebx + 0x20], al
mov eax, dword [0x5b316c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x49b3c1
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
add esp, 0x2c
xor ebx, ebx
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.0049ad60
jmp fcn.005a5942

Function at 0x49b3d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub esp, 0x1c
call fcn.0049b1c0
mov eax, dword [0x5b316c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x49b3f8
add esp, 0x1c
ret
add esp, 0x1c
jmp fcn.0049b280
Function at 0x49b6c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x49b6f0
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x49b7c0
add esp, 0x1c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
cmp eax, 1
je 0x49b7f0
cmp eax, 3
jne 0x49b6db
mov eax, dword [0x5b316c]
cmp eax, 0xffffffff
je 0x49b6db
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x49b6db
lea esi, [eax + 0x1c]
lea edi, [eax + 0x38]
test byte [eax + 0x20], 0x30
je 0x49b820
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x49b739
call fcn.0049b400
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x49b76b
mov dword [esp], eax
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebp
mov eax, dword [ebx + 0x18]
sub esp, 4
test eax, eax
je 0x49b75d
mov dword [esp], eax
call ebp
sub esp, 4
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x14], 0
mov dword [esp], esi
call fcn.0049a880
mov dword [esp], edi
call fcn.0049aa40
cmp eax, 1
je 0x49b8e6
mov eax, dword [ebx + 0xb0]
mov dword [ebx + 0x38], 0xffffffff
test eax, eax
je 0x49b8da
mov eax, dword [0x5b316c]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
jmp 0x49b6db
mov eax, dword [0x696ff0]
test eax, eax
je 0x49b6db
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
mov dword [0x696ff0], 0
sub esp, 4
jmp 0x49b6db
mov dword [esp + 4], 0x49aab0
mov dword [esp], 1
call dword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
sub esp, 8
mov dword [0x696ff0], eax
mov eax, 1
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
mov edx, dword [ebx + 0x68]
mov eax, dword [eax + 0x18]
test edx, edx
jne 0x49b890
test eax, eax
je 0x49b83a
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov eax, dword [ebx + 0xb4]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x68], 1
test eax, eax
je 0x49b857
call fcn.0049b400
test byte [ebx + 0x24], 4
je 0x49b8d0
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x49b76b
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x14], 0
sub esp, 4
mov dword [esp], esi
call fcn.0049a880
jmp 0x49b773
test eax, eax
je 0x49b8d0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x18], 0
sub esp, 4
mov dword [esp], esi
call fcn.0049a880
mov dword [esp], edi
call fcn.0049aa40
cmp eax, 1
je 0x49b8e6
mov dword [ebx + 0x38], 0xffffffff
jmp 0x49b6db
mov dword [esp], esi
call fcn.0049a880
jmp 0x49b8af
mov eax, ebx
call fcn.0049b000
jmp 0x49b799
call fcn.0049ad60
lea esi, [esi]
nop
Function at 0x49bb80
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov eax, dword [ebx]
test edx, edx
je 0x49bca0
cmp eax, 1
je 0x49bbd4
mov eax, ebx
call fcn.0049ab40
lea edi, [eax + 4]
mov esi, eax
mov dword [esp], edi
call fcn.0049a3c0
mov ebp, dword [ebx]
test ebp, ebp
je 0x49bbe0
cmp ebp, 1
jne 0x49bc70
mov dword [esp], edi
call fcn.0049a700
test esi, esi
je 0x49bbd4
mov eax, esi
call fcn.0049ae50
add esp, 0x2c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x14], 0x49af10
mov dword [esp + 0x18], esi
call fcn.0049b1c0
mov eax, dword [0x5b316c]
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esp], eax
call ebp
sub esp, 4
test eax, eax
je 0x49bcd8
mov eax, dword [eax + 0xc]
mov dword [esp + 0x1c], eax
lock or dword [esp], 0
call fcn.0049b1c0
mov eax, dword [0x5b316c]
mov dword [esp], eax
call ebp
sub esp, 4
test eax, eax
je 0x49bcc0
lea edx, [esp + 0x14]
mov dword [eax + 0xc], edx
lock or dword [esp], 0
call dword [esp + 0x44]
call fcn.0049b1c0
mov eax, dword [0x5b316c]
mov dword [esp], eax
call ebp
sub esp, 4
test eax, eax
je 0x49bcb0
mov edx, dword [esp + 0x1c]
mov dword [eax + 0xc], edx
mov dword [ebx], 1
jmp 0x49bbc1
mov dword [esp], 2
call dword [0x5b3158]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], ebx
mov dword [esp + 4], str._once__p_is__d_n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x49bbc1
add esp, 0x2c
mov eax, 0x16
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.0049b280
test eax, eax
jne 0x49bc58
jmp 0x5a5955
call fcn.0049b280
test eax, eax
jne 0x49bc32
jmp 0x5a5967
call fcn.0049b280
test eax, eax
jne 0x49bc0c
jmp 0x5a5960
mov eax, dword [esp + 0x1c]
mov dword [0], eax
ud2
mov eax, dword [pe_dos_header]
ud2
lea eax, [esp + 0x14]
mov dword [0], eax
ud2

Function at 0x49bf30
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.0049b1c0
mov eax, dword [0x5b316c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x49bfa8
lea ebp, [ebx + 0x38]
xor edi, edi
mov dword [esp], ebp
call fcn.0049aa50
mov eax, dword [ebx + 0x28]
cmp dword [esp + 0x30], eax
jae 0x49bf84
mov eax, dword [ebx + 0x30]
mov edx, dword [esp + 0x30]
cmp byte [eax + edx], 0
je 0x49bf84
mov eax, dword [ebx + 0x2c]
mov edi, dword [eax + edx*4]
mov dword [esp], ebp
call fcn.0049aaa0
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.0049b280
mov ebx, eax
jmp 0x49bf5b
Function at 0x49bfc0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov esi, dword [esp + 0x40]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
call fcn.0049b1c0
mov eax, dword [0x5b316c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x49c0e0
lea edi, [ebx + 0x38]
mov dword [esp], edi
call fcn.0049aa50
cmp esi, dword [ebx + 0x28]
jae 0x49c040
mov edx, dword [ebx + 0x2c]
mov eax, dword [esp + 0x44]
mov dword [edx + esi*4], eax
mov eax, dword [ebx + 0x30]
mov byte [eax + esi], 1
mov dword [esp], edi
call fcn.0049aaa0
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
sub esp, 4
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
lea ebp, [esi + 1]
lea eax, [ebp*4]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call sub.msvcrt.dll_realloc
test eax, eax
je 0x49c0ec
mov dword [esp + 0x1c], eax
mov dword [esp + 4], ebp
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
call sub.msvcrt.dll_realloc
mov edx, dword [esp + 0x1c]
test eax, eax
mov dword [esp + 0x18], eax
je 0x49c0ec
mov ecx, dword [ebx + 0x28]
mov eax, ebp
mov dword [esp + 4], 0
mov dword [esp + 0x1c], edx
sub eax, ecx
lea ecx, [edx + ecx*4]
shl eax, 2
mov dword [esp], ecx
mov dword [esp + 8], eax
call sub.msvcrt.dll_memset
mov eax, dword [ebx + 0x28]
mov edx, dword [esp + 0x18]
mov ecx, ebp
mov dword [esp + 4], 0
sub ecx, eax
add eax, edx
mov dword [esp + 8], ecx
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x28], ebp
mov dword [ebx + 0x2c], edx
mov dword [ebx + 0x30], eax
jmp 0x49c008
call fcn.0049b280
mov ebx, eax
jmp 0x49bff5
mov dword [esp], edi
call fcn.0049aaa0
mov eax, 0xc
jmp 0x49c030

Function at 0x49c170
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
call fcn.0049b1c0
mov eax, dword [0x5b316c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x49c198
mov eax, dword [eax + 0x18]
add esp, 0x1c
ret
call fcn.0049b280
test eax, eax
jne 0x49c18d
add esp, 0x1c
ret

Function at 0x49c200
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
call fcn.0049b1c0
mov eax, dword [0x5b316c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x49c228
add eax, 0xc
add esp, 0x1c
ret
call fcn.0049b280
test eax, eax
jne 0x49c21d
jmp 0x49c220
Function at 0x49c260
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov esi, dword [esp + 0x20]
call fcn.0049b3d0
mov dword [eax + 4], esi
mov ebx, eax
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x49c282
call fcn.0049b400
test byte [ebx + 0x20], 0x30
jne 0x49c29c
add ebx, 0x70
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll_longjmp]
mov eax, dword [0x5b316c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
push edx
test eax, eax
je 0x49c2dd
cmp dword [ebx + 0x14], 0
mov eax, dword [eax + 0x18]
je 0x49c31d
mov dword [ebx + 0x68], 1
mov esi, dword [ebx + 4]
test eax, eax
je 0x49c2d2
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
xor eax, eax
mov dword [ebx + 0x18], eax
test byte [ebx + 0x24], 4
jne 0x49c2e6
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__endthreadex]
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
push ecx
mov dword [ebx + 0x14], eax
mov eax, ebx
call fcn.0049b1a0
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [0x5b316c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push edx
push edx
jmp 0x49c2dd
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x49c331
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
xor eax, eax
mov esi, dword [ebx + 4]
mov dword [ebx + 0x18], eax
jmp 0x49c2fe

Function at 0x49c340
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x69701c]
test eax, eax
jne 0x49c350
xor eax, eax
ret
sub esp, 0x1c
call fcn.0049b1c0
mov eax, dword [0x5b316c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x49c390
mov edx, dword [eax + 0x10]
test edx, edx
jle 0x49c380
xor eax, eax
add esp, 0x1c
ret
test byte [eax + 0x20], 3
je 0x49c374
mov eax, dword [eax + 0x24]
and eax, 1
jmp 0x49c376
call fcn.0049b280
test eax, eax
jne 0x49c36d
jmp 0x49c374

Function at 0x49c3a0
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
call fcn.0049b1c0
mov eax, dword [0x5b316c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x49c3e0
mov edx, dword [esp + 0x20]
test edx, edx
jle 0x49c3d0
lock add dword [eax + 0x10], 1
add esp, 0x1c
ret
lock sub dword [eax + 0x10], 1
add esp, 0x1c
ret
call fcn.0049b280
test eax, eax
jne 0x49c3bd
add esp, 0x1c
ret
Function at 0x49c4e0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
call fcn.0049b1c0
mov eax, dword [0x5b316c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x49c550
test byte [ebx + 0x20], 0xc
jne 0x49c510
mov eax, dword [0x69701c]
test eax, eax
jne 0x49c520
add esp, 0x14
pop ebx
pop esi
ret
lea esi, [ebx + 0x1c]
mov dword [esp], esi
call fcn.0049a3c0
movzx eax, byte [ebx + 0x20]
test al, 3
je 0x49c542
mov edx, dword [ebx + 0x24]
test dl, 1
je 0x49c542
mov ecx, dword [ebx + 0x10]
test ecx, ecx
jle 0x49c561
mov dword [esp], esi
call fcn.0049a700
add esp, 0x14
pop ebx
pop esi
ret
call fcn.0049b280
mov ebx, eax
test eax, eax
jne 0x49c501
add esp, 0x14
pop ebx
pop esi
ret
and eax, 0xfffffff3
and edx, 0xfffffffe
or eax, 4
mov dword [ebx + 0x24], edx
mov byte [ebx + 0x20], al
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x49c581
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push eax
mov dword [esp], esi
call fcn.0049a700
call fcn.0049c3f0
nop
push edi
push esi
push ebx
sub esp, 0x10
mov eax, dword [esp + 0x20]
test eax, eax
je 0x49c610
mov dword [esp], eax
call fcn.0049a100
mov edi, eax
mov eax, 0xfffffffe
cmp eax, edi
mov eax, 0
sbb eax, edx
jb 0x49c650
call fcn.0049b1c0
mov eax, dword [0x5b316c]
mov esi, edi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x49c6b0
test edi, edi
je 0x49c62a
call fcn.0049c4e0
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x49c688
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.0049a210
call fcn.0049c4e0
add esp, 0x10
xor eax, eax
pop ebx
pop esi
pop edi
ret
call fcn.0049b1c0
mov eax, dword [0x5b316c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x49c6a0
call fcn.0049c4e0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 4
call fcn.0049c4e0
add esp, 0x10
xor eax, eax
pop ebx
pop esi
pop edi
ret
call fcn.0049b1c0
mov eax, dword [0x5b316c]
mov esi, 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
jne 0x49c5e2
call fcn.0049b280
mov ebx, eax
jmp 0x49c5e2
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 4
jmp 0x49c5fe
call fcn.0049b280
jmp 0x49c62a
call fcn.0049b280
mov ebx, eax
jmp 0x49c5de

Function at 0x49fd00
Capabilities:
Create directory

Disassembly:
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x10
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__wmkdir]
test eax, eax
jne 0x49fd38
call fcn.00558c60
mov dword [ebx], 0
mov dword [ebx + 4], eax
add esp, 0x10
mov eax, 1
pop ebx
pop esi
pop edi
ret
call dword [sym.imp.msvcrt.dll__errno]
mov edi, dword [eax]
cmp edi, 0x11
je 0x49fd60
call fcn.00558c70
mov dword [ebx], edi
mov dword [ebx + 4], eax
xor eax, eax
add esp, 0x10
pop ebx
pop esi
pop edi
ret
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.005205a0
cmp al, 2
jne 0x49fd45
xor eax, eax
jmp 0x49fd51
Function at 0x4b92d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ecx, 0x1a
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x80]
mov esi, 0x5c1da5
push ebx
sub esp, 0x9c
mov eax, dword [0x5c1da4]
mov dword [ebp - 0x81], eax
mov eax, dword [0x5c1e09]
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.0048a5b0
mov ecx, 0x1a
sub esp, eax
lea esi, [ebp - 0x81]
lea ebx, [esp + 0x1b]
and ebx, 0xfffffff0
mov edi, ebx
lea eax, [ebx + 0x68]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 8], edx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x8c], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 0x8c]
mov byte [ebx + edx + 0x68], 0
mov dword [esp], ebx
call fcn.005a2590
nop
nop
nop
nop
nop
nop
nop
push edi
push esi
push ebx
sub esp, 0x20
cmp byte [0x5b4cb0], 0
jne 0x4b93f6
mov byte [0x5b4cb0], 1
call fcn.005a06b0
test eax, eax
je 0x4b93c4
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.004894a0
mov dword [esp], 2
mov esi, dword [fcn.00498660]
mov edi, eax
call esi
mov dword [esp + 8], 0x30
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_after_throwing_an_instance_of_
call sub.msvcrt.dll_fwrite
mov edx, dword [esp + 0x1c]
mov dword [esp], 2
test edx, edx
je 0x4b93b4
call esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
mov dword [esp], 2
call esi
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x5c0a99
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x5a1540
jmp 0x5a1538
call esi
mov dword [esp], edi
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
jmp 0x4b937a
mov dword [esp], 2
call dword [0x5b3158]
mov dword [esp + 8], 0x2d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_without_an_active_exception_n
call sub.msvcrt.dll_fwrite
jmp 0x5a1533
mov dword [esp], 2
call dword [0x5b3158]
mov dword [esp + 8], 0x1d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_recursively_n
call sub.msvcrt.dll_fwrite
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
push ebx
mov ebx, ecx
sub esp, 0x18
mov dword [ecx], 0x5e76b4
call fcn.005908d0
mov dword [esp], ebx
mov dword [esp + 4], 4
call fcn.005a0430
add esp, 0x18
pop ebx
ret
call sub.msvcrt.dll_abort
mov dword [esp], edi
call fcn.00498d38
call fcn.005a0a70
call fcn.005a05a0
call fcn.005a06e0
jmp 0x5a1533
Function at 0x51f660
Capabilities:
Get common file path

Disassembly:
push ebp
xor eax, eax
mov edx, 0x400
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x28]
push ebx
sub esp, 0x4c
mov esi, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], 0
mov word [ebp - 0x28], ax
lea esi, [esi]
mov dword [esp + 4], 0
lea ecx, [ebp - 0x30]
mov dword [esp], edx
call fcn.005743a0
mov eax, dword [ebp - 0x30]
sub esp, 8
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call ebx
sub esp, 8
mov edx, eax
cmp dword [ebp - 0x2c], eax
jb 0x51f690
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x51f760
call fcn.00558c60
mov ebx, dword [ebp + 0xc]
mov dword [ebx], 0
mov dword [ebx + 4], eax
mov edx, dword [ebp - 0x3c]
mov dword [esp + 4], 0
lea ecx, [ebp - 0x30]
mov dword [esp], edx
call fcn.005743a0
mov eax, dword [ebp - 0x30]
lea edx, [esi + 8]
mov ebx, dword [ebp - 0x2c]
sub esp, 8
mov dword [esi], edx
cmp eax, edi
je 0x51f7d0
mov dword [esi], eax
mov eax, dword [ebp - 0x28]
mov dword [esi + 8], eax
mov dword [esi + 4], ebx
lea ebx, [esi + 0x18]
xor eax, eax
mov ecx, ebx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], 0
mov word [ebp - 0x28], ax
call fcn.00524040
mov ecx, esi
call fcn.005232a0
mov eax, dword [ebp - 0x30]
cmp eax, edi
je 0x51f74d
mov edx, dword [ebp - 0x28]
mov dword [esp], eax
lea edx, [edx + edx + 2]
mov dword [esp + 4], edx
call fcn.005a0430
mov eax, dword [ebp + 0xc]
mov edi, dword [eax]
test edi, edi
je 0x51f780
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.00558c60
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x3c]
mov dword [ecx], ebx
jmp 0x51f6de
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.005205a0
mov edi, dword [ebp + 0xc]
mov ebx, dword [edi]
test ebx, ebx
jne 0x51f7f8
cmp al, 2
je 0x51f756
mov eax, dword [esi]
xor edx, edx
mov dword [esi + 4], 0
mov ecx, esi
mov word [eax], dx
call fcn.005232a0
call fcn.00558c70
mov edi, dword [ebp + 0xc]
mov dword [edi + 4], eax
mov eax, esi
mov dword [edi], 0x14
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, ebx
add eax, 1
je 0x51f70f
add eax, eax
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov dword [esp], edx
call sub.msvcrt.dll_memcpy
jmp 0x51f70f
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 4], 0
mov word [eax], cx
mov ecx, esi
call fcn.005232a0
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x520350
Capabilities:
Delete directory
Delete file

Disassembly:
push esi
push ebx
sub esp, 0x14
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov dword [esp], esi
mov dword [esp + 4], ebx
call fcn.0051d4b0
test al, al
je 0x5203ab
cmp al, 0xff
je 0x5203b8
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.005205a0
cmp al, 2
je 0x5203d0
mov eax, dword [esi]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
sub esp, 4
test eax, eax
jne 0x5203e2
mov eax, dword [ebx]
test eax, eax
jne 0x5203ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.00558c60
mov dword [ebx], esi
mov dword [ebx + 4], eax
add esp, 0x14
xor eax, eax
pop ebx
pop esi
ret
call fcn.00558c60
mov dword [ebx], 0
mov dword [ebx + 4], eax
jmp 0x5203ab
mov eax, dword [esi]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
sub esp, 4
test eax, eax
je 0x520381
call fcn.00558c60
mov dword [ebx], 0
mov dword [ebx + 4], eax
add esp, 0x14
mov eax, 1
pop ebx
pop esi
ret

Function at 0x520450
Capabilities:
Move file

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
mov esi, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
mov edi, dword [esp + 0x30]
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.005205a0
cmp al, 0xff
je 0x5204b8
mov ecx, dword [ebx]
test ecx, ecx
jne 0x5204ae
test al, al
jne 0x5204d0
mov dword [esp + 8], 3
mov eax, dword [esi]
mov dword [esp + 4], eax
mov eax, dword [edi]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
sub esp, 0xc
test eax, eax
je 0x520520
call fcn.00558c60
mov dword [ebx], 0
mov dword [ebx + 4], eax
add esp, 0x20
pop ebx
pop esi
pop edi
ret
call fcn.00558c60
mov dword [ebx], 0
mov dword [ebx + 4], eax
jmp 0x52047c
mov dword [esp + 4], ebx
mov dword [esp], edi
mov dword [esp + 0x1c], eax
call fcn.005205a0
mov edx, dword [ebx]
test edx, edx
jne 0x5204ae
mov ecx, dword [esp + 0x1c]
cmp cl, 2
je 0x520508
cmp al, 2
jne 0x52047c
call fcn.00558c70
mov dword [ebx], 0x14
mov dword [ebx + 4], eax
jmp 0x5204ae
cmp al, 2
je 0x52047c
call fcn.00558c70
mov dword [ebx], 0x15
mov dword [ebx + 4], eax
jmp 0x5204ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.msvcrt.dll__errno]
cmp eax, 5
je 0x520550
call edi
mov dword [eax], 5
call fcn.00558c70
mov esi, eax
call edi
mov eax, dword [eax]
mov dword [ebx + 4], esi
mov dword [ebx], eax
add esp, 0x20
pop ebx
pop esi
pop edi
ret
call edi
mov dword [eax], 0xd
jmp 0x520539