joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000f2b1
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x25c
push ebx
push esi
push edi
xor esi, esi
push esi
push 0x100256d8
push dword [ebp + 8]
call fcn.1000c8b6
add esp, 0xc
mov dword [esp + 0x14], eax
cmp eax, esi
je 0x1000f42e
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
je 0x1000f422
mov ebx, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
jmp 0x1000f302
xor esi, esi
cmp dword [ebp + 0x20], esi
je 0x1000f31c
push esi
push dword [ebp + 0x20]
call dword [0x10028ba4]
cmp eax, 0x102
jne 0x1000f418
cmp word [esp + 0x44], 0x2e
jne 0x1000f342
cmp word [esp + 0x46], si
je 0x1000f401
cmp word [esp + 0x46], 0x2e
jne 0x1000f342
cmp word [esp + 0x48], si
je 0x1000f401
mov eax, dword [esp + 0x18]
and eax, 0x10
je 0x1000f350
test bl, 2
jne 0x1000f359
cmp eax, esi
jne 0x1000f39b
test bl, 4
je 0x1000f39b
cmp dword [ebp + 0x10], 0
jbe 0x1000f39b
push dword [edi + esi*4]
lea eax, [esp + 0x48]
push eax
call dword [0x10028b24]
test eax, eax
je 0x1000f395
push dword [ebp + 0x1c]
lea eax, [esp + 0x1c]
push eax
push dword [ebp + 8]
call dword [ebp + 0x18]
add esp, 0xc
test eax, eax
je 0x1000f39b
cmp dword [ebp + 0x28], 0
je 0x1000f395
push dword [ebp + 0x28]
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, dword [ebp + 0x10]
jb 0x1000f35f
test byte [esp + 0x18], 0x10
je 0x1000f401
test bl, 1
je 0x1000f401
push 0
lea eax, [esp + 0x48]
push eax
push 0x1001cba0
push dword [ebp + 8]
call fcn.1000c8b6
add esp, 0x10
mov dword [esp + 0x10], eax
test eax, eax
je 0x1000f401
cmp dword [ebp + 0x24], 0
je 0x1000f3d5
push dword [ebp + 0x24]
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push ebx
push dword [ebp + 0x10]
push edi
push dword [esp + 0x30]
call fcn.1000f2b1
add esp, 0x24
push 0xfffffffffffffffe
pop eax
lea esi, [esp + 0x10]
call fcn.1000d970
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1000f300
push dword [esp + 0xc]
call dword [0x10028a44]
push 0xfffffffffffffffe
pop eax
lea esi, [esp + 0x14]
call fcn.1000d970
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000f435
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
and dword [ebp - 4], 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0
push edi
push dword [ebp + 8]
call esi
test eax, eax
jne 0x1000f4be
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.msvcrt.dll_memset
push 1
mov eax, 0xf4240
mov ecx, 0x10029424
call fcn.1000d6d0
push eax
push edi
push str._S._06d
lea eax, [ebp - 0x20c]
push 0x103
push eax
call fcn.1000d7a6
add esp, 0x24
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x1000f4b8
push 0
push edi
push dword [ebp + 8]
call esi
test eax, eax
jne 0x1000f4be
or dword [ebp - 4], 0xffffffff
jmp 0x1000f4c7
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 4]
pop esi
leave
ret

Function at 0x1000f4cd
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
push esi
push edi
mov edi, eax
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov esi, 0x200
push esi
lea eax, [ebp - 0x244]
push 0
push eax
call sub.msvcrt.dll_memset
push esi
lea eax, [ebp - 0x244]
push eax
push edi
call fcn.1000dc8b
add esp, 0x18
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x1000f51b
xor eax, eax
inc eax
jmp 0x1000f578
push 1
or eax, 0xffffffff
mov ecx, 0x10029424
call fcn.1000d6d0
push eax
push 0x100256f0
lea eax, [ebp - 0x44]
push 0x20
push eax
call fcn.1000d7a6
push 0
lea eax, [ebp - 0x44]
push eax
push str..2_
push 0
call fcn.1000c8b6
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
je 0x1000f576
push edi
mov edi, eax
call fcn.1000f435
pop ecx
mov edi, eax
push 0xfffffffffffffffe
pop eax
lea esi, [ebp - 4]
call fcn.1000d970
xor eax, eax
test edi, edi
setns al
jmp 0x1000f578
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x1000f594
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.msvcrt.dll_memset
push 0x10
call fcn.1000d95a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000f63a
push edi
push 0x1002a210
call fcn.1000c790
mov dword [esi], eax
mov dword [esp], 0x1002a006
call fcn.1000c790
mov dword [esi + 8], eax
mov dword [esp], 0x10028fe8
call fcn.1000c790
mov edi, 0x2a0e
mov dword [esi + 0xc], eax
call fcn.1000ec70
mov dword [esp], 0x103
lea ecx, [ebp - 0x20c]
push ecx
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 4]
call fcn.1000edb0
lea eax, [ebp - 0x20c]
push eax
call fcn.1000c790
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], 4
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x1000f63d
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
xor ecx, ecx
push ebx
xor ebx, ebx
mov dword [ebp - 0xc], ecx
cmp dword [ebp + 0xc], ecx
jbe 0x1000f713
push esi
push edi
mov eax, dword [ebp + 0x14]
add eax, 0xfffffffc
cmp ecx, eax
jae 0x1000f711
xor esi, esi
xor edx, edx
mov eax, dword [ebp + 8]
mov al, byte [ebx + eax]
lea ecx, [ebp + edx - 4]
mov byte [ecx], al
cmp ebx, dword [ebp + 0xc]
jae 0x1000f67c
inc esi
jmp 0x1000f67f
mov byte [ecx], 0
inc ebx
inc edx
cmp edx, 3
jl 0x1000f668
test esi, esi
je 0x1000f705
movzx ecx, byte [ebp - 4]
movzx edx, byte [ebp - 3]
mov eax, ecx
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp - 8], al
and ecx, 3
mov eax, edx
shr eax, 4
shl ecx, 4
or eax, ecx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp - 7], al
cmp esi, 1
jle 0x1000f6d5
movzx eax, byte [ebp - 2]
and edx, 0xf
shr eax, 6
shl edx, 2
or eax, edx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp - 6], al
jmp 0x1000f6d9
mov byte [ebp - 6], 0x3d
cmp esi, 2
jle 0x1000f6f0
movzx eax, byte [ebp - 2]
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp - 5], al
jmp 0x1000f6f4
mov byte [ebp - 5], 0x3d
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp + 0x10]
add dword [ebp - 0xc], 4
lea esi, [ebp - 8]
lea edi, [edi + eax]
movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0xc]
cmp ebx, dword [ebp + 0xc]
jb 0x1000f656
pop edi
pop esi
pop ebx
cmp ecx, dword [ebp + 0x14]
jae 0x1000f720
mov eax, dword [ebp + 0x10]
mov byte [ecx + eax], 0
mov eax, ecx
leave
ret

Function at 0x1000f8aa
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 2
xor esi, esi
push esi
push dword [ebp + 8]
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1000f8d0
or eax, 0xffffffff
pop esi
leave
ret
cmp dword [ebp + 0x14], esi
je 0x1000f8ff
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1000f8f2
push 0xfffffffffffffffe
pop esi
push dword [ebp - 4]
call dword [0x10028b0c]
mov eax, esi
jmp 0x1000f8cd
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x1000f8f2
push 0xfffffffffffffffd
jmp 0x1000f8f1
Function at 0x100100c6
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0xf
pop ecx
cmp eax, ecx
ja 0x100100e0
mov ecx, eax
xor eax, eax
test ecx, ecx
je 0x100100ee
lea edx, [eax + 0x41]
inc eax
cmp eax, ecx
jb 0x100100e6
mov al, byte [esi + 0x100]
mov dl, byte [esi + 0x101]
xor ecx, ecx
mov dword [ebp - 8], ecx
cmp dword [ebp + 0xc], ecx
jle 0x10010180
push ebx
push edi
movzx eax, al
movzx edi, dl
inc eax
and eax, 0x800000ff
jns 0x1001011b
dec eax
or eax, 0xffffff00
inc eax
mov byte [ebp - 2], al
movzx eax, al
mov dl, byte [eax + esi]
movzx ebx, dl
add ebx, edi
and ebx, 0x800000ff
jns 0x10010139
dec ebx
or ebx, 0xffffff00
inc ebx
add ecx, dword [ebp + 8]
movzx edi, bl
mov byte [ebp - 1], bl
mov bl, byte [edi + esi]
mov byte [eax + esi], bl
mov byte [edi + esi], dl
movzx ebx, byte [eax + esi]
movzx edx, dl
add ebx, edx
and ebx, 0x800000ff
jns 0x10010164
dec ebx
or ebx, 0xffffff00
inc ebx
movzx edx, bl
mov dl, byte [edx + esi]
xor byte [ecx], dl
mov ecx, dword [ebp - 8]
inc ecx
mov dword [ebp - 8], ecx
cmp ecx, dword [ebp + 0xc]
jl 0x1001010c
mov dl, byte [ebp - 1]
mov al, byte [ebp - 2]
pop edi
pop ebx
mov byte [esi + 0x100], al
mov byte [esi + 0x101], dl
leave
ret
Function at 0x100104db
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
push ebx
push esi
xor eax, eax
xor ebx, ebx
push 0x206
mov word [ebp - 0x240], ax
lea eax, [ebp - 0x23e]
push ebx
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
call sub.msvcrt.dll_memset
mov esi, 0x3fff
push esi
mov dword [ebp - 0x24], 0x104
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x20], ebx
call fcn.1000d95a
add esp, 0x10
mov dword [ebp - 0x14], eax
cmp eax, ebx
jne 0x10010532
xor eax, eax
jmp 0x1001063f
push edi
mov edi, 0x800
push edi
call fcn.1000d95a
pop ecx
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x1001054d
xor eax, eax
jmp 0x1001063e
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push dword [ebp + 8]
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10010619
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x240]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x100105a8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10010619
cmp dword [ebp - 0x10], ebx
je 0x10010619
mov dword [ebp - 0xc], ebx
jbe 0x10010619
push edi
push ebx
push dword [ebp - 8]
call sub.msvcrt.dll_memset
push esi
push ebx
push dword [ebp - 0x14]
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 0x14]
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x20], edi
mov word [eax], cx
lea ecx, [ebp - 0x20]
push ecx
push dword [ebp - 8]
lea ecx, [ebp - 0x18]
push ebx
push ebx
push ecx
push eax
push dword [ebp - 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x10010605
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [0x10028b5c]
test eax, eax
jne 0x10010612
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
jb 0x100105b2
jmp 0x10010619
mov dword [ebp - 0x1c], 1
cmp dword [ebp - 4], ebx
je 0x10010627
push dword [ebp - 4]
call dword [0x10028b0c]
mov eax, esi
lea esi, [ebp - 0x14]
call fcn.1000d970
mov eax, edi
lea esi, [ebp - 8]
call fcn.1000d970
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10010643
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
not eax
cmp dword [ebp + 0xc], ecx
jne 0x10010653
xor eax, eax
pop ebp
ret
jbe 0x10010682
mov edx, dword [ebp + 8]
movzx edx, byte [ecx + edx]
xor eax, edx
mov edx, eax
and edx, 0xf
shr eax, 4
xor eax, dword [edx*4 + 0x10020378]
mov edx, eax
and edx, 0xf
shr eax, 4
xor eax, dword [edx*4 + 0x10020378]
inc ecx
cmp ecx, dword [ebp + 0xc]
jb 0x10010655
not eax
pop ebp
ret
Function at 0x10010bd5
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x1c], 0x500
call fcn.10010acc
mov dword [ebp - 0x10], eax
cmp eax, ebx
jne 0x10010bfd
xor eax, eax
jmp 0x10010c8f
push esi
lea ecx, [ebp - 0x18]
push ecx
push 2
push eax
call fcn.10010b16
mov esi, eax
add esp, 0xc
mov dword [ebp - 0x14], esi
cmp esi, ebx
je 0x10010c74
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x20]
push eax
call dword [0x10028b7c]
test eax, eax
je 0x10010c74
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
cmp dword [esi], ebx
jbe 0x10010c6b
push edi
lea edi, [esi + 4]
push dword [ebp - 0xc]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x10010c63
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add edi, 8
cmp eax, dword [esi]
jb 0x10010c45
jmp 0x10010c6a
mov dword [ebp - 8], 1
pop edi
push dword [ebp - 0xc]
call dword [0x10028adc]
push dword [ebp - 0x10]
call dword [0x10028a84]
cmp esi, ebx
je 0x10010c8b
xor eax, eax
lea esi, [ebp - 0x14]
call fcn.1000d970
mov eax, dword [ebp - 8]
pop esi
pop ebx
leave
ret

Function at 0x10010c92
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
xor eax, eax
lea ecx, [ebp - 4]
push ecx
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push 0x12
mov dword [ebp - 0xc], eax
push 1
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 8], 0x500
call dword [0x10028b7c]
test eax, eax
jne 0x10010cc2
leave
ret
push esi
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push dword [ebp - 4]
mov esi, eax
call dword [0x10028adc]
mov eax, esi
pop esi
leave
ret
Function at 0x10011711
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push esi
and dword [ebp - 0x21c], 0
and dword [ebp - 0x20c], 0
push 0xc
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.1000da72
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
push 0
push 0
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
je 0x10011768
xor eax, eax
je 0x10011766
jmp 0x10011760
jmp 0x100117cf
push 0
push str.Packages
push 0x1001cba0
lea eax, [ebp - 0x208]
push eax
call fcn.1000c8b6
add esp, 0x10
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
je 0x100117cf
xor eax, eax
je 0x10011798
jmp 0x10011792
push 1
push 1
push 0
lea eax, [ebp - 0x218]
push eax
push 0x100116ab
push 5
push 1
push 0x10028978
push dword [ebp - 0x220]
call fcn.1000f2b1
add esp, 0x24
push 0xfffffffffffffffe
pop eax
lea esi, [ebp - 0x220]
call fcn.1000d970
lea eax, [ebp - 0x208]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
je 0x100117fb
xor eax, eax
je 0x100117f9
jmp 0x100117f3
jmp 0x10011862
push 0
push str.LocalLow
push 0x1001cba0
lea eax, [ebp - 0x208]
push eax
call fcn.1000c8b6
add esp, 0x10
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
je 0x10011862
xor eax, eax
je 0x1001182b
jmp 0x10011825
push 1
push 1
push 0
lea eax, [ebp - 0x218]
push eax
push 0x100116ab
push 5
push 1
push 0x10028978
push dword [ebp - 0x224]
call fcn.1000f2b1
add esp, 0x24
push 0xfffffffffffffffe
pop eax
lea esi, [ebp - 0x224]
call fcn.1000d970
push 1
push 1
push 0
lea eax, [ebp - 0x218]
push eax
push 0x100116ab
push 5
push 1
push 0x10028978
push 0x1002a006
call fcn.1000f2b1
add esp, 0x24
push 0
push dword [0x10028978]
push 0x1001cba0
push 0x10028fe8
call fcn.1000c8b6
add esp, 0x10
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x20c], 0
je 0x100118d5
push dword [ebp - 0x20c]
lea eax, [ebp - 0x218]
push eax
call fcn.100115ed
pop ecx
pop ecx
push 0xfffffffffffffffe
pop eax
lea esi, [ebp - 0x20c]
call fcn.1000d970
xor eax, eax
je 0x100118db
jmp 0x100118d5
cmp dword [ebp - 0x210], 0
je 0x100118ef
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x218]
mov dword [eax], ecx
mov eax, dword [ebp - 0x210]
pop esi
leave
ret

Function at 0x10011acd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push esi
push dword [ebp + 8]
mov esi, dword [0x1002a8ac]
call fcn.10011a8f
pop ecx
mov dword [ebp - 8], eax
test eax, eax
je 0x10011b1d
push 0
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [eax + 4]
add ecx, 8
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10011b0d
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov eax, 0x84
lea esi, [ebp - 8]
call fcn.1000d970
xor eax, eax
inc eax
pop esi
leave
ret
Function at 0x1001297f
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x1001298d
or eax, 0xffffffff
pop ebp
ret
test esi, esi
jne 0x10012995
push 0xfffffffffffffffe
jmp 0x100129da
push edi
push dword [ebp + 8]
xor eax, eax
mov edi, esi
stosd dword es:[edi], eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esi], eax
pop edi
cmp eax, 0xffffffff
je 0x100129b1
xor eax, eax
inc eax
pop ebp
ret
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x100129c2
push 0xfffffffffffffffd
jmp 0x100129da
mov eax, dword [eax + 0xc]
test eax, eax
je 0x100129d8
cmp dword [eax], 0
je 0x100129d8
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esi], eax
xor eax, eax
pop ebp
ret
push 0xfffffffffffffffc
pop eax
pop ebp
ret

Function at 0x10012bea
Capabilities:
Terminate thread

Disassembly:
push esi
xor eax, eax
push eax
push eax
push 0x1c30
push 0x10012bba
push eax
push eax
call dword [0x10028b14]
mov esi, eax
push 0x1f4
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x10012c24
push 2
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
xor eax, eax
inc eax
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x10013098
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [eax + 0x5c]
mov byte [ecx + eax + 0x1c], 0x80
inc dword [eax + 0x5c]
cmp ecx, 0x37
mov ecx, dword [eax + 0x5c]
jle 0x100130e2
jmp 0x100130b8
mov byte [ecx + eax + 0x1c], 0
inc dword [eax + 0x5c]
mov ecx, dword [eax + 0x5c]
cmp ecx, 0x40
jl 0x100130ad
call fcn.10012ee0
jmp 0x100130cf
mov ecx, dword [eax + 0x5c]
mov byte [eax + ecx + 0x1c], 0
inc dword [eax + 0x5c]
cmp dword [eax + 0x5c], 0x38
jl 0x100130c4
jmp 0x100130e7
mov byte [ecx + eax + 0x1c], 0
inc dword [eax + 0x5c]
mov ecx, dword [eax + 0x5c]
cmp ecx, 0x38
jl 0x100130d7
mov cl, byte [eax + 0x1b]
mov byte [eax + 0x54], cl
mov cl, byte [eax + 0x1a]
mov byte [eax + 0x55], cl
mov cl, byte [eax + 0x19]
mov byte [eax + 0x56], cl
mov cl, byte [eax + 0x18]
mov byte [eax + 0x57], cl
mov cl, byte [eax + 0x17]
mov byte [eax + 0x58], cl
mov cl, byte [eax + 0x16]
mov byte [eax + 0x59], cl
mov cl, byte [eax + 0x15]
mov byte [eax + 0x5a], cl
mov cl, byte [eax + 0x14]
mov byte [eax + 0x5b], cl
jmp fcn.10012ee0
Function at 0x1001311c
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x70
push esi
push edi
xor edi, edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x10], 0x67452301
mov dword [esp + 0x14], 0xefcdab89
mov dword [esp + 0x18], 0x98badcfe
mov dword [esp + 0x1c], 0x10325476
mov dword [esp + 0x20], 0xc3d2e1f0
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], edi
mov dword [esp + 0xc], eax
mov esi, ecx
cmp eax, edi
je 0x100131bf
dec dword [esp + 0xc]
cmp dword [esp + 0x74], edi
jne 0x100131d0
mov ecx, dword [esp + 0x6c]
mov al, byte [esi]
mov byte [esp + ecx + 0x2c], al
inc dword [esp + 0x6c]
add dword [esp + 0x24], 8
jne 0x1001319c
inc dword [esp + 0x28]
jne 0x1001319c
mov dword [esp + 0x74], 1
cmp dword [esp + 0x6c], 0x40
jne 0x100131ac
lea eax, [esp + 0x10]
call fcn.10012ee0
inc esi
cmp dword [esp + 0xc], edi
jne 0x1001316f
cmp dword [esp + 0x74], edi
jne 0x100131d0
cmp dword [esp + 0x70], edi
jne 0x100131d0
lea eax, [esp + 0x10]
call fcn.10013098
mov dword [esp + 0x70], 1
lea ecx, [esp + 0x11]
lea esi, [esp + 0x10]
sub ecx, ebx
lea eax, [ebx + 2]
sub esi, ebx
mov dl, byte [ecx + eax]
mov byte [eax - 2], dl
mov dl, byte [esi + eax]
mov byte [eax - 1], dl
mov dl, byte [esp + edi*4 + 0x11]
mov byte [eax], dl
mov dl, byte [esp + edi*4 + 0x10]
mov byte [eax + 1], dl
inc edi
add eax, 4
cmp edi, 5
jb 0x100131df
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10013227
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor esi, esi
push 6
inc esi
push esi
push 2
mov dword [ebp - 4], esi
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
or eax, 0xffffffff
cmp ebx, eax
je 0x100132d1
cmp dword [ebp + 0x10], 0
jne 0x10013278
lea eax, [ebp - 4]
push eax
push 0x8004667e
push ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x10013278
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x10013278
and dword [eax], 0
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 2
stosd dword es:[edi], eax
pop eax
push dword [ebp + 0xc]
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x100132cf
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x100132c6
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
push 0xfffffffffffffffe
pop eax
jmp 0x100132d1
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x100132cf
mov dword [eax], esi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret