joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4023d0
Capabilities:
Get common file path
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x274
mov eax, dword [0x41913c]
xor eax, esp
mov dword [esp + 0x270], eax
push ebp
push esi
push edi
push 0x63
lea eax, [esp + 0x15]
push 0
push eax
mov byte [esp + 0x1c], 0
call fcn.00408610
mov eax, dword [ebx]
mov ebp, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
add esp, 0xc
mov dword [esp + 0xc], 0x64
test eax, eax
jne 0x40247c
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x7e]
push edx
mov word [esp + 0x80], cx
call fcn.00408610
add esp, 0xc
push 0x104
lea eax, [esp + 0x78]
push eax
call ebp
lea edi, [esp + 0x74]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x402441
push 0
mov ecx, 9
mov esi, str.Driversetchosts
rep movsd dword es:[edi], dword [esi]
push 0
push 3
push 0
push 1
push 0x80000000
lea ecx, [esp + 0x8c]
push ecx
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx], eax
jmp 0x402489
push 0
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebx]
cmp eax, 0xffffffff
je 0x4025bd
push 0
lea edx, [esp + 0x10]
push edx
push 0x63
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0xc], 0x15
jbe 0x4025bd
mov edx, dword [ebx]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x7e]
push ecx
mov dword [ebx], 0
mov word [esp + 0x80], ax
call fcn.00408610
add esp, 0xc
push 0x104
lea edx, [esp + 0x78]
push edx
call ebp
lea edi, [esp + 0x74]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4024f3
push 0
mov ecx, 9
mov esi, str.Driversetchosts
push 0x80000000
rep movsd dword es:[edi], dword [esi]
push 2
push 0
push 1
push 0x40000000
lea eax, [esp + 0x8c]
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebx], esi
cmp esi, 0xffffffff
je 0x4025bd
push 0x32
lea ecx, [esp + 0x14]
push 0
push ecx
call fcn.00408610
mov eax, dword [0x415cd0]
mov edx, dword [str.127.0.0.1_localhost_n]
mov ecx, dword [0x415cd4]
mov dword [esp + 0x20], eax
mov eax, dword [0x415cdc]
mov dword [esp + 0x1c], edx
mov edx, dword [0x415cd8]
mov dword [esp + 0x24], ecx
mov cl, byte [0x415ce0]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x28], edx
add esp, 0xc
mov byte [esp + 0x24], cl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402590
sub eax, edx
push 0
lea edx, [esp + 0x10]
push edx
inc eax
push eax
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebx]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx], 0
mov ecx, dword [esp + 0x27c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00407684
add esp, 0x274
ret
Function at 0x4025e0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
push ebx
push esi
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x402648
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x402647
mov eax, dword [esp + 0x14]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402647
test esi, esi
je 0x402647
push 0
lea ecx, [esp + 0x10]
push ecx
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x402650
Capabilities:
Link many functions at runtime
Terminate process

Disassembly:
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
jne 0x402687
push str.C:log
push str.NoFind_DLL
push str.RunError
push 0x415d20
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.p005
push esi
call edi
push 0x415d30
push esi
mov dword [0x41abc4], eax
call edi
push 0x415d38
push esi
mov dword [0x41abc8], eax
call edi
push 0x415d40
push esi
mov dword [0x41abcc], eax
call edi
push 0x415d48
push esi
mov dword [0x41abd0], eax
call edi
push 0x415d50
push esi
mov dword [0x41abd4], eax
call edi
push 0x415d58
push esi
mov dword [0x41abd8], eax
call edi
push 0x415d60
push esi
mov dword [0x41abdc], eax
call edi
push 0x415d68
push esi
mov dword [0x41abfc], eax
call edi
push 0x415d70
push esi
mov dword [0x41ac00], eax
call edi
push str.p001
push esi
mov dword [0x41abe0], eax
call edi
push str.p005
push esi
mov dword [0x41abe4], eax
call edi
push str.o006
push esi
mov dword [0x41abf4], eax
call edi
push str.o010
push esi
mov dword [0x41abe8], eax
call edi
push 0x415d90
push esi
mov dword [0x41abf8], eax
call edi
push str.p009
push esi
mov dword [0x41abec], eax
call edi
push 0x415da0
push esi
mov dword [0x41abf0], eax
call edi
push str.s001
push esi
mov dword [0x41ac04], eax
call edi
push str.p010
push esi
mov dword [0x41ac08], eax
call edi
mov dword [0x41ac0c], eax
call dword [0x41abc4]
cmp dword [0x41ac04], 0
pop edi
pop esi
je 0x4027c6
push 5
call fcn.00407c31
add esp, 4
push eax
push 0x415db8
xor ecx, ecx
push 0x415dc8
mov dword [eax], ecx
push 0x415dd8
mov dword [0x41ac10], eax
mov byte [eax + 4], cl
call dword [0x41ac04]
mov dword [0x41ac14], eax
ret
Function at 0x402830
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x412fce
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41913c]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
xor ebp, ebp
mov dword [esi + 4], ebp
mov eax, dword [0x419fac]
mov edx, dword [eax + 0xc]
mov ecx, 0x419fac
lea edi, [esi + 0xc]
call edx
add eax, 0x10
mov dword [edi], eax
lea eax, [esi + 0x1c]
mov dword [esp + 0x1c], ebp
push eax
mov ecx, 0x415c58
mov dword [esi + 0x10], ebp
mov dword [esi + 0x18], ebp
call fcn.00404290
lea ecx, [esi + 0x20]
push ecx
mov ecx, 0x415c58
mov byte [esp + 0x20], 1
call fcn.00404290
lea edx, [esi + 0x24]
push edx
mov ecx, 0x415c58
mov byte [esp + 0x20], 2
call fcn.00404290
mov byte [esp + 0x1c], 3
mov eax, dword [0x419fac]
mov edx, dword [eax + 0xc]
mov ecx, 0x419fac
call edx
add eax, 0x10
mov dword [esi + 0x28], eax
mov byte [esp + 0x1c], 4
mov eax, dword [0x419fac]
mov edx, dword [eax + 0xc]
mov ecx, 0x419fac
call edx
add eax, 0x10
mov dword [esi + 0x2c], eax
mov byte [esp + 0x1c], 5
mov eax, dword [0x419fac]
mov edx, dword [eax + 0xc]
mov ecx, 0x419fac
call edx
add eax, 0x10
mov dword [esi + 0x30], eax
mov byte [esp + 0x1c], 6
mov eax, dword [0x419fac]
mov edx, dword [eax + 0xc]
mov ecx, 0x419fac
call edx
add eax, 0x10
mov dword [esi + 0x34], eax
mov byte [esp + 0x1c], 7
mov eax, dword [0x419fac]
mov edx, dword [eax + 0xc]
mov ecx, 0x419fac
call edx
add eax, 0x10
mov dword [esi + 0x38], eax
mov byte [esp + 0x1c], 8
lea eax, [esi + 0x48]
push eax
mov ecx, 0x415c58
mov dword [esi + 0x3c], ebp
mov dword [esi + 0x40], ebp
mov dword [esi + 0x44], ebp
call fcn.00404290
mov ecx, dword [esp + 0x28]
mov byte [esp + 0x1c], 9
mov edx, dword [esp + 0x2c]
mov dword [esi + 8], ecx
mov ecx, dword [edx]
mov ebx, dword [edi]
lea eax, [ecx - 0x10]
sub ebx, 0x10
cmp eax, ebx
je 0x4029b1
cmp dword [ebx + 0xc], ebp
jl 0x4029a6
mov edx, dword [eax]
cmp edx, dword [ebx]
jne 0x4029a6
call fcn.00404800
mov dword [esp + 0x28], eax
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40299b
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov ecx, dword [esp + 0x28]
add ecx, 0x10
mov dword [edi], ecx
jmp 0x4029b1
mov ebx, dword [ecx - 0xc]
push ecx
mov eax, edi
call fcn.00404760
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
xor eax, eax
mov word [esi], ax
push ebp
mov byte [esi + 2], al
call ebx
mov edi, eax
cmp edi, ebp
jg 0x4029ce
push 0x10
call ebx
mov edi, eax
push 1
call ebx
cmp eax, ebp
jg 0x4029da
push 0x11
call ebx
push eax
push edi
push str._dX_d
lea edi, [esi + 0x2c]
call fcn.00402130
add esp, 0xc
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x4051d0
Capabilities:
Parse pe header

Disassembly:
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x405214
mov edx, dword [eax + 0x3c]
add eax, edx
cmp dword [eax], 0x4550
jne 0x405214
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
add eax, 4
mov dword [ecx], eax
add eax, 0x14
mov ecx, 0x10b
mov dword [edx], eax
cmp word [eax], cx
jne 0x405214
mov edx, dword [esp + 0xc]
add eax, 0xe0
mov dword [edx], eax
mov eax, 1
ret
xor eax, eax
ret

Function at 0x405220
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x10
mov eax, 0x5a4d
mov dword [esp + 4], 0
cmp word [edi], ax
jne 0x40524f
mov ecx, dword [edi + 0x3c]
cmp dword [ecx + edi], 0x4550
lea eax, [ecx + edi]
jne 0x40524f
add eax, 4
lea edx, [eax + 0x14]
mov dword [esp], edx
jmp 0x405253
mov eax, dword [esp + 0xc]
mov ecx, dword [esp]
mov ecx, dword [ecx + 0x88]
push ebx
push ebp
push esi
test ecx, ecx
je 0x405305
test byte [eax + 0x12], 1
jne 0x405305
add ecx, edi
mov eax, 1
test eax, eax
jne 0x405284
cmp dword [ecx], eax
je 0x405305
mov edx, dword [ecx + 4]
xor eax, eax
add edx, 0xfffffff8
shr edx, 1
mov dword [esp + 0x18], eax
lea esi, [ecx + 8]
mov dword [esp + 0x14], eax
je 0x4052ee
jmp 0x4052a0
movzx eax, word [esi]
mov ebx, eax
and ebx, 0xf000
cmp ebx, 0x3000
jne 0x4052da
mov ebp, dword [esp + 0xc]
inc dword [esp + 0x10]
and eax, 0xfff
add eax, dword [ecx]
mov ebx, dword [eax + edi]
sub ebx, dword [ebp + 0x1c]
cmp ebx, dword [esp + 0x20]
jne 0x4052da
mov ebx, 0x5c7
cmp word [eax + edi - 2], bx
je 0x4052f3
mov eax, dword [esp + 0x14]
inc eax
add esi, 2
mov dword [esp + 0x14], eax
cmp eax, edx
jb 0x4052a0
mov eax, dword [esp + 0x18]
add ecx, dword [ecx + 4]
jmp 0x405278
mov eax, dword [eax + edi + 4]
mov edx, dword [esp + 0xc]
sub eax, dword [edx + 0x1c]
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
Function at 0x406780
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x58
push ebx
push ebp
mov ebp, dword [esp + 0x6c]
push esi
xor eax, eax
push edi
push 0x44
push eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x28]
push eax
call fcn.00408610
mov edi, dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0xc
mov dword [esp + 0x20], 0x44
xor esi, esi
mov eax, dword [esp + 0x70]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x70]
lea edx, [esp + 0x24]
push edx
push ebp
push 0
push 0
push 0
push 0
push 0
push eax
push ecx
call edi
test eax, eax
jne 0x4067f2
push 0x64
call ebx
inc esi
cmp esi, 5
jl 0x4067c3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret

Function at 0x407684
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41913c]
jne 0x40768e
repz ret
jmp fcn.00409bcc

Function at 0x40e9ed
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004095db
and dword [ebp - 4], 0
cmp dword [0x41aa88], 0
mov ebx, eax
jne 0x40ea9e
push 0x414a60
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40eb4f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x414a54
push edi
call esi
test eax, eax
je 0x40eb4f
push eax
call fcn.00409569
mov dword [esp], 0x414a44
push edi
mov dword [0x41aa88], eax
call esi
push eax
call fcn.00409569
mov dword [esp], 0x414a30
push edi
mov dword [0x41aa8c], eax
call esi
push eax
call fcn.00409569
mov dword [esp], 0x414a14
push edi
mov dword [0x41aa90], eax
call esi
push eax
call fcn.00409569
pop ecx
mov dword [0x41aa98], eax
test eax, eax
je 0x40ea9e
push 0x4149fc
push edi
call esi
push eax
call fcn.00409569
pop ecx
mov dword [0x41aa94], eax
mov eax, dword [0x41aa94]
cmp eax, ebx
je 0x40eaf6
cmp dword [0x41aa98], ebx
je 0x40eaf6
push eax
call fcn.004095e4
push dword [0x41aa98]
mov esi, eax
call fcn.004095e4
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40eaf6
test edi, edi
je 0x40eaf6
call esi
test eax, eax
je 0x40eaed
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40eaed
test byte [ebp - 0xc], 1
jne 0x40eaf6
or dword [ebp + 0x10], 0x200000
jmp 0x40eb2f
mov eax, dword [0x41aa8c]
cmp eax, ebx
je 0x40eb2f
push eax
call fcn.004095e4
pop ecx
test eax, eax
je 0x40eb2f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40eb2f
mov eax, dword [0x41aa90]
cmp eax, ebx
je 0x40eb2f
push eax
call fcn.004095e4
pop ecx
test eax, eax
je 0x40eb2f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41aa88]
call fcn.004095e4
pop ecx
test eax, eax
je 0x40eb4f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40eb51
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100010b0
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 0x100010c9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10001104
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x10001100
lea ebx, [ebx]
cmp esi, eax
jae 0x10001104
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x100010f0
cmp esi, eax
jb 0x1000110a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x1000c236
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10024b20]
jne 0x1000c240
repz ret
jmp fcn.10010866
Function at 0x10016652
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.100134bb
xor ebx, ebx
cmp dword [0x10a5a95c], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x10016727
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x10016692
xor eax, eax
jmp 0x100167eb
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1001d45c
push edi
call esi
cmp eax, ebx
je 0x1001668b
push eax
call fcn.10013458
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10a5a95c], eax
call esi
push eax
call fcn.10013458
mov dword [esp], 0x1001f57c
push edi
mov dword [0x10a5a960], eax
call esi
push eax
call fcn.10013458
mov dword [0x10a5a964], eax
lea eax, [ebp - 8]
push eax
call fcn.1000f385
test eax, eax
pop ecx
pop ecx
je 0x100166f5
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10010746
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x10016727
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.10013458
cmp eax, ebx
pop ecx
mov dword [0x10a5a96c], eax
je 0x10016727
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10013458
pop ecx
mov dword [0x10a5a968], eax
mov eax, dword [0x10a5a968]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x100167a0
cmp dword [0x10a5a96c], esi
je 0x100167a0
push eax
call fcn.100134c4
pop ecx
call eax
cmp eax, ebx
je 0x1001676d
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x10a5a96c]
call fcn.100134c4
pop ecx
call eax
test eax, eax
je 0x1001676d
test byte [ebp - 0x18], 1
jne 0x100167a0
lea eax, [ebp - 0xc]
push eax
call fcn.1000f3bc
test eax, eax
pop ecx
je 0x10016788
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10010746
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x10016797
or dword [ebp + 0x10], 0x200000
jmp 0x100167d1
or dword [ebp + 0x10], 0x40000
jmp 0x100167d1
mov eax, dword [0x10a5a960]
cmp eax, esi
je 0x100167d1
push eax
call fcn.100134c4
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x100167d1
mov eax, dword [0x10a5a964]
cmp eax, esi
je 0x100167d1
push dword [ebp - 4]
push eax
call fcn.100134c4
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x10a5a95c]
call fcn.100134c4
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404470
Capabilities:
Log keystrokes

Disassembly:
mov eax, dword [sym.imp.RSCLASS.dll_struct__GLOBALVAR__gpGlobalVar]
push ebx
push esi
mov ecx, dword [eax]
cmp dword [ecx], 0xffffffff
jne 0x404483
pop esi
xor eax, eax
pop ebx
ret
mov edx, dword [esp + 0xc]
push 0
and edx, 0xff
push edx
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov bl, byte [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test bl, 1
je 0x4044e0
mov ecx, dword [sym.imp.RSCLASS.dll_struct__GLOBALVAR__gpGlobalVar]
and eax, 0x7f
push 0
push 0
mov dword [esp + 0x14], eax
mov edx, dword [ecx]
push 0
push 0
lea eax, [esp + 0x1c]
push 2
push eax
mov eax, dword [edx]
push 0x222013
push eax
call esi
test eax, eax
jne 0x4044d4
pop esi
pop ebx
ret
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0xc]
test bl, 0x10
je 0x404516
mov edx, dword [sym.imp.RSCLASS.dll_struct__GLOBALVAR__gpGlobalVar]
and eax, 0x7f
or al, 0x80
push 0
push 0
mov dword [esp + 0x14], eax
mov eax, dword [edx]
push 0
push 0
lea ecx, [esp + 0x1c]
push 2
push ecx
mov ecx, dword [eax]
push 0x222013
push ecx
call esi
test eax, eax
jne 0x404516
pop esi
pop ebx
ret
pop esi
mov eax, 1
pop ebx
ret

Function at 0x404520
Capabilities:
Log keystrokes

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
mov eax, esi
push edi
and eax, 0xff
push 0
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov bl, byte [esp + 0x18]
mov ebp, dword [sym.imp.USER32.dll_keybd_event]
mov byte [esp + 0x14], al
mov edi, dword [esp + 0x14]
test bl, 1
je 0x40455f
push 0
push 1
push edi
push esi
call ebp
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
test bl, 0x10
je 0x40456c
push 0
push 3
push edi
push esi
call ebp
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x405fa0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x5c4
lea eax, [esp]
push esi
mov esi, dword [esp + 0x5d0]
lea ecx, [esp + 8]
push eax
push ecx
push 0
lea edx, [esp + 0x24]
push 0x5b0
push edx
push esi
mov dword [esp + 0x1c], 0x10
call dword [sym.imp.WS2_32.dll_recvfrom]
test eax, eax
jle 0x4060a1
cmp dword [esp + 0x1c], eax
jne 0x4060b4
mov edx, dword [esp + 0x18]
cmp dl, 0x80
je 0x405ff8
cmp dl, 8
je 0x405ff8
cmp dl, 0x18
jne 0x406020
push ebx
lea ecx, [esp + eax + 0xc]
push edi
mov edi, ecx
sub eax, 0x10
mov edx, dword [edi]
mov dword [esp + 0x20], edx
mov ebx, dword [edi + 4]
mov dword [esp + 0x24], ebx
mov edi, dword [edi + 8]
mov dword [esp + 0x28], edi
mov ecx, dword [ecx + 0xc]
pop edi
mov dword [esp + 0x10], ecx
pop ebx
cmp dl, 1
jne 0x4060b4
mov ecx, dword [esp + 0x19]
cmp cl, 2
je 0x406066
cmp cl, 3
je 0x406066
cmp cl, 4
je 0x406066
lea edx, [esp + 8]
push edx
push eax
lea eax, [esp + 0x20]
push eax
push ecx
mov ecx, dword [esp + 0x5dc]
push ecx
push esi
call fcn.00404620
add esp, 0x18
mov eax, 1
pop esi
add esp, 0x5c4
ret
mov edx, dword [0x41d1a0]
test edx, edx
jne 0x40607d
mov eax, 1
pop esi
add esp, 0x5c4
ret
lea esi, [esp + 8]
push esi
push eax
lea eax, [esp + 0x20]
push eax
push ecx
push 0x41ceb0
push edx
call sub.REDCOMM.dll_Ordinal_108
mov eax, 1
pop esi
add esp, 0x5c4
ret
push 0x2ee0
push str.recvfrom
push 1
push 0
call sub.REDCOMM.dll_Ordinal_23
xor eax, eax
pop esi
add esp, 0x5c4
ret

Function at 0x4060c0
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x10
shr eax, 0x10
push esi
jne 0x406188
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
lea edx, [esp + 4]
push ecx
push edx
push eax
mov dword [esp + 0x2c], 0x10
call dword [sym.imp.WS2_32.dll_accept]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40610f
push 0x1f40
push str.accept
push 1
push 0
call sub.REDCOMM.dll_Ordinal_23
xor eax, eax
pop esi
add esp, 0x10
ret
lea ecx, [esp + 0x1c]
push 4
push ecx
push 1
push 6
push esi
mov dword [esp + 0x30], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x40613a
push 0x4e20
push str.setsockopt
jmp 0x40615c
mov edx, dword [esp + 0x18]
push 0x21
push 0x806f
push edx
push esi
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
cmp eax, 0xffffffff
jne 0x406173
push 0x55f0
push str.WSAAsyncSelect
push 1
push 0
call sub.REDCOMM.dll_Ordinal_23
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
pop esi
add esp, 0x10
ret
mov eax, dword [0x41c218]
pop esi
inc eax
mov dword [0x41c218], eax
mov eax, 1
add esp, 0x10
ret
push str.FD_ACCEPT
push 1
push 0
call sub.REDCOMM.dll_Ordinal_21
xor eax, eax
pop esi
add esp, 0x10
ret
Function at 0x4080b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0xb54
cmp word [esp + 0xb60], 1
push ebx
push ebp
push esi
push edi
jne 0x408225
mov eax, dword [0x41d28c]
mov ebp, dword [esp + 0xb6c]
push 0
push 0x5a0
lea ecx, [eax + 0x41c360]
push ecx
push ebp
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x408202
mov edx, dword [0x41d28c]
add edx, eax
mov al, byte [0x41c360]
cmp al, 2
mov dword [0x41d28c], edx
jne 0x4081e8
mov ebx, dword [esp + 0xb68]
mov ecx, dword [0x41c364]
cmp ecx, edx
ja 0x40829a
mov al, byte [0x41c361]
cmp al, 0x82
je 0x408170
cmp al, 0x83
je 0x408170
cmp al, 0xc
je 0x408170
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push eax
push ebp
mov dword [esp + 0x1c], 0x10
call dword [sym.imp.WS2_32.dll_getpeername]
mov ecx, dword [0x41c364]
mov dl, byte [0x41c361]
mov eax, dword [esp + 0x18]
push ecx
push 0x41c360
push edx
push eax
push ebp
push ebx
call fcn.004062a0
add esp, 0x18
jmp 0x40818d
cmp dword [0x41c200], ebp
jne 0x40829a
push ecx
push 0x41c360
push eax
push ebp
push ebx
call fcn.004061a0
add esp, 0x14
mov eax, dword [0x41c364]
mov edx, dword [0x41d28c]
cmp eax, edx
je 0x4081e8
jae 0x40829a
sub edx, eax
lea esi, [eax + 0x41c360]
mov ecx, edx
lea edi, [esp + 0x24]
mov eax, ecx
mov dword [0x41d28c], 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, edx
lea esi, [esp + 0x24]
mov edi, 0x41c360
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp byte [0x41c360], 2
je 0x408114
pop edi
pop esi
pop ebp
mov dword [0x41d28c], 0
mov eax, 1
pop ebx
add esp, 0xb54
ret
push 0x2710
push str.recv
push 1
push 0
call sub.REDCOMM.dll_Ordinal_23
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xb54
ret
mov edx, dword [0x41c218]
mov esi, dword [esp + 0xb6c]
dec edx
push esi
mov dword [0x41c218], edx
call dword [sym.imp.WS2_32.dll_closesocket]
cmp dword [0x41c200], esi
jne 0x40829a
or eax, 0xffffffff
xor esi, esi
mov dword [0x41c200], eax
mov dword [0x41a348], eax
mov eax, dword [0x41c194]
mov dword [0x41c214], esi
cmp eax, esi
je 0x40827c
mov ecx, dword [sym.imp.RSCLASS.dll_struct__GLOBALVAR__gpGlobalVar]
mov edx, dword [ecx]
mov eax, dword [edx]
push eax
call sub.REDHOOKS.dll_Ordinal_2
mov dword [0x41c194], esi
push 0x11
push 0x11
call fcn.00404580
push 0x11
push 0x10
call fcn.00404580
push 0x11
push 0x13
call fcn.00404580
add esp, 0x18
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xb54
ret