joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001fb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1005e068]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
push 0x100569e0
mov ecx, dword [ebp + 8]
call fcn.100032f0
push eax
lea eax, [ebp - 8]
push eax
call fcn.100348a1
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x1000202c
cmp dword [ebp - 8], 0
je 0x1000202c
mov ecx, dword [ebp - 8]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.10003400
push eax
push 1
mov ecx, dword [ebp + 0xc]
call fcn.10003420
push eax
call fcn.10034e71
add esp, 0x10
mov edx, dword [ebp - 8]
push edx
call fcn.10034787
add esp, 4
mov eax, dword [ebp - 8]
push eax
call fcn.1003495e
add esp, 4
mov al, 1
jmp 0x1000202e
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10019772
mov esp, ebp
pop ebp
ret

Function at 0x10002040
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004621e
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x1005e068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 0x30]
add ecx, 8
call fcn.10001c00
mov ecx, dword [ebp - 0x30]
add ecx, 0x14
call fcn.10001c70
mov ecx, dword [ebp - 0x30]
add ecx, 0x20
call fcn.10004020
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
add ecx, 0x50
call fcn.10004020
mov byte [ebp - 4], 1
lea eax, [ebp - 0x50]
push eax
call fcn.10001f20
add esp, 4
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x38], ecx
mov byte [ebp - 4], 2
push 0x100569e8
mov edx, dword [ebp - 0x38]
push edx
lea eax, [ebp - 0x28]
push eax
call fcn.10004250
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x50]
call fcn.10003340
lea ecx, [ebp - 0x28]
call fcn.100032f0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100020f5
mov byte [ebp - 0x29], 1
jmp 0x100020f9
mov byte [ebp - 0x29], 0
mov ecx, dword [ebp - 0x30]
mov dl, byte [ebp - 0x29]
mov byte [ecx + 0x80], dl
lea ecx, [ebp - 0x28]
call fcn.10003340
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10019772
mov esp, ebp
pop ebp
ret

Function at 0x10004320
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x1005e068]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x400
push 0
lea eax, [ebp - 0x404]
push eax
call fcn.10031920
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 0x400
lea edx, [ebp - 0x404]
push edx
call fcn.10001370
add esp, 0xc
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x10056a7c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10019772
mov esp, ebp
pop ebp
ret
Function at 0x10008b40
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x1005e068]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp - 0x28]
movzx ecx, byte [eax + 0x29]
test ecx, ecx
jne 0x10008bd1
mov edx, 2
mov word [ebp - 0x14], dx
movzx eax, word [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x10008bbb
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x10008bb4
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax + ecx]
mov edx, dword [ecx]
mov dword [ebp - 0x10], edx
jmp 0x10008bbb
xor al, al
jmp 0x10008cc3
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x28]
call fcn.10006740
jmp 0x10008cc3
mov ecx, dword [ebp - 0x28]
add ecx, 0x30
call fcn.10003420
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x20], eax
mov ecx, 2
mov word [ebp - 0x24], cx
mov edx, dword [ebp - 0x28]
movzx eax, word [edx + 0x2c]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x22], ax
lea ecx, [ebp - 0x24]
push ecx
mov ecx, dword [ebp - 0x28]
call fcn.10006740
movzx edx, al
test edx, edx
jne 0x10008c20
xor al, al
jmp 0x10008cc3
mov eax, dword [ebp - 0x28]
movzx ecx, byte [eax + 0x2a]
cmp ecx, 5
jne 0x10008c63
mov ecx, dword [ebp - 0x28]
call fcn.10009670
movzx edx, al
test edx, edx
jne 0x10008c42
xor al, al
jmp 0x10008cc3
movzx eax, word [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x28]
call fcn.10008cf0
mov edx, dword [ebp - 0x28]
mov byte [edx + 0x28], al
mov eax, dword [ebp - 0x28]
mov al, byte [eax + 0x28]
jmp 0x10008cc3
mov ecx, dword [ebp - 0x28]
movzx edx, byte [ecx + 0x2a]
cmp edx, 3
jne 0x10008c90
movzx eax, word [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x28]
call fcn.10009310
mov edx, dword [ebp - 0x28]
mov byte [edx + 0x28], al
mov eax, dword [ebp - 0x28]
mov al, byte [eax + 0x28]
jmp 0x10008cc3
mov ecx, dword [ebp - 0x28]
movzx edx, byte [ecx + 0x2a]
cmp edx, 4
jne 0x10008cbd
movzx eax, word [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x28]
call fcn.100090f0
mov edx, dword [ebp - 0x28]
mov byte [edx + 0x28], al
mov eax, dword [ebp - 0x28]
mov al, byte [eax + 0x28]
jmp 0x10008cc3
xor al, al
jmp 0x10008cc3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10019772
mov esp, ebp
pop ebp
ret 8
Function at 0x100090f0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x1005e068]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x10c], ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x110], 0
jne 0x10009136
mov ecx, dword [ebp - 0x10c]
mov dword [ecx + 0x78], 2
xor al, al
jmp 0x100092fa
mov edx, dword [ebp - 0x110]
movsx eax, word [edx + 8]
cmp eax, 2
je 0x10009159
mov ecx, dword [ebp - 0x10c]
mov dword [ecx + 0x78], 3
xor al, al
jmp 0x100092fa
movzx edx, word [ebp + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x108], ax
mov eax, 1
imul ecx, eax, 0
mov byte [ebp + ecx - 0x104], 4
mov edx, 1
shl edx, 0
mov byte [ebp + edx - 0x104], 1
mov ax, word [ebp - 0x108]
mov word [ebp - 0x102], ax
mov ecx, 4
imul edx, ecx, 0
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax + 0xc]
mov edx, dword [edx + ecx]
mov eax, dword [edx]
mov dword [ebp - 0x100], eax
mov ecx, dword [ebp - 0x10c]
add ecx, 0x48
call fcn.10003400
push eax
mov ecx, dword [ebp - 0x10c]
add ecx, 0x48
call fcn.10003420
push eax
lea ecx, [ebp - 0xfc]
push ecx
call fcn.10030e20
add esp, 0xc
mov ecx, dword [ebp - 0x10c]
add ecx, 0x48
call fcn.10003400
add eax, 8
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0x100
jae 0x10009207
jmp 0x1000920c
call fcn.10019913
mov edx, dword [ebp - 0x114]
mov byte [ebp + edx - 0x104], 0
mov ecx, dword [ebp - 0x10c]
add ecx, 0x48
call fcn.10003400
add eax, 9
push eax
lea eax, [ebp - 0x104]
push eax
mov ecx, dword [ebp - 0x10c]
call fcn.100129e0
test eax, eax
jne 0x10009249
xor al, al
jmp 0x100092fa
push 0x100
lea ecx, [ebp - 0x104]
push ecx
mov ecx, dword [ebp - 0x10c]
call fcn.10012a10
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 8
je 0x10009276
xor al, al
jmp 0x100092fa
mov edx, 1
imul eax, edx, 0
movzx ecx, byte [ebp + eax - 0x104]
test ecx, ecx
je 0x1000928e
xor al, al
jmp 0x100092fa
mov edx, 1
shl edx, 0
movzx eax, byte [ebp + edx - 0x104]
cmp eax, 0x5a
jne 0x100092a9
mov al, 1
jmp 0x100092fa
mov ecx, 1
shl ecx, 0
movzx edx, byte [ebp + ecx - 0x104]
cmp edx, 0x5b
jne 0x100092c4
xor al, al
jmp 0x100092fa
mov eax, 1
shl eax, 0
movzx ecx, byte [ebp + eax - 0x104]
cmp ecx, 0x5c
jne 0x100092df
xor al, al
jmp 0x100092fa
mov edx, 1
shl edx, 0
movzx eax, byte [ebp + edx - 0x104]
cmp eax, 0x5d
jne 0x100092f8
xor al, al
jmp 0x100092fa
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10019772
mov esp, ebp
pop ebp
ret 8
Function at 0x1000b570
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
mov eax, dword [0x1005e068]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x2b8], ecx
mov dword [ebp - 0x2bc], 0
mov dword [ebp - 0x290], 0
lea eax, [ebp - 0x290]
push eax
lea ecx, [ebp - 0x28c]
push ecx
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
mov dword [ebp - 0x2a0], eax
cmp dword [ebp - 0x2a0], 0x6f
jne 0x1000b754
mov edx, dword [ebp - 0x290]
push edx
call fcn.100197c6
add esp, 4
mov dword [ebp - 0x2ac], eax
mov eax, dword [ebp - 0x2ac]
mov dword [ebp - 0x294], eax
cmp dword [ebp - 0x294], 0
je 0x1000b709
lea ecx, [ebp - 0x290]
push ecx
mov edx, dword [ebp - 0x294]
push edx
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
mov dword [ebp - 0x2a0], eax
cmp dword [ebp - 0x2a0], 0
jne 0x1000b709
mov eax, dword [ebp - 0x294]
mov dword [ebp - 0x298], eax
mov dword [ebp - 0x29c], 0
cmp dword [ebp - 0x298], 0
je 0x1000b6b6
mov ecx, dword [ebp - 0x298]
mov edx, dword [ebp - 0x29c]
add edx, dword [ecx + 0x190]
cmp edx, dword [ebp + 0xc]
jae 0x1000b6b6
mov eax, dword [ebp - 0x298]
cmp dword [eax + 0x190], 0
jbe 0x1000b6a3
mov ecx, dword [ebp - 0x298]
mov edx, dword [ecx + 0x190]
push edx
mov eax, dword [ebp - 0x298]
add eax, 0x194
push eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x29c]
push ecx
call fcn.10030e20
add esp, 0xc
mov edx, dword [ebp - 0x298]
mov eax, dword [ebp - 0x29c]
add eax, dword [edx + 0x190]
mov dword [ebp - 0x29c], eax
jmp 0x1000b6b6
mov ecx, dword [ebp - 0x298]
mov edx, dword [ecx]
mov dword [ebp - 0x298], edx
jmp 0x1000b62f
mov eax, dword [ebp - 0x294]
mov dword [ebp - 0x2a4], eax
push 0x288
mov ecx, dword [ebp - 0x2a4]
push ecx
call fcn.100197b8
add esp, 8
cmp dword [ebp - 0x2a4], 0
jne 0x1000b6eb
mov dword [ebp - 0x2b0], 0
jmp 0x1000b701
mov dword [ebp - 0x294], 0x8123
mov edx, dword [ebp - 0x294]
mov dword [ebp - 0x2b0], edx
mov eax, dword [ebp - 0x29c]
jmp 0x1000b756
mov eax, dword [ebp - 0x294]
mov dword [ebp - 0x2a8], eax
push 0x288
mov ecx, dword [ebp - 0x2a8]
push ecx
call fcn.100197b8
add esp, 8
cmp dword [ebp - 0x2a8], 0
jne 0x1000b73e
mov dword [ebp - 0x2b4], 0
jmp 0x1000b754
mov dword [ebp - 0x294], 0x8123
mov edx, dword [ebp - 0x294]
mov dword [ebp - 0x2b4], edx
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10019772
mov esp, ebp
pop ebp
ret 8
Function at 0x1000c3c0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x1005e068]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, 0x20
mov word [ebp - 0x134], ax
movzx ecx, word [0x10061380]
test ecx, ecx
je 0x1000c3f5
mov ax, word [0x10061380]
jmp 0x1000c5f2
xor edx, edx
mov word [0x10061380], dx
call fcn.1000c340
mov byte [ebp - 0x121], al
push 0x11c
push 0
lea eax, [ebp - 0x120]
push eax
call fcn.10031920
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1000c445
mov ax, word [0x10061380]
jmp 0x1000c5f2
mov edx, dword [ebp - 0x11c]
mov dword [ebp - 0x12c], edx
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x12c], 4
jne 0x1000c492
cmp dword [ebp - 0x128], 0
je 0x1000c481
cmp dword [ebp - 0x128], 0xa
je 0x1000c481
cmp dword [ebp - 0x128], 0x5a
jne 0x1000c48d
mov ecx, 1
mov word [0x10061380], cx
jmp 0x1000c5ec
cmp dword [ebp - 0x12c], 5
jne 0x1000c515
cmp dword [ebp - 0x128], 0
jne 0x1000c4b2
mov edx, 2
mov word [0x10061380], dx
jmp 0x1000c510
cmp dword [ebp - 0x128], 1
jne 0x1000c4e2
movzx eax, byte [ebp - 0x121]
test eax, eax
jne 0x1000c4d4
mov ecx, 4
mov word [0x10061380], cx
jmp 0x1000c4e0
mov edx, 8
mov word [0x10061380], dx
jmp 0x1000c510
cmp dword [ebp - 0x128], 2
jne 0x1000c510
movzx eax, byte [ebp - 0x121]
test eax, eax
jne 0x1000c504
mov ecx, 0x10
mov word [0x10061380], cx
jmp 0x1000c510
mov edx, 0x20
mov word [0x10061380], dx
jmp 0x1000c5ec
cmp dword [ebp - 0x12c], 6
jne 0x1000c57c
cmp dword [ebp - 0x128], 0
jne 0x1000c57c
movzx eax, byte [ebp - 6]
cmp eax, 3
jne 0x1000c556
movzx ecx, byte [ebp - 0x121]
test ecx, ecx
jne 0x1000c549
mov edx, 0x100
mov word [0x10061380], dx
jmp 0x1000c554
mov eax, 0x200
mov word [0x10061380], ax
jmp 0x1000c57a
movzx ecx, byte [ebp - 0x121]
test ecx, ecx
jne 0x1000c56f
mov edx, 0x40
mov word [0x10061380], dx
jmp 0x1000c57a
mov eax, 0x80
mov word [0x10061380], ax
jmp 0x1000c5ec
cmp dword [ebp - 0x12c], 6
jne 0x1000c5b4
cmp dword [ebp - 0x128], 1
jne 0x1000c5b4
movzx ecx, byte [ebp - 0x121]
test ecx, ecx
jne 0x1000c5a7
mov edx, 0x400
mov word [0x10061380], dx
jmp 0x1000c5b2
mov eax, 0x800
mov word [0x10061380], ax
jmp 0x1000c5ec
cmp dword [ebp - 0x12c], 6
jb 0x1000c5ec
movzx ecx, byte [ebp - 0x121]
test ecx, ecx
je 0x1000c5d4
mov dword [ebp - 0x130], 0x2000
jmp 0x1000c5de
mov dword [ebp - 0x130], 0x1000
mov dx, word [ebp - 0x130]
mov word [0x10061380], dx
mov ax, word [0x10061380]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10019772
mov esp, ebp
pop ebp
ret
Function at 0x1000eb00
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 8]
call fcn.10014050
mov ecx, dword [ebp - 8]
add ecx, 0x14c
call fcn.10006600
mov byte [ebp - 1], al
movzx eax, byte [ebp - 1]
test eax, eax
jne 0x1000eb39
mov ecx, dword [ebp - 8]
call fcn.10014120
xor al, al
jmp 0x1000ec3d
mov ecx, dword [ebp - 8]
add ecx, 0x14c
push ecx
mov ecx, dword [ebp - 8]
add ecx, 0xc
call fcn.10011800
mov ecx, dword [ebp - 8]
add ecx, 0xc
call fcn.10010f70
movzx edx, byte [0x10060f8e]
cmp edx, 2
jne 0x1000eba1
mov eax, dword [ebp - 8]
add eax, 0xc
push eax
mov ecx, dword [ebp - 8]
add ecx, 0xb0
call fcn.100021c0
mov ecx, dword [ebp - 8]
add ecx, 0x14c
push ecx
mov ecx, dword [ebp - 8]
add ecx, 0xb0
call fcn.100021a0
mov ecx, dword [ebp - 8]
call fcn.10014120
mov al, 1
jmp 0x1000ec3d
mov ecx, dword [ebp - 8]
add ecx, 0xc
call fcn.10011820
mov byte [ebp - 1], al
mov ecx, dword [ebp - 8]
add ecx, 0xc
call fcn.10011a00
mov byte [ebp - 2], al
movzx eax, byte [ebp - 1]
test eax, eax
je 0x1000ec1f
mov ecx, dword [ebp - 8]
add ecx, 0xc
push ecx
mov ecx, dword [ebp - 8]
add ecx, 0xb0
call fcn.100021c0
mov edx, dword [ebp - 8]
add edx, 0x14c
push edx
mov ecx, dword [ebp - 8]
add ecx, 0xb0
call fcn.100021a0
mov eax, dword [ebp - 8]
add eax, 0xc
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x134
call fcn.10009b70
mov ecx, dword [ebp - 8]
add ecx, 0x14c
push ecx
mov ecx, dword [ebp - 8]
add ecx, 0x134
call fcn.10009b50
mov ecx, dword [ebp - 8]
call fcn.1000f4e0
mov ecx, dword [ebp - 8]
call fcn.10014120
push str.CStat::InitStat_success___
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x1000f530
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
add ecx, 0x134
call fcn.10009cd0
mov eax, 1
test eax, eax
je 0x1000f588
mov ecx, dword [ebp - 4]
add ecx, 0x134
call fcn.10009b90
mov ecx, dword [ebp - 4]
add ecx, 0xb0
call fcn.100026a0
push 0xbb8
mov ecx, dword [ebp - 4]
add ecx, 0x150
call fcn.100142a0
movzx ecx, al
test ecx, ecx
je 0x1000f586
jmp 0x1000f588
jmp 0x1000f545
mov ecx, dword [ebp - 4]
add ecx, 0x134
call fcn.10009dd0
push str.Ctat_Thread_Exit_success___
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov esp, ebp
pop ebp
ret

Function at 0x1000f600
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x1005e068]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x400
push 0
lea eax, [ebp - 0x404]
push eax
call fcn.10031920
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 0x400
lea edx, [ebp - 0x404]
push edx
call fcn.10001370
add esp, 0xc
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x10056f0c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10019772
mov esp, ebp
pop ebp
ret

Function at 0x10010d00
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x1005e068]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
je 0x10010d35
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.10007bd0
mov al, 1
jmp 0x10010e5b
push 0x80
push 0
lea edx, [ebp - 0x84]
push edx
call fcn.10031920
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x88], 0
je 0x10010e59
mov ecx, 4
imul edx, ecx, 0
mov eax, dword [ebp - 0x88]
mov ecx, dword [eax + 0xc]
mov eax, 1
imul eax, eax, 0
mov ecx, dword [ecx + edx]
movsx edx, byte [ecx + eax]
and edx, 0xff
mov dword [ebp - 0x98], edx
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp - 0x88]
mov eax, dword [edx + 0xc]
mov edx, 1
shl edx, 0
mov eax, dword [eax + ecx]
movsx ecx, byte [eax + edx]
and ecx, 0xff
mov dword [ebp - 0x94], ecx
mov edx, 4
imul eax, edx, 0
mov ecx, dword [ebp - 0x88]
mov edx, dword [ecx + 0xc]
mov ecx, 1
shl ecx, 1
mov edx, dword [edx + eax]
movsx eax, byte [edx + ecx]
and eax, 0xff
mov dword [ebp - 0x90], eax
mov ecx, 4
imul edx, ecx, 0
mov eax, dword [ebp - 0x88]
mov ecx, dword [eax + 0xc]
mov eax, 1
imul eax, eax, 3
mov ecx, dword [ecx + edx]
movsx edx, byte [ecx + eax]
and edx, 0xff
mov dword [ebp - 0x8c], edx
mov eax, dword [ebp - 0x8c]
push eax
mov ecx, dword [ebp - 0x90]
push ecx
mov edx, dword [ebp - 0x94]
push edx
mov eax, dword [ebp - 0x98]
push eax
push str._d._d._d._d
lea ecx, [ebp - 0x84]
push ecx
call fcn.10010ab0
add esp, 0x18
lea edx, [ebp - 0x84]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.10007bd0
mov al, 1
jmp 0x10010e5b
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10019772
mov esp, ebp
pop ebp
ret
Function at 0x100128b0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 8]
cmp eax, 0xffffffff
je 0x100128df
push 0x10
push dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x100128d9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x100128df
mov al, 1
pop ebp
ret 4
xor al, al
pop ebp
ret 4

Function at 0x100128f0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x10012942
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
cmp byte [ebp + 8], 0
mov dword [esi + 8], 0xffffffff
mov byte [esi + 4], 1
je 0x1001292d
mov eax, dword [esi + 0x10]
test eax, eax
je 0x1001292d
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esi + 0x10], 0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x10012942
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov dword [esi + 0xc], 0
pop esi
pop ebp
ret 4

Function at 0x10012960
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 8], 0xffffffff
je 0x100129a4
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [esi + 0xc], eax
test eax, eax
je 0x100129a4
push 0x3f
push eax
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x100129ad
mov eax, dword [esi + 0xc]
mov byte [esi + 4], 1
test eax, eax
je 0x100129a4
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov dword [esi + 0xc], 0
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 4]
mov byte [esi + 4], 0
push eax
push 0
push esi
push 0x10012bc0
push 0
push 0
call fcn.10037834
add esp, 0x18
mov dword [esi + 0x10], eax
test eax, eax
je 0x1001298b
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1005e068]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
xorps xmm0, xmm0
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 2
movups xmmword [ebp - 0x14], xmm0
push eax
mov word [ebp - 0x14], cx
call dword [sym.imp.WS2_32.dll_inet_addr]
push dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp + 0xc]
push edi
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_sendto]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10019772
mov esp, ebp
pop ebp
ret 0x10

Function at 0x10013110
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
mov esi, ecx
push dword [ebp + 8]
mov byte [esi + 0x68], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
call fcn.10013250
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x10013ca0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10046ef9
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x1005e068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], edx
mov ebx, ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 0
call fcn.10007c80
mov dword [ebp - 4], 0
xor esi, esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x20], 1
test edi, edi
je 0x10013e54
mov ecx, dword [ebp - 0x1c]
nop word [eax + eax]
mov al, byte [ecx]
dec edi
mov byte [ebp + esi - 0x14], al
inc ecx
mov ah, byte [ebp - 0x12]
inc esi
mov dl, byte [ebp - 0x13]
mov dh, byte [ebp - 0x14]
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 0xe], ah
mov byte [ebp + 0xb], dl
mov byte [ebp - 0xd], dh
cmp esi, 3
jne 0x10013d93
mov al, dh
mov cl, dh
shr al, 2
and cl, 3
mov byte [ebp - 0x18], al
mov al, dl
shl cl, 4
shr al, 4
add cl, al
mov al, ah
mov byte [ebp - 0x17], cl
mov cl, dl
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
mov al, ah
and al, 0x3f
mov byte [ebp - 0x16], cl
mov byte [ebp - 0x15], al
xor esi, esi
nop dword [eax + eax]
mov ecx, 0x100610f8
call fcn.10003680
mov ecx, eax
call fcn.100036f0
movzx ecx, byte [ebp + esi - 0x18]
movzx eax, byte [eax + ecx]
mov ecx, ebx
push eax
call fcn.10013e70
inc esi
cmp esi, 4
jl 0x10013d60
mov ecx, dword [ebp - 0x1c]
xor esi, esi
mov dl, byte [ebp + 0xb]
mov dh, byte [ebp - 0xd]
test edi, edi
jne 0x10013d00
mov dword [ebp + 8], esi
test esi, esi
je 0x10013e54
mov eax, esi
cmp esi, 3
jge 0x10013dcc
cmp eax, 3
jae 0x10013e68
mov byte [ebp + eax - 0x14], 0
inc eax
cmp eax, 3
jl 0x10013db0
mov cl, byte [ebp - 0x12]
mov dl, byte [ebp - 0x13]
mov dh, byte [ebp - 0x14]
jmp 0x10013dcf
mov cl, byte [ebp - 0xe]
mov al, dh
xor edi, edi
shr al, 2
and dh, 3
mov byte [ebp - 0x18], al
mov al, dl
shr al, 4
and dl, 0xf
shl dh, 4
add dh, al
shl dl, 2
mov al, cl
mov byte [ebp - 0x17], dh
shr al, 6
and cl, 0x3f
add dl, al
mov byte [ebp - 0x15], cl
lea eax, [esi + 1]
mov byte [ebp - 0x16], dl
mov dword [ebp - 0x1c], eax
test eax, eax
jle 0x10013e3a
mov esi, eax
nop dword [eax + eax]
mov ecx, 0x100610f8
call fcn.10003680
mov ecx, eax
call fcn.100036f0
movzx ecx, byte [ebp + edi - 0x18]
movzx eax, byte [eax + ecx]
mov ecx, ebx
push eax
call fcn.10013e70
inc edi
cmp edi, esi
jl 0x10013e10
mov esi, dword [ebp + 8]
cmp esi, 3
jge 0x10013e54
mov edi, 3
sub edi, esi
push 0x3d
mov ecx, ebx
call fcn.10013e70
sub edi, 1
jne 0x10013e46
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.10019913
int3