joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001481
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
lea esi, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffe1
call fcn.1000d90c
lea esi, [ebp - 0x10]
call fcn.1000d90c
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x20], eax
mov eax, esi
push 1
mov dword [ebp - 0x1c], eax
push 0x10
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 8]
call fcn.100051e0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x100014d5
push 0xffffffffffffffe0
pop eax
jmp 0x1000154d
push 0x3e8
push dword [edi]
call dword [0x10028ba4]
test eax, eax
je 0x10001510
cmp eax, 0xffffffff
je 0x10001529
lea esi, [ebp - 0x18]
call fcn.1000d90c
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
add ecx, 0xf0
adc eax, 0
cmp dword [ebp - 0x14], eax
jg 0x10001530
jl 0x100014d5
cmp dword [ebp - 0x18], ecx
jae 0x10001530
jmp 0x100014d5
lea eax, [ebp - 4]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
jne 0x10001530
mov dword [ebp - 4], 0xffffffdf
jmp 0x10001530
mov dword [ebp - 4], 0xffffffde
cmp dword [ebp - 4], 0xffffffe1
jne 0x10001540
push 0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 1
mov eax, edi
call fcn.1000513b
mov eax, dword [ebp - 4]
pop ecx
pop edi
pop esi
leave
ret
Function at 0x10001737
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
push edi
xor ebx, ebx
jmp 0x10001795
lea esi, [esp + 0x10]
call fcn.1000d90c
mov ecx, dword [0x10027ab0]
mov eax, dword [0x10027ab4]
add ecx, 0x3840
adc eax, ebx
cmp eax, dword [esp + 0x14]
jg 0x1000187e
jl 0x10001779
cmp ecx, dword [esp + 0x10]
jae 0x1000187e
push ebx
push dword [0x10027aa4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
je 0x100017a7
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push dword [0x10027a8c]
call fcn.1000bf6f
pop ecx
pop ecx
test eax, eax
js 0x10001747
mov esi, 0x10027ab0
call fcn.1000d90c
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push ebx
push ebx
push 0x10027aa4
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
xor eax, eax
lea edi, [esp + 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [0x10027ab8]
push 0x31
mov dword [esp + 0x1c], eax
call fcn.1000cf47
pop ecx
test eax, eax
jne 0x100017fb
call fcn.1000dcf2
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push 0x100011fb
push eax
call fcn.10001551
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
jl 0x10001846
push dword [0x10027b40]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push 0x27
call fcn.1000cf30
push 0x10028c64
push ebx
call fcn.1000d144
add esp, 0x10
cmp dword [0x100289d4], ebx
je 0x10001846
mov dword [0x100289c8], 1
cmp dword [esp + 0x1c], ebx
je 0x10001857
lea eax, [esp + 0x1c]
push eax
call fcn.1000e058
pop ecx
push dword [0x10027aa4]
call dword [0x10028a84]
push dword [0x10027a8c]
mov dword [0x10027aa4], ebx
call fcn.1000bf93
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
jmp 0x10001877
Function at 0x10001882
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
xor ebx, ebx
jmp 0x100018d2
lea esi, [ebp - 0xc]
call fcn.1000d90c
mov ecx, dword [0x10027a98]
mov eax, dword [0x10027a9c]
add ecx, 0xe10
adc eax, ebx
cmp eax, dword [ebp - 8]
jg 0x1000190f
jl 0x100018b6
cmp ecx, dword [ebp - 0xc]
jae 0x1000190f
push ebx
push dword [0x10027aa0]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
je 0x100018e4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push dword [0x10027a88]
call fcn.1000bf6f
pop ecx
pop ecx
test eax, eax
js 0x1000188f
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [0x10027ab8]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call fcn.1000dc03
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
cmp eax, ebx
jne 0x10001917
or edi, 0xffffffff
jmp 0x1000197b
push 0xfffffffffffffffe
pop eax
jmp 0x100019a5
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push ebx
push ebx
push 0x10027aa0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov esi, 0x10027a98
call fcn.1000d90c
lea eax, [ebp - 0x1c]
push 0x10001143
push eax
call fcn.10001551
mov edi, eax
pop ecx
pop ecx
cmp edi, ebx
jl 0x1000197b
push dword [0x10027b40]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push 0x27
call fcn.1000cf30
push 0x10028c64
push ebx
call fcn.1000d144
add esp, 0x10
push dword [0x10027aa0]
call dword [0x10028a84]
push dword [0x10027a88]
mov dword [0x10027aa0], ebx
call fcn.1000bf93
pop ecx
xor eax, eax
lea esi, [ebp - 0x14]
call fcn.1000d970
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10002640
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
push 0x32
mov dword [ebp - 0x10], esi
call fcn.1000cf47
pop ecx
test eax, eax
je 0x1000265f
xor eax, eax
jmp 0x1000270a
push edi
mov edi, 0x1819
call fcn.1000ec70
mov edi, 0x247c
mov dword [ebp - 8], eax
call fcn.1000ec70
mov dword [ebp - 0xc], eax
cmp dword [ebp - 8], esi
je 0x10002706
cmp eax, esi
je 0x10002706
lea eax, [ebp - 4]
push eax
push 2
push esi
push dword [ebp - 8]
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100026be
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push esi
push dword [ebp - 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [0x10028b0c]
lea eax, [ebp - 8]
call fcn.1000edb0
lea eax, [ebp - 0xc]
call fcn.1000edb0
push 0x1001cb88
push 0x32
call fcn.1000cf30
push 0x10028c64
push esi
call fcn.1000d144
add esp, 0x10
mov edi, 0x541
call fcn.1000ec70
mov dword [ebp - 0xc], eax
cmp eax, esi
je 0x10002706
call fcn.1000f1ed
lea eax, [ebp - 0xc]
call fcn.1000edb0
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x10003510
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push edi
push 0x10028c64
push str..pipe_ssp
lea eax, [ebp - 0x10c]
push 0x100
push eax
call fcn.1000d766
mov edi, 0x80000
push edi
call fcn.1000d95a
xor ebx, ebx
add esp, 0x14
mov dword [0x10027acc], eax
cmp eax, ebx
jne 0x10003554
push 0xfffffffffffffff5
pop eax
jmp 0x100035c1
push esi
lea esi, [ebp - 0xc]
call fcn.10010f4c
pop esi
test eax, eax
jns 0x10003565
mov dword [ebp - 0xc], ebx
xor eax, eax
cmp eax, dword [ebp - 0xc]
lea ecx, [ebp - 0xc]
sbb eax, eax
and eax, ecx
push eax
push ebx
push edi
push edi
push 0xff
push 6
push 0x80003
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov dword [0x1002a8ac], eax
cmp eax, 0xffffffff
jne 0x100035a2
mov dword [0x1002a8ac], ebx
push 0xfffffffffffffffe
jmp 0x10003551
call fcn.10010d6e
push ebx
push ebx
push ebx
push 0x100035c5
call fcn.100051e0
add esp, 0x10
neg eax
sbb eax, eax
and eax, 4
add eax, 0xfffffffd
pop edi
pop ebx
leave
ret

Function at 0x10003e74
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
shl eax, 4
mov ecx, dword [0x1002a8a8]
push dword [ecx + eax]
push str.p_08x
push 0x20
lea eax, [ebp - 0x20]
push eax
call fcn.1000d766
add esp, 0x10
xor eax, eax
je 0x10003ea2
jmp 0x10003e9c
lea eax, [ebp - 0x20]
push eax
call fcn.10011b20
pop ecx
test eax, eax
je 0x10003f40
push 0x2710
mov eax, dword [ebp + 8]
shl eax, 4
mov ecx, dword [0x1002a8a8]
push dword [ecx + eax + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x10003ee0
xor eax, eax
je 0x10003ede
jmp 0x10003ed8
jmp 0x10003f27
cmp dword [ebp - 0x24], 0x102
jne 0x10003f09
xor eax, eax
je 0x10003eef
jmp 0x10003ee9
push 1
mov eax, dword [ebp + 8]
shl eax, 4
mov ecx, dword [0x1002a8a8]
push dword [ecx + eax + 8]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x10003f27
xor eax, eax
je 0x10003f0f
jmp 0x10003f09
push 1
mov eax, dword [ebp + 8]
shl eax, 4
mov ecx, dword [0x1002a8a8]
push dword [ecx + eax + 8]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [ebp + 8]
shl eax, 4
mov ecx, dword [0x1002a8a8]
and dword [ecx + eax + 4], 0
xor eax, eax
je 0x10003f3e
jmp 0x10003f38
jmp 0x10003f46
xor eax, eax
je 0x10003f46
jmp 0x10003f40
xor eax, eax
leave
ret
Function at 0x100051e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push 0x7530
push dword [0x100289d0]
xor ebx, ebx
call fcn.1000bf6f
pop ecx
pop ecx
test eax, eax
jns 0x10005204
xor eax, eax
jmp 0x10005362
push edi
mov dword [ebp - 4], ebx
xor edi, edi
mov eax, dword [0x10027af8]
mov eax, dword [edi + eax]
cmp eax, ebx
je 0x1000522f
push eax
call fcn.10005121
pop ecx
test eax, eax
jne 0x10005239
mov eax, dword [0x10027af8]
push ebx
add eax, edi
call fcn.1000513b
pop ecx
mov eax, dword [0x10027af8]
cmp dword [edi + eax], ebx
je 0x1000524c
inc dword [ebp - 4]
add edi, 0x20
cmp edi, 0x1000
jb 0x1000520a
jmp 0x10005353
mov edi, dword [ebp - 4]
shl edi, 5
push esi
cmp dword [ebp + 0xc], ebx
je 0x10005295
mov esi, dword [ebp + 0x10]
push esi
call fcn.1000d95a
pop ecx
mov ecx, dword [0x10027af8]
mov dword [edi + ecx + 0xc], eax
mov eax, dword [0x10027af8]
cmp dword [eax + edi + 0xc], ebx
je 0x10005352
mov dword [eax + edi + 0x10], esi
mov eax, dword [0x10027af8]
push esi
push dword [edi + eax + 0xc]
mov eax, dword [ebp + 0xc]
call fcn.1000da17
pop ecx
pop ecx
jmp 0x100052a2
mov dword [edi + eax + 0x10], ebx
mov eax, dword [0x10027af8]
mov dword [edi + eax + 0xc], ebx
mov eax, dword [0x10027af8]
mov ecx, dword [ebp + 0x14]
mov dword [edi + eax + 0x14], ecx
mov eax, dword [0x10027af8]
mov ecx, dword [ebp + 8]
push 1
push ebx
mov dword [edi + eax + 8], ecx
call fcn.1000bf2e
pop ecx
pop ecx
mov ecx, dword [0x10027af8]
mov dword [edi + ecx + 0x1c], eax
mov eax, dword [0x10027af8]
add eax, edi
lea ecx, [eax + 4]
push ecx
push ebx
push eax
push 0x10005198
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [0x10027af8]
mov dword [edi + ecx], eax
mov eax, dword [0x10027af8]
mov ecx, dword [eax + edi]
cmp ecx, ebx
jne 0x1000532c
push dword [eax + edi + 0x1c]
call dword [0x10028a84]
mov eax, dword [0x10027af8]
lea esi, [eax + edi + 0xc]
cmp dword [esi], ebx
je 0x1000531d
mov eax, dword [eax + edi + 0x10]
call fcn.1000d970
add edi, dword [0x10027af8]
push 8
pop ecx
xor eax, eax
rep stosd dword es:[edi], eax
jmp 0x10005352
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x10027af8]
push dword [edi + eax + 0x1c]
inc dword [0x10027af4]
call fcn.1000bf93
mov eax, dword [0x10027af8]
pop ecx
lea ebx, [edi + eax]
pop esi
push dword [0x100289d0]
call fcn.1000bf93
pop ecx
mov eax, ebx
pop edi
pop ebx
leave
ret

Function at 0x10005365
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, eax
cmp esi, 0x7f
ja 0x100053af
mov eax, dword [0x10027af8]
shl esi, 5
mov eax, dword [esi + eax]
test eax, eax
jne 0x10005381
push 0xfffffffffffffffe
pop eax
pop esi
ret
push eax
call fcn.10005121
pop ecx
test eax, eax
je 0x1000539c
mov eax, dword [0x10027af8]
push 0
push dword [esi + eax]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [0x10027af8]
push 1
add eax, esi
call fcn.1000513b
pop ecx
xor eax, eax
pop esi
ret
or eax, 0xffffffff
pop esi
ret
Function at 0x1000561b
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa64
push ebx
xor ebx, ebx
cmp dword [ebp + 8], 1
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
je 0x10005644
cmp dword [ebp + 8], 2
je 0x10005644
or eax, 0xffffffff
jmp 0x100057db
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
call fcn.1000f760
pop ecx
pop ecx
mov dword [ebp - 0x18], eax
cmp eax, ebx
jne 0x10005661
push 0xfffffffffffffffe
pop eax
jmp 0x100057db
push esi
push edi
mov esi, 0x10028c64
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
xor eax, eax
call fcn.10010643
mov ecx, eax
add ecx, dword [ebp + 8]
lea eax, [ebp - 0xa64]
call fcn.1000d5ad
push eax
push 0xc
push 0xa
push 2
lea edi, [ebp - 0xa0]
call fcn.1000c5b0
push 0x2e
pop ecx
push ebx
push 0x1001cd68
push 0x10028fe8
mov word [ebp + eax*2 - 0xa8], cx
call fcn.1000c8b6
mov dword [ebp - 0xc], eax
push ebx
mov eax, edi
push eax
mov ebx, 0x1001cba0
push ebx
push dword [ebp - 0xc]
call fcn.1000c8b6
add esp, 0x34
push 0
push dword [ebp - 0xc]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
call fcn.10012c8c
pop ecx
mov dword [ebp - 0x1c], eax
test eax, eax
jg 0x100056fe
mov dword [ebp - 4], 0xfffffffd
jmp 0x100057a4
push 2
push esi
push 2
push dword [ebp - 8]
call fcn.1000e49a
mov edi, eax
add esp, 0x10
mov dword [ebp + 8], edi
test edi, edi
jne 0x10005723
mov dword [ebp - 4], 0xfffffffc
jmp 0x100057a4
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
call fcn.1000e6ec
pop ecx
pop ecx
test eax, eax
jns 0x1000573d
mov dword [ebp - 4], 0xfffffffb
jmp 0x10005796
lea edi, [ebp + 8]
call fcn.1000e79e
push 0
lea eax, [ebp - 0xa0]
push eax
push ebx
push 0x10028fe8
call fcn.1000c8b6
push dword [ebp - 8]
mov edi, eax
mov dword [ebp - 0x20], edi
call fcn.1000f435
add esp, 0x14
test eax, eax
jns 0x10005774
mov dword [ebp - 4], 0xfffffff9
push 0xfffffffffffffffe
pop eax
lea esi, [ebp - 0x20]
call fcn.1000d970
cmp dword [ebp - 4], 0
jne 0x10005794
push 0x2deb8b96
call fcn.1000492c
cmp dword [ebp - 4], 0
pop ecx
jge 0x100057a4
cmp dword [ebp + 8], 0
je 0x100057a4
lea edi, [ebp + 8]
call fcn.1000e79e
mov eax, dword [ebp - 0x14]
lea esi, [ebp - 0x18]
call fcn.1000d970
mov eax, dword [ebp - 0x1c]
test eax, eax
jg 0x100057b8
xor eax, eax
lea esi, [ebp - 0x10]
call fcn.1000d970
push 0xfffffffffffffffe
pop eax
lea esi, [ebp - 0xc]
call fcn.1000d970
push 0xfffffffffffffffe
pop eax
lea esi, [ebp - 8]
call fcn.1000d970
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100057de
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
push ebx
push esi
push edi
xor ebx, ebx
push 0x31
inc ebx
call fcn.1000cf47
pop ecx
test eax, eax
je 0x100058e7
push 0
call fcn.1001102c
push eax
push 0x1001cd70
push 0x10028fe8
call fcn.1000c8b6
mov edi, eax
add esp, 0x10
mov dword [esp + 0xc], edi
test edi, edi
je 0x100058e7
push 0x1388
push 0x1002a654
call fcn.1000bf2e
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x100058db
push edi
call fcn.1000f57c
pop ecx
test eax, eax
jne 0x10005857
push edi
call fcn.100118f8
pop ecx
mov ebx, eax
push esi
call fcn.1000bf93
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jle 0x100058db
lea esi, [esp + 0x10]
call fcn.1000d90c
push 0x33
call fcn.1000cf47
pop ecx
test eax, eax
jne 0x100058c4
push 0x12
call fcn.1000cf47
pop ecx
test eax, eax
jne 0x10005893
call fcn.1000dcca
test eax, eax
je 0x100058c4
xor esi, esi
call fcn.1000d90c
push eax
push edi
push str._s._u
lea eax, [esp + 0x24]
push 0x104
push eax
call fcn.1000d7a6
add esp, 0x14
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x10005828
push edi
call fcn.10001882
pop ecx
test eax, eax
js 0x100058db
mov eax, edi
call fcn.1000f4cd
jmp 0x10005828
push 0xfffffffffffffffe
pop eax
lea esi, [esp + 0xc]
call fcn.1000d970
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10005eac
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
and dword [ebp - 8], 0
push ebx
push esi
push edi
push 0x10029424
push 0xa
push 6
push 2
lea edi, [ebp - 0x2c]
mov ebx, eax
call fcn.1000c5b0
push 0
push dword [ebp + 0x10]
mov esi, 0x1001cba0
push esi
push dword [ebp + 0xc]
push 0x1001cd84
call fcn.1000c8b6
mov edi, eax
add esp, 0x24
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x10005efa
push 0xa
pop ebx
jmp 0x10005f8c
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push edi
call fcn.10005c86
add esp, 0xc
test eax, eax
je 0x10005f11
push 2
jmp 0x10005ef4
push 0
push 0x1001cdb0
push str..2_
lea eax, [ebp - 0x2c]
push eax
push esi
push edi
call fcn.1000c8b6
mov esi, eax
push esi
push dword [ebx + 0x628]
mov dword [ebp - 8], esi
call fcn.10012abc
add esp, 0x20
test eax, eax
jns 0x10005f44
push 3
jmp 0x10005ef4
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call fcn.1000f57c
pop ecx
test eax, eax
je 0x10005f40
push esi
push ebx
call dword [ebx + 0x624]
lea eax, [ebp - 0x2c]
push eax
push dword [ebx + 0x62c]
push esi
push dword [ebp + 8]
call fcn.10005dfc
add esp, 0x18
test eax, eax
jne 0x10005f8a
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 5
jmp 0x10005ef4
xor ebx, ebx
push 1
push 0
push edi
call dword [0x10027b1c]
push 0xfffffffffffffffe
pop eax
lea esi, [ebp - 0xc]
call fcn.1000d970
push 0xfffffffffffffffe
pop eax
lea esi, [ebp - 8]
call fcn.1000d970
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x100064e0
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
and dword [esp + 4], 0
push ebx
push esi
push edi
push 0xa
pop ecx
xor eax, eax
push 0x50
lea edi, [esp + 0x1c]
push eax
rep stosd dword es:[edi], eax
lea eax, [esp + 0x48]
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x630]
add esp, 0xc
xor esi, esi
mov dword [esp + 0x14], esi
lea edi, [esp + 0x40]
test ebx, ebx
je 0x1000657f
cmp dword [esp + esi*4 + 0x18], 0
jne 0x10006576
mov eax, dword [ebp + 8]
push 1
push dword [ebx + 4]
call dword [eax + 0x620]
pop ecx
pop ecx
test eax, eax
je 0x10006545
mov ebx, dword [ebx]
jmp 0x1000657a
mov eax, dword [ebp + 8]
mov dword [edi], eax
lea eax, [esp + 0x14]
push eax
xor eax, eax
push eax
push edi
push 0x100062af
push eax
push eax
mov dword [esp + esi*8 + 0x5c], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x10006639
inc dword [esp + 0x10]
mov dword [esp + esi*4 + 0x18], eax
mov ebx, dword [ebx]
inc esi
add edi, 8
cmp esi, 0xa
jb 0x10006522
mov esi, dword [esp + 0x10]
test esi, esi
je 0x10006635
push 0x112a880
push 0
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, esi
jb 0x100065b3
cmp eax, 0x80
jb 0x100065c8
lea ecx, [esi + 0x80]
cmp eax, ecx
jae 0x100065c8
lea esi, [esp + 0x40]
lea edx, [esp + 0x18]
mov ecx, eax
call fcn.100064ad
dec dword [esp + 0x10]
jmp 0x10006623
cmp eax, 0x102
jne 0x10006639
xor edi, edi
test esi, esi
je 0x10006623
push 1
push dword [esp + edi*4 + 0x1c]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + edi*8 + 0x44]
push 4
push 0
push 0
push dword [eax + 4]
push esi
call dword [esi + 0x61c]
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea esi, [esp + 0x40]
lea edx, [esp + 0x18]
mov ecx, edi
call fcn.100064ad
dec dword [esp + 0x10]
inc edi
cmp edi, dword [esp + 0x10]
jb 0x100065d5
test ebx, ebx
jne 0x10006518
cmp dword [esp + 0x10], ebx
ja 0x10006518
xor eax, eax
jmp 0x1000663c
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10006643
Capabilities:
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
xor eax, eax
xor esi, esi
mov dword [ebp - 0x1c], esi
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [0x10027890]
mov dword [ebp - 4], esi
cmp dword [eax], esi
jne 0x1000667b
push 0x10027890
call fcn.1000ea34
pop ecx
test eax, eax
jns 0x1000667b
xor eax, eax
jmp 0x10006796
push 0x650
call fcn.1000d95a
mov edi, eax
pop ecx
mov dword [ebp - 8], edi
cmp edi, esi
je 0x10006674
mov dword [edi + 0x618], 0x10003354
push ebx
push dword [ebp + 8]
mov dword [edi + 0x61c], 0x100031c7
mov dword [edi + 0x620], 0x100030c0
mov dword [edi + 0x624], 0x10002ff9
lea esi, [edi + 0x628]
call fcn.1000c790
pop ecx
mov ebx, 0x1001cbdc
push ebx
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x100066e8
push ebx
call fcn.1000c790
pop ecx
mov dword [edi + 0x62c], eax
jmp 0x100066ef
and dword [edi + 0x62c], 0
cmp dword [esi], 0
jne 0x1000670c
xor eax, eax
call fcn.1000d970
xor eax, eax
lea esi, [ebp - 8]
call fcn.1000d970
xor eax, eax
jmp 0x10006795
lea eax, [ebp - 4]
push eax
lea ebx, [edi + 0x18]
mov esi, 0x200
push ebx
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea eax, [ebp - 4]
push eax
lea eax, [edi + 0x218]
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test ebx, ebx
je 0x1000678c
lea eax, [ebp - 0x1c]
push eax
push 0x64
push ebx
call dword [0x10027b14]
test eax, eax
jne 0x10006783
cmp dword [ebp - 0x14], eax
je 0x10006783
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
call esi
mov ecx, eax
add ecx, ecx
mov eax, 0x1fe
cmp ecx, eax
ja 0x1000676f
push dword [ebp - 0x14]
call esi
add eax, eax
push eax
lea eax, [edi + 0x418]
push eax
mov eax, dword [ebp - 0x14]
call fcn.1000da17
pop ecx
pop ecx
jmp 0x1000678c
xor eax, eax
mov word [edi + 0x418], ax
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, edi
pop ebx
pop edi
pop esi
leave
ret
Function at 0x10007c7d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
mov ebx, 0x113
push ebx
call fcn.1000d95a
mov esi, eax
pop ecx
test esi, esi
je 0x10007cb9
mov edi, 0x100276e8
xor edx, edx
sub edi, esi
mov eax, edx
and eax, 0xf
mov al, byte [eax + str._vqKepZ]
lea ecx, [edx + esi]
xor al, byte [edi + ecx]
inc edx
mov byte [ecx], al
cmp edx, ebx
jb 0x10007ca1
mov dword [ebp - 0xc], esi
test esi, esi
jne 0x10007cc8
push 0xfffffffffffffffe
pop eax
jmp 0x10007d5a
push 0x8c
mov dword [ebp - 4], esi
call fcn.1000d95a
mov esi, eax
pop ecx
mov dword [ebp - 8], esi
test esi, esi
jne 0x10007ce4
push 0xfffffffffffffffd
pop edi
jmp 0x10007d4e
lea eax, [ebp - 4]
push eax
call fcn.10007efc
pop ecx
test eax, eax
jns 0x10007cf7
push 0xfffffffffffffffc
pop edi
jmp 0x10007d41
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20]
push eax
mov eax, esi
call fcn.100080d8
pop ecx
test eax, eax
jns 0x10007d18
push 0xfffffffffffffffb
jmp 0x10007cf4
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
lea ebx, [ebp - 0x34]
call fcn.1001311c
xor eax, eax
push 5
mov esi, ebx
pop ecx
lea edi, [ebp - 0x20]
repe cmpsd dword [esi], dword es:[edi]
sete al
mov ebx, 0x113
lea edi, [eax - 1]
and edi, 0xfffffff9
inc edi
mov eax, 0x8c
lea esi, [ebp - 8]
call fcn.1000d970
mov eax, ebx
lea esi, [ebp - 0xc]
call fcn.1000d970
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000812c
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, eax
sub ecx, edi
push 0x14
mov dword [ebp - 4], ecx
pop esi
mov dl, byte [ecx + eax]
xor dl, 0x36
mov byte [eax], dl
inc eax
dec esi
jne 0x1000813d
push 0x2c
lea ebx, [edi + 0x14]
push 0x36
push ebx
call sub.msvcrt.dll_memset
lea esi, [edi + 0x80]
mov eax, esi
call fcn.1000b1af
push edi
push 0x40
pop eax
call fcn.1000b1dd
add esp, 0x10
push 0x14
pop eax
mov ecx, dword [ebp - 4]
mov cl, byte [edi + ecx]
xor cl, 0x5c
mov byte [edi], cl
inc edi
dec eax
jne 0x10008172
push 0x2c
push 0x5c
push ebx
call sub.msvcrt.dll_memset
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret