joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1013f4a0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
sub eax, 9
mov dword [ebp - 4], eax
push 0x101a6360
mov ecx, dword [ebp + 8]
push ecx
call fcn.1014e930
add esp, 8
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 8]
add eax, 3
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov esp, ebp
pop ebp
ret

Function at 0x1013f6b0
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x101d8724]
xor eax, ebp
mov dword [ebp - 8], eax
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1013f743
cmp dword [0x101d811c], 0xffffffff
jne 0x1013f743
mov dword [ebp - 0xa0], 0x94
lea ecx, [ebp - 0xa0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 2
jne 0x1013f6fb
mov byte [0x101eb6b1], 1
mov edx, dword [ebp + 0x10]
mov dword [0x101eb6ac], edx
cmp dword [ebp + 0x10], 0
jne 0x1013f737
mov eax, dword [ebp + 0xc]
push eax
push 0x101e7708
call fcn.1014e930
add esp, 8
lea ecx, [ebp - 4]
push ecx
push 0
push 0
push 0x1013f800
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x101d811c], eax
mov al, 1
jmp 0x1013f7e7
mov byte [ebp - 0xa1], 0
cmp dword [0x101d811c], 0xffffffff
jne 0x1013f765
mov byte [0x101eb6b0], 1
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x101d811c], 0xffffffff
je 0x1013f7d6
push 0x7d0
mov edx, dword [0x101d811c]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0xa8], 0
lea eax, [ebp - 0xa8]
push eax
mov ecx, dword [0x101d811c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 0xa8], 0x103
jne 0x1013f7b9
push 1
mov edx, dword [0x101d811c]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [0x101d811c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x101d811c], 0xffffffff
mov byte [ebp - 0xa1], 1
mov byte [0x101eb6b0], 0
mov al, byte [ebp - 0xa1]
jmp 0x1013f7e7
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1014c68a
mov esp, ebp
pop ebp
ret
Function at 0x101491c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1019c430
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x101d8724]
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 0x101a788c
lea ecx, [esp + 0x10]
mov dword [esp + 0x3c], 0
mov dword [esi], vtable.std::codecvt_wchar_t__char__int_.0
call fcn.10087220
mov byte [esp + 0x38], 1
call fcn.1014864e
lea ecx, [esp + 0xc]
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
mov byte [esp + 0x38], 0
call fcn.10087330
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 0x1014abe0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x1019c750
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x101d8724]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
push esi
push edi
mov eax, dword [0x101d8724]
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 ebx, dword [esp + 0x50]
mov esi, dword [esp + 0x58]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
jb 0x1014ac2f
mov eax, dword [edi]
jmp 0x1014ac31
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x1014ac51
push esi
push edi
push ebx
call fcn.1014a940
add esp, 0xc
jmp 0x1014ad85
test eax, 0x400
je 0x1014ad53
cmp dword [edi + 0x14], 8
jb 0x1014ac66
mov edx, dword [edi]
jmp 0x1014ac68
mov edx, edi
xor eax, eax
mov word [esp + 0x20], ax
mov ebx, 7
mov eax, edx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], 0
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1014ac85
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x28]
call fcn.1009fdd0
cmp dword [esp + 0x34], 8
mov eax, dword [esp + 0x20]
mov dword [esp + 0x48], 0
jae 0x1014acb6
lea eax, [esp + 0x20]
push 0
push 0x2000000
push 3
push 0
push ebx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x1c], esi
cmp dword [esp + 0x34], 8
mov byte [esp + 0x48], 2
jb 0x1014acea
mov ecx, dword [esp + 0x20]
push ecx
call fcn.1014c699
add esp, 4
mov dword [esp + 0x34], ebx
xor edx, edx
or ebx, 0xffffffff
mov dword [esp + 0x30], 0
mov word [esp + 0x20], dx
cmp esi, ebx
jne 0x1014ad1b
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
push eax
push edi
push esi
call fcn.1014a940
add esp, 0xc
mov eax, esi
jmp 0x1014ad87
push edi
call fcn.10149ef0
add esp, 4
mov dword [esp + 0x48], ebx
push esi
test al, al
jne 0x1014ad41
mov edi, dword [esp + 0x18]
mov dword [edi], 9
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x1014ad87
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
test esi, esi
je 0x1014ad69
mov dword [esi], 0
call fcn.1014b4a0
mov dword [esi + 4], eax
mov eax, dword [esp + 0x10]
test al, 0x10
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 3
jne 0x1014ad81
mov dword [esp + 0x10], 2
mov ecx, dword [eax]
mov dword [ebx], ecx
mov eax, ebx
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.1014c68a
add esp, 0x3c
ret

Function at 0x1014c68a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x101d8724]
jne 0x1014c694
repz ret
jmp fcn.1015688c
Function at 0x1016064f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x101d8724]
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.101562c4
and dword [ebp - 0x14], 0
cmp dword [0x101ec73c], 0
mov dword [ebp - 0x18], eax
jne 0x10160702
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x101607aa
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x101607aa
mov esi, dword [0x101d9ae0]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x101ec73c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x101ec740], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x101ec744], eax
call edi
push eax
call esi
mov dword [0x101ec74c], eax
test eax, eax
je 0x10160702
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x101ec748], eax
mov eax, dword [0x101ec748]
mov ecx, dword [ebp - 0x18]
mov esi, dword [0x101d9ae4]
cmp eax, ecx
je 0x1016075b
cmp dword [0x101ec74c], ecx
je 0x1016075b
push eax
call esi
push dword [0x101ec74c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x1016075b
test ebx, ebx
je 0x1016075b
call edi
test eax, eax
je 0x10160752
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x10160752
test byte [ebp - 8], 1
jne 0x1016075b
or dword [ebp + 0x10], 0x200000
jmp 0x1016078e
mov eax, dword [0x101ec740]
cmp eax, dword [ebp - 0x18]
je 0x1016078e
push eax
call esi
test eax, eax
je 0x1016078e
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1016078e
mov eax, dword [0x101ec744]
cmp eax, dword [ebp - 0x18]
je 0x1016078e
push eax
call esi
test eax, eax
je 0x1016078e
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x101ec73c]
call esi
test eax, eax
je 0x101607aa
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x101607ac
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1014c68a
leave
ret
Function at 0x101676f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1019ca8b
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x101d8724]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x68], ecx
lea ecx, [ebp - 0x2c]
call fcn.101678d0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x68]
call fcn.10168600
movzx ecx, al
test ecx, ecx
je 0x1016785a
mov edx, 2
mov word [ebp - 0x2c], dx
mov eax, dword [ebp - 0x68]
mov cx, word [eax + 8]
mov word [ebp - 0x2a], cx
push 0
call dword [0x101ec7c0]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x30], 0x10
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x68]
mov edx, dword [ecx + 0x28]
push edx
call dword [0x101ec7bc]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x10167798
mov eax, dword [ebp - 0x68]
mov byte [eax + 0x30], 1
call dword [0x101ec78c]
mov ecx, dword [ebp - 0x68]
mov dword [ecx + 0x34], eax
jmp 0x10167856
push 0
push 0
lea ecx, [ebp - 0x54]
call fcn.101156d0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x54], edx
mov ax, word [ebp - 0x2a]
mov word [ebp - 0x50], ax
push 0x38
call fcn.1014c6a4
add esp, 4
mov dword [ebp - 0x60], eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x60], 0
je 0x1016780b
mov ecx, dword [ebp - 0x1c]
push ecx
sub esp, 0x24
mov ecx, esp
mov dword [ebp - 0x64], esp
lea edx, [ebp - 0x54]
push edx
call fcn.1011b4c0
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x70], eax
mov byte [ebp - 4], 2
push 1
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x60]
call fcn.10167be0
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x74]
mov dword [ebp - 0x78], ecx
jmp 0x10167812
mov dword [ebp - 0x78], 0
mov edx, dword [ebp - 0x78]
mov dword [ebp - 0x5c], edx
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x18], eax
cmp dword [ebp + 0xc], 0
je 0x10167847
lea ecx, [ebp - 0x58]
push ecx
push 0
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.10115770
mov byte [ebp - 0x14], 1
mov ecx, 7
lea esi, [ebp - 0x2c]
mov edi, dword [ebp + 8]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1014c68a
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10167dc0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax], 1
jne 0x10167e17
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xbb8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jae 0x10167e17
push 2
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x28]
push edx
call dword [0x101ec79c]
test eax, eax
jne 0x10167e06
jmp 0x10167e17
call dword [0x101ec78c]
cmp eax, 0x2734
je 0x10167e15
jmp 0x10167e17
jmp 0x10167de1
mov eax, dword [ebp - 0xc]
cmp dword [eax], 2
je 0x10167e27
mov ecx, dword [ebp - 0xc]
cmp dword [ecx], 1
jne 0x10167e41
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x28]
push eax
call dword [0x101ec790]
mov ecx, dword [ebp - 0xc]
mov dword [ecx], 0
mov al, 1
jmp 0x10167e43
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x10167ea0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x101d8724]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], ecx
movzx eax, word [ebp + 0xc]
test eax, eax
je 0x10167ecb
movzx ecx, word [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 0x1c]
add ecx, 4
call fcn.101678b0
mov edx, 2
mov word [ebp - 0x14], dx
mov eax, dword [ebp - 0x1c]
mov cx, word [eax + 8]
mov word [ebp - 0x12], cx
push 0
call dword [0x101ec7c0]
mov dword [ebp - 0x10], eax
push 0x10
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x28]
push ecx
call dword [0x101ec794]
cmp eax, 0xffffffff
jne 0x10167f19
mov edx, dword [ebp - 0x1c]
mov byte [edx + 0x30], 1
call dword [0x101ec78c]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x34], eax
xor al, al
jmp 0x10167f7f
push 0x10
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x28]
push eax
call dword [0x101ec7b0]
cmp eax, 0xffffffff
jne 0x10167f44
mov ecx, dword [ebp - 0x1c]
mov byte [ecx + 0x30], 1
call dword [0x101ec78c]
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x34], eax
xor al, al
jmp 0x10167f7f
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x2c], ecx
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 0x2c], 0
je 0x10167f7d
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push eax
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
push 0x10167920
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1014c68a
mov esp, ebp
pop ebp
ret 8
Function at 0x10168b00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1019cc6b
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x101d8724]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], 0
push 0x44
call fcn.1014c6a4
add esp, 4
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], 0
je 0x10168b7b
sub esp, 0x24
mov ecx, esp
mov dword [ebp - 0x1c], esp
lea eax, [ebp + 8]
push eax
call fcn.1011b4c0
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x28], ecx
mov byte [ebp - 4], 2
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
call fcn.10168be0
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], edx
jmp 0x10168b82
mov dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x14]
mov dword [ecx], edx
push 0
push 0
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
push ecx
push 0x10168c70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [ebp - 0x20]
mov dword [edx + 4], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10115770
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x24
Function at 0x1017c080
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x1019dd00
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101d8724]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [0x101ec904]
test eax, eax
jne 0x1017c0b4
xor esi, esi
jmp 0x1017c0bd
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 + 0x30], 0
test esi, esi
je 0x1017c107
cmp dword [esi + 0x14], 0
jne 0x1017c149
cmp dword [esi + 0x10], 0
jne 0x1017c150
push 0x1017bc10
push 0x101ec8fc
call fcn.1017be50
mov eax, dword [0x101ec904]
add esp, 8
test eax, eax
je 0x1017c1fd
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x30], 0xffffffff
test esi, esi
je 0x1017c135
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1017c135
mov eax, dword [esi]
mov edx, dword [eax]
push 0
mov ecx, esi
call edx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
cmp dword [esi + 0x10], 0
je 0x1017c190
nop
mov ebx, dword [esi + 0x10]
mov eax, dword [ebx + 4]
mov dword [esi + 0x10], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x1017c17e
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 0x1017c150
cmp dword [esi + 0x14], 0
je 0x1017c0d9
mov edi, dword [esi + 0x14]
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x14], ecx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x1017c1b5
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 0x1017c1e6
lea eax, [ebx + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1017c1e6
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 0x1017c1e6
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 0x1017c19a
jmp 0x1017c0d3
lea ecx, [esp + 0x18]
call fcn.1014e69d
mov dword [esp + 0x24], 0
mov dword [esp + 0x18], vtable.boost::thread_resource_error.0
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x34], 1
call fcn.100b8110
int3
jmp 0x1017c080
Function at 0x1017c230
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x1019dd00
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101d8724]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [0x101ec904]
test eax, eax
jne 0x1017c0b4
xor esi, esi
jmp 0x1017c0bd
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 + 0x30], 0
test esi, esi
je 0x1017c107
cmp dword [esi + 0x14], 0
jne 0x1017c149
cmp dword [esi + 0x10], 0
jne 0x1017c150
push 0x1017bc10
push 0x101ec8fc
call fcn.1017be50
mov eax, dword [0x101ec904]
add esp, 8
test eax, eax
je 0x1017c1fd
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x30], 0xffffffff
test esi, esi
je 0x1017c135
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1017c135
mov eax, dword [esi]
mov edx, dword [eax]
push 0
mov ecx, esi
call edx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
cmp dword [esi + 0x10], 0
je 0x1017c190
nop
mov ebx, dword [esi + 0x10]
mov eax, dword [ebx + 4]
mov dword [esi + 0x10], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x1017c17e
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 0x1017c150
cmp dword [esi + 0x14], 0
je 0x1017c0d9
mov edi, dword [esi + 0x14]
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x14], ecx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x1017c1b5
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 0x1017c1e6
lea eax, [ebx + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1017c1e6
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 0x1017c1e6
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 0x1017c19a
jmp 0x1017c0d3
lea ecx, [esp + 0x18]
call fcn.1014e69d
mov dword [esp + 0x24], 0
mov dword [esp + 0x18], vtable.boost::thread_resource_error.0
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x34], 1
call fcn.100b8110
int3
jmp 0x1017c080
Function at 0x401d30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4c8104]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, edx
mov dword [ebp - 0x10], esi
mov ebx, edi
mov edx, ecx
shr ebx, 2
test ebx, ebx
je 0x401d68
mov ecx, eax
and ecx, 3
mov ecx, dword [esi + ecx*4]
xor dword [edx + eax*4], ecx
inc eax
cmp eax, ebx
jl 0x401d58
and edi, 3
mov dword [ebp - 0xc], edi
je 0x401da4
mov ecx, dword [ebp - 0xc]
lea edx, [edx + ebx*4]
mov dword [ebp - 8], 0
lea edi, [ebp - 8]
mov esi, edx
rep movsb byte es:[edi], byte [esi]
and ebx, reloc.WS2_32.dll_closesocket
jns 0x401d91
dec ebx
or ebx, 0xfffffffc
inc ebx
mov eax, dword [ebp - 0x10]
lea esi, [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov edi, edx
mov eax, dword [eax + ebx*4]
xor dword [ebp - 8], eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049f3c4
mov esp, ebp
pop ebp
ret
Function at 0x406420
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a1bdb
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x4c8104]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0
push 8
mov dword [edi], 0x4b433c
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new_unsigned_int_]
mov esi, eax
add esp, 4
test esi, esi
je 0x406487
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00477cb0
add esp, 4
mov dword [esi + 4], eax
jmp 0x406489
xor esi, esi
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
lea ecx, [edi + 8]
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov dword [ebp - 4], 1
lea edx, [edi + 0x38]
mov dword [edi], 0x4b42f4
mov dword [edx], 0x4b42dc
mov dword [ebp - 0x18], edx
mov dword [edx + 8], 0x4b437c
mov byte [ebp - 4], 2
mov eax, dword [edx]
mov dword [ebp - 0x10], 1
mov eax, dword [eax + 4]
mov dword [edx + eax], 0x4b4378
mov eax, dword [edx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edx - 4], eax
mov eax, dword [edx]
mov ecx, dword [eax + 4]
add ecx, edx
push ecx
push edi
call fcn.00407bb0
mov dword [ebp - 4], 1
lea esi, [edi + 0x88]
mov dword [esi], 0x4b42ec
mov dword [ebp - 0x18], esi
mov dword [esi + 0x18], 0x4b437c
mov byte [ebp - 4], 4
mov eax, dword [esi]
mov dword [ebp - 0x10], 3
mov eax, dword [eax + 4]
mov dword [esi + eax], 0x4b42e8
mov eax, dword [esi]
mov ecx, dword [eax + 4]
push ecx
push edi
lea eax, [ecx - 0x18]
mov dword [ecx + esi - 4], eax
mov eax, dword [esi]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov ecx, dword [eax + 4]
add ecx, esi
call fcn.00407bb0
mov eax, dword [esi]
mov edx, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [esi + eax], 0x4b42e8
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ecx + esi - 4], eax
mov eax, dword [edi + 0xc]
mov dword [eax], edx
mov eax, dword [edi + 0x1c]
mov ecx, dword [ebp + 0xc]
mov dword [eax], edx
mov eax, dword [edi + 0x2c]
mov dword [eax], ecx
mov eax, dword [edi + 0x10]
mov dword [eax], edx
mov eax, dword [edi + 0x20]
mov dword [eax], edx
mov eax, dword [edi + 0x30]
mov dword [eax], ecx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8