joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a01c0
Capabilities:
Create raw socket
Create udp socket

Disassembly:
sub esp, 0x14
mov eax, dword [0x64aa84]
push ebx
push esi
push edi
mov edi, dword [sym.imp.WS2_32.dll_socket]
push 1
xor ebx, ebx
push 3
mov esi, ecx
push 2
mov dword [esp + 0x28], eax
mov word [esp + 0x18], 2
mov dword [esp + 0x1c], ebx
mov word [esp + 0x1a], bx
mov byte [esi], bl
call edi
cmp eax, 0xffffffff
mov dword [esi + 0x24], eax
je 0x4a023f
push 0x10
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x4a0220
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [esi + 0x24]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x4a023f
push 0x11
push 2
push 2
call edi
cmp eax, 0xffffffff
mov dword [esi + 0x20], eax
jne 0x4a023c
mov eax, dword [esi + 0x24]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x4a023f
mov byte [esi], 1
push str.ICMP.DLL
call dword [0x652c2c]
cmp eax, ebx
mov dword [esi + 0x14], eax
je 0x4a02bc
mov edi, dword [0x652bf0]
push str.IcmpCreateFile
push eax
call edi
mov ecx, dword [esi + 0x14]
push str.IcmpCloseHandle
push ecx
mov dword [esi + 4], eax
call edi
mov edx, dword [esi + 0x14]
push 0x5f1f64
push edx
mov dword [esi + 8], eax
call edi
mov ecx, dword [esi + 4]
cmp ecx, ebx
mov dword [esi + 0xc], eax
je 0x4a02bc
cmp dword [esi + 8], ebx
je 0x4a02bc
cmp eax, ebx
je 0x4a02bc
call ecx
cmp eax, 0xffffffff
mov dword [esi + 0x10], eax
jne 0x4a02b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
call fcn.0057981f
add esp, 0x14
ret
mov byte [esi + 0x19], bl
mov byte [esi + 0x1a], bl
mov byte [esi + 0x1b], bl
mov dword [esi + 0x1c], ebx
mov ecx, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.0057981f
add esp, 0x14
ret
Function at 0x4a0d90
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5d002f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x64]
mov dword [esp + 8], esi
mov dword [esi], 0x5f2224
mov dword [esp + 0xc], edi
call fcn.005afeed
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov dword [esp + 0x18], 1
lea edi, [esi + 0x13c]
mov dword [esp + 0xc], edi
call fcn.005afeed
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x18], 3
lea edi, [esi + 0x140]
mov dword [esp + 0xc], edi
call fcn.005afeed
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x18], 5
mov ecx, dword [esp + 0x24]
xor eax, eax
cmp ecx, eax
mov dword [esi + 8], eax
mov byte [esi + 0x74], al
mov byte [esi + 0x188], al
mov byte [esi + 0x189], al
mov byte [esi + 0x124], al
mov byte [esi + 0x60], al
lea edx, [esi + 0xc]
je 0x4a0e53
mov edi, dword [ecx]
mov dword [edx], edi
mov edi, dword [ecx + 4]
mov dword [edx + 4], edi
mov edi, dword [ecx + 8]
mov dword [edx + 8], edi
mov ecx, dword [ecx + 0xc]
jmp 0x4a0e73
mov ecx, dword [0x619fd0]
mov dword [edx], ecx
mov ecx, dword [0x619fd4]
mov dword [edx + 4], ecx
mov ecx, dword [0x619fd8]
mov dword [edx + 8], ecx
mov ecx, dword [0x619fdc]
mov dword [edx + 0xc], ecx
mov edx, dword [esp + 0x20]
mov dword [esi + 0x1c], edx
mov edx, dword [0x619fd0]
lea ecx, [esi + 0x20]
mov dword [ecx], edx
mov edx, dword [0x619fd4]
mov dword [ecx + 4], edx
mov edx, dword [0x619fd8]
mov dword [ecx + 8], edx
mov edx, dword [0x619fdc]
mov dword [ecx + 0xc], edx
or ecx, 0xffffffff
mov dword [esi + 0x30], eax
mov word [esi + 0x34], ax
mov dword [esi + 0x38], eax
mov word [esi + 0x3c], ax
mov dword [esi + 0x40], eax
mov dword [esi + 0x120], eax
mov byte [esi + 0x18a], al
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], eax
mov dword [esi + 0x7c], eax
mov dword [esi + 0x80], eax
mov dword [esi + 0x98], eax
mov dword [esi + 0xb8], eax
mov dword [esi + 0xcc], eax
mov dword [esi + 0xe0], eax
mov dword [esi + 0x144], eax
mov dword [esi + 0x148], eax
mov dword [esi + 0x150], eax
mov dword [esi + 0x154], eax
mov dword [esi + 0x158], eax
mov dword [esi + 0x15c], eax
mov dword [esi + 0x160], eax
mov dword [esi + 0x16c], eax
mov dword [esi + 0x170], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x174], eax
mov dword [esi + 0x178], eax
mov dword [esi + 0x17c], eax
mov dword [esi + 0x180], eax
mov dword [esi + 0x184], eax
mov dword [esi + 0x18c], 1
mov dword [esi + 0x70], eax
mov dword [esi + 0x164], eax
mov dword [esi + 0x168], eax
mov dword [esi + 0xfc], eax
mov dword [esi + 0x100], eax
mov dword [esi + 0x68], eax
mov dword [esi + 0x138], eax
mov dword [esi + 0x6c], ecx
mov dword [esi + 0x78], eax
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x10]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 8
Function at 0x4a5570
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5d0378
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, dword [esp + 0x2c]
push edi
mov dword [esp + 0x30], esi
call fcn.005afeed
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 8], eax
mov dword [esp + 0x20], 1
mov eax, dword [esp + 0x28]
push eax
lea ecx, [esp + 0xc]
push str.SoftwareVagaa_s
push ecx
call fcn.0040a170
mov edi, dword [esp + 0x14]
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push 0x20019
push 0
push edi
push 0x80000001
call dword [0x652b08]
test eax, eax
jne 0x4a562e
mov dword [esp + 0xc], eax
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x14]
push edx
push 0
push eax
push ecx
mov dword [esp + 0x28], 4
call dword [0x652b10]
cmp dword [esp + 0xc], 4
jne 0x4a561f
cmp dword [esp + 0x10], 4
je 0x4a5623
mov dword [esp + 0x30], esi
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x30]
mov dword [esp + 0x20], 0xffffffff
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a5654
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x18]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x4a6508
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x18
mov eax, dword [0x64aa84]
push esi
mov esi, ecx
mov dword [esp + 0x18], eax
cmp byte [esi], 0
je 0x4a66d6
mov eax, dword [esi + 0x38]
push edi
mov edi, dword [esp + 0x24]
lea ecx, [eax + 0x2d]
cmp edi, ecx
jbe 0x4a653f
mov ecx, esi
call fcn.004a62f0
pop edi
pop esi
mov ecx, dword [esp + 0x14]
call fcn.0057981f
add esp, 0x18
ret 4
add eax, 0x1e
cmp edi, eax
jb 0x4a66d5
cmp dword [esi + 0x48], 0x14
ja 0x4a66d5
cmp dword [esi + 0x20], 2
je 0x4a66d5
mov al, byte [esi + 1]
test al, al
jne 0x4a66d5
mov edx, dword [0x6613d8]
push ebp
mov ebp, dword [edx + 0x10]
test ebp, ebp
je 0x4a66d4
push ebx
lea esp, [esp]
mov ecx, dword [0x6613f4]
push 0
lea eax, [ebp + 0x14]
push eax
call fcn.00490000
test eax, eax
jne 0x4a65ed
push edi
mov ecx, ebp
call fcn.0047cf50
test eax, eax
je 0x4a65ed
mov eax, dword [ebp + 0x6c]
test eax, eax
mov dword [ebp + 0x68], edi
jne 0x4a65ae
mov dword [ebp + 0x6c], edi
cmp dword [ebp + 0x10], 3
jne 0x4a65ed
mov ecx, dword [esi + 0x1c]
push 0xe3
push 0x98
mov dword [ebp + 0xc], ecx
call fcn.00472810
add esp, 8
mov ebx, eax
push 1
mov ecx, ebx
call fcn.00406fc0
mov edx, dword [ebp + 0x3c]
mov eax, dword [esi + 0x40]
and edx, 0x10
push edx
push eax
mov ecx, ebx
call fcn.00472490
test ebx, ebx
jne 0x4a6607
mov ebp, dword [ebp + 4]
test ebp, ebp
jne 0x4a6580
pop ebx
pop ebp
pop edi
pop esi
mov ecx, dword [esp + 0x14]
call fcn.0057981f
add esp, 0x18
ret 4
mov ecx, dword [ebx + 0x1c]
add ecx, 2
push ecx
call fcn.005abeeb
mov dword [esp + 0x14], eax
mov byte [eax], 0xe3
mov dl, byte [ebx + 0x31]
mov eax, dword [esp + 0x14]
mov byte [eax + 1], dl
mov ecx, dword [ebx + 0x1c]
mov edi, dword [esp + 0x14]
mov esi, dword [ebx + 0x14]
mov edx, ecx
shr ecx, 2
add edi, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x1c]
mov ecx, dword [ebp + 0x3c]
lea esi, [eax + 2]
mov ax, word [ebp + 0x18]
add esp, 4
add ax, 4
test ch, 2
je 0x4a667d
mov ecx, dword [ebp + 0x48]
test ecx, ecx
je 0x4a667d
cmp word [ebp + 0x46], 0
je 0x4a667d
push ecx
lea eax, [esp + 0x14]
push esi
push eax
call fcn.004750c0
mov esi, eax
add esp, 0xc
xor eax, eax
mov ax, word [ebp + 0x46]
mov ecx, dword [ebp + 0x14]
push eax
mov word [esp + 0x18], 2
mov dword [esp + 0x1c], ecx
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [0x6613e0]
push 0x10
lea edx, [esp + 0x18]
push edx
push 0
mov word [esp + 0x22], ax
mov eax, dword [esp + 0x1c]
mov edx, dword [ecx + 8]
push esi
push eax
push edx
call dword [sym.imp.WS2_32.dll_sendto]
mov eax, dword [esp + 0x10]
push eax
call fcn.005abee6
mov eax, dword [ebx + 0xc]
add esp, 4
dec eax
mov dword [ebx + 0xc], eax
jne 0x4a66d3
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x30]
pop ebx
pop ebp
pop edi
mov ecx, dword [esp + 0x18]
pop esi
call fcn.0057981f
add esp, 0x18
ret 4
Function at 0x4b9af0
Capabilities:
Hash data using sha1

Disassembly:
mov dword [ecx + 4], 0
mov dword [ecx], 0
mov dword [ecx + 8], 0x67452301
mov dword [ecx + 0xc], 0xefcdab89
mov dword [ecx + 0x10], 0x98badcfe
mov dword [ecx + 0x14], 0x10325476
mov dword [ecx + 0x18], 0xc3d2e1f0
ret

Function at 0x4b9e40
Capabilities:
Hash data using sha1

Disassembly:
mov eax, ecx
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
ret
Function at 0x4bd3d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5d2fde
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x2c]
mov dword [esp + 0x10], esi
mov dword [esi], 0x5f9c5c
mov dword [esp + 0x14], edi
call fcn.005afeed
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov dword [esp + 0x20], 1
lea ebx, [esi + 0x30]
mov edi, ebx
mov dword [esp + 0x14], edi
call fcn.005afeed
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x20], 3
lea edi, [esi + 0x12c]
mov dword [esp + 0x14], edi
call fcn.005afeed
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x20], 5
lea edi, [esi + 0x130]
mov dword [esp + 0x14], edi
call fcn.005afeed
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x20], 7
lea edi, [esi + 0x134]
mov dword [esp + 0x14], edi
call fcn.005afeed
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x20], 9
lea edi, [esi + 0x138]
mov dword [esp + 0x14], edi
call fcn.005afeed
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x20], 0xb
mov eax, dword [esp + 0x28]
xor edi, edi
mov dword [esi + 0x28], eax
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov ebp, dword [esp + 0x2c]
cmp ebp, edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x94], edi
mov dword [esi + 0xa8], edi
mov dword [esi + 0x114], edi
mov dword [esi + 0xc0], edi
mov dword [esi + 0x108], edi
mov dword [esi + 0x10c], edi
mov dword [esi + 0x124], edi
mov dword [esi + 0x118], edi
mov dword [esi + 0x11c], edi
mov dword [esi + 0x120], edi
mov dword [esi + 0x128], 6
mov dword [esi + 0x13c], edi
mov dword [esi + 0x140], edi
mov dword [esi + 0x144], edi
mov dword [esi + 0x148], edi
mov dword [esi + 0x14c], 0xffffffff
mov dword [esi + 0x20], edi
mov dword [esi + 0xac], edi
je 0x4bd578
push ebp
call fcn.0057a0fd
add esp, 4
push eax
push ebp
mov ecx, ebx
call fcn.004053c0
mov ecx, esi
call fcn.004bc800
mov dword [esi + 0x110], edi
mov dword [esp + 0x20], 0xffffffff
mov ecx, dword [esp + 0x18]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 8
Function at 0x4bf090
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x5d329f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x14]
mov dword [esp + 0xc], esi
mov dword [esi], 0x5f9dc8
mov dword [esp + 0x10], edi
call fcn.005afeed
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov dword [esp + 0x1c], 1
lea edi, [esi + 0x18]
mov dword [esp + 0x10], edi
call fcn.005afeed
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x1c], 3
lea edi, [esi + 0x1c]
mov dword [esp + 0x10], edi
call fcn.005afeed
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x1c], 5
push 0xa
lea ecx, [esi + 0x38]
call fcn.005aae9d
mov byte [esp + 0x1c], 6
push 0xa
lea ecx, [esi + 0x54]
call fcn.005aae9d
mov byte [esp + 0x1c], 7
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
xor eax, eax
xor edx, edx
cmp ecx, eax
setne dl
mov dword [esi + 0x10], ecx
mov dword [esi + 0x28], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x24], eax
mov dword [esi + 8], eax
dec edx
and edx, 2
cmp ebx, eax
mov dword [esi + 0x20], edx
mov dword [esi + 0xc], eax
mov dword [esi + 0x70], 0xffffffff
mov dword [esi + 0x74], eax
je 0x4bf183
push ebx
call fcn.0057a0fd
add esp, 4
push eax
push ebx
mov ecx, edi
call fcn.004053c0
mov ecx, esi
call fcn.004bef10
mov dword [esp + 0x1c], 0xffffffff
mov ecx, dword [esp + 0x14]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 8
Function at 0x4c82a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5d3eb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
push edi
mov edi, dword [esp + 0x2c]
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
call fcn.005b3fe1
mov dword [esp + 0x24], 0
mov ecx, dword [esp + 0x30]
xor eax, eax
test ecx, ecx
setne al
lea ecx, [esp + 8]
inc eax
push eax
push 1
push ecx
push edi
mov ecx, esi
call fcn.004c6f40
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esp + 8]
call fcn.005b403c
mov ecx, dword [esp + 0x1c]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 8

Function at 0x4c8390
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5d3eb8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
mov esi, ecx
mov ecx, dword [esp + 0x2c]
xor eax, eax
cmp ecx, 3
jne 0x4c83bd
mov eax, 1
jmp 0x4c83df
cmp ecx, 8
jne 0x4c83c9
mov eax, 2
jmp 0x4c83df
cmp ecx, 9
jne 0x4c83d5
mov eax, 3
jmp 0x4c83df
cmp ecx, 0x14
jne 0x4c83df
mov eax, 4
mov ecx, dword [esi + 0xec]
test ecx, ecx
je 0x4c8405
cmp ecx, eax
je 0x4c8405
push 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ah, ah
js 0x4c8403
mov dword [esi + 0xec], 0
xor eax, eax
cmp eax, dword [esi + 0xe8]
je 0x4c844d
push edi
mov edi, dword [esp + 0x2c]
push edi
lea ecx, [esp + 0xc]
mov dword [esi + 0xe8], eax
call fcn.005b3fe1
mov dword [esp + 0x24], 0
push 0
push 1
lea eax, [esp + 0x10]
push eax
push edi
mov ecx, esi
call fcn.004c6f40
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esp + 8]
call fcn.005b403c
pop edi
mov ecx, dword [esp + 0x18]
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 0x10
Function at 0x4c8460
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5d3ea0
push eax
mov eax, dword [esp + 0x14]
mov dword fs:[0], esp
sub esp, 0x48
cmp eax, 3
push edi
mov edi, ecx
jne 0x4c848b
mov eax, 1
jmp 0x4c84b1
cmp eax, 8
jne 0x4c8497
mov eax, 2
jmp 0x4c84b1
cmp eax, 9
jne 0x4c84a3
mov eax, 3
jmp 0x4c84b1
cmp eax, 0x14
jne 0x4c862c
mov eax, 4
cmp eax, 1
push esi
mov esi, dword [esp + 0x60]
mov dword [edi + 0xec], eax
mov dword [edi + 0xe8], eax
jne 0x4c85e0
mov ecx, dword [esi + 0x1c]
push ebx
push ebp
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
push 1
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x28]
push eax
mov ecx, edi
call fcn.004c6be0
mov ecx, dword [esi + 0x1c]
push 0
push ecx
call dword [sym.imp.USER32.dll_GetSystemMenu]
push eax
call fcn.005b17fa
push esi
lea ecx, [esp + 0x34]
mov ebx, eax
call fcn.005b3fe1
mov dword [esp + 0x60], 0
push 0
push 1
lea edx, [esp + 0x38]
push edx
push esi
mov ecx, edi
call fcn.004c6f40
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov ecx, dword [esp + 0x10]
push 0
push esi
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x24]
push eax
push ecx
push 0x100
mov ecx, ebx
call fcn.005ad1ef
xor ebx, ebx
cmp eax, ebx
mov dword [edi + 0xec], ebx
mov dword [edi + 0xe8], ebx
je 0x4c8579
movzx ecx, word [esp + 0x1c]
movzx edx, word [esp + 0x10]
shl ecx, 0x10
or ecx, edx
push ecx
push eax
mov eax, dword [esi + 0x1c]
push 0x112
push eax
jmp 0x4c85c7
call ebp
sub eax, dword [esp + 0x6c]
cmp eax, 0x12c
jae 0x4c85cd
lea ecx, [esp + 0x70]
push ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x70]
push ebx
push edx
push eax
push esi
mov ecx, edi
call fcn.004c6c50
cmp eax, 3
jne 0x4c85cd
movzx eax, word [esp + 0x1c]
movzx ecx, word [esp + 0x10]
mov edx, dword [esi + 0x1c]
shl eax, 0x10
or eax, ecx
push eax
push 0xf060
push 0x112
push edx
call dword [0x652d40]
mov dword [esp + 0x60], 0xffffffff
lea ecx, [esp + 0x30]
call fcn.005b403c
pop ebp
pop ebx
push esi
lea ecx, [esp + 0x40]
call fcn.005b3fe1
mov dword [esp + 0x58], 1
push 0
push 1
lea eax, [esp + 0x44]
push eax
push esi
mov ecx, edi
call fcn.004c6f40
mov dword [esp + 0x58], 0xffffffff
lea ecx, [esp + 0x3c]
call fcn.005b403c
pop esi
mov eax, 1
pop edi
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
add esp, 0x54
ret 0x10
mov ecx, dword [esp + 0x4c]
xor eax, eax
pop edi
mov dword fs:[0], ecx
add esp, 0x54
ret 0x10
Function at 0x4cb1a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5d4278
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
mov eax, dword [eax + 0xc]
push esi
sub eax, 0x10
push edi
push eax
mov esi, ecx
call fcn.004026e0
add eax, 0x10
add esp, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 1
lea ecx, [esp + 0x18]
call fcn.0041ce00
mov edi, dword [esp + 0x18]
push edi
lea ecx, [esi + 0x30]
call fcn.005ab04d
mov dword [esp + 0x10], 0xffffffff
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4cb213
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 4
Function at 0x4d0260
Capabilities:
Terminate thread

Disassembly:
push ecx
push edi
mov edi, ecx
mov dword [edi + 0x10], 0
mov byte [0x659220], 0
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x4d02ea
mov eax, dword [edi + 0x18]
push ebx
push ebp
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ebx, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, 0xa
mov edx, dword [edi + 0x1c]
lea ecx, [esp + 0x10]
push ecx
push edx
call ebx
test eax, eax
je 0x4d02b9
cmp dword [esp + 0x10], 0x103
jne 0x4d02b9
push 0x64
call ebp
dec esi
test esi, esi
jg 0x4d0297
test esi, esi
jne 0x4d02e0
mov eax, dword [edi + 0x1c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push str.WARNING:_Terminating_CHandshakes_thread.
push 3
push 0x661308
call fcn.0046abf0
add esp, 0xc
push 0x64
call ebp
pop esi
pop ebp
mov dword [edi + 0x1c], 0
pop ebx
call sub.TouDll.dll_int___cdecl_TouLogout_void_
pop edi
pop ecx
ret

Function at 0x4d0420
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5d46d9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov dword [esp], 0
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push 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], 2
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
call fcn.004d0390
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.00494870
mov edi, dword [esp + 0x34]
add eax, 0x10
add esp, 0x18
mov dword [edi], eax
mov byte [esp + 0x14], 2
mov dword [esp + 8], 1
mov dword [esp + 0x14], 0
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4d04c4
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4d3480
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
push esi
mov esi, ecx
mov eax, dword [esi + 0x48]
push edi
xor edi, edi
cmp eax, edi
mov dword [esp + 0x18], esi
je 0x4d34bb
lea ecx, [esp + 0xc]
push ecx
push eax
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0xc], 0x103
je 0x4d34bb
mov edx, dword [esi + 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x48], edi
cmp dword [esi + 0x48], edi
jne 0x4d35f3
mov eax, dword [esi + 0x3c]
push ebp
mov ebp, dword [eax]
cmp ebp, eax
mov dword [esp + 0x10], ebp
je 0x4d35f2
push ebx
jmp 0x4d34e0
mov ebp, dword [esp + 0x14]
lea ecx, [ecx]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebx]
mov edx, dword [ebx + 4]
mov eax, edi
mov cl, 0x20
call fcn.0057c2c0
mov ecx, dword [esi + 0x58]
push 0
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [ebx + 8]
push edx
call fcn.004a2c90
mov ecx, eax
call fcn.0048c8b0
mov edi, eax
mov eax, dword [ebx + 0x10]
test eax, eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], 0
je 0x4d358a
lea esp, [esp]
mov ebp, dword [ebx + 0x10]
mov eax, dword [ebp + 8]
mov edx, dword [esp + 0x10]
mov dword [ebx + 0x10], eax
mov ecx, dword [ebp + 4]
mov esi, dword [ebp]
mov eax, ecx
add edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 4]
mov edi, edx
mov edx, dword [ebp]
add edi, ecx
push edx
mov dword [esp + 0x14], edi
call fcn.004a2c90
mov ecx, eax
call fcn.0048c9d0
push ebp
call fcn.005abee6
mov eax, dword [ebx + 0x10]
mov edi, dword [esp + 0x1c]
add esp, 4
test eax, eax
jne 0x4d3530
mov esi, dword [esp + 0x20]
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 0x58]
push 0
lea eax, [esp + 0x28]
push eax
push ecx
push edi
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call fcn.004a2c90
mov ecx, eax
call fcn.0048c9d0
mov eax, dword [ebx + 8]
mov edi, dword [esi + 0x30]
mov edx, dword [esi + 0x34]
sub edi, eax
mov dword [esi + 0x30], edi
mov ecx, dword [ebx + 0xc]
sbb edx, ecx
push ebx
mov dword [esi + 0x34], edx
call fcn.005abee6
add esp, 4
push ebp
lea edx, [esp + 0x2c]
push edx
lea ecx, [esi + 0x38]
call fcn.004a3580
mov edx, dword [esi + 0x28]
mov eax, dword [eax]
dec edx
mov dword [esi + 0x28], edx
cmp eax, dword [esi + 0x3c]
mov dword [esp + 0x14], eax
jne 0x4d34d9
pop ebx
pop ebp
pop edi
pop esi
add esp, 0x1c
ret