joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10010794
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100107d3
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100107d3
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100107d3
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x100107d3
cmp dword [ecx + 0x74], 0xe
jbe 0x100107d3
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x10011e30
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x10595190]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10011e70
cmp byte [ebx], 0xa
jne 0x10011e70
or byte [edi + eax + 0x28], 4
jmp 0x10011e75
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x10011f74
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10011f57
inc eax
cmp dl, 0xd
je 0x10011ea1
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10011ec7
cmp eax, ecx
jae 0x10011ed5
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x10011e89
jmp 0x10011f74
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10011f52
cmp dword [ebp - 0x10], 0
je 0x10011f52
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10595190]
test byte [eax + edi + 0x28], 0x48
je 0x10011f2c
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10011f17
mov byte [esi], dl
jmp 0x10011f28
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10595190]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10011f74
cmp byte [ebp - 1], 0xa
jne 0x10011f3b
cmp esi, ebx
jne 0x10011f3b
mov byte [esi], 0xa
jmp 0x10011f73
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10011dd2
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10011f74
mov byte [esi], 0xd
jmp 0x10011f73
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10595190]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10011f71
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10011f74
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10011f7d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x10595190]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10011fc3
cmp word [ebx], dx
jne 0x10011fc3
or byte [eax + edi + 0x28], 4
jmp 0x10011fc8
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x1001212b
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x1001210b
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x10012009
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1001203f
cmp eax, edx
jae 0x1001204d
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x10011fe4
jmp 0x1001212b
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10012106
cmp dword [ebp - 0x18], 0
je 0x10012106
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10595190]
test byte [eax + edi + 0x28], 0x48
je 0x100120dc
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x100120a0
mov word [esi], cx
jmp 0x100120d7
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10595190]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x10595190]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10595190]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1001212b
pop eax
cmp word [ebp - 4], ax
jne 0x100120ec
cmp esi, ebx
jne 0x100120ec
mov word [esi], ax
jmp 0x10012128
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10011dd2
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1001212b
push 0xd
pop eax
jmp 0x100120e7
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10595190]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10012125
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1001212b
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100164af
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1001654c
push ebx
push esi
call fcn.10016478
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1001640c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100164f9
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001654b
push edi
push eax
call fcn.1001509f
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10016519
call fcn.10012eac
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001654a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001640c
add esp, 0x20
test eax, eax
jne 0x10016538
push edi
call fcn.10012eac
jmp 0x10016540
push ebx
call fcn.10012eac
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10016bba
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10020b68
push 0x10020b60
push str.FlsAlloc
push 0x1f
call fcn.10016a79
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10016bee
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001f214]
call esi
jmp 0x10016bf4
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10016c38
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10020b78
push 0x10020b70
push str.FlsGetValue
push 0x21
call fcn.10016a79
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10016c6f
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001f214]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10016c77
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10020b80
push 0x10020b78
push str.FlsSetValue
push 0x22
call fcn.10016a79
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10016cb1
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001f214]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1001a5b1
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1001a52d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1001a720
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1001a720
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1001a6d5
jg 0x1001a60d
test eax, eax
je 0x1001a6cb
push 1
push 0x1000
call fcn.10015139
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1001a630
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1001a6c2
push 0x8000
push ebx
call fcn.1001a45e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1001a659
jg 0x1001a654
cmp ecx, 0x1000
jb 0x1001a659
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10013cc4
add esp, 0x10
cmp eax, 0xffffffff
je 0x1001a69e
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1001a654
jl 0x1001a685
test ecx, ecx
jne 0x1001a646
push dword [ebp - 0xc]
push ebx
call fcn.1001a45e
push esi
call fcn.10012eac
add esp, 0xc
xor ebx, ebx
jmp 0x1001a72e
cmp byte [edi + 0x24], 0
je 0x1001a6b5
cmp dword [edi + 0x20], 5
jne 0x1001a6b5
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1001a6c0
mov ebx, dword [edi + 0x18]
jmp 0x1001a6c2
xor ebx, ebx
push esi
call fcn.10012eac
pop ecx
jmp 0x1001a72e
test ecx, ecx
jg 0x1001a697
jl 0x1001a6d5
test eax, eax
jae 0x1001a697
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10011dd2
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1001a6f5
cmp byte [edi + 0x1c], 0
je 0x1001a697
jmp 0x1001a726
push ebx
call fcn.1001813a
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1001a697
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1001a72e
cmp byte [edi + 0x1c], 0
je 0x1001a72b
mov ebx, dword [edi + 0x18]
jmp 0x1001a72e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10011dd2
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1001cb00
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001cb2d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001cb2d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4028d5
Capabilities:
Terminate process

Disassembly:
call fcn.0053b000
push 0x18
push 0x4029f8
call fcn.004032a6
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], esi
call dword [sym.imp.MSVCR120_CLR0400.dll___crtGetShowWindowMode]
movzx ebx, ax
mov dword [ebp - 4], esi
mov eax, dword fs:[0x18]
mov edx, dword [eax + 4]
mov edi, esi
mov esi, 0x4150e8
mov ecx, edx
xor eax, eax
lock cmpxchg dword [esi], ecx
test eax, eax
jne 0x404373
xor esi, esi
inc esi
cmp dword [0x4150ec], esi
je 0x404385
cmp dword [0x4150ec], 0
jne 0x402a1e
mov dword [0x4150ec], esi
push 0x4029f4
push 0x4029e4
call sub.MSVCR120_CLR0400.dll__initterm_e
pop ecx
pop ecx
test eax, eax
jne 0x404392
cmp dword [0x4150ec], esi
jne 0x402973
push 0x4029e0
push 0x4029cc
call sub.MSVCR120_CLR0400.dll__initterm
pop ecx
pop ecx
mov dword [0x4150ec], 2
test edi, edi
jne 0x402980
xor eax, eax
mov ecx, 0x4150e8
xchg dword [ecx], eax
cmp dword [0x4150f8], 0
jne 0x4043a3
mov eax, dword [sym.imp.MSVCR120_CLR0400.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov edi, dword [ebp - 0x24]
nop
nop
nop
nop
nop
nop
mov cl, byte [esi]
cmp cl, 0x20
jbe 0x402a14
cmp cl, 0x22
je 0x4043d1
movzx eax, cl
push eax
call dword [sym.imp.MSVCR120_CLR0400.dll__ismbblead]
pop ecx
test eax, eax
jne 0x4043e2
inc esi
mov dword [ebp - 0x20], esi
jmp 0x4029a0
test cl, cl
je 0x402a29
test edi, edi
je 0x402a29
jmp 0x4029a7
mov dword [0x415244], esi
jmp 0x402950
mov al, byte [esi]
test al, al
je 0x402a39
cmp al, 0x20
ja 0x402a39
inc esi
mov dword [ebp - 0x20], esi
jmp 0x402a29
push ebx
push esi
push 0
push 0x400000
call fcn.00403044
mov dword [0x415060], eax
cmp dword [0x415064], 0
jne 0x40441a
push eax
call dword [sym.imp.MSVCR120_CLR0400.dll_exit]
test ecx, ecx
je 0x402a82
push ecx
call fcn.0040117d
jmp 0x402a82
mov eax, esi
pop esi
pop ebp
ret 4
cmp eax, edx
jne 0x402905
xor esi, esi
inc esi
mov edi, esi
jmp 0x402918
push 0x1f
call sub.MSVCR120_CLR0400.dll__amsg_exit
pop ecx
jmp 0x402950
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x404435
push 0x4150f8
call fcn.0040fdd0
pop ecx
test eax, eax
je 0x40298d
push 0
push 2
push 0
mov esi, dword [0x4150f8]
mov ecx, esi
call dword [0x416268]
call esi
jmp 0x40298d
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [ebp - 0x24], edi
jmp 0x4029b0
inc esi
mov dword [ebp - 0x20], esi
jmp 0x4029c3
cmp dword [0x415244], 0
jne 0x40442e
call dword [sym.imp.MSVCR120_CLR0400.dll__cexit]
mov eax, dword [0x415060]
mov dword [ebp - 4], 0xfffffffe
call fcn.004032ee
ret
Function at 0x402fd4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004047d8
test esi, esi
jne 0x40300a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004048c8
jmp 0x403028
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402ed8
mov edi, eax
test esi, esi
je 0x403028
cmp dword [ebx], 0
je 0x403028
dec esi
jmp 0x403011
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x40305c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x40d008], 0x8088405
inc edx
mov dword [ebx + 0x40d008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403c1c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40d018]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403cb4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403c94
xor eax, eax
push ebp
push 0x403c8d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403cd0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403c94
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x40d018]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40d018], ax
mov esp, ebp
pop ebp
ret

Function at 0x4045c0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40e034], 0
je 0x404621
cmp word [0x40e208], 0xd7b2
jne 0x4045e9
cmp dword [0x40e210], 0
jbe 0x4045e9
mov eax, 0x40e204
call dword [0x40e220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404648
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40d024], 0
jne 0x40463d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404778
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x40d02c], 0
je 0x40479e
mov edx, esi
mov eax, ebx
call dword [0x40d02c]
jmp 0x4047ad
mov eax, 8
call fcn.00402c94
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x40e035], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404740
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x406058
Capabilities:
Get socket status

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov eax, ecx
mov esi, 0x3e8
cdq
idiv esi
mov dword [esp], eax
mov eax, ecx
mov ecx, 0x3e8
cdq
idiv ecx
imul eax, edx, 0x3e8
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 8], eax
cmp eax, 0x40
jge 0x406096
mov dword [esp + eax*4 + 0xc], ebx
inc dword [esp + 8]
push esp
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
call sub.wsock32.dll_select
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x4060b0
Capabilities:
Create udp socket
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor edi, edi
mov dword [ebp - 0x14], 1
xor esi, esi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
push 0x11
push 2
push 2
call sub.wsock32.dll_socket
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4061b4
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x10
call fcn.004035b8
mov word [ebp - 0x28], 2
push 0x35
call sub.wsock32.dll_htons
mov word [ebp - 0x26], ax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.00404c30
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x10], 0x10
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push ebx
call sub.wsock32.dll_sendto
inc eax
jne 0x406147
push ebx
call sub.wsock32.dll_closesocket
jmp 0x4061b4
cmp dword [ebp - 0x14], 0
jle 0x4061ac
mov ecx, 0xbb8
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00406058
test eax, eax
jle 0x4061ac
lea eax, [ebp - 0x14]
push eax
push 0x4004667f
push ebx
call sub.wsock32.dll_ioctlsocket
inc eax
jne 0x406178
cmp dword [ebp - 0x14], 0
jle 0x4061ac
mov eax, dword [ebp - 0x14]
add eax, esi
cmp eax, dword [ebp + 8]
jle 0x406187
add esi, dword [ebp - 0x14]
jmp 0x4061ac
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
push 0
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
push ebx
call sub.wsock32.dll_recvfrom
mov edi, eax
add esi, edi
add dword [ebp - 0x18], esi
cmp dword [ebp - 0x14], 0
jg 0x40614d
mov edi, esi
push ebx
call sub.wsock32.dll_closesocket
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4065a8
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe6c
push ebx
push esi
test dl, dl
je 0x4065bf
add esp, 0xfffffff0
call fcn.00403e60
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00404c20
xor eax, eax
push ebp
push 0x406630
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x405ca0]
call fcn.00405d08
mov dword [esi + 0xc], eax
lea eax, [esi + 8]
mov edx, dword [ebp - 4]
call fcn.0040482c
lea eax, [ebp - 0x194]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
mov eax, esi
call fcn.00405ecc
mov eax, esi
call fcn.0040640c
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406637
lea eax, [ebp - 4]
call fcn.004047d8
ret
Function at 0x406768
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404c20
xor eax, eax
push ebp
push 0x4067e4
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4067f8
push dword [ebp - 4]
push 0x406814
lea eax, [ebp - 8]
mov edx, 3
call fcn.00404b34
lea eax, [ebp - 8]
call fcn.00404c90
mov edx, eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x4067bf
sub eax, 4
mov eax, dword [eax]
push 0
push eax
push edx
push ebx
call sub.wsock32.dll_send
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4067eb
lea eax, [ebp - 8]
mov edx, 2
call fcn.004047fc
ret

Function at 0x406b6c
Capabilities:
Create process on windows
Self delete

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe28
push ebx
xor ebx, ebx
mov dword [ebp - 0x1d8], ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404c20
mov eax, dword [ebp - 8]
call fcn.00404c20
xor eax, eax
push ebp
push 0x406c52
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1d4]
call fcn.00403340
lea eax, [ebp - 0x1d4]
call fcn.004030dc
call fcn.00402d7c
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x1d4]
call fcn.00404f24
call fcn.00403b9c
call fcn.00402d7c
lea eax, [ebp - 0x1d8]
mov ecx, dword [ebp - 4]
mov edx, 0x406c68
call fcn.00404ab8
mov edx, dword [ebp - 0x1d8]
lea eax, [ebp - 0x1d4]
call fcn.00404f24
call fcn.00403b9c
call fcn.00402d7c
lea eax, [ebp - 0x1d4]
call fcn.004034c0
call fcn.00402d7c
test bl, bl
je 0x406c2c
push 0
mov eax, dword [ebp - 4]
call fcn.00404c30
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406c59
lea eax, [ebp - 0x1d8]
call fcn.004047d8
lea eax, [ebp - 8]
mov edx, 2
call fcn.004047fc
ret
Function at 0x406c70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 4
add esp, 0xfffff004
push eax
dec eax
jne 0x406c79
mov eax, dword [ebp - 4]
add esp, 0xfffffff0
push ebx
xor ebx, ebx
mov dword [ebp - 0x4014], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404c20
mov eax, dword [ebp - 8]
call fcn.00404c20
xor eax, eax
push ebp
push 0x406d6a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x400f]
xor ecx, ecx
mov edx, 0x3fff
call fcn.004035b8
lea eax, [ebp - 0xc]
push eax
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.00404c30
push eax
push ebx
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [ebp - 0x10], 0x3fff
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x400f]
push eax
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00404c30
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
lea eax, [ebp - 0x4014]
lea edx, [ebp - 0x400f]
mov ecx, 0x3fff
call fcn.00404a48
cmp dword [ebp - 0x4014], 0
je 0x406d44
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x400f]
mov ecx, 0x3fff
call fcn.00404a48
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406d71
lea eax, [ebp - 0x4014]
call fcn.004047d8
lea eax, [ebp - 8]
mov edx, 2
call fcn.004047fc
ret

Function at 0x4071bc
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov esi, dword [eax]
mov edi, dword [ecx]
mov eax, ebx
mov ecx, 3
xor edx, edx
div ecx
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
lea ecx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
xor eax, eax
xor ebx, ebx
xor edx, edx
cmp dword [ebp - 4], 0
je 0x407240
mov word [ebp - 0xa], 0
inc word [ebp - 0xa]
lodsw ax, word [esi]
mov bl, al
shr bl, 2
mov dl, byte [ebx + ecx]
mov bh, ah
and bh, 0xf
rol ax, 4
and ax, 0x3f
mov dh, byte [eax + ecx]
mov ax, dx
stosw word es:[edi], ax
lodsb al, byte [esi]
mov bl, al
shr bx, 6
mov dl, byte [ebx + ecx]
and al, 0x3f
xor ah, ah
mov dh, byte [eax + ecx]
mov ax, dx
stosw word es:[edi], ax
cmp word [ebp - 0xa], 0x13
jne 0x40723b
mov ax, 0xa0d
stosw word es:[edi], ax
mov word [ebp - 0xa], 0
dec dword [ebp - 4]
jne 0x4071ef
cmp dword [ebp - 8], 0
je 0x407290
xor eax, eax
xor ebx, ebx
xor edx, edx
lodsb al, byte [esi]
shl ax, 6
mov bl, ah
mov dl, byte [ebx + ecx]
dec dword [ebp - 8]
je 0x40727b
shl ax, 2
and ah, 3
lodsb al, byte [esi]
shl ax, 4
mov bl, ah
mov dh, byte [ebx + ecx]
shl edx, 0x10
shr al, 2
mov bl, al
mov dl, byte [ebx + ecx]
mov dh, 0x3d
jmp 0x40728a
shr al, 2
mov bl, al
mov dh, byte [ebx + ecx]
shl edx, 0x10
mov dh, 0x3d
mov dl, 0x3d
mov eax, edx
ror eax, 0x10
stosd dword es:[edi], eax
mov esp, ebp
pop ebp
ret