joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f5940
Capabilities:
Create shortcut via ishelllink
Get common file path

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x18]
push ebx
xor bl, bl
test eax, eax
push ebp
mov ebp, dword [esp + 0x24]
mov byte [esp + 0xa], bl
je 0x4f5b17
cmp byte [eax], 0
je 0x4f5b17
test ebp, ebp
je 0x4f5b17
cmp byte [ebp], 0
je 0x4f5b17
push esi
push edi
mov edi, dword [sym.imp.ole32.dll_CoCreateInstance]
lea eax, [esp + 0x14]
push eax
push 0x6c25ec
push 1
push 0
push 0x6c25fc
mov byte [esp + 0x27], bl
call edi
mov esi, eax
test esi, esi
jge 0x4f59cc
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jne 0x4f59c4
lea ecx, [esp + 0x14]
push ecx
push 0x6c25ec
push 1
push eax
push 0x6c25fc
call edi
mov esi, eax
mov byte [esp + 0x13], 1
test esi, esi
jl 0x4f5b07
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push ebp
mov esi, 0x8cccd0
push eax
mov dword [esp + 0x20], esi
call dword [edx + 0x50]
mov ebx, str.Shortcut_to
lea eax, [esp + 0x18]
call fcn.00412f10
mov ebx, dword [esp + 0x28]
push ebx
lea eax, [esp + 0x1c]
call fcn.00412e50
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x1c]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
push 0x6c260c
push eax
call dword [ecx]
test eax, eax
jl 0x4f5af0
mov eax, dword [0x8cccc8]
cmp eax, 0x104
mov dword [esp + 0x28], esi
jge 0x4f5a51
mov edi, dword [0x8ccccc]
mov eax, 0x11f
lea ecx, [esp + 0x28]
call fcn.004f49c0
mov esi, dword [esp + 0x28]
mov dword [esi - 4], edi
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x4f5add
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4f5a66
sub eax, edx
mov dword [esi - 4], eax
push 0x70e1b4
lea eax, [esp + 0x2c]
call fcn.00412e50
push ebx
lea eax, [esp + 0x2c]
call fcn.00412e50
push str..lnk
lea eax, [esp + 0x2c]
call fcn.00412e50
mov esi, dword [esp + 0x28]
mov eax, esi
call fcn.004f29f0
test al, al
jne 0x4f5add
mov edx, esi
lea edi, [esp + 0x1c]
mov dword [esp + 0x1c], 0x8cccd0
call fcn.004f4a70
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
push 1
push edx
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x4f5ad4
mov byte [esp + 0x12], 1
lea esi, [esp + 0x1c]
call fcn.00412c90
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0x28]
call fcn.00412fb0
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push eax
call dword [edx + 8]
lea ecx, [esp + 0x18]
call fcn.00412fb0
mov bl, byte [esp + 0x12]
mov al, byte [esp + 0x13]
test al, al
pop edi
pop esi
je 0x4f5b17
call dword [sym.imp.ole32.dll_CoUninitialize]
pop ebp
mov al, bl
pop ebx
add esp, 0x14
ret
Function at 0x4f5dc0
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0xc
push ebx
push esi
mov dword [esp + 8], 0x8cccd0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov ebx, eax
lea eax, [esp + 8]
call fcn.00412f10
mov esi, dword [esp + 8]
mov eax, dword [esi - 4]
test eax, eax
jle 0x4f5e00
push str._FXSLOAD
push esi
call dword [sym.imp.MSVCR71.dll_strstr]
add esp, 8
test eax, eax
je 0x4f5e00
sub eax, esi
jmp 0x4f5e03
or eax, 0xffffffff
test eax, eax
mov dword [esp + 0xc], eax
jl 0x4f5e71
push 0x22
push 0x22
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
lea ecx, [esp + 0x14]
call fcn.004f3010
lea ecx, [esp + 8]
call fcn.00412ec0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff8
je 0x4f5e43
cmp eax, 0x8cccc8
je 0x4f5e43
push eax
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
mov esi, dword [esp + 8]
lea eax, [esp + 8]
mov ecx, edi
call fcn.00412df0
lea eax, [esi - 8]
test eax, eax
pop esi
pop ebx
je 0x4f5e6b
cmp eax, 0x8cccc8
je 0x4f5e6b
push eax
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, edi
add esp, 0xc
ret
mov eax, dword [esi - 4]
test eax, eax
je 0x4f5e47
mov byte [esi], 0
mov dword [esi - 4], 0
jmp 0x4f5e47
Function at 0x4f6200
Capabilities:
Get thread local storage value

Disassembly:
push ecx
mov eax, dword [0x728c28]
cmp eax, 0xffffffff
push ebp
push esi
mov esi, dword [0x728c1c]
push edi
mov ebp, ecx
je 0x4f622d
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4f622d
or edx, 0xffffffff
mov ecx, esi
call fcn.004fc390
jmp 0x4f6236
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [esp + 0x14]
test edi, edi
mov esi, 1
mov byte [esp + 0xf], 0
je 0x4f630a
mov al, byte [0x8cccf8]
test al, al
push ebx
jne 0x4f631f
mov ebx, dword [sym.imp.MSVCR71.dll_strchr]
push 0x5c
push edi
call ebx
add esp, 8
test eax, eax
jne 0x4f627c
push 0x2f
push edi
call ebx
add esp, 8
test eax, eax
je 0x4f631f
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push eax
or ecx, 4
push ecx
push edx
push edi
mov ecx, ebp
mov byte [esp + 0x28], 0
call fcn.004f2520
mov esi, eax
test esi, esi
mov byte [esp + 0x13], 1
je 0x4f6303
mov eax, dword [0x8ccce0]
test eax, eax
je 0x4f6326
lea ebx, [ebp + 0x28]
push ebx
push edi
call fcn.004f6b60
add esp, 8
test eax, eax
je 0x4f6326
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push 0
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [ebx]
push ecx
push edx
mov ecx, ebp
call fcn.004f6350
mov esi, eax
cmp dword [ebx], 0
je 0x4f62ff
mov ebx, edi
mov eax, ebp
call fcn.004f2ea0
mov al, byte [esp + 0x13]
test al, al
je 0x4f62ff
test esi, esi
je 0x4f6303
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
jne 0x4f6309
inc dword [0x8ccce4]
pop ebx
mov eax, dword [0x728c1c]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret 0x10
mov byte [esp + 0x18], 1
jmp 0x4f62a6
mov al, byte [esp + 0x18]
test al, al
je 0x4f62eb
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push eax
push ecx
push edx
push edi
mov ecx, ebp
call fcn.004f2520
mov esi, eax
jmp 0x4f62ff
Function at 0x4f6350
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
mov edi, eax
mov al, byte [esp + 0x2c]
test al, al
mov esi, ecx
je 0x4f6397
mov eax, dword [0x728c28]
cmp eax, 0xffffffff
mov ebx, dword [0x728c1c]
je 0x4f638e
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4f638e
or edx, 0xffffffff
mov ecx, ebx
call fcn.004fc390
jmp 0x4f6397
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test ebp, ebp
mov dword [esi + 0x28], ebp
jne 0x4f63a6
call fcn.004f6c30
mov dword [esi + 0x28], eax
mov eax, dword [esi + 0x28]
test eax, eax
je 0x4f63db
mov ecx, dword [esp + 0x20]
mov eax, 1
cmp ecx, eax
jne 0x4f63d1
mov dword [esi + 0x20], eax
mov ebx, dword [edi + 8]
mov eax, esi
call fcn.004f2ea0
mov dword [esi + 0x2c], edi
xor esi, esi
jmp 0x4f6486
mov esi, 3
jmp 0x4f6489
mov ecx, dword [edi + 0x10]
test ecx, ecx
mov ebx, 0x8cccd0
mov dword [esp + 0x10], ebx
jne 0x4f63f0
mov ecx, 0x728c14
mov eax, dword [edi + 0xc]
lea edx, [edi + 8]
push edx
lea edx, [esp + 0x20]
push edx
push ecx
lea ecx, [esp + 0x20]
push ecx
call fcn.004129c0
add esp, 8
call fcn.004abb50
lea ecx, [esp + 0x10]
call fcn.00412ec0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff8
je 0x4f6431
cmp eax, 0x8cccc8
je 0x4f6431
push eax
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff8
mov dword [esp + 0x1c], ebx
je 0x4f644e
cmp eax, 0x8cccc8
je 0x4f644e
push eax
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x10]
push edx
push eax
push ecx
push ebx
mov ecx, esi
call fcn.004f2520
mov esi, eax
lea eax, [ebx - 8]
test eax, eax
je 0x4f6482
cmp eax, 0x8cccc8
je 0x4f6482
push eax
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
test esi, esi
jne 0x4f6489
inc dword [edi + 0x24]
mov al, byte [esp + 0x2c]
test al, al
je 0x4f64a8
test esi, esi
jne 0x4f649b
inc dword [0x8ccce4]
mov edx, dword [0x728c1c]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0x14

Function at 0x4f6580
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [ecx + 0x2c]
test esi, esi
je 0x4f659f
mov eax, dword [esp + 8]
push edi
mov edi, dword [ecx + 0x28]
push eax
mov eax, dword [esp + 0x14]
call fcn.004ff910
pop edi
pop esi
ret 8
pop esi
jmp fcn.004f27d0
Function at 0x4f65b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
mov al, byte [0x8cccf8]
push ebx
xor bl, bl
test al, al
push edi
jne 0x4f660c
mov edi, dword [sym.imp.MSVCR71.dll_strchr]
push 0x5c
push esi
call edi
add esp, 8
test eax, eax
jne 0x4f65dc
push 0x2f
push esi
call edi
add esp, 8
test eax, eax
je 0x4f660c
mov eax, esi
mov byte [esp + 0xb], 0
call fcn.004f29f0
mov bl, al
test bl, bl
jne 0x4f6627
mov eax, dword [0x8ccce0]
test eax, eax
je 0x4f6613
push 0
push esi
call fcn.004f6b60
add esp, 8
test eax, eax
je 0x4f6613
pop edi
mov al, 1
pop ebx
pop ecx
ret
mov byte [esp + 0xb], 1
jmp 0x4f65ee
mov al, byte [esp + 0xb]
test al, al
je 0x4f6627
pop edi
mov eax, esi
pop ebx
add esp, 4
jmp fcn.004f29f0
pop edi
mov al, bl
pop ebx
pop ecx
ret
Function at 0x4f6790
Capabilities:
Copy file

Disassembly:
sub esp, 0x30
test bl, bl
push esi
push edi
mov edi, eax
mov esi, ecx
jne 0x4f67bb
call fcn.004f29f0
test al, al
je 0x4f67bb
push 0x50
mov esi, 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, esi
pop esi
add esp, 0x30
ret
mov al, byte [0x8cccf8]
test al, al
push ebp
jne 0x4f6805
mov ebp, dword [sym.imp.MSVCR71.dll_strchr]
push 0x5c
push esi
call ebp
add esp, 8
test eax, eax
jne 0x4f67e3
push 0x2f
push esi
call ebp
add esp, 8
test eax, eax
je 0x4f6805
xor eax, eax
test bl, bl
sete al
mov byte [esp + 0xf], 0
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x4f680a
pop ebp
pop edi
xor eax, eax
pop esi
add esp, 0x30
ret
mov byte [esp + 0xf], 1
mov eax, dword [0x8ccce0]
xor ebp, ebp
cmp eax, ebp
je 0x4f6937
push ebp
push esi
call fcn.004f6b60
add esp, 8
cmp eax, ebp
je 0x4f68d6
mov ecx, dword [eax + 0x10]
cmp ecx, ebp
je 0x4f68d6
mov ecx, dword [ecx]
mov edx, dword [ecx - 4]
cmp byte [edx + ecx - 1], 0x5c
je 0x4f68d6
push 0x8000
push ebp
push 2
push edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], 0x6f7864
mov dword [esp + 0x40], 0x8cccd0
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
call fcn.004f2520
mov edi, eax
cmp edi, ebp
jne 0x4f68c4
push ebp
mov eax, esi
mov edi, 1
call fcn.004f6630
mov esi, eax
add esp, 4
cmp esi, ebp
je 0x4f68bb
mov eax, dword [esi]
push eax
lea ecx, [esi + 4]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004f2880
cmp eax, dword [esi]
jne 0x4f68b2
xor edi, edi
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
lea ecx, [esp + 0x14]
call fcn.004f24a0
lea ecx, [esp + 0x14]
call fcn.00412ff0
pop ebp
mov eax, edi
pop edi
pop esi
add esp, 0x30
ret
mov cl, byte [esp + 0xf]
test cl, cl
je 0x4f695b
cmp eax, ebp
je 0x4f6923
mov ecx, dword [eax + 0x10]
cmp ecx, ebp
jne 0x4f68ee
mov ecx, 0x728c14
mov ecx, dword [ecx]
add eax, 8
push eax
lea edx, [esp + 0x14]
push edx
mov eax, ecx
call fcn.004129c0
mov eax, dword [eax]
push eax
mov dl, bl
mov ecx, edi
call fcn.004f2a50
add esp, 0xc
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.00412fb0
pop ebp
pop edi
mov eax, esi
pop esi
add esp, 0x30
ret
push esi
mov dl, bl
mov ecx, edi
call fcn.004f2a50
add esp, 4
pop ebp
pop edi
pop esi
add esp, 0x30
ret
mov al, byte [esp + 0xf]
test al, al
je 0x4f695b
xor eax, eax
test bl, bl
sete al
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
neg eax
pop ebp
sbb eax, eax
pop edi
inc eax
pop esi
add esp, 0x30
ret
pop ebp
pop edi
mov eax, 1
pop esi
add esp, 0x30
ret

Function at 0x4fa0d0
Capabilities:
Print debug messages

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x400
lea eax, [esp + 0x408]
push eax
push ecx
lea edx, [esp + 8]
push 0x3fc
push edx
call dword [sym.imp.MSVCR71.dll__vsnprintf]
add esp, 0x10
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x400
ret
Function at 0x4fbac0
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
push edi
mov dword [esi], 0x71295c
call fcn.004f24a0
mov eax, dword [esi + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [0x8ccd08]
mov eax, dword [esi + 0x28]
dec edx
sub eax, 8
mov dword [0x8ccd08], edx
je 0x4fbafe
cmp eax, 0x8cccc8
je 0x4fbafe
push eax
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
mov edi, 0x8cccd0
mov dword [esi + 0x28], edi
mov ecx, esi
mov dword [esi], 0x6f7864
call fcn.004f24a0
mov eax, dword [esi + 0x1c]
sub eax, 8
je 0x4fbb2b
cmp eax, 0x8cccc8
je 0x4fbb2b
push eax
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esi + 0x1c], edi
pop edi
pop esi
ret

Function at 0x4fbb60
Capabilities:
Get common file path

Disassembly:
mov dword [esi + 0x1c], 0x8cccd0
push ebx
xor ebx, ebx
push ebp
push edi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi], 0x71295c
lea edi, [esi + 0x28]
mov dword [edi], 0x8cccd0
mov eax, dword [edi]
cmp dword [eax - 8], 0x104
jge 0x4fbbb5
mov ebp, dword [eax - 4]
mov eax, 0x11f
mov ecx, edi
call fcn.004f49c0
mov eax, dword [edi]
mov dword [eax - 4], 0x104
mov ecx, dword [edi]
mov dword [ecx - 4], ebp
mov edx, dword [edi]
push edx
push ebx
push 0x712984
push 0x6f7894
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov ebp, dword [edi]
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4fbbd0
push 0x8000
sub eax, edx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [edi]
push 2
push eax
mov ecx, esi
call fcn.004f2520
mov eax, dword [0x8ccd08]
pop edi
inc eax
pop ebp
mov dword [0x8ccd08], eax
mov eax, esi
pop ebx
ret
Function at 0x4fc060
Capabilities:
Create thread
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push edi
xor ebx, ebx
push ebx
push 0xf4240
push ebx
mov dword [esi], 0x712a6c
push ebx
mov dword [esi + 8], 0x712b84
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov dword [esi + 0xc], eax
mov al, byte [esi + 0x24]
push ebx
push ebx
and al, 0xfe
push 1
or al, 2
lea edi, [esi + 0x30]
push ebx
mov dword [esi + 0x14], 1
mov dword [esi + 0x18], ebx
mov dword [edi], ebx
mov byte [esi + 0x1c], bl
mov byte [esi + 4], bl
mov byte [esi + 0x24], al
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, ebx
mov dword [esi + 0x20], eax
jne 0x4fc0d0
push 0x716a3c
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], 0xffffffff
call sub.MSVCR71.dll__CxxThrowException
mov edx, dword [esp + 0x10]
push edi
push 4
push esi
push 0x4fc400
push edx
push ebx
call dword [sym.imp.MSVCR71.dll__beginthreadex]
add esp, 0x18
cmp eax, ebx
mov dword [esi + 0x2c], eax
jne 0x4fc113
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x716a3c
lea ecx, [esp + 0x14]
push ecx
mov dword [esi + 0x20], ebx
mov dword [esp + 0x18], 0xffffffff
call sub.MSVCR71.dll__CxxThrowException
cmp dword [0x8cccf4], ebx
mov eax, dword [0x728c28]
jne 0x4fc138
cmp eax, 0xffffffff
je 0x4fc132
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x728c28]
mov dword [0x8cccf4], esi
cmp eax, 0xffffffff
je 0x4fc146
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
jmp 0x4fc148
xor eax, eax
cmp eax, ebx
mov dword [esi + 0x10], eax
jne 0x4fc152
mov dword [esi + 0x10], esi
mov eax, dword [esp + 0xc]
push esi
mov dword [esi + 0x14], ebx
call fcn.004fc2f0
pop edi
mov eax, esi
pop ebx
ret 8

Function at 0x4fc170
Capabilities:
Set thread local storage value

Disassembly:
push esi
mov esi, eax
mov eax, dword [esi + 0x30]
test eax, eax
je 0x4fc20b
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call edi
cmp dword [esi + 0x30], eax
je 0x4fc20a
mov byte [esi + 0x1c], 1
call edi
cmp dword [esi + 0x30], eax
jne 0x4fc1aa
call edi
cmp dword [esi + 0x30], eax
jne 0x4fc1aa
mov dword [esi + 0x14], 3
call fcn.004fc230
mov eax, dword [esi + 0x30]
test eax, eax
je 0x4fc1c3
test byte [esi + 0x24], 1
je 0x4fc1c3
mov eax, dword [esi + 0x2c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x4fc1d0
mov edx, dword [ecx]
push esi
call dword [edx + 0x14]
mov eax, dword [esi + 0x2c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esi + 0x20]
push ecx
mov dword [esi + 0x2c], 0
call edi
mov dword [esi + 0x20], 0
mov dword [esi + 0x30], 0
mov eax, dword [0x728c28]
cmp eax, 0xffffffff
je 0x4fc20a
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
ret
Function at 0x4fc230
Capabilities:
Get thread local storage value

Disassembly:
mov al, byte [esi + 4]
test al, al
jne 0x4fc293
mov ecx, dword [esi + 0x10]
test ecx, ecx
mov byte [esi + 4], 1
mov dword [esi + 0x14], 3
je 0x4fc24f
mov eax, dword [ecx]
push esi
call dword [eax + 0x14]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 8]
and byte [esi + 0x24], 0xfe
mov eax, dword [0x728c28]
cmp eax, 0xffffffff
je 0x4fc26d
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
jmp 0x4fc26f
xor eax, eax
cmp eax, esi
jne 0x4fc293
mov eax, dword [esi + 0xc]
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov ecx, dword [esi + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0
call dword [sym.imp.KERNEL32.dll_ExitThread]
ret

Function at 0x4fc2a0
Capabilities:
Get thread local storage value

Disassembly:
push esi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 0x30], eax
jne 0x4fc22a
mov dword [esi + 0x14], 3
call fcn.004fc230
pop esi
ret
mov eax, dword [0x728c28]
cmp eax, 0xffffffff
push esi
je 0x4fc2dc
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x4fc2dc
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4fc2dc
cmp eax, 3
je 0x4fc2dc
mov eax, dword [esi + 0x20]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4fc2e6
mov ecx, esi
pop esi
jmp 0x4fc210
push 0
push 1
call dword [sym.imp.KERNEL32.dll_SleepEx]
pop esi
ret

Function at 0x4fc510
Capabilities:
Get thread local storage value

Disassembly:
push esi
mov esi, dword [eax + 4]
mov eax, dword [0x728c28]
cmp eax, 0xffffffff
je 0x4fc534
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4fc534
mov ecx, esi
or edx, 0xffffffff
pop esi
jmp fcn.004fc390
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop esi
ret
Function at 0x4fcf60
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
mov ebx, eax
mov edi, 0x8cccd0
lea eax, [esp + 0xc]
mov dword [esp + 0xc], edi
call fcn.00412f10
mov esi, dword [esp + 0xc]
mov eax, dword [esi - 4]
add eax, esi
cmp esi, eax
mov ecx, esi
jae 0x4fcf9d
lea esp, [esp]
cmp byte [ecx], 0x2f
jne 0x4fcf98
mov byte [ecx], 0x5c
inc ecx
cmp ecx, eax
jb 0x4fcf90
mov al, byte [0x8cccf8]
test al, al
jne 0x4fd008
mov eax, dword [esi - 4]
lea edi, [eax - 1]
cmp edi, eax
jge 0x4fd096
test edi, edi
jl 0x4fd096
mov bl, byte [edi + esi]
push 0x5c
push esi
mov byte [edi + esi], 0
call dword [sym.imp.MSVCR71.dll_strrchr]
add esp, 8
test eax, eax
mov byte [edi + esi], bl
je 0x4fd096
sub eax, esi
test eax, eax
jl 0x4fd096
mov ecx, dword [esi - 4]
lea edx, [eax + 1]
sub ecx, edx
lea edi, [esp + 0x10]
lea ebx, [esp + 0xc]
call fcn.004f2f20
mov eax, edi
mov ecx, ebx
call fcn.00412ec0
mov eax, dword [esp + 0x10]
jmp 0x4fd07d
cmp byte [esi], 0x2e
jne 0x4fd096
cmp byte [esi + 1], 0x5c
jne 0x4fd096
mov eax, dword [esi - 4]
lea edx, [eax - 2]
mov ecx, edx
test ecx, ecx
jge 0x4fd025
xor ecx, ecx
lea ebx, [ecx + 2]
cmp ebx, eax
jle 0x4fd02e
mov ecx, edx
cmp eax, 2
jge 0x4fd035
xor ecx, ecx
push 2
mov eax, esi
lea edx, [esp + 0x14]
mov dword [esp + 0x14], edi
call fcn.004f47b0
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
call fcn.00412df0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff8
je 0x4fd06c
cmp eax, 0x8cccc8
je 0x4fd06c
push eax
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
lea eax, [esp + 0x14]
lea ecx, [esp + 0xc]
call fcn.00412ec0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff8
je 0x4fd092
cmp eax, 0x8cccc8
je 0x4fd092
push eax
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
mov esi, dword [esp + 0xc]
push esi
call dword [sym.imp.MSVCR71.dll__strlwr]
mov ecx, dword [esi - 4]
add esp, 4
or ebx, 0xffffffff
test ecx, ecx
mov eax, esi
je 0x4fd0cc
mov edi, ecx
mov edi, edi
xor ecx, ecx
mov cl, byte [eax]
xor ecx, ebx
and ecx, 0xff
mov edx, dword [ecx*4 + 0x728c38]
shr ebx, 8
xor ebx, edx
inc eax
dec edi
jne 0x4fd0b0
mov edi, dword [esp + 0x1c]
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x10], 0
call fcn.0051bd30
add esi, 0xfffffff8
je 0x4fd0f8
cmp esi, 0x8cccc8
je 0x4fd0f8
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x4fd830
Capabilities:
Resume thread

Disassembly:
push ecx
push ebx
push ebp
mov ebx, eax
test ebx, ebx
push esi
mov esi, ecx
je 0x4fd876
cmp byte [ebx], 0
je 0x4fd876
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x8cccd0
call fcn.00412f10
mov ebp, dword [esp + 0xc]
push esi
push edi
mov eax, ebp
call fcn.004fdae0
lea eax, [ebp - 8]
test eax, eax
je 0x4fd876
cmp eax, 0x8cccc8
je 0x4fd876
push eax
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x14]
push esi
push edi
call fcn.004fdae0
test ebx, ebx
je 0x4fd8eb
cmp byte [ebx], 0
je 0x4fd8eb
mov ebp, dword [esp + 0x18]
test ebp, ebp
je 0x4fd8eb
cmp byte [ebp], 0
je 0x4fd8eb
push 0x4c
call fcn.005354b8
add esp, 4
test eax, eax
je 0x4fd8c2
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
test ecx, ecx
sete cl
push ecx
push esi
push ebp
push ebx
push edx
push edi
call fcn.004ffd60
mov esi, eax
jmp 0x4fd8c4
xor esi, esi
mov al, byte [esi + 0x24]
test al, 1
mov dword [esi + 0x18], 0
jne 0x4fd8e1
or al, 1
mov byte [esi + 0x24], al
mov eax, dword [esi + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4fd8eb
mov dword [eax], esi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc