joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40baf0
Capabilities:
Set registry value

Disassembly:
sub esp, 8
lea eax, [esp + 4]
lea ecx, [esp]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREClickSpring
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40bb31
push str.set_pid_list:_RegCreateKeyEx
call fcn.0040b190
add esp, 4
xor eax, eax
add esp, 8
ret
mov edx, dword [esp + 0xc]
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
mov edx, dword [esp + 0xc]
push 1
push eax
push 0x42c09c
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
pop edi
je 0x40bb6e
push str.set_pid_list:_RegSetValueEx
call fcn.0040b190
add esp, 4
xor eax, eax
add esp, 8
ret
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 8
ret
Function at 0x40d360
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [0x430658]
cmp eax, 0x1c00
jle 0x40d397
lea eax, [esp]
push 0
push eax
push 0x42dd4c
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov ecx, dword [esp + 0x10]
push eax
push 0x42dd4c
push ecx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
xor eax, eax
mov dword [0x430658], eax
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
lea edx, [eax + 0x42dd4c]
push ecx
push edx
call dword [sym.imp.USER32.dll_wvsprintfA]
add dword [0x430658], eax
pop ecx
ret

Function at 0x40d3c0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x414c68
push 0x409a08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov edi, dword [ebp + 0xc]
xor ebx, ebx
cmp edi, ebx
jne 0x40d452
mov dword [ebp - 4], ebx
push str.raising_exception_r_n
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
push ebx
push ebx
push ebx
push 0x80000003
call dword [sym.imp.KERNEL32.DLL_RaiseException]
push str.dbghelp.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
cmp eax, ebx
je 0x40d4a8
push str.MiniDumpWriteDump
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x40d4a8
push str.writing_minidump_r_n
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], ebx
push ebx
push ebx
lea edx, [ebp - 0x24]
push edx
push ebx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40d4c0
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
lea eax, [esp + 0x2c]
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov edi, dword [esp + 0x34]
mov eax, 0x40000000
xor edx, edx
mov esi, 0
div edi
mov ebp, esi
mov dword [esp + 0x10], 1
mov ebx, eax
shl ebx, 2
je 0x40d55b
mov edx, esi
lea ecx, [esp + 0x14]
imul edx, edi
push 0x1c
push ecx
push edx
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x40d54c
mov eax, dword [esp + 0x20]
test eax, eax
jbe 0x40d54c
xor edx, edx
div edi
add esi, eax
mov eax, dword [esp + 0x24]
cmp eax, 0x1000
jne 0x40d557
mov eax, dword [esp + 0x18]
cmp eax, ebp
jbe 0x40d557
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x58]
push ecx
push eax
push edx
mov ebp, eax
call fcn.0040d570
add esp, 0xc
test al, al
je 0x40d557
inc dword [esp + 0x10]
jmp 0x40d557
mov eax, 0x10000
xor edx, edx
div edi
add esi, eax
cmp esi, ebx
jb 0x40d4f5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
Function at 0x40d930
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
sub esp, 0x324
lea eax, [esp]
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemTimeAsFileTime]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push ecx
lea eax, [esp + 0xc4]
push edx
push eax
call fcn.0040d8a0
mov esi, dword [esp + 0x33c]
add esp, 0xc
lea ecx, [esp + 0xc0]
push ecx
push str.Error_occurred_at__s._r_n
push esi
call fcn.0040d360
add esp, 0xc
lea edx, [esp + 0x124]
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x124]
push 0x206
push edx
push eax
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
ja 0x40d9b5
lea eax, [esp + 0x124]
push str.Unknown
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
lea ecx, [esp + 0x124]
push ecx
push str._s._r_n
push esi
call fcn.0040d360
lea edx, [esp + 0x98]
lea eax, [esp + 0x3c]
push edx
lea ecx, [esp + 0x68]
push eax
push ecx
call fcn.0040ead0
add esp, 0x18
lea edx, [esp + 0x8c]
lea eax, [esp + 0x58]
push edx
push eax
push str.Operating_system:___s___s_._r_n
push esi
call fcn.0040d360
add esp, 0x10
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
push edx
push eax
push str._d_processor_s___type__d._r_n
push esi
call fcn.0040d360
add esp, 0x10
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0x20
push ecx
call dword [sym.imp.KERNEL32.DLL_GlobalMemoryStatus]
mov edx, dword [esp + 0x14]
push edx
push str._d___memory_in_use._r_n
push esi
call fcn.0040d360
mov eax, dword [esp + 0x24]
add esp, 0xc
add eax, 0xfffff
shr eax, 0x14
push eax
push str._d_MBytes_physical_memory._r_n
push esi
call fcn.0040d360
mov ecx, dword [esp + 0x28]
add esp, 0xc
add ecx, 0xfffff
shr ecx, 0x14
push ecx
push str._d_MBytes_physical_memory_free._r_n
push esi
call fcn.0040d360
mov edx, dword [esp + 0x2c]
add esp, 0xc
add edx, 0xfffff
shr edx, 0x14
push edx
push str._d_MBytes_paging_file._r_n
push esi
call fcn.0040d360
mov eax, dword [esp + 0x30]
add esp, 0xc
add eax, 0xfffff
shr eax, 0x14
push eax
push str._d_MBytes_paging_file_free._r_n
push esi
call fcn.0040d360
mov ecx, dword [esp + 0x34]
add esp, 0xc
add ecx, 0xfffff
shr ecx, 0x14
push ecx
push str._d_MBytes_user_address_space._r_n
push esi
call fcn.0040d360
mov edx, dword [esp + 0x38]
add esp, 0xc
add edx, 0xfffff
shr edx, 0x14
push edx
push str._d_MBytes_user_address_space_free._r_n
push esi
call fcn.0040d360
add esp, 0xc
pop edi
pop esi
add esp, 0x324
ret
Function at 0x40db00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc0
mov edx, dword [esp + 0xc4]
mov dword [esp], 0x40010005
mov dword [esp + 4], str.a_Control_C
mov dword [esp + 8], 0x40010008
mov dword [esp + 0xc], str.a_Control_Break
mov dword [esp + 0x10], 0x80000002
mov dword [esp + 0x14], str.a_Datatype_Misalignment
mov dword [esp + 0x18], 0x80000003
mov dword [esp + 0x1c], str.a_Breakpoint
mov dword [esp + 0x20], 0xc0000005
mov dword [esp + 0x24], str.an_Access_Violation
mov dword [esp + 0x28], 0xc0000006
mov dword [esp + 0x2c], str.an_In_Page_Error
mov dword [esp + 0x30], 0xc0000017
mov dword [esp + 0x34], str.a_No_Memory
mov dword [esp + 0x38], 0xc000001d
mov dword [esp + 0x3c], str.an_Illegal_Instruction
mov dword [esp + 0x40], 0xc0000025
mov dword [esp + 0x44], str.a_Noncontinuable_Exception
mov dword [esp + 0x48], 0xc0000026
mov dword [esp + 0x4c], str.an_Invalid_Disposition
mov dword [esp + 0x50], 0xc000008c
mov dword [esp + 0x54], str.a_Array_Bounds_Exceeded
mov dword [esp + 0x58], 0xc000008d
mov dword [esp + 0x5c], str.a_Float_Denormal_Operand
mov dword [esp + 0x60], 0xc000008e
mov dword [esp + 0x64], str.a_Float_Divide_by_Zero
mov dword [esp + 0x68], 0xc000008f
mov dword [esp + 0x6c], str.a_Float_Inexact_Result
mov dword [esp + 0x70], 0xc0000090
mov dword [esp + 0x74], str.a_Float_Invalid_Operation
mov dword [esp + 0x78], 0xc0000091
mov dword [esp + 0x7c], str.a_Float_Overflow
mov dword [esp + 0x80], 0xc0000092
mov dword [esp + 0x84], str.a_Float_Stack_Check
mov dword [esp + 0x88], 0xc0000093
mov dword [esp + 0x8c], str.a_Float_Underflow
mov dword [esp + 0x90], 0xc0000094
mov dword [esp + 0x94], str.an_Integer_Divide_by_Zero
mov dword [esp + 0x98], 0xc0000095
mov dword [esp + 0x9c], str.an_Integer_Overflow
mov dword [esp + 0xa0], 0xc0000096
mov dword [esp + 0xa4], str.a_Privileged_Instruction
mov dword [esp + 0xa8], 0xc00000fd
mov dword [esp + 0xac], str.a_Stack_Overflow
mov dword [esp + 0xb0], 0xc0000142
mov dword [esp + 0xb4], str.a_DLL_Initialization_Failed
mov dword [esp + 0xb8], 0xe06d7363
mov dword [esp + 0xbc], str.a_Microsoft_C_Exception
xor eax, eax
lea ecx, [esp]
cmp edx, dword [ecx]
je 0x40dcdc
inc eax
add ecx, 8
cmp eax, 0x18
jb 0x40dcc3
mov eax, str.an_Unknown_exception_type
add esp, 0xc0
ret
mov eax, dword [esp + eax*8 + 4]
add esp, 0xc0
ret

Function at 0x40e4f0
Capabilities:
Delete file
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
mov edi, dword [esp + 0x1c]
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
mov dword [edi], eax
push ebx
mov dword [esp + 0x28], 0
add edi, 4
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40e552
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0xc]
push 0
push ecx
lea eax, [edi + 4]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
mov eax, dword [esp + 0xc]
mov dword [edi], eax
pop edi
pop esi
add eax, 8
pop ebx
pop ecx
ret
Function at 0x40e700
Capabilities:
Get file version info

Disassembly:
sub esp, 0x38
lea eax, [esp]
push ebx
push ebp
push esi
mov esi, ecx
push eax
lea ebp, [esi + 0x28]
push ebp
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40e816
push edi
lea edi, [ebx + 1]
push edi
call sub.MFC42.DLL_operatornew
mov edx, eax
mov ecx, edi
mov dword [esi], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi]
mov ecx, dword [esp + 0x10]
push eax
push ebx
push ecx
push ebp
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
pop edi
je 0x40e816
lea edx, [esp + 0x10]
mov ecx, esi
push edx
call fcn.0040e990
test eax, eax
je 0x40e816
mov eax, dword [esp + 0x18]
mov ecx, eax
mov word [esi + 0xa], ax
mov eax, dword [esp + 0x1c]
shr ecx, 0x10
mov edx, eax
mov word [esi + 0xe], ax
mov eax, dword [esp + 0x20]
mov word [esi + 8], cx
mov ecx, eax
mov word [esi + 0x12], ax
mov eax, dword [esp + 0x24]
shr edx, 0x10
shr ecx, 0x10
mov word [esi + 0xc], dx
mov word [esi + 0x10], cx
mov ecx, dword [esp + 0x30]
mov edx, eax
mov word [esi + 0x16], ax
mov eax, dword [esp + 0x2c]
shr edx, 0x10
mov dword [esi + 0x1c], ecx
lea ecx, [esi + 0x230]
mov word [esi + 0x14], dx
mov edx, dword [esp + 0x34]
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x38]
push ecx
push str.CompanyName
mov ecx, esi
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], eax
call fcn.0040e9e0
lea edx, [esi + 0x640]
mov ecx, esi
push edx
push 0x42cbb8
call fcn.0040e9e0
lea eax, [esi + 0x438]
mov ecx, esi
push eax
push 0x42cbac
call fcn.0040e9e0
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x38
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x38
ret
Function at 0x40f310
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
mov edi, dword [eax + 0x38]
mov cl, byte [eax + 0x34]
test edi, edi
mov byte [esp + 0x10], cl
jle 0x40f351
mov esi, dword [esp + 0x10]
and esi, 0xff
mov edx, dword [eax + 0x260]
mov ebx, edx
shr ebx, 0x18
xor ebx, esi
shl edx, 8
mov ebx, dword [ebx*4 + 0x42ccf0]
xor ebx, edx
dec edi
mov dword [eax + 0x260], ebx
jne 0x40f32f
mov edx, dword [eax + 0x34]
mov bl, 1
mov byte [eax + edx + 0x58], bl
mov edx, dword [eax + 0x38]
mov esi, edx
dec esi
je 0x40f3ff
dec esi
je 0x40f3de
dec esi
je 0x40f3c4
mov byte [edx + eax + 0x54], bl
mov edx, dword [eax + 0x24]
mov esi, dword [eax + 0x44]
mov byte [edx + esi], cl
mov esi, dword [eax + 0x44]
inc esi
mov dword [eax + 0x44], esi
mov edx, esi
mov esi, dword [eax + 0x24]
mov byte [esi + edx], cl
mov edx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
inc edx
mov dword [eax + 0x44], edx
mov byte [esi + edx], cl
mov ebx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
inc ebx
mov edx, ebx
mov dword [eax + 0x44], ebx
mov byte [esi + edx], cl
mov edi, dword [eax + 0x44]
mov dl, byte [eax + 0x38]
mov esi, dword [eax + 0x24]
inc edi
sub dl, 4
mov ecx, edi
mov dword [eax + 0x44], edi
pop edi
mov byte [esi + ecx], dl
mov ecx, dword [eax + 0x44]
inc ecx
pop esi
mov dword [eax + 0x44], ecx
pop ebx
ret
mov edx, dword [eax + 0x24]
mov esi, dword [eax + 0x44]
mov byte [edx + esi], cl
mov esi, dword [eax + 0x44]
inc esi
mov dword [eax + 0x44], esi
mov edx, esi
mov esi, dword [eax + 0x24]
mov byte [esi + edx], cl
jmp 0x40f3e7
mov edx, dword [eax + 0x24]
mov esi, dword [eax + 0x44]
mov byte [edx + esi], cl
mov edx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
inc edx
pop edi
mov dword [eax + 0x44], edx
mov byte [esi + edx], cl
mov ecx, dword [eax + 0x44]
inc ecx
pop esi
mov dword [eax + 0x44], ecx
pop ebx
ret
mov edx, dword [eax + 0x24]
mov esi, dword [eax + 0x44]
pop edi
mov byte [edx + esi], cl
mov ecx, dword [eax + 0x44]
inc ecx
pop esi
mov dword [eax + 0x44], ecx
pop ebx
ret
Function at 0x4282a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x17000]
push edi
jmp 0x4282ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4282c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4282b0
mov eax, 1
add ebx, ebx
jne 0x4282d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4282c8
jne 0x4282e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4282c8
xor ecx, ecx
sub eax, 3
jb 0x4282f8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42836a
mov ebp, eax
add ebx, ebx
jne 0x428303
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x428310
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x428334
inc ecx
add ebx, ebx
jne 0x428320
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x428315
jne 0x428331
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x428315
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x428354
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x428345
jmp 0x4282b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x428354
add edi, ecx
jmp 0x4282b6
pop esi
mov edi, esi
mov ecx, 0x115
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x428372
cmp byte [edi], 3
jne 0x428372
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x428377
lea edi, [esi + 0x26000]
mov eax, dword [edi]
or eax, eax
je 0x4283e6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x28000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x280c4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4283a4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x280cc]
or eax, eax
je 0x4283e0
mov dword [ebx], eax
add ebx, 4
jmp 0x4283c1
call dword [esi + 0x280c8]
mov ebp, dword [esi + 0x280d0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ef]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x42841a
sub esp, 0xffffff80
jmp 0x409ac0

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x37407ed
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e3d0
nop
nop
mov ecx, 0x37077154
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x10004550
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100045cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword fs:[0x2c]
mov edi, eax
mov edx, dword [0x1008816c]
mov edx, dword [ecx + edx*4]
mov ecx, dword [0x10088e60]
cmp ecx, dword [edx + 4]
jle 0x100045bd
push 0x10088e60
call fcn.10046360
add esp, 4
cmp dword [0x10088e60], esi
jne 0x100045bd
push 0x1006fa40
call fcn.1004680e
add esp, 4
push 0x10088e60
call fcn.1004630f
add esp, 4
mov dword [esp + 8], edi
mov dword [esp + 0xc], 0x10086bf8
test edi, edi
jne 0x100045d5
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, 0x10079708
lea ecx, [esp + 8]
call fcn.100042f0
int3

Function at 0x100047f0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push esi
mov esi, dword [ebp + 0x10]
push edi
cmp dword [esi + 4], 0x5b0
jne 0x1000482e
push str.GuildedCapture_message_hook_enter
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [0x10088e90]
mov eax, dword [esi + 0xc]
test ecx, ecx
je 0x10004829
cmp ecx, eax
je 0x1000482e
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
jmp 0x1000482e
mov dword [0x10088e90], eax
cmp dword [esi], 0
je 0x1000488f
call fcn.10024810
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1008816c]
mov edi, dword [esi]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x1008953c]
cmp eax, dword [ecx + 4]
jle 0x10004888
push 0x1008953c
call fcn.10046360
add esp, 4
cmp dword [0x1008953c], 0xffffffff
jne 0x10004888
call fcn.1001b7e0
push 0x100700e0
call fcn.1004680e
push 0x1008953c
call fcn.1004630f
add esp, 8
mov eax, 0x100895f4
xchg dword [eax], edi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
call dword [sym.imp.USER32.dll_CallNextHookEx]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10004f70
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a4
mov eax, dword [0x10086040]
xor eax, esp
mov dword [esp + 0x1a0], eax
push ebx
push esi
push edi
mov edi, ecx
mov eax, 1
lock xadd dword [0x10089318], eax
inc eax
mov ebx, 0x1008931c
cmp eax, 1
jne 0x10004fb6
lea eax, [esp + 0x18]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
xchg dword [ebx], eax
cmp byte [ebp + 8], 0
je 0x10004fc6
xor esi, esi
lock xadd dword [ebx], esi
test esi, esi
jne 0x10004fdf
mov ecx, dword [esp + 0x1ac]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100462d6
mov esp, ebp
pop ebp
ret 4
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1008816c]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10088e60]
cmp eax, dword [ecx + 4]
jle 0x1000502b
push 0x10088e60
call fcn.10046360
add esp, 4
cmp dword [0x10088e60], 0xffffffff
jne 0x1000502b
push 0x1006fa40
call fcn.1004680e
add esp, 4
push 0x10088e60
call fcn.1004630f
add esp, 4
mov edx, str.winsock
mov dword [esp + 0x10], esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], 0x10086bf8
call fcn.100042f0
int3

Function at 0x10006550
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
push dword [0x100894c8]
mov esi, dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea ebx, [esi + 3]
shr ebx, 2
test eax, eax
je 0x10006597
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x10006597
mov eax, dword [ecx]
test eax, eax
je 0x10006597
mov dword [ecx], 0
mov dl, byte [eax]
movzx ecx, dl
cmp ecx, ebx
jb 0x1000658e
mov byte [eax + esi], dl
pop esi
pop ebx
ret
push eax
call fcn.10046862
add esp, 4
lea eax, [ebx*4 + 1]
push eax
call fcn.100463c4
add esp, 4
movzx ecx, bl
xor edx, edx
cmp ebx, 0xff
cmova ecx, edx
mov byte [eax + esi], cl
pop esi
pop ebx
ret

Function at 0x10006a20
Capabilities:
Terminate thread

Disassembly:
sub esp, 8
push esi
mov esi, ecx
push 0xffffffffffffffff
push 0
mov eax, dword [esi + 8]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, 0x10089334
lock xadd dword [ecx], eax
mov ecx, dword [esi + 4]
test eax, eax
push 0
setne al
push ecx
test al, al
je 0x10006a73
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop esi
add esp, 8
ret
push method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_56
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop esi
add esp, 8
ret
Function at 0x10006a90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
push 0
push 0
push 1
mov ebx, ecx
push 0
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, dword [ebp + 8]
mov esi, eax
mov dword [edi + 4], esi
test esi, esi
jne 0x10006b33
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [edi]
mov ecx, edi
push 1
mov dword [esp + 0x10], eax
call dword [edx]
mov ecx, dword fs:[0x2c]
mov eax, dword [0x1008816c]
mov edx, dword [ecx + eax*4]
mov ecx, dword [0x10088e60]
cmp ecx, dword [edx + 4]
jle 0x10006b1b
push 0x10088e60
call fcn.10046360
add esp, 4
cmp dword [0x10088e60], 0xffffffff
jne 0x10006b1b
push 0x1006fa40
call fcn.1004680e
add esp, 4
push 0x10088e60
call fcn.1004630f
add esp, 4
mov eax, dword [esp + 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0x10086bf8
test eax, eax
jne 0x10006c96
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebx + 8], eax
mov dword [edi + 8], eax
cmp dword [ebx + 8], 0
jne 0x10006bc4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [edi]
mov ecx, edi
push 1
mov dword [esp + 0x10], eax
call dword [edx]
mov ecx, dword fs:[0x2c]
mov eax, dword [0x1008816c]
mov edx, dword [ecx + eax*4]
mov ecx, dword [0x10088e60]
cmp ecx, dword [edx + 4]
jle 0x10006bac
push 0x10088e60
call fcn.10046360
add esp, 4
cmp dword [0x10088e60], 0xffffffff
jne 0x10006bac
push 0x1006fa40
call fcn.1004680e
add esp, 4
push 0x10088e60
call fcn.1004630f
add esp, 4
mov eax, dword [esp + 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0x10086bf8
test eax, eax
jne 0x10006ca4
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push 0
push edi
push 0x10006cd0
push 0
push 0
call fcn.10053bdf
add esp, 0x18
mov dword [ebx + 4], eax
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x10006c7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [edi]
mov ecx, edi
push 1
mov dword [esp + 0x10], eax
call dword [edx]
test esi, esi
je 0x10006c0f
push esi
call ebx
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 8]
test eax, eax
je 0x10006c1d
push eax
call ebx
mov eax, dword [0x1008816c]
mov ecx, dword fs:[0x2c]
mov ecx, dword [ecx + eax*4]
mov eax, dword [0x10088e60]
cmp eax, dword [ecx + 4]
jle 0x10006c69
push 0x10088e60
call fcn.10046360
add esp, 4
cmp dword [0x10088e60], 0xffffffff
jne 0x10006c69
push 0x1006fa40
call fcn.1004680e
add esp, 4
push 0x10088e60
call fcn.1004630f
add esp, 4
mov eax, dword [esp + 0xc]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0x10086bf8
test eax, eax
jne 0x10006cb2
test esi, esi
je 0x10006c8d
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, str.thread.entry_event
lea ecx, [esp + 0xc]
call fcn.100042f0
mov edx, str.thread.exit_event
lea ecx, [esp + 0xc]
call fcn.100042f0
mov edx, str.thread
lea ecx, [esp + 0x18]
call fcn.100042f0
int3