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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x1000a86e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1000b37f
jmp 0x1000a923
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x1000a890
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x1000a892
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x1000a917
jg 0x1000a8a7
test esi, esi
je 0x1000a917
test ecx, ecx
jl 0x1000a8fa
jg 0x1000a8b1
test eax, eax
je 0x1000a8fa
cmp edi, ecx
jg 0x1000a8c5
jl 0x1000a8bb
cmp esi, eax
jae 0x1000a8c5
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.1007e3f0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov eax, dword [ebx + 0x30]
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
mov eax, dword [ebp + 8]
add eax, ecx
test edi, edi
jl 0x1000a917
jg 0x1000a8fd
test esi, esi
je 0x1000a917
jmp 0x1000a8fd
mov eax, dword [ebp + 8]
cmp dword [ebx + 0x4c], 0
je 0x1000a917
push dword [ebx + 0x4c]
push esi
push 1
push eax
call fcn.10082dcf
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000a92c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
jg 0x1000a956
jl 0x1000a94d
test edi, edi
jne 0x1000a956
xor eax, eax
xor edx, edx
jmp 0x1000aa08
cmp dword [ecx + 0x38], 0
je 0x1000a969
push esi
push edi
push edx
call fcn.1000b448
jmp 0x1000aa08
mov eax, dword [ecx + 0x1c]
push ebx
mov ebx, edi
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x1000a9a9
mov eax, dword [ecx + 0x2c]
cmp dword [eax], 0
jbe 0x1000a9a9
cmp dword [eax], edi
mov esi, edi
cmovb esi, dword [eax]
push esi
push dword [ebp - 0xc]
push edx
call fcn.1007e3f0
mov ecx, dword [ebp - 8]
sub ebx, esi
add dword [ebp - 4], esi
add esp, 0xc
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp + 0x10]
cmp dword [ecx + 0x4c], 0
mov edx, ebx
je 0x1000a9fe
call fcn.1000bbf0
mov edx, ebx
jmp 0x1000a9dc
push dword [ecx + 0x4c]
push eax
push 1
push dword [ebp - 4]
call fcn.10083018
add dword [ebp - 4], eax
sub ebx, eax
add esp, 0x10
mov edx, ebx
cmp eax, 0xfff
jne 0x1000aa0e
mov ecx, dword [ebp - 8]
mov eax, 0xfff
cmp ebx, eax
ja 0x1000a9ba
test edx, edx
je 0x1000a9fe
push dword [ecx + 0x4c]
push ebx
push 1
push dword [ebp - 4]
call fcn.10083018
mov edx, ebx
add esp, 0x10
sub edx, eax
sub edi, edx
sbb esi, 0
mov eax, edi
mov edx, esi
pop ebx
pop edi
pop esi
leave
ret 0xc
sub edi, ebx
jmp 0x1000aa00
Function at 0x1000ac6b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x100ce350]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
or edi, 0xffffffff
mov esi, ecx
cmp ebx, edi
jne 0x1000ac91
xor eax, eax
jmp 0x1000ad5a
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x1000acba
mov edx, dword [esi + 0x30]
mov eax, dword [edx]
add eax, ecx
cmp ecx, eax
jae 0x1000acba
dec dword [edx]
mov eax, ebx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
jmp 0x1000ad5a
cmp dword [esi + 0x4c], 0
je 0x1000ad58
mov ecx, esi
call fcn.1000bbf0
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1000ace7
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.10081ec1
cmp eax, edi
pop ecx
pop ecx
cmovne edi, ebx
jmp 0x1000ad58
mov byte [ebp - 0x25], bl
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x1000ad27
sub eax, 1
je 0x1000ad27
dec eax
sub eax, 1
jne 0x1000ad58
push dword [esi + 0x4c]
movsx ecx, byte [ebp - 0x25]
push ecx
jmp 0x1000acd9
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
sub eax, ecx
mov dword [ebp - 0x34], eax
je 0x1000ad4a
push dword [esi + 0x4c]
push eax
mov eax, ecx
push 1
push eax
call fcn.10082dcf
add esp, 0x10
cmp dword [ebp - 0x34], eax
jne 0x1000ad58
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
mov eax, ebx
jne 0x1000ad5a
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1007c2ab
leave
ret 4

Function at 0x1000bc13
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x100ce350]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x38], ebx
je 0x1000bc6c
cmp byte [esi + 0x3d], bl
je 0x1000bc6c
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x1000bca5
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, ebx
je 0x1000bc7d
sub eax, 1
je 0x1000bc80
dec eax
sub eax, 1
jne 0x1000bca5
mov byte [esi + 0x3d], bl
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1007c2ab
leave
ret
mov byte [esi + 0x3d], bl
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1000bc9d
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.10082dcf
add esp, 0x10
cmp edi, eax
jne 0x1000bca5
cmp byte [esi + 0x3d], bl
sete al
jmp 0x1000bc6e
xor al, al
jmp 0x1000bc6e
Function at 0x10014cc8
Capabilities:
Create directory

Disassembly:
cmp dword [ecx + 0x14], 0x10
jb 0x10014cd0
mov ecx, dword [ecx]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x10014ced
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10014ced
xor al, al
ret
mov al, 1
ret
Function at 0x10015b96
Capabilities:
Encode data using base64

Disassembly:
push 0x18
mov eax, 0x100a5a09
call fcn.1007d5cd
mov edi, ecx
mov dword [ebp - 0x1c], edi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [edi], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], 0xf
mov byte [edi], bl
mov eax, dword [ebp + 8]
mov edi, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], 1
test eax, eax
je 0x10015d22
push 3
pop esi
jmp 0x10015bd9
mov edx, dword [ebp - 0x24]
dec eax
mov dword [ebp + 8], eax
mov al, byte [edx]
inc edx
mov byte [ebp + edi - 0x14], al
inc edi
mov ch, byte [ebp - 0x12]
mov cl, byte [ebp - 0x14]
mov dword [ebp - 0x24], edx
mov dl, byte [ebp - 0x13]
mov byte [ebp - 0xf], ch
mov byte [ebp - 0xd], dl
mov byte [ebp - 0xe], cl
cmp edi, esi
jne 0x10015c6b
mov esi, dword [ebp - 0x1c]
mov al, cl
shr al, 2
and cl, 3
mov byte [ebp - 0x18], al
mov edi, ebx
shl cl, 4
mov al, dl
shr al, 4
add cl, al
mov al, ch
mov byte [ebp - 0x17], cl
mov cl, dl
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
and ch, 0x3f
mov byte [ebp - 0x16], cl
mov byte [ebp - 0x15], ch
cmp dword [0x100e3fc4], 0x10
mov ecx, 0x100e3fb0
movzx eax, byte [ebp + edi - 0x18]
cmovae ecx, dword [0x100e3fb0]
movzx eax, byte [eax + ecx]
mov ecx, esi
push eax
call fcn.1000c153
inc edi
cmp edi, 4
jl 0x10015c33
mov dl, byte [ebp - 0xd]
mov edi, ebx
mov cl, byte [ebp - 0xe]
mov ch, byte [ebp - 0xf]
push 3
pop esi
mov eax, dword [ebp + 8]
test eax, eax
jne 0x10015bd6
mov dword [ebp + 8], edi
test edi, edi
je 0x10015d22
mov eax, edi
cmp edi, esi
jge 0x10015ca1
cmp eax, esi
jae 0x10015d2b
mov byte [ebp + eax - 0x14], bl
inc eax
cmp eax, esi
jl 0x10015c89
mov ch, byte [ebp - 0x12]
mov dl, byte [ebp - 0x13]
mov cl, byte [ebp - 0x14]
mov al, cl
and cl, 3
shr al, 2
mov byte [ebp - 0x18], al
mov al, dl
shr al, 4
and dl, 0xf
shl cl, 4
add cl, al
shl dl, 2
mov al, ch
mov byte [ebp - 0x17], cl
shr al, 6
and ch, 0x3f
add dl, al
mov byte [ebp - 0x15], ch
lea eax, [edi + 1]
mov byte [ebp - 0x16], dl
mov dword [ebp - 0x24], eax
test eax, eax
jle 0x10015d0d
mov esi, dword [ebp - 0x1c]
mov edi, eax
cmp dword [0x100e3fc4], 0x10
mov ecx, 0x100e3fb0
movzx eax, byte [ebp + ebx - 0x18]
cmovae ecx, dword [0x100e3fb0]
movzx eax, byte [eax + ecx]
mov ecx, esi
push eax
call fcn.1000c153
inc ebx
cmp ebx, edi
jl 0x10015cde
mov edi, dword [ebp + 8]
push 3
pop esi
cmp edi, esi
jge 0x10015d22
sub esi, edi
mov ecx, dword [ebp - 0x1c]
push 0x3d
call fcn.1000c153
sub esi, 1
jne 0x10015d13
mov eax, dword [ebp - 0x1c]
call fcn.1007d59b
ret
call fcn.1007c870
int3
Function at 0x10033810
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push edi
mov edi, dword [esp + 8]
test edi, edi
je 0x100338af
push edi
call fcn.10045a30
add esp, 4
test al, al
jne 0x100338af
push ebx
push ebp
push esi
mov esi, edi
xor ebx, ebx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x10033838
sub esi, ecx
push esi
push 0x2e
push edi
call fcn.10050e90
add esp, 0xc
test eax, eax
je 0x1003386c
sub eax, edi
push eax
push 0x2e
push edi
call fcn.10050e90
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x1003386e
inc ebx
mov ecx, edi
sub ecx, ebx
add esi, ecx
test ebx, ebx
cmovne edi, ebx
xor ecx, ecx
xor ebp, ebp
mov ebx, 0x1505
lea eax, [edi + esi]
cmp edi, eax
cmova esi, ecx
test esi, esi
je 0x100338a7
mov al, byte [edi]
push eax
call fcn.10042070
movsx ecx, al
lea edi, [edi + 1]
mov eax, ebx
inc ebp
shl eax, 5
add esp, 4
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp ebp, esi
jb 0x10033886
pop esi
pop ebp
movzx eax, bl
pop ebx
pop edi
ret
xor eax, eax
pop edi
ret
Function at 0x10038340
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x1c
push ebx
mov ebx, dword [esp + 0x24]
mov eax, 0x180
mov edx, 0x140
push ebp
push esi
cmp dword [ebx], 0x100ce054
mov ecx, dword [ebx + 8]
cmovne eax, edx
mov dword [esp + 0x20], ecx
add eax, dword [ebx + 0xc]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x3c]
push edi
test eax, eax
je 0x10038377
mov byte [eax], 0
mov ebp, dword [esp + 0x34]
mov esi, dword [ebp + 0x8d8]
test esi, esi
je 0x10038534
push dword [ecx + 8]
mov edi, dword [esi + 0x14]
call dword [0x100ce00c]
add esp, 4
mov dword [esp + 0x34], eax
test eax, eax
je 0x100383d0
mov eax, dword [ebx + 0xc]
cmp byte [eax + 0x1c9], 0
je 0x100383e2
push dword [eax + 0x64]
call dword [0x100ce00c]
mov ecx, eax
add esp, 4
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x100383dd
mov edi, dword [esp + 0x34]
push edi
call dword [0x100ce004]
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x1c
ret
mov eax, dword [ebx + 0xc]
jmp 0x100383ea
mov dword [esp + 0x10], 0
cmp byte [eax + 0x1ca], 0
je 0x100383ff
mov ecx, dword [eax + 0x444]
mov dword [esp + 0x14], ecx
jmp 0x10038407
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [ebp + 0x78]
test eax, eax
je 0x1003841d
test byte [eax + 4], 0x10
je 0x1003841d
lea edx, [eax + 0x78]
mov dword [esp + 0x30], edx
jmp 0x10038427
lea eax, [ebp + 0x8dc]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x4a4]
mov ecx, 1
cmp eax, ecx
jbe 0x1003847b
mov eax, dword [ebp + 0x8d8]
add eax, 0x74
nop
cmp dword [eax - 8], 0
mov edx, edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], eax
je 0x10038475
mov edi, dword [eax]
inc ecx
mov esi, dword [esp + 0x18]
add eax, 0x60
add esi, 0xffffffec
cmp edi, edx
cmovge esi, dword [esp + 0x20]
cmp edi, edx
cmovge edi, edx
cmp ecx, dword [ebp + 0x4a4]
jb 0x10038440
mov eax, dword [ebp + 0x4a4]
cmp ecx, eax
jne 0x1003848a
push esi
call fcn.10038df0
add esp, 4
jmp 0x10038496
lea esi, [ecx + ecx*2]
shl esi, 5
add esi, dword [ebp + 0x8d8]
mov eax, dword [esp + 0x38]
push dword [esi]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x40]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
mov dword [esi + 0x14], eax
call dword [0x100ce004]
push dword [esi + 4]
call dword [0x100ce004]
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x3c]
mov ebp, dword [esp + 0x18]
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x2c]
mov dword [esi], edi
mov dword [esi + 4], ebp
mov eax, dword [eax + 0x10]
mov dword [esi + 0x18], eax
mov eax, dword [ebx + 0xc]
lea ebx, [esi + 0x20]
push ebx
push dword [esp + 0x34]
mov eax, dword [eax + 0x1e0]
mov eax, dword [eax]
mov dword [esi + 8], eax
call fcn.10037b70
add esp, 0x10
test al, al
jne 0x10038529
push ebx
call fcn.10037e00
push edi
mov dword [esi + 0xc], 0
call dword [0x100ce004]
push ebp
call dword [0x100ce004]
add esp, 0xc
mov eax, 0x1b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov eax, dword [esp + 0x40]
test eax, eax
je 0x10038534
mov byte [eax], 1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret
Function at 0x1003e550
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp byte [esi + 0x6d0], 0
je 0x1003e5dc
cmp dword [esi + 0x1a4], 0
je 0x1003e5a3
push esi
call fcn.1002e810
push 1
push esi
mov byte [esp + 0x14], al
call fcn.1002eac0
push dword [esi + 0x154]
mov eax, dword [esi + 0x1a4]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push esi
call eax
push dword [esp + 0x28]
push esi
call fcn.1002eac0
add esp, 0x28
pop esi
ret
mov eax, dword [esp + 0xc]
cmp eax, 2
ja 0x1003e5dc
push dword [esi + 0x150]
lea eax, [eax + eax*2]
push 1
add eax, 0x100adf4c
push 2
push eax
call fcn.10082dcf
push dword [esi + 0x150]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call fcn.10082dcf
add esp, 0x20
pop esi
ret

Function at 0x10040340
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push str.kernel32
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
jne 0x1004035a
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push 0x100ae16c
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x100ae17c
push esi
call fcn.1008b364
add esp, 8
test eax, eax
je 0x100403a2
test ebp, ebp
je 0x10040393
push 8
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x100403c8
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100403c8
push 0x800
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x100404a2
mov ecx, esi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100403e5
sub ecx, ebx
sar ecx, 1
lea eax, [ecx + edx]
lea eax, [eax*2 + 2]
push eax
call dword [section..data]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10040498
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x10040498
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10040426
sub ecx, edx
sar ecx, 1
mov dword [ebx + ecx*2], 0x5c
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10040441
sub ecx, edx
sar ecx, 1
add ecx, ecx
sub ecx, esi
add ecx, ebx
nop word [eax + eax]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x10040460
test ebp, ebp
je 0x1004048f
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x100ce004]
add esp, 4
mov eax, edi
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
push ebx
call dword [0x100ce004]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x10045a30
Capabilities:
Convert ip address from string

Disassembly:
sub esp, 0x18
mov eax, dword [0x100ce350]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, dword [esp + 0x20]
lea eax, [esp + 4]
push eax
push esi
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x10045a79
lea eax, [esp + 8]
push eax
push esi
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x10045a79
xor al, al
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.1007c2ab
add esp, 0x18
ret
mov ecx, dword [esp + 0x18]
mov al, 1
pop esi
xor ecx, esp
call fcn.1007c2ab
add esp, 0x18
ret

Function at 0x10045b80
Capabilities:
Create udp socket

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x10045bbe
mov eax, dword [esi + 0x70]
cmp byte [eax + 0xe8], 0
jne 0x10045bb2
push 0
call fcn.10045b80
add esp, 4
test al, al
mov eax, dword [esi + 0x70]
setne cl
inc cl
mov byte [eax + 0xe8], cl
mov eax, dword [esi + 0x70]
cmp byte [eax + 0xe8], 2
pop esi
sete al
ret
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x10045bd3
xor al, al
pop esi
ret
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, 1
pop esi
ret
Function at 0x10046650
Capabilities:
Convert ip address from string

Disassembly:
sub esp, 0x34
mov eax, dword [0x100ce350]
xor eax, esp
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x38]
push ebp
push esi
push edi
mov edi, dword [esp + 0x48]
mov esi, edi
lea edx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x10046670
movzx ebp, cx
xorps xmm0, xmm0
mov eax, 2
movlpd qword [esp + 0x34], xmm0
push ebp
sub esi, edx
mov word [esp + 0x30], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x2e], ax
lea eax, [esp + 0xc]
push eax
push str.127.0.0.1
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jl 0x10046816
mov eax, dword [esp + 0xc]
mov dword [esp + 0x30], eax
lea eax, [esi + 0x31]
push 1
push eax
call dword [0x100ce010]
mov esi, eax
add esp, 8
test esi, esi
je 0x10046816
movups xmm0, xmmword [esp + 0x2c]
lea ecx, [esi + 0x20]
mov dword [esi], 0
mov dword [esi + 0x18], ecx
mov edx, edi
mov dword [esi + 4], 2
mov dword [esi + 8], 1
mov dword [esi + 0xc], 6
mov dword [esi + 0x10], 0x10
movups xmmword [ecx], xmm0
mov ecx, dword [esi + 0x18]
add ecx, 0x10
mov dword [esi + 0x14], ecx
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x10046712
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10046725
sub ecx, edx
push ebx
push 1
lea eax, [ecx + 0x3d]
push eax
call dword [0x100ce010]
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x1004675e
xor ebx, ebx
mov eax, esi
mov dword [esi + 0x1c], ebx
pop ebx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.1007c2ab
add esp, 0x34
ret
mov eax, 0x17
push ebp
mov word [esp + 0x18], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x16], ax
lea eax, [esp + 0x30]
push eax
push 0x100aee44
push 0x17
mov dword [esp + 0x24], 0
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jl 0x10046744
movups xmm1, xmmword [esp + 0x30]
lea eax, [ebx + 0x20]
mov dword [ebx], 0
mov dword [ebx + 0x18], eax
movups xmmword [esp + 0x1c], xmm1
mov dword [ebx + 4], 0x17
movups xmm0, xmmword [esp + 0x14]
mov dword [ebx + 8], 1
mov dword [ebx + 0xc], 6
mov dword [ebx + 0x10], 0x1c
mov dword [ebx + 0x1c], 0
movups xmmword [eax], xmm0
unpckhpd xmm1, xmm1
movq qword [eax + 0x10], xmm1
mov dword [eax + 0x18], 0
mov ecx, dword [ebx + 0x18]
add ecx, 0x1c
mov dword [ebx + 0x14], ecx
nop dword [eax]
mov al, byte [edi]
lea edi, [edi + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x100467f0
mov dword [esi + 0x1c], ebx
mov eax, esi
pop ebx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.1007c2ab
add esp, 0x34
ret
mov ecx, dword [esp + 0x3c]
xor eax, eax
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.1007c2ab
add esp, 0x34
ret
Function at 0x100515f0
Capabilities:
Move file

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
call fcn.10033bb0
push dword [esp + 0x38]
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x18], xmm0
call fcn.1004f9c0
push dword [esp + 0x40]
mov edi, eax
call fcn.1004f9c0
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
add esp, 0xc
mov esi, eax
push 1
push esi
push edi
call ebx
test eax, eax
jne 0x10051685
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax + eax]
lea eax, [esp + 0x20]
push eax
call fcn.10033bb0
movups xmm0, xmmword [esp + 0x14]
sub esp, 0xc
mov ecx, esp
sub esp, 0x10
movups xmmword [ecx], xmm0
mov ecx, esp
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
call fcn.10033c60
add esp, 0x20
test edx, edx
ja 0x100516a9
jb 0x10051677
cmp eax, 0x3e8
ja 0x100516a9
push 1
call ebp
push 1
push esi
push edi
call ebx
test eax, eax
je 0x10051640
test edi, edi
je 0x10051692
push edi
call fcn.10081d23
add esp, 4
test esi, esi
je 0x1005169f
push esi
call fcn.10081d23
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
test edi, edi
je 0x100516b6
push edi
call fcn.10081d23
add esp, 4
test esi, esi
je 0x100516c3
push esi
call fcn.10081d23
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret
Function at 0x10051ac0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x20]
push ebx
xor ebx, ebx
mov dword [esp + 0xc], ebx
mov dword [eax], ebx
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 4], eax
test eax, eax
jne 0x10051c51
push esi
mov esi, dword [esp + 0x14]
test esi, esi
je 0x10051c3c
push ebp
push edi
mov eax, dword [esi + 0x14]
test eax, eax
je 0x10051b1e
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10051b10
sub eax, edx
lea ecx, [eax + 1]
jmp 0x10051b20
xor ecx, ecx
mov eax, dword [esi + 4]
mov dword [esp + 0x14], ecx
cmp eax, 2
jne 0x10051b31
lea ebp, [eax + 0xe]
jmp 0x10051b3d
cmp eax, 0x17
jne 0x10051bde
lea ebp, [eax + 5]
cmp dword [esi + 0x18], 0
je 0x10051bde
mov eax, dword [esi + 0x10]
test eax, eax
je 0x10051bde
cmp eax, ebp
jb 0x10051bde
lea eax, [ecx + 0x20]
add eax, ebp
push eax
call dword [section..data]
mov edi, eax
add esp, 4
test edi, edi
je 0x10051c2d
mov ecx, dword [esi]
mov dword [edi], ecx
mov ecx, dword [esi + 4]
mov dword [edi + 4], ecx
mov ecx, dword [esi + 8]
mov dword [edi + 8], ecx
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
lea eax, [edi + 0x20]
push ebp
mov dword [edi + 0x10], ebp
mov dword [edi + 0x14], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x18], eax
push dword [esi + 0x18]
push eax
call fcn.1007e3f0
mov ecx, dword [esp + 0x20]
add esp, 0xc
test ecx, ecx
je 0x10051bca
mov eax, dword [edi + 0x18]
add eax, ebp
push ecx
mov dword [edi + 0x14], eax
push dword [esi + 0x14]
push eax
call fcn.1007e3f0
add esp, 0xc
mov eax, dword [esp + 0x18]
test ebx, ebx
cmove ebx, edi
test eax, eax
je 0x10051bda
mov dword [eax + 0x1c], edi
mov dword [esp + 0x18], edi
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x10051b02
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
pop edi
pop ebp
test eax, eax
je 0x10051bfe
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x10051c38
test ebx, ebx
je 0x10051c1d
mov esi, dword [ebx + 0x1c]
push ebx
call dword [0x100ce004]
add esp, 4
mov ebx, esi
test esi, esi
jne 0x10051c06
mov esi, dword [esp + 8]
mov eax, dword [esp + 0x28]
xor ebx, ebx
mov dword [eax], ebx
mov eax, esi
pop esi
pop ebx
add esp, 0x10
ret
mov esi, 8
mov dword [esp + 0x10], esi
jmp 0x10051bed
test ebx, ebx
jne 0x10051c48
mov esi, 0x2af9
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x28]
mov dword [eax], ebx
mov eax, esi
pop esi
pop ebx
add esp, 0x10
ret