joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000e1f8
Capabilities:
Enumerate processes

Disassembly:
push 0x260
mov eax, 0x1006cb58
call fcn.100177a1
mov eax, dword [ebp + 8]
test eax, eax
je 0x1000e2bd
push eax
lea ecx, [ebp - 0x40]
call fcn.1000cc97
lea eax, [ebp - 0x40]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.1000d815
mov edi, 0x22c
lea eax, [ebp - 0x26c]
push edi
push ebx
push eax
call fcn.10045420
add esp, 0x10
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x1000e2b3
lea eax, [ebp - 0x26c]
mov dword [ebp - 0x26c], edi
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x1000e2a8
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x28]
call fcn.1000cc97
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
call fcn.1000d815
pop ecx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.1000e3db
test al, al
jne 0x1000e2c3
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.100069f0
lea eax, [ebp - 0x26c]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1000e263
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x40]
call fcn.100069f0
mov eax, ebx
call fcn.1001775c
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x264]
lea ecx, [ebp - 0x28]
call fcn.100069f0
jmp 0x1000e2b3
Function at 0x1000ff5d
Capabilities:
Check if file exists

Disassembly:
push 0x104
mov eax, 0x1006cfad
call fcn.100177a1
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x40], eax
call fcn.1000fef6
test eax, eax
jne 0x1000ff8e
xor eax, eax
jmp 0x1001014c
xor ebx, ebx
mov ecx, esi
push edi
cmp dword [ebp + 0x14], ebx
je 0x100100ec
lea eax, [ebp - 0x28]
push eax
call fcn.1000fdbb
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], ebx
jb 0x1000ffb0
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x30]
call fcn.1000cc04
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.100069f0
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x1001003d
push eax
call fcn.10054ad4
pop ecx
test eax, eax
je 0x1001003d
push dword [ebp - 0x30]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1000fff3
push dword [ebp - 0x30]
mov ecx, esi
push edi
call fcn.1000fa39
test al, al
je 0x1001002d
push dword [ebp - 0x34]
mov ecx, esi
push dword [ebp - 0x30]
call fcn.1000f69d
test al, al
jne 0x10010048
push dword [ebp - 0x30]
mov ecx, esi
push edi
call fcn.1000fa39
push dword [ebp - 0x30]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10010048
push dword [ebp - 0x34]
mov ecx, esi
push dword [ebp - 0x30]
call fcn.1000f69d
test al, al
jne 0x10010048
mov ecx, dword [ebp - 0x30]
lea ecx, [ecx - 0x10]
call fcn.1000c45e
jmp 0x1000ff87
push dword [ebp - 0x30]
mov ecx, esi
push edi
call fcn.1000fa39
push dword [ebp - 0x30]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10010061
push edi
mov ecx, esi
call fcn.1000f8ee
mov edi, eax
jmp 0x100100db
push 1
push 0x40
push 0x25
push dword [ebp - 0x30]
lea ecx, [ebp - 0x110]
call fcn.1000f08b
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x110]
call fcn.10010d37
mov edi, dword [eax + 8]
add edi, dword [eax]
lea eax, [edi + 0xa]
push eax
call fcn.10016f1e
lea ecx, [edi + 1]
mov dword [esi + 0x1c], eax
push ecx
push ebx
push eax
call fcn.10045420
add esp, 0x10
lea ecx, [ebp - 0x110]
push ebx
push ebx
push ebx
call fcn.10010a6d
push ebx
push edi
push dword [esi + 0x1c]
lea ecx, [ebp - 0x110]
call fcn.10010968
lea ecx, [ebp - 0x110]
call fcn.10010695
lea ecx, [ebp - 0x110]
call fcn.1000f47f
mov ecx, dword [ebp - 0x30]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.1000c45e
jmp 0x100100f3
call fcn.1000f8ee
mov edi, eax
test edi, edi
je 0x1000ff87
lea ecx, [ebp - 0x29]
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
call fcn.10009b80
push dword [ebp - 0x40]
lea eax, [ebp - 0x38]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 0x3c]
push eax
push edi
push dword [esi + 0x1c]
lea ecx, [ebp - 0x29]
call fcn.10014bbf
cmp dword [ebp - 0x3c], 0
je 0x10010142
cmp dword [ebp - 0x38], 0
je 0x10010142
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
call fcn.100144c8
pop ecx
pop ecx
mov ebx, eax
lea ecx, [ebp - 0x29]
call fcn.1000b7a0
mov eax, ebx
call fcn.1001775c
ret 0x10
Function at 0x100102a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10088084]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x10010322
cmp byte [esi + 0x3d], 0
je 0x10010322
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x100102f4
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x100102f8
sub eax, 1
je 0x100102fc
dec eax
sub eax, 1
je 0x10010322
xor al, al
jmp 0x10010324
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10010319
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.100565f3
add esp, 0x10
cmp edi, eax
jne 0x100102f4
cmp byte [esi + 0x3d], 0
sete al
jmp 0x10010324
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10016f2c
leave
ret

Function at 0x1001139c
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.10054ad4
mov dword [ebp - 4], eax
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10016f1e
push dword [ebp + 8]
mov esi, eax
push esi
call fcn.10054d72
mov eax, dword [ebp - 4]
xor edi, edi
add esp, 0x10
xor ebx, ebx
inc edi
test eax, eax
js 0x10011416
push 0x5c
pop ecx
cmp word [esi + ebx*2], cx
jne 0x1001140d
xor eax, eax
push esi
mov word [esi + ebx*2], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10011403
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x10011414
mov eax, dword [ebp - 4]
push 0x5c
pop ecx
mov word [esi + ebx*2], cx
inc ebx
cmp ebx, eax
jle 0x100113e0
jmp 0x10011416
xor edi, edi
push esi
call fcn.10016f27
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10011424
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10088084]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x1a
push eax
push 0
call fcn.10011adf
lea eax, [ebp - 0x20c]
push eax
call fcn.10054ad4
add esp, 0x14
test eax, eax
je 0x100114cf
push ebx
mov ebx, 0x1006e4a8
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.10054d01
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.10054d01
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.10054d01
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop ebx
test eax, eax
jne 0x100114b3
lea eax, [ebp - 0x20c]
push eax
call fcn.1001139c
pop ecx
lea eax, [ebp - 0x20c]
push eax
call fcn.10054ad4
pop ecx
push eax
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.10006c20
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10016f2c
leave
ret
Function at 0x1001157e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10088084]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov bl, byte [0x10089114]
test bl, bl
jne 0x10011615
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.10045420
add esp, 0xc
lea eax, [ebp - 0x20c]
xor ebx, ebx
inc ebx
push ebx
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1001160f
lea eax, [ebp - 0x20c]
push eax
call fcn.10054f42
lea eax, [ebp - 0x20c]
mov dword [esp], 0x100700a4
push eax
call fcn.10046cca
pop ecx
pop ecx
test eax, eax
jne 0x10011607
lea eax, [ebp - 0x20c]
push str.documents_and_settingslocalservice
push eax
call fcn.10046cca
pop ecx
pop ecx
test eax, eax
je 0x1001160f
mov byte [0x10089114], bl
jmp 0x10011615
mov bl, byte [0x10089114]
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.10016f2c
leave
ret
Function at 0x10011624
Capabilities:
Check if file exists

Disassembly:
push 0xc50
mov eax, 0x1006d0fe
call fcn.100177a1
mov edi, dword [ebp + 8]
lea eax, [ebp - 0xc40]
mov ebx, dword [ebp + 0xc]
mov esi, 0x208
push esi
push 0
push eax
mov dword [ebp - 0xc5c], edi
call fcn.10045420
push esi
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.10045420
push esi
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.10045420
push esi
lea eax, [ebp - 0xa38]
push 0
push eax
call fcn.10045420
push esi
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10045420
push esi
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.10045420
xor ecx, ecx
mov dword [ebp - 0xc44], 7
xor eax, eax
mov dword [ebp - 0xc48], ecx
add esp, 0x48
mov word [ebp - 0xc58], ax
push ecx
push 0x1a
lea eax, [ebp - 0xc40]
mov dword [ebp - 4], ecx
push eax
push ecx
call fcn.10011adf
lea eax, [ebp - 0xc40]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.10054d72
lea eax, [ebp - 0x218]
push eax
call fcn.10054ad4
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.1004557a
add esp, 0x24
test eax, eax
je 0x10011839
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x830]
push eax
call fcn.10054d72
lea eax, [ebp - 0x830]
push str.Local
push eax
call fcn.10054d01
add esp, 0x10
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
xor esi, esi
inc ecx
test eax, eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x628]
cmovne esi, ecx
push eax
call fcn.10054d72
lea eax, [ebp - 0x628]
push str.LocalLow
push eax
call fcn.10054d01
add esp, 0x10
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
test eax, eax
push 1
pop eax
cmovne ecx, eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0xa38]
mov dword [ebp - 0xc5c], ecx
push eax
call fcn.10054d72
lea eax, [ebp - 0xa38]
push str.Roaming
push eax
call fcn.10054d01
add esp, 0x10
lea eax, [ebp - 0xa38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
test eax, eax
push 1
pop eax
cmovne ecx, eax
test esi, esi
je 0x10011839
cmp dword [ebp - 0xc5c], 0
je 0x10011839
test ecx, ecx
je 0x10011839
push ebx
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x420]
push 0x1006e4fc
push eax
call fcn.10008db0
add esp, 0x10
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10011817
lea eax, [ebp - 0x420]
push eax
call fcn.1001139c
pop ecx
lea eax, [ebp - 0x420]
push eax
call fcn.10054ad4
pop ecx
push eax
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0xc58]
call fcn.10006c20
jmp 0x10011848
lea eax, [ebp - 0xc58]
push ebx
push eax
call fcn.10011424
pop ecx
pop ecx
xor eax, eax
mov ecx, edi
mov byte [ebp - 0xc5c], al
push dword [ebp - 0xc5c]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
lea eax, [ebp - 0xc58]
push eax
call fcn.1000d9e4
lea ecx, [ebp - 0xc58]
call fcn.100069f0
mov eax, edi
call fcn.1001775c
ret
Function at 0x10011db1
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov byte [ecx + 0x68], al
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret
Function at 0x10012eb0
Capabilities:
Create directory

Disassembly:
push 0x49c
mov eax, 0x1006d2a6
call fcn.100177a1
mov ebx, ecx
mov edi, dword [ebp + 8]
test edi, edi
jne 0x10012ecf
xor eax, eax
jmp 0x1001304b
push 0x100
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.10045420
lea eax, [ebp - 0x110]
push edi
push eax
call fcn.10054950
push edi
xor esi, esi
call fcn.1004d350
mov edi, eax
mov dword [ebp - 0x214], 7
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x218], ecx
mov word [ebp - 0x228], ax
push 0x100
push ecx
lea eax, [ebp - 0x210]
mov dword [ebp - 4], ecx
push eax
call fcn.10045420
add esp, 0x24
cmp byte [ebp + edi - 0x111], 0x5c
je 0x10012f3e
mov byte [ebp + edi - 0x110], 0x5c
cmp byte [ebp - 0x110], 0
je 0x1001303d
mov al, byte [ebp + esi - 0x110]
cmp al, 0x3a
jne 0x10012f5e
push 2
pop eax
jmp 0x1001302d
cmp al, 0x5c
jne 0x1001302a
push esi
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.10044920
add esp, 0xc
cmp esi, 0x100
jae 0x10013063
lea eax, [ebp - 0x210]
mov byte [ebp + esi - 0x210], 0
push eax
lea ecx, [ebp - 0x240]
call fcn.10009c45
lea eax, [ebp - 0x240]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x258]
mov ecx, ebx
push eax
call fcn.100135ae
push eax
lea ecx, [ebp - 0x228]
call fcn.1000ccd8
lea ecx, [ebp - 0x258]
call fcn.100069f0
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], 0
call fcn.100069a0
cmp dword [ebp - 0x214], 8
lea ecx, [ebp - 0x4a8]
lea eax, [ebp - 0x228]
cmovae eax, dword [ebp - 0x228]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x1001302a
cmp dword [ebp - 0x214], 8
lea eax, [ebp - 0x228]
push 0
cmovae eax, dword [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x10013053
xor eax, eax
inc eax
add esi, eax
cmp byte [ebp + esi - 0x110], 0
jne 0x10012f4b
lea ecx, [ebp - 0x228]
call fcn.100069f0
xor eax, eax
inc eax
call fcn.1001775c
ret 4
lea ecx, [ebp - 0x228]
call fcn.100069f0
jmp 0x10012ec8
call fcn.10017ca8
int3

Function at 0x10013580
Capabilities:
Create thread

Disassembly:
mov edx, dword [ecx + 0x300]
or eax, 0xffffffff
cmp edx, eax
je 0x10013592
cmp edx, 1
jne 0x100135ad
xor eax, eax
push eax
push eax
push ecx
push 0x10013320
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
ret
Function at 0x10013928
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push 0xc4
mov eax, 0x1006d358
call fcn.100177a1
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc8], esi
mov edi, 0x1006e3b8
lea ecx, [ebp - 0x28]
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
call fcn.1000cc97
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 1
call fcn.10011bdd
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10013a6b
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
push ebx
cmovae eax, dword [ebp + 0xc]
push 0x80
push 4
push ebx
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x100139b2
push edi
mov ecx, esi
call fcn.1000cc97
jmp 0x10013a88
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xcc], eax
inc eax
push eax
mov dword [ebp - 0xc8], eax
call fcn.10016f1e
mov edi, eax
pop ecx
test edi, edi
jne 0x100139dc
push 0x1006e3b8
jmp 0x100139a6
push dword [ebp - 0xc8]
push 0
push edi
call fcn.10045420
add esp, 0xc
lea eax, [ebp - 0xd0]
push 0
push eax
push dword [ebp - 0xcc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xcc]
lea ecx, [ebp - 0xc4]
push edi
call fcn.10012584
push edi
call fcn.10016f27
pop ecx
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0xc4]
call fcn.10011dd8
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
call fcn.1000d754
pop ecx
pop ecx
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 4
call fcn.100069a0
cmp dword [ebp - 0x30], 0
jbe 0x10013a61
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.1000e597
lea ecx, [ebp - 0x40]
call fcn.100069f0
xor ebx, ebx
mov byte [ebp - 0xc8], bl
lea eax, [ebp - 0x28]
push dword [ebp - 0xc8]
mov ecx, esi
mov dword [esi + 0x10], ebx
push eax
mov dword [esi + 0x14], ebx
call fcn.1000d9e4
lea ecx, [ebp - 0x28]
call fcn.100069f0
lea ecx, [ebp + 0xc]
call fcn.100069f0
mov eax, esi
call fcn.1001775c
ret
Function at 0x10015a1c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10088084]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
cmp ebx, 8
jl 0x10015abd
lea ecx, [eax + 0x80]
add eax, 0x100
mov dword [ebp - 0x14], ecx
mov ecx, ebx
shr ecx, 3
mov dword [ebp - 0x18], eax
imul eax, ecx, 0xfffffff8
mov dword [ebp - 0x10], ecx
add ebx, eax
mov dword [ebp + 0x14], ebx
mov edx, edi
mov ecx, esi
push 8
sub edx, esi
pop ebx
mov al, byte [edx + ecx]
mov byte [ecx], al
inc ecx
sub ebx, 1
jne 0x10015a6a
push 8
lea eax, [ebp - 0xc]
push edi
push eax
call fcn.10044920
push esi
push esi
push dword [ebp - 0x14]
call fcn.10014d02
mov edx, dword [ebp - 0x18]
add esp, 0x18
xor ecx, ecx
mov al, byte [edx + ecx]
xor byte [esi + ecx], al
inc ecx
cmp ecx, 8
jl 0x10015a93
push 8
lea eax, [ebp - 0xc]
push eax
push edx
call fcn.10044920
add esp, 0xc
add edi, 8
add esi, 8
sub dword [ebp - 0x10], 1
jne 0x10015a61
mov ebx, dword [ebp + 0x14]
sub ebx, 1
js 0x10015acf
sub esi, edi
mov al, byte [edi]
mov byte [esi + edi], al
inc edi
sub ebx, 1
jns 0x10015ac4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10016f2c
leave
ret

Function at 0x100187d0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x10088084]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x10018820
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x1001881a
shr eax, 8
cmp al, 2
jne 0x1001881a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10016f2c
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
mov eax, 2
xor ecx, ebp
call fcn.10016f2c
mov esp, ebp
pop ebp
ret
Function at 0x1001a5b0
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x48
push 1
call dword [0x100880c0]
mov esi, dword [ebp + 8]
mov edi, eax
add esp, 8
mov ebx, 8
mov dword [esi + 0x3bc], edi
test edi, edi
je 0x1001a68c
push dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
lea eax, [edi + 0x10]
push ecx
push dword [ebp + 0xc]
mov dword [esi + 0x3ac], ecx
mov dword [esi + 0x3b4], 0
mov dword [esi + 0x3b8], 0
mov dword [esi + 0x3b0], 0
push eax
mov dword [edi + 4], 0xffffffff
mov dword [edi], 0
call fcn.1001a6c0
add esp, 0x10
test eax, eax
je 0x1001a68c
mov eax, dword [esi + 0x3a8]
test eax, eax
je 0x1001a644
push eax
call dword [0x100880b4]
add esp, 4
mov dword [esi + 0x3a8], 0
push dword [ebp + 0xc]
call dword [0x100880bc]
add esp, 4
mov dword [esi + 0x3a8], eax
test eax, eax
je 0x1001a68c
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0x1001a68c
lea eax, [edi + 0x10]
push eax
push 0x1001a520
call fcn.10028c70
add esp, 8
mov dword [edi], eax
test eax, eax
jne 0x1001a6a9
call fcn.10054ac1
mov ebx, dword [eax]
lea eax, [esi + 0x3a8]
push eax
call fcn.1001a430
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret

Function at 0x10023200
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
push edi
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ecx + eax*4 + 0x130]
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [ebp + 0x18]
mov edi, eax
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x1002327e
push esi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x1002324e
pop esi
pop edi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
pop ebp
ret
push esi
push dword [ebp + 8]
call fcn.10027770
push eax
mov eax, dword [ebp + 8]
push str.Send_failure:__s
push dword [eax]
call fcn.10022ee0
mov eax, dword [ebp + 8]
add esp, 0x14
mov eax, dword [eax]
mov dword [eax + 0x856c], esi
mov eax, edi
mov dword [ebx], 0x37
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x10023460
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x164]
test eax, eax
je 0x10023489
push dword [esi + 0xf4]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call eax
add esp, 0x14
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x100234bf
push dword [esi + 0xf0]
lea eax, [eax + eax*2]
push 1
add eax, 0x10073b2c
push 2
push eax
call fcn.100565f3
push dword [esi + 0xf0]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.100565f3
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret
Function at 0x10023650
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x530]
cmp ecx, 0xffffffff
je 0x100236ab
mov eax, dword [eax + 0x524]
mov eax, dword [eax]
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x100236ab
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x10023679
mov dword [ecx], eax
cmp dword [eax + 0x148], 0
push esi
mov esi, dword [eax + 0x130]
je 0x1002368f
or eax, 0xffffffff
pop esi
pop ebp
ret
push 2
push 1
lea eax, [ebp + 0xb]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
or ecx, 0xffffffff
test eax, eax
cmove esi, ecx
mov eax, esi
pop esi
pop ebp
ret
or eax, 0xffffffff
pop ebp
ret

Function at 0x10023890
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x10088084]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x19c], 0
mov ebx, dword [edi]
jne 0x10023a03
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x84]
mov dword [ebp - 0x108], 0x80
push eax
push esi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x1002390e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.10027770
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.10022ee0
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10016f2c
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x108]
mov dword [ebp - 0x108], 0x80
push eax
lea eax, [ebp - 0x104]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x10023961
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.10027770
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.10022ee0
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10016f2c
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0xcc]
push eax
lea eax, [edi + 0x9e]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.10023e00
add esp, 0xc
test eax, eax
jne 0x100239b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.10027770
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.10022ee0
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10016f2c
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0x100]
push eax
lea eax, [edi + 0xd0]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.10023e00
add esp, 0xc
test eax, eax
jne 0x10023a03
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.10027770
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.10022ee0
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10016f2c
mov esp, ebp
pop ebp
ret
push edi
call fcn.100236b0
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.10016f2c
mov esp, ebp
pop ebp
ret