joyce8/EMBER2024-capa huggingface dataset:
Function at 0x484ed0
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0xf0000000
push 1
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x484f03
mov ecx, dword [esi]
lea eax, [esi + 4]
push eax
push 0
push 0
push 0x8003
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
pop esi
pop ebp
ret

Function at 0x486610
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, eax
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x486632
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x486626
xor eax, eax
pop edi
ret
mov eax, dword [eax + 8]
push eax
push edi
push 1
push ebx
call ecx
jmp 0x486662
cmp dword [esi + 8], 0
jne 0x486655
mov ecx, dword [eax + 8]
push 0x51b19c
push ecx
call fcn.004a0c07
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x486655
or eax, 0xffffffff
pop edi
ret
mov edx, dword [esi + 8]
push edx
push edi
push 1
push ebx
call fcn.004a0ed6
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x486684
mov eax, dword [esi + 8]
test eax, eax
je 0x48667e
push eax
call fcn.0049fd12
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, edi
pop edi
ret
Function at 0x487400
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea eax, [ecx + eax*2 + 0xc]
push edi
push eax
call dword [section..data]
mov edi, eax
add esp, 4
test edi, edi
jne 0x48742b
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], eax
mov edx, dword [esi + 0xc]
add edx, eax
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], edx
cmp ebx, dword [esi + 0x10]
jbe 0x487472
push eax
mov eax, dword [esi]
call eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [edi + 4]
mov eax, dword [esi + 4]
push ebx
push ecx
push edx
call eax
mov ebx, dword [edi + 8]
mov ecx, dword [edi + 4]
add ebx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
push ebx
call edx
mov eax, dword [esi + 0x14]
add esp, 0x18
mov dword [ebp + 0x10], eax
jmp 0x487475
mov ebx, dword [ebp + 0xc]
mov ecx, dword [edi + 4]
mov edx, dword [esi]
push ecx
call edx
mov eax, dword [edi + 8]
mov ecx, dword [esi]
push eax
call ecx
mov eax, dword [ebp + 0x10]
add esp, 8
mov dword [ebp - 4], 0
test eax, eax
je 0x4874d6
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea esp, [esp]
mov dl, byte [ebx]
xor dl, 0x36
mov byte [ebp + 0xb], dl
mov ecx, dword [edi + 4]
mov edx, dword [esi + 4]
push 1
lea eax, [ebp + 0xb]
push eax
push ecx
call edx
mov al, byte [ebx]
xor al, 0x5c
mov byte [ebp + 0xb], al
mov edx, dword [edi + 8]
mov eax, dword [esi + 4]
push 1
lea ecx, [ebp + 0xb]
push ecx
push edx
inc ebx
call eax
add esp, 0x18
dec dword [ebp - 8]
jne 0x4874a0
mov ecx, dword [ebp - 4]
pop ebx
cmp ecx, dword [esi + 0x10]
jae 0x48750f
nop
mov edx, dword [edi + 4]
mov eax, dword [esi + 4]
push 1
push 0x5108d0
push edx
call eax
mov ecx, dword [edi + 8]
mov edx, dword [esi + 4]
push 1
push 0x5108d1
push ecx
call edx
mov eax, dword [ebp - 4]
inc eax
add esp, 0x18
mov dword [ebp - 4], eax
cmp eax, dword [esi + 0x10]
jb 0x4874e0
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4990a0
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4fa1e0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x543f30]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x543f30]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x60]
mov esi, dword [esp + 0x5c]
mov edi, dword [esp + 0x64]
cmp eax, 1
jne 0x4990fb
test edi, edi
je 0x4990f4
mov dword [edi], 0
call fcn.0049c390
mov dword [edi + 4], eax
xor al, al
jmp 0x4991fa
cmp eax, 3
je 0x499184
cmp eax, 0xb
je 0x499184
push 0x19
push str.boost::filesystem::remove
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
call fcn.00401570
cmp dword [esi + 0x14], 8
mov dword [esp + 0x54], 1
jb 0x499140
mov eax, dword [esi]
jmp 0x499142
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
test al, al
lea ecx, [esp + 0x10]
push ecx
sete dl
push edi
movzx eax, dl
push esi
push eax
call fcn.00498f60
add esp, 0x10
cmp dword [esp + 0x24], 0x10
mov bl, al
jb 0x49917c
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0049d71c
add esp, 4
test bl, bl
je 0x4991f8
xor al, al
jmp 0x4991fa
push 0x19
xor ebx, ebx
push str.boost::filesystem::remove
lea ecx, [esp + 0x34]
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
call fcn.00401570
cmp dword [esi + 0x14], 8
mov dword [esp + 0x54], ebx
jb 0x4991b4
mov eax, dword [esi]
jmp 0x4991b6
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
lea edx, [esp + 0x2c]
push edx
test al, al
sete al
push edi
movzx ecx, al
push esi
push ecx
call fcn.00498f60
add esp, 0x10
cmp dword [esp + 0x40], 0x10
mov bl, al
jb 0x4991f0
mov edx, dword [esp + 0x2c]
push edx
call fcn.0049d71c
add esp, 4
test bl, bl
jne 0x4990f4
mov al, 1
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0049d196
add esp, 0x48
ret

Function at 0x499340
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
cmp dword [ebx + 0x14], 8
push edi
jb 0x499353
mov eax, dword [ebx]
jmp 0x499355
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x49937e
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0xc]
push ebx
push ecx
call fcn.00499220
mov eax, dword [eax]
add esp, 0xc
pop edi
pop ebx
add esp, 8
ret
push esi
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x499395
mov dword [esi], 0
call fcn.0049c390
mov dword [esi + 4], eax
pop esi
test edi, 0x400
je 0x4993ce
push ebx
call fcn.00497e70
add esp, 4
test al, al
je 0x4993c3
mov edx, edi
and dl, 0x10
movzx eax, dl
neg eax
sbb eax, eax
and eax, 7
pop edi
add eax, 4
pop ebx
add esp, 8
ret
pop edi
mov eax, 9
pop ebx
add esp, 8
ret
mov eax, edi
and eax, 0x10
or eax, 0x20
pop edi
shr eax, 4
pop ebx
add esp, 8
ret
Function at 0x4994e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4fa250
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x543f30]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x543f30]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov edi, dword [esp + 0x54]
cmp dword [edi + 0x14], 8
mov esi, dword [esp + 0x58]
mov ebp, dword [esp + 0x50]
mov dword [esp + 0x1c], esi
jb 0x49952c
mov eax, dword [edi]
jmp 0x49952e
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x49954c
push esi
push edi
push ebp
call fcn.00499220
add esp, 0xc
jmp 0x49969f
test ebx, 0x400
je 0x49965b
cmp dword [edi + 0x14], 8
jb 0x499562
mov edx, dword [edi]
jmp 0x499564
mov edx, edi
xor eax, eax
mov word [esp + 0x20], ax
mov eax, edx
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x499580
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x28]
call fcn.00401700
cmp dword [esp + 0x34], 8
mov eax, dword [esp + 0x20]
mov dword [esp + 0x48], 0
jae 0x4995b1
lea eax, [esp + 0x20]
push 0
push 0x2000000
push 3
push 0
push 7
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x14], esi
cmp dword [esp + 0x34], 8
mov byte [esp + 0x48], 2
jb 0x4995e6
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0049d71c
add esp, 4
xor edx, edx
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], dx
cmp esi, 0xffffffff
jne 0x499616
mov eax, dword [esp + 0x1c]
push eax
push edi
push ebp
call fcn.00499220
add esp, 0xc
jmp 0x49969f
push edi
call fcn.00497e70
add esp, 4
test al, al
jne 0x499648
push ebx
push edi
call fcn.00498620
add esp, 8
push esi
mov dword [ebp], 9
mov dword [ebp + 4], eax
mov dword [esp + 0x4c], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x49969f
push esi
mov dword [esp + 0x4c], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x49966d
mov dword [esi], 0
call fcn.0049c390
mov dword [esi + 4], eax
push ebx
push edi
mov dword [esp + 0x1c], 3
test bl, 0x10
jne 0x499684
mov dword [esp + 0x1c], 2
call fcn.00498620
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
add esp, 8
mov dword [ebp], ecx
mov dword [ebp + 4], edx
mov eax, ebp
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0049d196
add esp, 0x38
ret
Function at 0x4996c0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4fa288
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x543f30]
xor eax, esp
mov dword [esp + 0x64], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x543f30]
xor eax, esp
push eax
lea eax, [esp + 0x7c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x8c]
cmp dword [edi + 0x14], 8
mov esi, dword [esp + 0x90]
jb 0x49970a
mov eax, dword [edi]
jmp 0x49970c
mov eax, edi
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x49972f
cmp esi, ebx
je 0x499728
mov dword [esi], ebx
call fcn.0049c390
mov dword [esi + 4], eax
mov al, 1
jmp 0x4997d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov dword [esp + 0x14], ebx
call fcn.0049c390
mov dword [esp + 0x18], eax
cmp ebp, 0xb7
jne 0x49977a
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push edi
push ecx
call fcn.004994e0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
add esp, 0xc
mov dword [esp + 0x20], edx
cmp ecx, 3
jne 0x49977a
cmp esi, ebx
je 0x4997d4
mov dword [esi], ebx
call fcn.0049c390
jmp 0x4997d1
cmp esi, ebx
jne 0x4997ca
push 0x23
push str.boost::filesystem::create_directory
lea ecx, [esp + 0x2c]
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
call fcn.00401570
mov dword [esp + 0x84], ebx
call fcn.0049c390
push eax
push ebp
push edi
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x50]
call fcn.00498db0
push 0x52e6ac
lea ecx, [esp + 0x44]
push ecx
call fcn.004a4e0b
call fcn.0049c390
mov dword [esi], ebp
mov dword [esi + 4], eax
xor al, al
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.0049d196
add esp, 0x74
ret
Function at 0x499e60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4fa360
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x543f30]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi + 4], 0
push 0x5175f8
lea ecx, [esp + 0x10]
mov dword [esp + 0x3c], 0
mov dword [esi], vtable.std::codecvt_wchar_t__char__int_.0
call fcn.00401e0b
mov byte [esp + 0x38], 1
call fcn.00488374
lea ecx, [esp + 0xc]
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
mov byte [esp + 0x38], 0
call fcn.00401e85
mov dword [esi], vtable.windows_file_codecvt.0
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x34
ret

Function at 0x49d196
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x543f30]
jne 0x49d1a0
repz ret
jmp fcn.004a9d9e

Function at 0x4b7e5e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x543f30]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004aa7f8
and dword [ebp - 0x14], 0
cmp dword [0x559da0], 0
mov dword [ebp - 0x18], eax
jne 0x4b7f11
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4b7fb9
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4b7fb9
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x559da0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x559da4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x559da8], eax
call edi
push eax
call esi
mov dword [0x559db0], eax
test eax, eax
je 0x4b7f11
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x559dac], eax
mov eax, dword [0x559dac]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4b7f6a
cmp dword [0x559db0], ecx
je 0x4b7f6a
push eax
call esi
push dword [0x559db0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4b7f6a
test ebx, ebx
je 0x4b7f6a
call edi
test eax, eax
je 0x4b7f61
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4b7f61
test byte [ebp - 8], 1
jne 0x4b7f6a
or dword [ebp + 0x10], 0x200000
jmp 0x4b7f9d
mov eax, dword [0x559da4]
cmp eax, dword [ebp - 0x18]
je 0x4b7f9d
push eax
call esi
test eax, eax
je 0x4b7f9d
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4b7f9d
mov eax, dword [0x559da8]
cmp eax, dword [ebp - 0x18]
je 0x4b7f9d
push eax
call esi
test eax, eax
je 0x4b7f9d
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x559da0]
call esi
test eax, eax
je 0x4b7fb9
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4b7fbb
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049d196
leave
ret
Function at 0x4c2a60
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x544fe0]
push esi
cmp eax, 0xffffffff
je 0x4c2aa2
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call esi
test eax, eax
je 0x4c2aa2
mov eax, dword [0x544fe0]
cmp eax, 0xffffffff
jne 0x4c2a86
xor eax, eax
jmp 0x4c2a89
push eax
call esi
mov eax, dword [eax + 0x44]
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
test eax, eax
jne 0x4c2aa2
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x4c2ef0
Capabilities:
Get thread local storage value

Disassembly:
push ecx
mov eax, dword [0x544fe0]
cmp eax, 0xffffffff
je 0x4c2f8b
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call esi
test eax, eax
je 0x4c2f8a
mov ecx, dword [0x544fe0]
cmp ecx, 0xffffffff
jne 0x4c2f1c
xor eax, eax
jmp 0x4c2f25
push ecx
call esi
mov ecx, dword [0x544fe0]
cmp byte [eax + 0x48], 0
je 0x4c2f8a
cmp ecx, 0xffffffff
je 0x4c2f8a
push ecx
call esi
test eax, eax
je 0x4c2f8a
mov eax, dword [0x544fe0]
cmp eax, 0xffffffff
jne 0x4c2f45
xor eax, eax
jmp 0x4c2f48
push eax
call esi
mov eax, dword [eax + 0x44]
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
test eax, eax
jne 0x4c2f8a
mov eax, dword [0x544fe0]
cmp eax, 0xffffffff
jne 0x4c2f68
xor eax, eax
jmp 0x4c2f6b
push eax
call esi
mov eax, dword [eax + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0x52f734
lea ecx, [esp + 0xb]
xor al, al
push ecx
mov byte [esp + 0xf], al
call fcn.004a4e0b
pop esi
pop ecx
ret

Function at 0x4c3830
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4faa58
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x543f30]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
mov edi, dword [esp + 0x24]
push edi
call fcn.0049d325
mov dword [esi], vtable.boost::system::system_error.0
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0x10]
xor ebx, ebx
mov dword [esi + 0x10], ecx
push 0xffffffffffffffff
lea ecx, [esi + 0x14]
push ebx
add edi, 0x14
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push edi
mov dword [esp + 0x28], ebx
mov byte [ecx], bl
call fcn.004018a2
mov dword [esi + 0x30], vtable.boost::exception.0
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], 0xffffffff
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::lock_error_.1.0
mov dword [esi + 0x30], vtable.boost::exception_detail::error_info_injector_class_boost::lock_error_.0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x4c3960
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4faa90
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x543f30]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
push edi
call fcn.0049d325
mov dword [esi], vtable.boost::system::system_error.0
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x10], ecx
push 0xffffffffffffffff
lea ecx, [esi + 0x14]
push 0
lea edx, [edi + 0x14]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push edx
mov dword [esp + 0x24], 0
mov byte [ecx], 0
call fcn.004018a2
mov dword [esi], vtable.boost::lock_error.0
mov dword [esi + 0x30], vtable.boost::exception.0
mov ecx, dword [edi + 0x34]
mov dword [esp + 0x18], 1
mov dword [esi + 0x34], ecx
test ecx, ecx
je 0x4c39f4
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov ecx, dword [edi + 0x3c]
mov dword [esi + 0x3c], ecx
mov edx, dword [edi + 0x40]
mov dword [esi + 0x40], edx
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::lock_error_.1.0
mov dword [esi + 0x30], vtable.boost::exception_detail::error_info_injector_class_boost::lock_error_.0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x4c3ee0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x4fabb8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x543f30]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov eax, dword [0x544fe0]
cmp eax, 0xffffffff
jne 0x4c3f15
xor ebx, ebx
jmp 0x4c3f1e
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x24], 0
test ebx, ebx
je 0x4c3f61
mov edi, edi
cmp dword [ebx + 0x1c], 0
jne 0x4c3fa7
cmp dword [ebx + 0xc], 0
jne 0x4c3fb0
push 0x4c2a30
push 0x559e40
call fcn.004c2ce0
mov eax, dword [0x544fe0]
add esp, 8
cmp eax, 0xffffffff
je 0x4c3f61
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x24], 0xffffffff
test ebx, ebx
je 0x4c3f93
lea edx, [ebx + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x4c3f93
mov edx, dword [ebx]
mov eax, dword [edx]
push 0
mov ecx, ebx
call eax
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
cmp dword [ebx + 0xc], 0
je 0x4c3ff8
lea ecx, [ecx]
mov edi, dword [ebx + 0xc]
mov eax, dword [edi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [edi]
test ecx, ecx
je 0x4c3fe2
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov esi, dword [edi]
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 dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebx + 0xc], 0
jne 0x4c3fb0
mov ebp, dword [ebx + 0x18]
mov esi, dword [ebp]
cmp esi, ebp
je 0x4c3f30
cmp byte [esi + 0x1d], 0
mov edi, esi
jne 0x4c4048
mov eax, dword [esi + 8]
cmp byte [eax + 0x1d], 0
jne 0x4c402d
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x1d], 0
jne 0x4c4048
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x1d], 0
je 0x4c4021
jmp 0x4c4048
mov eax, dword [esi + 4]
cmp byte [eax + 0x1d], 0
jne 0x4c4046
cmp esi, dword [eax + 8]
jne 0x4c4046
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x1d], 0
je 0x4c4036
mov esi, eax
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x4c405e
mov eax, dword [edi + 0x18]
test eax, eax
je 0x4c405e
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [ebx + 0x14]
call fcn.0043a3ce
cmp esi, ebp
jne 0x4c4006
jmp 0x4c3f30
Function at 0x4c4110
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push edi
mov edi, ecx
mov eax, dword [edi]
lea ecx, [eax + 0x10]
push ecx
push 4
push eax
push 0x4c4080
push 0
push 0
call fcn.004a3bba
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x4c4139
pop edi
xor al, al
pop ebx
ret
mov edx, dword [edi]
push esi
add edx, 4
mov eax, 1
lock xadd dword [edx], eax
mov esi, dword [edi]
mov eax, dword [esi + 8]
test eax, eax
je 0x4c415d
cmp eax, 0xffffffff
je 0x4c415d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], ebx
mov ecx, dword [edi]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
pop edi
mov al, 1
pop ebx
ret
Function at 0x4d3840
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4fcb93
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x543f30]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
push 0xffffffffffffffff
push 0
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
push edi
mov byte [esi], 0
call fcn.004018a2
mov eax, dword [edi + 0x1c]
lea ecx, [edi + 0x20]
push ecx
lea ecx, [esi + 0x20]
mov dword [esp + 0x1c], 0
mov dword [esi + 0x1c], eax
call fcn.004d3760
lea edx, [edi + 0x30]
push edx
lea ecx, [esi + 0x30]
mov byte [esp + 0x1c], 1
call fcn.004d3760
mov al, byte [edi + 0x40]
mov byte [esi + 0x40], al
mov cl, byte [edi + 0x41]
mov byte [esi + 0x41], cl
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4

Function at 0x4d39d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4fcbf8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x543f30]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
push edi
mov eax, dword [0x543f30]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x48]
mov eax, dword [esp + 0x40]
mov dword [esp + 0xc], eax
cmp esi, edi
je 0x4d3a64
push esi
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x58]
call fcn.004d3660
mov ecx, dword [esp + 0x4c]
push eax
mov dword [esp + 0x3c], 0
call fcn.004c7e80
cmp dword [esp + 0x24], 8
mov dword [esp + 0x38], 0xffffffff
jb 0x4d3a51
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0049d71c
add esp, 4
add esi, 0x1c
cmp esi, edi
jne 0x4d3a14
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0xc]
mov dword [eax], edx
jmp 0x4d3a6a
mov ecx, dword [esp + 0x4c]
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0049d196
add esp, 0x30
ret

Function at 0x4d5410
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
xor eax, eax
cmp ecx, edx
je 0x4d5441
push esi
push edi
mov esi, eax
mov edi, eax
shl esi, 6
shr edi, 2
add esi, edi
movzx edi, word [ecx]
lea esi, [esi + edi - 0x61c88647]
add ecx, 2
xor eax, esi
cmp ecx, edx
jne 0x4d5420
pop edi
pop esi
ret