joyce8/EMBER2024-capa huggingface dataset:
Function at 0x9c6ac0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0xa2f0c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [eax + 8]
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 0x1e8]
test dword [eax + 0x44], 0x800
jne 0x9c6be0
push 0x80
lea eax, [ebp - 0x184]
mov dword [ebp - 0x188], 0x80
push 0
push eax
call fcn.009d7410
add esp, 0xc
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x184]
push eax
push dword [esi + 0x98]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x9c6b71
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x104]
push 0x100
push eax
push esi
call fcn.009a9f90
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.00998510
add esp, 0x1c
mov eax, 2
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00982b63
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0x120]
push eax
lea eax, [esi + 0xf0]
push eax
push dword [ebp - 0x188]
lea eax, [ebp - 0x184]
push eax
call fcn.009993e0
add esp, 0x10
test al, al
jne 0x9c6be0
push edi
call fcn.009e1f98
mov esi, dword [eax]
call fcn.009e1f98
mov edi, eax
lea eax, [ebp - 0x104]
push 0x100
push eax
push esi
call fcn.009a9f90
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.00998510
add esp, 0x1c
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00982b63
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.00982b63
mov esp, ebp
pop ebp
ret

Function at 0x9c6e30
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0xa2f0c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
push 4
cmp byte [esi + 0x6db], al
setne al
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x9c6e8d
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d
push esi
call fcn.009985d0
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00982b63
mov esp, ebp
pop ebp
ret
push dword [esi + 0x678]
mov dword [ebp - 0x10], 1
call fcn.0099a580
push dword [esi + 0x67c]
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
call fcn.0099a580
add esp, 8
imul eax, eax, 0x3e8
push 0
push 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x9c6efd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d
push esi
call fcn.009985d0
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00982b63
mov esp, ebp
pop ebp
ret
Function at 0x9c6f10
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0xa2f0c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push 4
push eax
push 1
push 6
push dword [ebp + 0xc]
mov dword [ebp - 0x108], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x9c6f72
push 0x100
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.009a9f90
push eax
push str.Could_not_set_TCP_NODELAY:__s
push esi
call fcn.009985d0
add esp, 0x18
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00982b63
mov esp, ebp
pop ebp
ret
Function at 0x9d4600
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push edi
mov byte [edi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [edi + esi - 1], 0
test eax, eax
jne 0x9d4633
push 0x2e
push edi
call fcn.009d9c00
add esp, 8
test eax, eax
je 0x9d4631
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x9d4950
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0xa2f0c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push edi
mov edi, dword [ebp + 0x10]
push 0xf0000040
push 1
push 0
push 0
push eax
mov dword [ebp - 0x20], 8
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x9d49e2
lea eax, [ebp - 0xc]
mov dword [ebp - 0x18], 0x208
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0x6601
push edi
movlpd qword [ebp - 0xc], xmm0
mov dword [ebp - 0x10], 8
call fcn.009d4a40
lea eax, [ebp - 0xc]
push 8
push eax
call fcn.009d6d70
add esp, 0x10
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 0x14
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x9d49f4
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00982b63
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
push dword [ebp - 0x20]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push eax
push esi
push 0
push 0
push 0
push dword [ebp - 0x24]
mov dword [esi], ecx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00982b63
mov esp, ebp
pop ebp
ret
Function at 0x9d5f10
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0xa2f178]
mov esi, eax
add esp, 4
test esi, esi
jne 0x9d5f3d
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esi + 0xc]
mov dword [esi], ebx
mov dword [esi + 4], ecx
mov eax, dword [ebx + 0xc]
add eax, ecx
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x10]
push edi
lea edi, [ebx + 4]
cmp eax, dword [ebx + 0x10]
jbe 0x9d5f88
mov eax, dword [ebx]
push ecx
call eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push dword [ebp + 0xc]
push dword [esi + 4]
call eax
mov eax, dword [esi + 8]
add eax, dword [ebx + 0xc]
push dword [esi + 4]
mov dword [ebp - 8], eax
push eax
mov eax, dword [ebx + 8]
call eax
mov eax, dword [ebx + 0x14]
add esp, 0x18
mov dword [ebp + 0x10], eax
jmp 0x9d5f8e
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
push dword [esi + 4]
mov eax, dword [ebx]
call eax
push dword [esi + 8]
mov eax, dword [ebx]
call eax
mov eax, dword [ebp + 0x10]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x9d5ff1
mov ebx, dword [ebp - 8]
mov dword [ebp - 0xc], eax
nop
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push 1
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push 1
push eax
push dword [esi + 8]
mov eax, dword [edi]
call eax
add esp, 0x18
sub dword [ebp + 0x10], 1
jne 0x9d5fb0
mov eax, dword [ebp + 8]
mov ebx, dword [ebp - 0xc]
lea edi, [eax + 4]
jmp 0x9d5ff4
mov eax, dword [ebp + 8]
cmp ebx, dword [eax + 0x10]
jae 0x9d6028
nop dword [eax]
mov eax, dword [edi]
push 1
push 0xa1fd31
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0xa1fd32
push dword [esi + 8]
call eax
mov eax, dword [ebp + 8]
inc ebx
add esp, 0x18
cmp ebx, dword [eax + 0x10]
jb 0x9d6000
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x9d6090
Capabilities:
Create new key via cryptacquirecontext
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0xf0000040
push 0x18
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x9d60b5
mov eax, 0x1b
pop esi
pop ebp
ret
lea eax, [esi + 4]
push eax
push 0
push 0
push 0x800c
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x9d60e5
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esi], 0
mov eax, 2
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x9d6d70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
test edi, edi
je 0x9d6dbc
mov cl, byte [ebx + esi]
mov dl, cl
mov al, cl
shr dl, 1
and al, 0xfe
not dl
movzx eax, al
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
or cl, 1
test dl, 2
movzx ecx, cl
cmove ecx, eax
mov byte [ebx + esi], cl
inc esi
cmp esi, edi
jb 0x9d6d82
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x9d6e20
Capabilities:
Hash data using md4
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0xf0000040
push 1
push 0
push 0
lea edi, [esi + 4]
mov dword [esi], 0
push esi
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x9d6e72
push edi
push 0
push 0
push 0x8002
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x9d6e78
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esi], 0
pop edi
xor eax, eax
pop esi
pop ebp
ret
pop edi
mov eax, 1
pop esi
pop ebp
ret

Function at 0x9ef365
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.009ef025

Function at 0x9f415f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.009f3fde

Function at 0x9f9710
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x9f973d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x9f973d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x418140
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], edi
mov dword [ebp - 4], esi
mov edi, eax
mov ecx, dword [edi + 0x38]
mov esi, dword [edi + 0x40]
lea edx, [ebp - 0xc]
push 0
push edx
sub esi, ecx
push esi
push ecx
push dword [edi + 0xd4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, eax
test ecx, ecx
je 0x4181eb
mov eax, dword [edi + 0x38]
mov edx, dword [edi + 0xe4]
and byte [edi + 0x15d], 0xfb
mov dword [edi + 0x40], eax
add eax, edx
mov dword [edi + 0x44], eax
xor edx, edx
mov dword [edi + 0xa0], edx
mov dword [edi + 0xa4], edx
mov eax, esi
cdq
mov eax, dword [edi + 0xb8]
add esi, eax
adc edx, dword [edi + 0xbc]
mov dword [edi + 0xb8], esi
mov dword [edi + 0xb0], esi
mov dword [edi + 0xbc], edx
mov dword [edi + 0xb4], edx
cmp ecx, 0xffffffff
je 0x4181d0
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
xor eax, eax
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 4]
mov dword [edi + 0xd8], eax
mov edi, dword [ebp - 8]
mov eax, 0x26
mov esp, ebp
pop ebp
ret
mov ecx, 0xffffffff
jmp 0x418170
Function at 0x432bf0
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
Function at 0x4339e8
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], ebx
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x7c]
test esi, esi
je 0x433acc
mov eax, dword [0x4c9460]
mov ebx, dword [esi + 0x14]
cmp eax, 2
jge 0x433a32
mov eax, ebx
shl eax, 2
shl ebx, 5
sub ebx, eax
mov edx, dword [ebx + 0x440c2e8]
test edx, edx
jne 0x433a80
mov dword [ebx + 0x440c2e8], 1
jmp 0x433a80
mov eax, ebx
shl eax, 2
shl ebx, 5
sub ebx, eax
lea edx, [ebx + 0x440c2e8]
mov dword [ebp - 0x10], edx
push edx
call fcn.004161ac
pop ecx
test eax, eax
jne 0x433a80
mov eax, dword [ebx + 0x440c2e4]
test eax, eax
je 0x433b90
mov dword [ebx + 0x440c2e8], 0
push 0xffffffffffffffff
push dword [ebx + 0x440c2e4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x10]
push eax
call fcn.004161ac
pop ecx
mov eax, dword [0x4c9460]
cmp eax, 1
je 0x433b7e
mov eax, dword [esi + 0x18]
add eax, 0xffffffff
mov dword [esi + 0x18], eax
test eax, eax
jle 0x433af6
mov eax, dword [0x4c9460]
cmp eax, 1
je 0x433adb
cmp eax, 2
jge 0x433ab6
mov dword [ebx + 0x440c2e8], 0
jmp 0x433acc
push dword [ebx + 0x440c2e4]
mov dword [ebx + 0x440c2e8], 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
xor eax, eax
mov esp, ebp
pop ebp
ret
push dword [ebx + 0x440c2f8]
push dword [ebx + 0x440c2f4]
call fcn.00416160
add esp, 8
mov eax, dword [0x4c9460]
jmp 0x433aa5
mov edx, dword [esi]
test edx, edx
je 0x433b04
mov eax, dword [esi + 4]
mov dword [edx + 4], eax
mov edx, dword [esi]
mov eax, dword [esi + 4]
test eax, eax
je 0x433b0f
mov dword [eax], edx
jmp 0x433b15
mov dword [ebx + 0x440c2e0], edx
mov eax, dword [0x4c9460]
mov dword [edi + 0x7c], 0
cmp eax, 1
je 0x433b63
cmp eax, 2
jge 0x433b37
mov dword [ebx + 0x440c2e8], 0
jmp 0x433b4d
push dword [ebx + 0x440c2e4]
mov dword [ebx + 0x440c2e8], 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [esi + 8]
call fcn.004316dc
push esi
call fcn.004316dc
add esp, 8
jmp 0x433acc
push dword [ebx + 0x440c2f8]
push dword [ebx + 0x440c2f4]
call fcn.00416160
add esp, 8
mov eax, dword [0x4c9460]
jmp 0x433b26
lea eax, [ebx + 0x440c2f4]
push eax
call fcn.00416180
pop ecx
jmp 0x433a8e
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebx + 0x440c2e8], 0
mov dword [ebx + 0x440c2e4], eax
jmp 0x433a68
Function at 0x439648
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
Function at 0x43df54
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]

Function at 0x43df60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], esi
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
mov edx, dword [ebp + 0x20]
mov eax, dword [0x4caa54]
test eax, eax
je 0x43e045
cmp edx, 2
je 0x43df8f
cmp edx, 1
jne 0x43dfa1
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov eax, 0xffffffff
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x43dfb1
cmp edx, 0xfffffffa
je 0x43e077
test edx, edx
je 0x43e083
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x43dff2
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x43dff2
push edx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
call fcn.0046a24c
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x14], ecx
push edx
mov dword [ebp - 0x10], edx
call fcn.0046bb70
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
add esp, 8
test ecx, ecx
je 0x43e045
push edx
mov dword [ebp - 0x10], edx
push edi
push esi
call fcn.0046cf30
mov edx, dword [ebp - 0x10]
add esp, 0xc
mov ebx, eax
mov ecx, dword [ebp + 0x14]
mov dword [ecx], ebx
cmp ebx, 0xffffffff
je 0x43e0a1
push 0
push edx
push 2
push 0x4ba3cc
call fcn.0046cd60
add esp, 0x10
mov edx, dword [ebp + 0x14]
mov edi, dword [ebp - 0xc]
mov byte [ebx + esi], 0xa
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
add dword [edx], 1
mov eax, 1
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 0x14]
xor edx, edx
push edx
mov dword [eax], edx
push ecx
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x14]
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov dword [ecx], edx
mov esp, ebp
pop ebp
ret
mov edx, ebx
mov ecx, 1
jmp 0x43dfc4
call fcn.0046a39c
mov edx, eax
mov eax, dword [0x4caa54]
mov ecx, 1
test eax, eax
jne 0x43dfbd
jmp 0x43dff2
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x472008
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [0x4cb008]
test eax, eax
je 0x472081
mov eax, dword [0x4cb3d8]
cmp eax, 0x44d
jle 0x472048
mov dword [ebp - 4], ebx
mov eax, 0x44d
mov ebx, eax
push 0
push ebx
push dword [0x4caf68]
call dword [sym.imp.USER32.dll_EnableMenuItem]
add ebx, 1
cmp ebx, dword [0x4cb3d8]
jl 0x47202b
mov ebx, dword [ebp - 4]
push dword [0x4caf9c]
call dword [sym.imp.USER32.dll_DrawMenuBar]
mov eax, dword [0x4cb008]
mov edx, dword [eax]
test edx, edx
jle 0x472081
mov dword [ebp - 4], ebx
mov edx, 1
mov ebx, edx
push dword [eax + ebx*4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [0x4cb008]
add ebx, 1
cmp ebx, dword [eax]
jle 0x472069
mov ebx, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x472088
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [0x4cb008]
test eax, eax
je 0x4720f7
mov edx, dword [0x4cb3d8]
cmp edx, 0x44d
jle 0x4720cf
mov dword [ebp - 4], ebx
mov eax, 0x44d
mov ebx, eax
push 1
push ebx
push dword [0x4caf68]
call dword [sym.imp.USER32.dll_EnableMenuItem]
add ebx, 1
cmp ebx, dword [0x4cb3d8]
jl 0x4720ad
mov ebx, dword [ebp - 4]
mov eax, dword [0x4cb008]
mov edx, dword [eax]
test edx, edx
jle 0x4720f7
mov dword [ebp - 4], ebx
mov edx, 1
mov ebx, edx
push dword [eax + ebx*4]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov eax, dword [0x4cb008]
add ebx, 1
cmp ebx, dword [eax]
jle 0x4720df
mov ebx, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x472580
Capabilities:
Get thread local storage value
Log keystrokes
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], edi
mov dword [ebp - 4], esi
mov eax, dword [0x440ffd4]
test eax, eax
je 0x472786
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
test edi, edi
je 0x472769
push dword [0x4caff8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x4725c7
mov edi, dword [ebp - 8]
mov eax, esi
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
push dword [0x440ffd4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4cb004]
cmp edi, eax
je 0x47267a
push 1
push eax
push edi
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov ecx, dword [0x4cb008]
test ecx, ecx
je 0x4726fa
mov eax, dword [ecx]
lea edx, [eax*4 + 8]
push edx
push ecx
call fcn.0048b74c
mov esi, eax
add dword [esi], 1
mov ecx, dword [0x440ffd8]
mov eax, dword [ecx]
lea edx, [eax*4 + 8]
push edx
push ecx
call fcn.0048b74c
add esp, 0x10
mov dword [0x440ffd8], eax
add dword [eax], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0xc]
xor edx, edx
push edx
push edx
push 2
push ecx
push eax
push dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov eax, dword [ebp - 0xc]
push 0x20
mov edx, dword [esi]
mov dword [esi + edx*4], eax
mov dword [0x4cb008], esi
call fcn.0048b682
pop ecx
mov esi, eax
test esi, esi
je 0x4726da
mov eax, dword [0x440ffd8]
mov edx, dword [eax]
mov dword [eax + edx*4], esi
jmp 0x47268c
push 0x20
call fcn.0048b682
pop ecx
mov esi, eax
test esi, esi
je 0x472749
push esi
push dword [0x4caff8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x472723
mov dword [esi], 0x400
push 0xffffffffffffffff
xor eax, eax
push esi
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
call fcn.0046a0b8
add esp, 8
push dword [0x440ffd4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4725bb
push 0x6d9
push str.qwgutil.c
push 4
call fcn.004751b8
add esp, 0xc
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
xor eax, eax
mov esp, ebp
pop ebp
ret
push 8
call fcn.0048b682
mov esi, eax
mov dword [esi], 1
push 8
call fcn.0048b682
add esp, 8
mov dword [0x440ffd8], eax
mov dword [eax], 1
jmp 0x47262e
push 0x6ec
push str.qwgutil.c
push 5
call fcn.004751b8
push esi
call fcn.0048b5a5
add esp, 0x10
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
xor eax, eax
mov esp, ebp
pop ebp
ret
push 0x6e5
push str.qwgutil.c
push 4
call fcn.004751b8
add esp, 0xc
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
xor eax, eax
mov esp, ebp
pop ebp
ret
push 0x67d
push str.qwgutil.c
push 5
call fcn.004751b8
add esp, 0xc
mov edi, dword [ebp - 8]
xor eax, eax
mov esp, ebp
pop ebp
ret
push 0x18
call fcn.0048b682
pop ecx
mov dword [0x440ffd4], eax
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jmp 0x472599
Function at 0x476a40
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], esi
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ebx, eax
test ebx, ebx
je 0x476b22
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
call fcn.0048b682
mov dword [ebp - 0x10], eax
add esp, 4
test eax, eax
je 0x476b97
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, dword [ebp - 0x10]
mov edi, eax
mov dl, byte [edi]
add edi, 1
mov byte [esi], dl
add esi, 1
test dl, dl
jne 0x476a92
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [0x441001c]
test eax, eax
je 0x476ab7
push eax
call fcn.0048b5a5
pop ecx
push dword [0x44d4c60]
mov eax, dword [ebp - 0x10]
mov dword [0x441001c], eax
mov dword [0x4410024], 0
mov dword [0x4410020], eax
mov byte [0x4410018], 1
call fcn.0046b440
pop ecx
test eax, eax
je 0x476b7e
mov eax, dword [0x4cdb2c]
cmp eax, 1
je 0x476b1b
mov eax, dword [0x4cafe8]
test eax, eax
je 0x476b1b
push 0
push 0x3fe
push dword [0x4caf68]
call dword [sym.imp.USER32.dll_EnableMenuItem]
call fcn.0046ba1c
push eax
call dword [sym.imp.USER32.dll_DrawMenuBar]
mov byte [0x4410004], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
movsx eax, byte [0x4410004]
test eax, eax
je 0x476b3c
mov byte [0x4410004], 0
jmp 0x476b4c
mov eax, dword [ebp + 8]
push 0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, eax
je 0x476b71
mov eax, dword [eax + 0x1ec]
test eax, eax
je 0x476b5f
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x476b71
movsx eax, byte [0x4410004]
test eax, eax
je 0x476b71
mov byte [0x4410004], 0
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push 0x241
push str.qwgmisc.c
push 5
call fcn.004751b8
add esp, 0xc
jmp 0x476ae9
push 0x1fe
push str.qwgmisc.c
push 4
call fcn.004751b8
add esp, 0xc
mov ebx, dword [ebp - 4]
mov esp, ebp
pop ebp
ret