joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a84dd
Capabilities:
Check if file exists

Disassembly:
push 4
mov eax, 0x4e8e11
call fcn.004b51ee
mov esi, ecx
mov ebx, dword [ebp + 8]
xor edi, edi
cmp ebx, edi
jne 0x4a84fb
xor eax, eax
jmp 0x4a8618
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4a84f4
lea eax, [ebp - 0x10]
push eax
push 0xa
mov ecx, esi
mov dword [ebp - 0x10], edi
call fcn.004a7a67
cmp dword [ebp - 0x10], edi
je 0x4a8527
push dword [ebp + 0xc]
push ebx
call dword [ebp - 0x10]
jmp 0x4a8618
mov dword [ebp + 8], edi
mov dword [ebp - 4], 1
lea eax, [ebp + 8]
push eax
push 0x5071e4
mov ecx, esi
call fcn.004a7a31
mov esi, dword [ebp + 0xc]
cmp esi, edi
je 0x4a854b
or dword [esi], 0xffffffff
mov eax, dword [ebp + 8]
cmp eax, edi
je 0x4a860a
mov ecx, dword [eax]
push edi
push ebx
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x4a860a
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
push edx
push 4
mov dword [ebp + 0xc], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x54]
push 3
pop ebx
test eax, eax
je 0x4a85ac
mov eax, dword [ebp + 0xc]
shl eax, 0x10
sar eax, 0x1c
cmp eax, 2
je 0x4a8591
cmp eax, ebx
jne 0x4a85ac
cmp esi, edi
je 0x4a859b
mov dword [esi], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00486aaf
xor eax, eax
inc eax
jmp 0x4a8618
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
push edx
push ebx
mov dword [ebp + 0xc], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x54]
test eax, eax
je 0x4a85d8
mov eax, dword [ebp + 0xc]
and eax, 0xf00
cmp eax, 0x300
jne 0x4a85d8
cmp esi, edi
je 0x4a859b
mov dword [esi], ebx
jmp 0x4a859b
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
push edx
push 5
mov dword [ebp + 0xc], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x54]
test eax, eax
je 0x4a860a
mov eax, dword [ebp + 0xc]
and eax, 0xf0000
cmp eax, 0x30000
jne 0x4a860a
cmp esi, edi
je 0x4a8607
mov dword [esi], 4
xor edi, edi
inc edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00486aaf
mov eax, edi
call fcn.004b52c6
ret 8

Function at 0x4a863b
Capabilities:
Create thread

Disassembly:
push 4
mov eax, 0x4e8e34
call fcn.004b51ee
xor ebx, ebx
cmp dword [ebp + 8], ebx
jne 0x4a8656
xor al, al
call fcn.004b52c6
ret
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x10], ebx
push 0x4a8620
push ebx
push ebx
call fcn.004ba7b9
add esp, 0x18
mov dword [ebp + 8], eax
mov dword [ebp - 4], ebx
cmp dword [0x536040], eax
je 0x4a8682
cmp eax, ebx
jne 0x4a8692
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0043f1fb
mov al, bl
jmp 0x4a8650
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov bl, 1
jmp 0x4a8682
Function at 0x4b13c0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x5413d8], 0
push esi
jne 0x4b1333
call fcn.004b1259
test eax, eax
je 0x4b1376
mov eax, dword [0x5413d8]
cmp eax, 1
jne 0x4b1354
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4b1376
pop esi
ret
push eax
call dword [0x5413e0]
test eax, eax
jne 0x4b13be
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4b137a
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x5413d8]
call dword [0x5413e0]
mov edi, eax
test edi, edi
je 0x4b139f
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x4b13bb
mov edi, esi
add esi, 0xff0
push edi
push dword [0x5413d8]
call dword [0x5413dc]
add edi, 0x10
cmp edi, esi
jb 0x4b13a7
mov eax, edi
pop edi
pop esi
ret
jmp 0x4b1320

Function at 0x4b46ff
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5382cc]
jne 0x4b4709
repz ret
jmp fcn.004bee6e

Function at 0x4d2edb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004bf3f9
and dword [ebp - 4], 0
cmp dword [0x54223c], 0
mov ebx, eax
jne 0x4d2f8c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4d303d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4d303d
push eax
call fcn.004bf387
mov dword [esp], 0x50b9fc
push edi
mov dword [0x54223c], eax
call esi
push eax
call fcn.004bf387
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x542240], eax
call esi
push eax
call fcn.004bf387
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x542244], eax
call esi
push eax
call fcn.004bf387
pop ecx
mov dword [0x54224c], eax
test eax, eax
je 0x4d2f8c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004bf387
pop ecx
mov dword [0x542248], eax
mov eax, dword [0x542248]
cmp eax, ebx
je 0x4d2fe4
cmp dword [0x54224c], ebx
je 0x4d2fe4
push eax
call fcn.004bf402
push dword [0x54224c]
mov esi, eax
call fcn.004bf402
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4d2fe4
test edi, edi
je 0x4d2fe4
call esi
test eax, eax
je 0x4d2fdb
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4d2fdb
test byte [ebp - 0xc], 1
jne 0x4d2fe4
or dword [ebp + 0x10], 0x200000
jmp 0x4d301d
mov eax, dword [0x542240]
cmp eax, ebx
je 0x4d301d
push eax
call fcn.004bf402
pop ecx
test eax, eax
je 0x4d301d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4d301d
mov eax, dword [0x542244]
cmp eax, ebx
je 0x4d301d
push eax
call fcn.004bf402
pop ecx
test eax, eax
je 0x4d301d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x54223c]
call fcn.004bf402
pop ecx
test eax, eax
je 0x4d303d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4d303f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4d77b0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x5382cc]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
mov ebx, dword [esp + 0x214]
test ebx, ebx
jne 0x4d77e8
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004b46ff
add esp, 0x20c
ret
push esi
push 0x208
lea eax, [esp + 0xc]
push 0
push eax
call fcn.004b4620
add esp, 0xc
push 0x104
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x4d78b3
mov ecx, ebx
lea esi, [ecx + 2]
lea ebx, [ebx]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4d7820
sub ecx, esi
sar ecx, 1
mov edx, 0x103
sub edx, ecx
cmp eax, edx
jae 0x4d78b3
push edi
lea edi, [esp + 0xc]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4d7842
mov eax, dword [0x4f8b70]
mov dword [edi], eax
mov eax, ebx
mov edx, ebx
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4d7860
lea edi, [esp + 0xc]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4d7874
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004b46ff
add esp, 0x20c
ret
mov ecx, dword [esp + 0x210]
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004b46ff
add esp, 0x20c
ret
Function at 0x4d7f90
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x2c14
call fcn.004b4d90
mov eax, dword [0x5382cc]
xor eax, esp
mov dword [esp + 0x2c10], eax
mov eax, dword [esp + 0x2c18]
push edi
xor edi, edi
mov dword [esp + 0xc], eax
cmp eax, edi
je 0x4d80fb
cmp dword [esp + 0x2c20], edi
je 0x4d80fb
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
mov dword [esp + 0x10], edi
xor ebx, ebx
lea ebx, [ebx]
push ebx
push str..PhysicalDrive_d
lea eax, [esp + 0x30]
push 0x100
push eax
call fcn.0043e578
add esp, 0x10
push edi
push edi
push 3
push edi
push 3
push edi
lea ecx, [esp + 0x40]
push ecx
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x4d80d4
xor eax, eax
push 0x2710
lea edx, [esp + 0x514]
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
push edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
call fcn.004b4620
add esp, 0xc
push edi
lea eax, [esp + 0x18]
push eax
push 0x2710
lea ecx, [esp + 0x51c]
push ecx
push 0xc
lea edx, [esp + 0x30]
push edx
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4d80c7
push 0x3e8
lea eax, [esp + 0x12c]
push edi
push eax
call fcn.004b4620
mov edx, dword [esp + 0x534]
lea ecx, [esp + 0x134]
push ecx
push 1
push edx
lea eax, [esp + 0x528]
push eax
call fcn.004d98a0
mov edx, dword [esp + 0x2c48]
mov eax, dword [esp + 0x34]
add esp, 0x1c
lea ecx, [esp + 0x128]
push ecx
push edx
push eax
call fcn.0043e223
test eax, eax
jne 0x4d80c7
mov dword [esp + 0x10], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], edi
jne 0x4d80de
inc ebx
cmp ebx, 0x10
jl 0x4d7fe0
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
mov ecx, dword [esp + 0x2c10]
xor ecx, esp
call fcn.004b46ff
add esp, 0x2c14
ret
mov ecx, dword [esp + 0x2c14]
pop edi
xor ecx, esp
xor eax, eax
call fcn.004b46ff
add esp, 0x2c14
ret
Function at 0x4d83a0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x2ec
mov eax, dword [0x5382cc]
xor eax, esp
mov dword [esp + 0x2e8], eax
push edi
mov edi, dword [esp + 0x2f4]
mov dword [esp + 0x18], edi
test edi, edi
je 0x4d85a1
cmp dword [esp + 0x2f8], 0
je 0x4d85a1
push 0x64
lea eax, [esp + 0x20]
push 0
push eax
call fcn.004b4620
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 8
push 0
push 0x50bab0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4d8568
mov ecx, dword [esp + 4]
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x100]
push eax
push ebx
mov esi, 0x104
push ecx
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x4d855b
lea ebx, [ebx]
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
push 1
push 0
lea eax, [esp + 0xf8]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4d8529
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1f4]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push str.ServiceName
push edx
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4d851e
push 0x64
push eax
lea eax, [esp + 0x90]
push eax
call fcn.004b4620
lea ecx, [esp + 0x1fc]
push 0x64
push ecx
lea edi, [esp + 0x9c]
call fcn.004d8290
add esp, 0x14
test eax, eax
je 0x4d851e
cmp byte [esp + 0x24], 0
je 0x4d84e2
lea edx, [esp + 0x24]
push edx
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jge 0x4d851e
lea eax, [esp + 0x24]
lea esi, [esp + 0x88]
mov ecx, eax
mov edx, 0x64
sub esi, ecx
lea ecx, [edx + 0x7fffff9a]
test ecx, ecx
je 0x4d8511
mov cl, byte [esi + eax]
test cl, cl
je 0x4d8511
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x4d84f6
jmp 0x4d8515
test edx, edx
jne 0x4d8516
dec eax
mov byte [eax], 0
mov esi, 0x104
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0xc]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x100]
push ecx
inc ebx
push ebx
push edx
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x4d8440
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
cmp byte [esp + 0x1c], 0
je 0x4d85a1
mov edx, dword [esp + 0x2f8]
lea ecx, [esp + 0x1c]
push ecx
push edx
push edi
call fcn.0043e223
xor ecx, ecx
test eax, eax
setge cl
pop edi
mov eax, ecx
mov ecx, dword [esp + 0x2e8]
xor ecx, esp
call fcn.004b46ff
add esp, 0x2ec
ret
mov ecx, dword [esp + 0x2ec]
pop edi
xor ecx, esp
xor eax, eax
call fcn.004b46ff
add esp, 0x2ec
ret
Function at 0x4d8940
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x50c
mov eax, dword [0x5382cc]
xor eax, esp
mov dword [esp + 0x508], eax
push ebp
mov ebp, dword [esp + 0x514]
test edi, edi
je 0x4d8abd
cmp ebp, 0x20
jb 0x4d8abd
push 0x400
lea eax, [esp + 0x110]
push 0
push eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0x400
call fcn.004b4620
add esp, 0xc
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x110]
push edx
lea eax, [esp + 0x10]
push eax
push 0x4fc560
push str.Software360SafeLiveup
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x4d8abd
lea eax, [esp + 0x10c]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d89d0
sub eax, edx
cmp eax, 0x40
jne 0x4d8abd
push ebx
lea edx, [eax + 0x40]
push esi
lea eax, [esp + 0x14]
lea esi, [esp + 0x114]
mov ecx, eax
sub esi, ecx
lea ecx, [edx - 0x60]
test ecx, ecx
je 0x4d8a0e
mov cl, byte [esi + eax]
test cl, cl
je 0x4d8a0e
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x4d89f6
jmp 0x4d8a12
test edx, edx
jne 0x4d8a13
dec eax
mov byte [eax], 0
lea eax, [esp + 0x94]
lea edx, [esp + 0x134]
mov ecx, eax
mov esi, 0x80
sub edx, ecx
lea ecx, [ecx]
lea ecx, [esi + 0x7fffff7e]
test ecx, ecx
je 0x4d8a4b
mov cl, byte [edx + eax]
test cl, cl
je 0x4d8a4b
mov byte [eax], cl
inc eax
sub esi, 1
jne 0x4d8a30
jmp 0x4d8a4f
test esi, esi
jne 0x4d8a50
dec eax
push 0x400
lea edx, [esp + 0x118]
push 0
push edx
mov byte [eax], 0
call fcn.004b4620
push 0x400
lea ebx, [esp + 0x124]
lea ecx, [esp + 0x24]
call fcn.004d7a10
add esp, 0x10
lea eax, [esp + 0x94]
push eax
mov ecx, ebx
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
pop esi
pop ebx
test eax, eax
jne 0x4d8abd
lea edx, [esp + 0xc]
push edx
push ebp
push edi
call fcn.0043e223
neg eax
sbb eax, eax
inc eax
pop ebp
mov ecx, dword [esp + 0x508]
xor ecx, esp
call fcn.004b46ff
add esp, 0x50c
ret
mov ecx, dword [esp + 0x50c]
pop ebp
xor ecx, esp
xor eax, eax
call fcn.004b46ff
add esp, 0x50c
ret
Function at 0x4d8ae0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x290
mov eax, dword [0x5382cc]
xor eax, esp
mov dword [esp + 0x28c], eax
push ebx
push esi
push 0x80
lea eax, [esp + 0x14]
push 0
push eax
call fcn.004b4620
push 0x80
lea ebx, [esp + 0x20]
mov ecx, edi
call fcn.004d7a10
lea eax, [esp + 0x1a0]
mov edx, edi
mov ecx, eax
add esp, 0x10
mov esi, 0x104
sub edx, ecx
lea esp, [esp]
lea ecx, [esi + 0x7ffffefa]
test ecx, ecx
je 0x4d8b4b
mov cl, byte [edx + eax]
test cl, cl
je 0x4d8b4b
mov byte [eax], cl
inc eax
sub esi, 1
jne 0x4d8b30
jmp 0x4d8b4f
test esi, esi
jne 0x4d8b50
dec eax
lea edx, [esp + 0x10]
push edx
mov byte [eax], 0
push 0x104
lea eax, [esp + 0x198]
push eax
call fcn.004d7920
push 0xff
lea ecx, [esp + 0x95]
push 0
push ecx
mov dword [esp + 0x18], 1
mov byte [esp + 0x9c], 0
call fcn.004b4620
add esp, 0xc
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0x4fc560
push str.Software360SafeLiveup
push 0x80000002
mov dword [esp + 0x20], 0x100
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueA]
test eax, eax
jne 0x4d8c2b
mov ecx, edi
lea eax, [esp + 0x90]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4d8bf3
test dl, dl
je 0x4d8bef
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4d8bf3
add eax, 2
add ecx, 2
test dl, dl
jne 0x4d8bd3
xor eax, eax
jmp 0x4d8bf8
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4d8c2b
lea eax, [esp + 0x90]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d8c06
sub eax, edx
push eax
lea edx, [esp + 0x94]
push edx
push 1
push str.mid_old
push str.Software360SafeLiveup
push 0x80000002
call esi
lea eax, [esp + 0x190]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d8c35
sub eax, edx
push eax
lea eax, [esp + 0x194]
push eax
push 1
push 0x4fc560
push str.Software360SafeLiveup
push 0x80000002
call esi
mov ecx, dword [esp + 0x294]
pop esi
pop ebx
xor ecx, esp
call fcn.004b46ff
add esp, 0x290
ret

Function at 0x4da660
Capabilities:
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x4e9ec8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x5382cc]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
push 0x4d9f40
push 0x542ba8
call fcn.004da180
mov eax, dword [0x542bb0]
add esp, 8
test eax, eax
je 0x4da6ba
mov ecx, dword [esp + 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
add esp, 0x1c
ret
lea ecx, [esp + 4]
call fcn.004b5ebb
mov dword [esp + 0x10], 0
mov dword [esp + 4], vtable.boost::thread_resource_error.0
lea edx, [esp + 4]
push edx
mov dword [esp + 0x20], 0
call fcn.0040dee0
int3
Function at 0x4da6f0
Capabilities:
Get thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x4e9ef8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5382cc]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [0x542bb0]
test eax, eax
jne 0x4da722
xor esi, esi
jmp 0x4da72b
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [esp + 0x14], esi
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x20], 0
test esi, esi
je 0x4da757
cmp dword [esi + 0x14], 0
jne 0x4da799
cmp dword [esi + 0x10], 0
jne 0x4da7a0
push 0
call fcn.004da660
add esp, 4
mov dword [esp + 0x20], 0xffffffff
test esi, esi
je 0x4da785
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4da785
mov edx, dword [esi]
mov eax, dword [edx]
push 0
mov ecx, esi
call eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
cmp dword [esi + 0x10], 0
je 0x4da7e0
nop
mov ebx, dword [esi + 0x10]
mov eax, dword [ebx + 4]
mov dword [esi + 0x10], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x4da7ce
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebx]
mov edx, dword [edi]
mov eax, dword [edx]
push 0
mov ecx, edi
call eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x10], 0
jne 0x4da7a0
cmp dword [esi + 0x14], 0
je 0x4da747
mov edi, dword [esi + 0x14]
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x14], ecx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x4da805
mov edx, dword [ecx]
mov eax, dword [edi + 0xc]
mov edx, dword [edx + 4]
push eax
call edx
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x4da836
lea eax, [ebx + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4da836
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
lea ecx, [ebx + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4da836
mov eax, dword [ebx]
mov edx, dword [eax + 8]
mov ecx, ebx
call edx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x14], 0
jne 0x4da7ea
jmp 0x4da741
Function at 0x4da8d0
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x4e9f48
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5382cc]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
lea ecx, [eax + 0x1c]
push ecx
push 4
push eax
push 0x4da850
push 0
push 0
call fcn.004ba7b9
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x4da93b
lea ecx, [esp + 0x10]
call fcn.004b5ebb
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], vtable.boost::thread_resource_error.0
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x2c], ebx
call fcn.0040dee0
mov eax, dword [edi]
add eax, 4
mov ecx, 1
lock xadd dword [eax], ecx
mov esi, dword [edi]
mov eax, dword [esi + 8]
add esi, 8
test eax, eax
je 0x4da961
cmp eax, 0xffffffff
je 0x4da961
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], ebx
mov edx, dword [edi]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x79d8e8
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x79d8ee
pop ebp
sub ebp, 6
sub ebp, 0x39d8e8
jmp 0x79d94c
dec edi
jo 0x79d983
inc ebp
test al, 0xba
scasb al, byte es:[edi]
xchg edx, eax
pop edi
add dword [eax], eax
add byte [eax], al
jb 0x79d999
sub ah, byte [edx + 0x200f4e81]
fist dword [ebp + 0x6a56d85a]
mov ebx, dword [esi + 0x486ebe51]
fisub word [edx]
mov ebp, 0x77e2a302
mov byte [esi - 0x10], bh
shl dword [edi - 0x17], 1
add al, 0
add byte [eax], al
mov dword [0xb82cc411], eax
call 0x37a1333
lds eax, [ecx + 0x93c0]
add byte [ecx + 0x643], bh
jmp 0x79d955
mov eax, 0x39d8e8
add eax, ebp
add eax, 0x93
mov ecx, 0x643
mov edx, 0xcfa3dd09
xor byte [eax], dl
inc eax
dec ecx
jne 0x79d96c
jmp 0x79d97f
cmp eax, 0x63af05e1
dec ecx
popal
arpl word [ecx + 0x61], cx
or dword [ecx], ebx
or dword [ecx], ecx
popal
or ebp, eax
and eax, 0x18f98809
sbb dword [ecx], ecx
or dword [ecx + 9], esp
lds esp, [0x18f98809]
loope 0x79d91f
imul ecx, dword [eax - 0x701ee707], 0x6b
cmp cl, cl
pop ecx
neg byte [ebp + ecx*8 + 0x590939a9]
add ah, 0x82
xor byte [0x88090909], 0xc8
int1
or dword [ecx], ecx
or dword [edx], ecx
les esi, [ecx + 0x909090d]
mov bl, 0x21
or dword [ecx], ecx
or esi, edi
jmp 0x79d9c8
int3
popal
arpl word [edi], di
add byte [ecx], cl
popal
jb 0x79d97b
cmp dword [ecx], ecx
or byte [0x909612d], ah
or dword [ecx], ecx
loope 0x79d9e8
or dword [ecx], ecx
or eax, esp
and dword [ecx], ecx
or dword [ecx], ecx
pop esp
and ch, 0x82
mov word [ecx], es
or dword [ecx], ecx
or dword [edx + 0x909059c], eax
or dword [edx + 0x9091984], eax
or eax, ecx
loopne 0x79da07
cmp byte [ebx], cl
mov cl, bl
or eax, 0xfd8c0640
div dh
not byte [ebx + ecx*8 + 5]
or dword [edx + 0x90d2d85], eax
or dword [ecx], ecx
popal
arpl word [edi], di
add byte [ecx], cl
popal
jb 0x79d9c6
cmp dword [ecx], ecx
or byte [0xce1582d], ah
or dword [ecx], ecx
or eax, esp
inc esp
or ecx, dword [ecx]
or dword [esp + eax*4 + 0x65], ebx
sub eax, 0x57cf609
idiv byte [ecx + eax - 0x1f]
ja 0x79da42
or dword [ecx], ecx
xor byte [ecx + eax - 0x77f6f6f7], 0xf8
clc
dec ecx
invalid