joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100040c0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10031036
mov eax, dword fs:[0]
push eax
sub esp, 0x654
mov eax, dword [0x1003a470]
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 [0x10035614]
mov dword [ebp - 0x65c], eax
lea eax, [ebp - 0x620]
mov esi, ecx
mov ecx, dword [0x10035610]
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 0x100042e4
lea ebx, [ebp - 0x620]
xor edi, edi
jmp 0x10004140
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 0x100041f5
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 0x10004183
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea ecx, [ebp - 0x63c]
call fcn.100113f0
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 0x100041b0
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x63c]
push eax
call fcn.10010a60
mov esi, eax
cmp esi, 0xffffffff
jne 0x10004214
mov dword [ebp - 4], eax
cmp dword [ebp - 0x628], 8
jb 0x100041f5
mov ecx, dword [ebp - 0x63c]
push ecx
call fcn.100164ee
add esp, 4
mov dx, word [ebx]
add ebx, 2
test dx, dx
jne 0x100041f5
cmp word [ebx], di
je 0x100042e4
mov esi, dword [ebp - 0x660]
jmp 0x10004140
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 0x10004236
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x220]
lea ecx, [ebp - 0x658]
call fcn.100113f0
mov eax, ebx
mov byte [ebp - 4], 1
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x10004260
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.100108d0
mov esi, 8
cmp dword [ebp - 0x644], esi
jb 0x100042a0
mov ecx, dword [ebp - 0x658]
push ecx
call fcn.100164ee
add esp, 4
mov eax, dword [ebp - 0x63c]
cmp dword [ebp - 0x628], esi
jae 0x100042b4
lea eax, [ebp - 0x63c]
mov edx, dword [ebp - 0x65c]
push eax
push 0x104
push edx
call fcn.10018631
add esp, 0xc
cmp dword [ebp - 0x628], esi
jb 0x100042e0
mov eax, dword [ebp - 0x63c]
push eax
call fcn.100164ee
add esp, 4
mov al, 1
jmp 0x100042e6
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.100164f9
mov esp, ebp
pop ebp
ret
Function at 0x10004360
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x1003a470]
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 0x10004409
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edx, dword [ebp - 0x138]
push edx
lea eax, [ebp - 0x110]
push eax
call fcn.10018874
add esp, 8
test eax, eax
jne 0x100043f7
mov ecx, dword [ebp - 0x12c]
push ecx
push eax
push 1
call ebx
mov esi, eax
test esi, esi
je 0x100043f7
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x12c], eax
je 0x100043f7
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 0x100043ad
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.100164f9
mov esp, ebp
pop ebp
ret

Function at 0x10004600
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1003a470]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1003f3dc]
push ebx
push esi
push edi
test eax, eax
js 0x10004708
cmp eax, 6
jge 0x10004708
mov esi, eax
imul esi, esi, 0x214
push ecx
add esi, 0x1003e764
inc eax
lea edi, [esi + 4]
push pe_nt_image_headers32
mov dword [0x1003f3dc], eax
push edi
mov dword [esi], 1
call fcn.1001833b
add esp, 0xc
cmp dword [esi], 0
je 0x10004708
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 0x100046e3
mov dword [esi], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100164f9
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 0x10004708
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.100164f9
mov esp, ebp
pop ebp
ret
Function at 0x10004720
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
mov eax, dword [0x1003a470]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
test eax, eax
js 0x10004917
cmp eax, dword [ecx + 0xc7c]
jge 0x10004917
imul eax, eax, 0x214
cmp dword [eax + ecx + 4], 0
lea esi, [eax + ecx + 4]
je 0x10004917
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 0x100047a6
movzx edx, word [ebp - 0x816]
cmp edx, dword [esi + 0x108]
jne 0x100047a6
movzx eax, word [ebp - 0x818]
cmp eax, dword [esi + 0x10c]
je 0x10004863
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 0x1000482d
mov dword [esi], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100164f9
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 0x10004863
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.100164f9
mov esp, ebp
pop ebp
ret
push 0x3ff
lea ecx, [ebp - 0x807]
push 0
push ecx
mov byte [ebp - 0x808], 0
call fcn.1001b890
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 0x10]
push edx
push eax
lea ecx, [ebp - 0x808]
push 0x400
push ecx
call fcn.10017c7d
push 0x3ff
lea edx, [ebp - 0x407]
push 0
push edx
mov byte [ebp - 0x408], 0
call fcn.1001b890
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 0x100048f0
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.100164f9
mov esp, ebp
pop ebp
ret
Function at 0x100049f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
mov eax, dword [0x1003a470]
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 0x10004b66
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 0x10004b56
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 0x10004ae0
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10004ae0
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 0x10004b02
lea eax, [esp + 0x14]
push eax
push ebx
mov byte [esp + 0x45], 0
call fcn.10016709
mov eax, ebx
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10004b33
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.100164f9
mov esp, ebp
pop ebp
ret 4
Function at 0x10005000
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 0x1003e250
call fcn.10004070
add esp, 4
push eax
push 0
mov ecx, 0x1003e760
call fcn.10004720
mov eax, dword [0x1003f44c]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
add esp, 0x14
test eax, eax
je 0x10005068
push 0
push 0
push 0x10
push eax
call esi
mov edx, dword [0x10140b78]
mov eax, dword [str.SPLASH]
mov edi, dword [sym.imp.USER32.dll_UnregisterClassA]
push edx
push eax
mov dword [0x1003f44c], 0
call edi
jmp 0x1000506e
mov edi, dword [sym.imp.USER32.dll_UnregisterClassA]
mov eax, dword [0x1003f574]
test eax, eax
je 0x1000509a
push 0
push 0
push 0x10
push eax
call esi
mov ecx, dword [0x10140b78]
mov edx, dword [str.SPLASH]
push ecx
push edx
mov dword [0x1003f574], 0
call edi
mov eax, dword [0x1003f69c]
test eax, eax
je 0x100050c5
push 0
push 0
push 0x10
push eax
call esi
mov eax, dword [0x10140b78]
mov ecx, dword [str.SPLASH]
push eax
push ecx
mov dword [0x1003f69c], 0
call edi
mov eax, dword [ebp + 8]
sub eax, 0
je 0x100050e9
dec eax
je 0x100050dd
dec eax
jne 0x100050f2
lea ecx, [eax + 2]
mov eax, 0x2b39c0
jmp 0x100050f8
mov ecx, 1
mov eax, 0x227ee6
jmp 0x100050f8
xor ecx, ecx
mov eax, 0xf1f0ec
jmp 0x100050f8
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push eax
push edx
call fcn.10004bc0
mov ecx, ebx
mov edi, 0x10004f60
call fcn.10003bd0
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 0x10005155
push 0
push 0
push 0x10
push eax
call esi
mov eax, dword [0x10140b78]
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.10003d70
Function at 0x100051e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10030c30
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1003a470]
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 [0x10141348]
sub ecx, dword [0x10141344]
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 0x10005253
push str.invalid_vector_T__subscript
call fcn.10015fa6
mov eax, 0x100052df
ret
imul eax, eax, 0x128
add eax, dword [0x10141344]
mov ecx, dword [eax]
cmp ecx, dword [esi + 0xc]
jne 0x1000529c
lea ecx, [esi + 0x10]
add eax, 0x24
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10005290
test dl, dl
je 0x1000528c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10005290
add eax, 2
add ecx, 2
test dl, dl
jne 0x10005270
xor eax, eax
jmp 0x10005295
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1000529c
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
cmp ebx, 0xffffffff
je 0x100052df
cmp edi, ebx
ja 0x100052b6
push str.invalid_vector_T__subscript
call fcn.10015fa6
imul ebx, ebx, 0x128
add ebx, dword [0x10141344]
mov edx, dword [ebx]
push edx
push 1
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x100052df
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 0x100063e0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10030deb
mov eax, dword fs:[0]
push eax
sub esp, 0xc40
mov eax, dword [0x1003a470]
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.100039c0
add esp, 4
mov word [ebp - 0xc34], 0xac2
mov byte [ebp - 0xc32], 0xc
call fcn.1001831a
and eax, 0x800000ff
jns 0x1000645a
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 0x1000650f
lea ecx, [ebp - 0x728]
mov dword [ebp - 0xc38], ecx
cmp ebx, 0x14
jge 0x1000650f
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 0x10006498
mov ecx, 0xa0c
lea edx, [ebp - 0xc34]
call fcn.10006c20
test esi, esi
je 0x1000652c
push esi
call fcn.100164ee
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.100164f9
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x1003a470]
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 0x10006729
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100164f9
mov esp, ebp
pop ebp
ret
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x1003f7c4], eax
cmp eax, 0xffffffff
je 0x10006719
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [0x1003f7c8], eax
test eax, eax
je 0x10006719
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [0x1013f7d4], 0x1000b940
mov al, 1
call fcn.100164f9
mov esp, ebp
pop ebp
ret
Function at 0x10006770
Capabilities:
Connect socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x1003a470]
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 0x100067c5
push 0x1003b950
call fcn.10004070
add esp, 4
push eax
push 0
mov ecx, 0x1003e760
call fcn.10004720
add esp, 8
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.100164f9
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 0x10006813
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, ebx
je 0x10006813
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.10018c50
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 0x10006872
call edi
cmp eax, 0x2733
je 0x10006872
call edi
push eax
push 0x1003ba50
call fcn.10004070
add esp, 4
push eax
push ebx
mov ecx, 0x1003e760
call fcn.10004720
add esp, 0xc
call fcn.10006950
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.100164f9
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 0x100068e9
call edi
push eax
push 0x1003bb50
call fcn.10004070
add esp, 4
push eax
push ebx
mov ecx, 0x1003e760
call fcn.10004720
mov eax, dword [esi + 4]
add esp, 0xc
cmp eax, 0xffffffff
je 0x100068bc
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x100068cd
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.100164f9
mov esp, ebp
pop ebp
ret 8
push 0x80000
lea ecx, [esi + 0xc]
push ebx
push ecx
call fcn.1001b890
add esp, 0xc
push 0x80000
lea edx, [esi + 0x80010]
push ebx
push edx
mov dword [esi + 0x8000c], ebx
call fcn.1001b890
add esp, 0xc
mov ecx, esi
mov edi, 0x10006f10
mov dword [esi + 0x100010], ebx
call fcn.10003bd0
mov ecx, dword [esp + 0x1c]
mov al, 1
pop edi
mov byte [esi + 0x100038], al
pop esi
pop ebx
xor ecx, esp
call fcn.100164f9
mov esp, ebp
pop ebp
ret 8
Function at 0x10006c20
Capabilities:
Encode data using xor
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8000c
call fcn.10027d40
mov eax, dword [0x1003a470]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x1013f7dc
mov esi, ecx
mov edi, edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x1003f7c4], 0xffffffff
je 0x10006d28
cmp byte [0x1013f7f8], 0
je 0x10006d28
push 0x80000
lea eax, [ebp - 0x80008]
push 0
push eax
call fcn.1001b890
add esp, 0xc
push esi
lea ecx, [ebp - 0x80008]
push edi
push ecx
call fcn.10018c50
add esp, 0xc
xor eax, eax
cmp byte [ebp - 0x80008], 0xc1
jne 0x10006cbc
mov cl, byte [ebp - 0x80006]
lea edi, [esi - 3]
test edi, edi
jle 0x10006ce8
mov dl, byte [ebp + eax - 0x80005]
xor dl, 0xa0
sub dl, cl
mov byte [ebp + eax - 0x80005], dl
inc eax
cmp eax, edi
jl 0x10006ca2
jmp 0x10006ce8
mov cl, byte [ebp - 0x80005]
lea edi, [esi - 4]
test edi, edi
jle 0x10006ce8
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 0x10006cd0
mov ecx, dword [0x1013f7d0]
test ecx, ecx
jle 0x10006d81
lea eax, [ecx + esi]
cmp eax, 0x80000
jle 0x10006d46
push eax
push 0x1003bf50
call fcn.10004070
add esp, 4
push eax
push 0
mov ecx, 0x1003e760
call fcn.10004720
add esp, 0xc
mov esi, 0x1003f7c0
call fcn.10006950
push 0x1013f7dc
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.100164f9
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 0x80008]
push eax
lea ecx, [ecx + 0x100bf7d0]
push ecx
call fcn.10018c50
add esp, 0xc
add dword [0x1013f7d0], esi
push 0x1013f7dc
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.100164f9
mov esp, ebp
pop ebp
ret
xor edi, edi
test esi, esi
jle 0x10006d63
mov ebx, dword [sym.imp.WS2_32.dll_send]
mov eax, dword [0x1003f7c4]
push 0
push esi
lea edx, [ebp + edi - 0x80008]
push edx
push eax
call ebx
cmp eax, 0xffffffff
je 0x10006daf
sub esi, eax
add edi, eax
test esi, esi
jg 0x10006d8d
jmp 0x10006d63
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebx
cmp eax, 0x2733
jne 0x10006dee
mov ecx, dword [0x1013f7d0]
lea eax, [ecx + esi]
cmp eax, 0x80000
jle 0x10006dd9
push eax
push 0x1003c050
jmp 0x10006d06
push esi
lea edx, [ebp + edi - 0x80008]
push edx
lea eax, [ecx + 0x100bf7d0]
push eax
jmp 0x10006d55
call ebx
push eax
push 0x1003c150
jmp 0x10006d06
Function at 0x10006e00
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push edi
lea ebx, [esi + 0x10001c]
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor edi, edi
cmp dword [esi + 0x100010], edi
jle 0x10006e58
lea ebx, [esi + 0x80010]
mov eax, dword [esi + 0x100010]
mov edx, dword [esi + 4]
push 0
push eax
lea ecx, [ebx + edi]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x10006e67
sub dword [esi + 0x100010], eax
add edi, eax
cmp dword [esi + 0x100010], 0
jg 0x10006e28
mov ebx, dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x10006e9e
mov eax, dword [esi + 0x100010]
push eax
lea ecx, [edi + esi + 0x80010]
push ecx
push ebx
call fcn.10016b20
mov edx, dword [ebp - 4]
add esp, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x1003c250
call fcn.10004070
add esp, 4
push eax
push 0
mov ecx, 0x1003e760
call fcn.10004720
mov eax, dword [esi + 4]
add esp, 0xc
cmp eax, 0xffffffff
je 0x10006ed8
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
mov eax, dword [esi + 8]
test eax, eax
je 0x10006eed
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov dword [esi + 8], 0
mov eax, dword [ebp - 4]
push eax
mov byte [esi + 0x100038], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret