joyce8/EMBER2024-capa huggingface dataset:
Function at 0x426a76
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
movsx edx, byte [ebp + 0xc]
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x44eee8]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x44eee8]
pop esi
mov dword [ecx + 8], eax
pop ebp
ret

Function at 0x426f1e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x426f52
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x426f4d
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x426f7a
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x426f63
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x14]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.0042b3e0
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret

Function at 0x427da7
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x45c2c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test ebx, ebx
je 0x427ddb
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x427ddb
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx ecx, word [esi]
test cx, cx
je 0x427e85
mov eax, esi
mov edx, esi
cmp cx, 0x2f
je 0x427df7
cmp cx, 0x5c
jne 0x427df9
mov eax, edx
add edx, 2
movzx ecx, word [edx]
test cx, cx
jne 0x427deb
cmp eax, esi
je 0x427e39
sub eax, esi
push edi
sar eax, 1
lea edi, [eax + eax]
push edi
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.0042b3e0
xor eax, eax
mov word [ebp + edi - 0x414], ax
lea eax, [ebp - 0x414]
push eax
push ebx
call fcn.00427da7
add esp, 0x14
pop edi
xor eax, eax
mov word [ebp - 0x20c], ax
test ebx, ebx
je 0x427e55
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0042c28d
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0042c25c
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x427e85
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042bdb8
leave
ret
Function at 0x429402
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4294ad
cmp dword [esi + 4], 0xffffffff
jne 0x4294ad
push edi
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push edi
call fcn.0042c241
movzx eax, word [esi + eax*2 + 0x242]
pop ecx
cmp eax, 0x5c
je 0x429454
cmp eax, 0x2f
je 0x429454
push 0x452af4
push edi
call fcn.0042c25c
pop ecx
pop ecx
cmp dword [ebp + 0x10], 1
pop edi
jne 0x429476
push 1
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x429476
mov eax, 0x2000000
jmp 0x4294b2
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00426d43
add esp, 0x10
test eax, eax
jne 0x429494
mov eax, dword [ebp + 0x10]
jmp 0x4294b2
push eax
call fcn.00428ed7
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
pop ecx
add eax, 0x200
jmp 0x4294b2
mov eax, 0x1000000
pop esi
pop ebp
ret 0xc
Function at 0x429a63
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push dword [ebp + 8]
mov ebx, ecx
call fcn.004299f9
test eax, eax
je 0x429b0b
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebx + 0x1c]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x429b03
push esi
push edi
push dword [ebx + 0x1c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push dword [ebx + 0x1c]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x429b02
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 8], eax
test eax, eax
je 0x429b02
mov eax, dword [ebp + 0x18]
cmp esi, eax
jbe 0x429b02
mov edi, dword [ebp + 0x1c]
test edi, edi
jne 0x429acd
mov edi, esi
lea ecx, [eax + edi]
cmp ecx, esi
jbe 0x429ad8
sub esi, eax
mov edi, esi
mov esi, dword [ebp + 0xc]
push edi
mov ecx, esi
call fcn.0040d8e0
mov eax, dword [esi]
cmp eax, dword [esi + 4]
je 0x429afb
mov ecx, dword [ebp + 8]
add ecx, dword [ebp + 0x18]
push edi
push ecx
push eax
call fcn.0042b3e0
add esp, 0xc
mov dword [ebp - 4], 1
pop esi
mov ecx, ebx
call fcn.004299b7
pop edi
mov eax, dword [ebp - 4]
pop ebx
leave
ret 0x18
Function at 0x42a18a
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
movsx edx, byte [ebp + 0xc]
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x44f720]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x44f720]
pop esi
mov dword [ecx + 8], eax
pop ebp
ret

Function at 0x42a256
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
cmp byte [esi + 0x2d], 0
push edi
mov edi, dword [ebp + 0xc]
je 0x42a2cb
mov eax, dword [esi + 0x3c]
xor ebx, ebx
cmp eax, ebx
je 0x42a282
cmp dword [esi + 0x40], edi
jae 0x42a282
push eax
call fcn.0042c5bd
pop ecx
mov dword [esi + 0x3c], ebx
cmp dword [esi + 0x3c], ebx
jne 0x42a297
lea eax, [edi + edi]
push eax
call fcn.0042b321
pop ecx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
push edi
push dword [ebp + 8]
push dword [esi + 0x3c]
call fcn.0042b3e0
add esp, 0xc
test edi, edi
je 0x42a2c8
mov eax, dword [esi + 0x3c]
movzx eax, byte [ebx + eax]
push eax
lea eax, [esi + 0x30]
push eax
call fcn.0042a1f7
pop ecx
pop ecx
mov ecx, dword [esi + 0x3c]
mov byte [ebx + ecx], al
inc ebx
cmp ebx, edi
jb 0x42a2aa
mov edx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x42a2fa
mov eax, dword [esi + 0x24]
lea ebx, [eax + edi]
cmp ebx, dword [esi + 0x28]
jb 0x42a2e6
mov dword [esi + 0x14], 0x30000
jmp 0x42a31c
push edi
push edx
add eax, ecx
push eax
call fcn.0042b3e0
add esp, 0xc
add dword [esi + 0x24], edi
mov eax, edi
jmp 0x42a31e
mov eax, dword [esi + 4]
test eax, eax
je 0x42a315
push 0
lea ecx, [ebp + 8]
push ecx
push edi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 8]
jmp 0x42a31e
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x42a4b9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x45c2c0]
xor eax, ebp
mov dword [ebp - 4], eax
inc dword [0x45ea70]
push esi
push dword [0x45ea70]
mov esi, dword [ebp + 8]
push ecx
lea eax, [ebp - 0x204]
push str._ld_ld
push eax
call fcn.0042d2ab
add esp, 0x10
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x204]
push eax
push esi
call fcn.0042c25c
push 0x44fb24
push esi
call fcn.0042c25c
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
pop esi
call fcn.0042bdb8
leave
ret 4
Function at 0x42a575
Capabilities:
Check if file exists
Delete file
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x45c2c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
and dword [ebp - 0x214], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x21c], eax
test ebx, ebx
je 0x42a67f
cmp dword [ebp + 0xc], 0
je 0x42a67f
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc eax
neg eax
sbb eax, eax
inc eax
jne 0x42a5d9
push esi
call edi
test eax, eax
je 0x42a67e
mov ecx, dword [ebp - 0x218]
lea eax, [ebp - 0x20c]
push eax
call fcn.0042a4b9
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
inc eax
neg eax
sbb eax, eax
inc eax
jne 0x42a60d
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
je 0x42a663
lea eax, [ebp - 0x20c]
push 0x454b38
push eax
call fcn.0042cd4d
pop ecx
pop ecx
mov dword [ebp - 0x210], eax
test eax, eax
je 0x42a663
push eax
push dword [ebp + 0xc]
push 1
push ebx
call fcn.0042cc15
push dword [ebp - 0x210]
call fcn.0042ca4a
mov ecx, dword [ebp - 0x218]
add esp, 0x14
push dword [ebp - 0x21c]
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0042a527
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42a67e
lea eax, [ebp - 0x20c]
push eax
call edi
pop edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x214]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042bdb8
leave
ret 0x10

Function at 0x42bdb8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45c2c0]
jne 0x42bdc2
repz ret
jmp fcn.0043387c
Function at 0x441ccd
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x45c2c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00433327
and dword [ebp - 0x14], 0
cmp dword [0x45fa00], 0
mov dword [ebp - 0x18], eax
jne 0x441d80
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x441e28
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4529ec
push ebx
call edi
test eax, eax
je 0x441e28
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x45fa00], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x45fa04], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x45fa08], eax
call edi
push eax
call esi
mov dword [0x45fa10], eax
test eax, eax
je 0x441d80
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x45fa0c], eax
mov eax, dword [0x45fa0c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x441dd9
cmp dword [0x45fa10], ecx
je 0x441dd9
push eax
call esi
push dword [0x45fa10]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x441dd9
test ebx, ebx
je 0x441dd9
call edi
test eax, eax
je 0x441dd0
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x441dd0
test byte [ebp - 8], 1
jne 0x441dd9
or dword [ebp + 0x10], 0x200000
jmp 0x441e0c
mov eax, dword [0x45fa04]
cmp eax, dword [ebp - 0x18]
je 0x441e0c
push eax
call esi
test eax, eax
je 0x441e0c
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x441e0c
mov eax, dword [0x45fa08]
cmp eax, dword [ebp - 0x18]
je 0x441e0c
push eax
call esi
test eax, eax
je 0x441e0c
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x45fa00]
call esi
test eax, eax
je 0x441e28
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x441e2a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042bdb8
leave
ret
Function at 0x100010af
Capabilities:
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor ebx, ebx
mov byte [ebp - 1], bl
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], ebx
cmp dword [ebp + 8], ebx
jne 0x100010cd
xor eax, eax
jmp 0x10001183
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
push dword [0x1000c544]
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x10001180
push edi
mov edi, 0x1000a518
push esi
cmp dword [ebp - 8], ebx
jbe 0x10001141
xor esi, esi
cmp dword [ebp - 8], ebx
jbe 0x1000113c
push ebx
lea eax, [ebp - 0x10]
push eax
push 0x1000
push edi
push dword [0x1000c544]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10001138
cmp dword [ebp - 0x10], ebx
je 0x1000113c
push dword [ebp - 0x10]
push edi
push dword [ebp + 8]
call fcn.10001eb3
add esi, dword [ebp - 0x10]
add esp, 0xc
cmp esi, dword [ebp - 8]
jb 0x100010ff
jmp 0x1000113c
mov byte [ebp - 1], 1
add dword [ebp - 0xc], esi
jmp 0x1000114f
cmp dword [ebp - 0xc], ebx
ja 0x1000117e
cmp dword [ebp - 0x14], 0xa
ja 0x1000117e
inc dword [ebp - 0x14]
cmp byte [ebp - 1], bl
jne 0x1000117e
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
push dword [0x1000c544]
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
jne 0x100010f3
pop esi
pop edi
mov eax, dword [ebp - 0xc]
pop ebx
leave
ret
Function at 0x100015cd
Capabilities:
Create pipe
Create two anonymous pipes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push ebx
xor ebx, ebx
push 0x44
lea eax, [ebp - 0x74]
push ebx
push eax
mov byte [ebp - 1], bl
mov dword [ebp - 0x78], ebx
call sub.msvcrt.dll_memset
add esp, 0xc
cmp dword [ebp + 8], ebx
jne 0x100015f7
xor al, al
jmp 0x10001738
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreatePipe]
push edi
xor eax, eax
mov dword [ebp - 0x30], ebx
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push ebx
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xc]
push eax
xor edi, edi
lea eax, [ebp - 0x14]
inc edi
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x20], 0xc
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], edi
call esi
test eax, eax
je 0x10001705
push ebx
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
call esi
test eax, eax
je 0x10001705
or dword [ebp - 0x4c], edi
mov esi, dword [sym.imp.KERNEL32.dll_SetHandleInformation]
or dword [ebp - 0x4c], 0x100
xor eax, eax
mov word [ebp - 0x48], ax
mov eax, dword [ebp - 0x14]
push ebx
push edi
push dword [ebp - 0xc]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x78], 0x44
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
call esi
test eax, eax
je 0x10001705
push ebx
push edi
push dword [ebp - 8]
call esi
test eax, eax
je 0x10001705
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x1000c008
push ebx
push 0x10
push edi
push ebx
push ebx
push dword [ebp + 8]
push ebx
call dword [0x1000c98c]
test eax, eax
je 0x10001705
push dword [ebp - 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov eax, dword [ebp - 0x30]
mov dword [0x1000c53c], eax
mov eax, dword [ebp - 0x28]
mov dword [0x1000c540], eax
mov eax, dword [ebp - 0xc]
mov dword [0x1000c548], eax
mov eax, dword [ebp - 8]
push 0x3e8
mov dword [0x1000c544], eax
mov dword [0x1000c55c], edi
mov dword [0x1000c560], edi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [ebp - 1], 1
jmp 0x1000170b
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], ebx
je 0x10001715
push dword [ebp - 0x10]
call esi
cmp dword [ebp - 8], ebx
je 0x1000171f
push dword [ebp - 8]
call esi
cmp dword [ebp - 0xc], ebx
je 0x10001729
push dword [ebp - 0xc]
call esi
cmp dword [ebp - 0x14], ebx
je 0x10001733
push dword [ebp - 0x14]
call esi
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10001d55
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor ebx, ebx
mov byte [ebp - 1], bl
mov dword [ebp - 8], ebx
cmp dword [ebp + 0x10], ebx
jne 0x10001d70
xor al, al
jmp 0x10001e21
push esi
push edi
push 2
pop edi
add edi, 0x200
lea eax, [edi - 2]
push edi
mov dword [ebp - 0xc], eax
call dword [sym.imp.msvcrt.dll_malloc]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.10001d2d
mov esi, dword [ebp - 8]
add esp, 0xc
cmp esi, ebx
je 0x10001e1c
push 1
call fcn.10001d3c
push edi
push ebx
push esi
call sub.msvcrt.dll_memset
add esp, 0x10
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
je 0x10001df1
push ebx
call fcn.10001d3c
push esi
cmp eax, 0xea
jne 0x10001e14
call dword [sym.imp.msvcrt.dll_free]
pop ecx
pop ecx
mov dword [ebp - 8], ebx
cmp edi, 0xc802
jb 0x10001d75
jmp 0x10001e1c
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
mov eax, dword [ebp + 0x18]
cmp eax, ebx
je 0x10001e02
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov eax, dword [ebp + 0x14]
cmp eax, ebx
je 0x10001e0e
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov byte [ebp - 1], 1
jmp 0x10001e1c
call dword [sym.imp.msvcrt.dll_free]
pop ecx
pop ecx
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10002660
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x10009de0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
push 0x1fe
mov word [ebp - 0x204], ax
xor edi, edi
lea eax, [ebp - 0x202]
push edi
push eax
call sub.msvcrt.dll_memset
mov cx, word [0x10009810]
add esp, 0xc
mov edx, 0x10009810
cmp cx, di
jge 0x100026b3
mov eax, edx
neg word [eax]
add eax, 2
cmp word [eax], di
jne 0x100026a8
push 0xff
push edx
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy]
lea eax, [ebp - 0x204]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
mov esi, eax
add esp, 0x14
cmp esi, edi
je 0x1000273a
xor eax, eax
mov word [esi], ax
add esi, 2
mov eax, 0x10000
mov ecx, 0x80000001
cmp dword [0x1000b8e4], edi
je 0x100026f9
inc ecx
cmp dword [0x1000b8d8], edi
je 0x10002706
mov eax, 0x10100
lea edx, [ebp - 0x208]
push edx
push eax
push edi
lea eax, [ebp - 0x204]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000273a
push esi
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10007260
leave
ret
Function at 0x10002748
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10009de0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x10002767
xor al, al
jmp 0x100027b2
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.msvcrt.dll_memset
push esi
push 0x10008270
lea eax, [ebp - 0x20c]
push 0x103
push eax
call dword [sym.imp.msvcrt.dll__snwprintf]
add esp, 0x1c
push 1
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10007260
leave
ret

Function at 0x100028eb
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
push 0
push 0
push dword [ebp + 8]
push 0x100028d3
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
je 0x1000291b
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebp
ret
Function at 0x10003a65
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x10003a72
xor al, al
pop ebp
ret
cmp dword [0x1000c9fc], 0
jne 0x10003a6e
push dword [ebp + 8]
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x1000c9fc], eax
test eax, eax
je 0x10003a6e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne al
pop ebp
ret

Function at 0x10003aa1
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
test esi, esi
je 0x10003ade
cmp dword [ebp + 8], 0
je 0x10003ade
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
test eax, eax
je 0x10003ade
xor ecx, ecx
push ecx
push dword [ebp + 0xc]
mov word [esi], cx
push esi
push 0xffffffffffffffff
push dword [ebp + 8]
push eax
call fcn.10007050
add esp, 0x18
test al, al
je 0x10003ade
cmp word [esi], 0
je 0x10003ade
mov al, 1
pop ebp
ret
xor al, al
pop ebp
ret
Function at 0x10005161
Capabilities:
Delete registry value
Encode data using xor
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x18], ebx
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 2
stosd dword es:[edi], eax
mov byte [ebp - 1], bl
pop esi
mov edi, 0x80000001
cmp dword [0x1000b8e4], ebx
je 0x1000518b
inc edi
cmp dword [0x1000b8d8], ebx
je 0x10005198
mov esi, 0x102
mov dx, word [0x10009810]
mov ecx, 0x10009810
cmp dx, bx
jge 0x100051b6
mov eax, ecx
neg word [eax]
add eax, 2
cmp word [eax], bx
jne 0x100051ab
lea eax, [ebp - 8]
push eax
push esi
push ebx
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10005255
mov cx, word [0x100098a0]
mov esi, 0x100098a0
cmp cx, bx
jge 0x100051ea
mov eax, esi
neg word [eax]
add eax, 2
cmp word [eax], bx
jne 0x100051df
cmp byte [ebp + 8], bl
je 0x1000523a
cmp dword [ebp + 0xc], ebx
je 0x1000524c
push dword [ebp + 0xc]
call dword [sym.imp.msvcrt.dll_wcslen]
add eax, eax
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push eax
call fcn.10001eb3
add esp, 0x10
xor ecx, ecx
cmp dword [ebp - 0x14], ebx
jbe 0x10005225
mov eax, dword [ebp - 0x10]
xor byte [eax + ecx], 0xe2
add ecx, 2
cmp ecx, dword [ebp - 0x14]
jb 0x10005216
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push 3
push ebx
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x10005244
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, ebx
jne 0x1000524c
mov byte [ebp - 1], 1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x10], ebx
je 0x1000526b
push ebx
call fcn.10001d3c
push dword [ebp - 0x10]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
pop ecx
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10005273
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor esi, esi
push edi
mov edi, 0x20019
mov dword [ebp - 4], esi
mov ebx, 0x80000001
cmp dword [0x1000b8e4], esi
je 0x10005294
inc ebx
cmp dword [0x1000b8d8], esi
je 0x100052a1
mov edi, 0x20119
mov cx, word [0x10009810]
mov edx, 0x10009810
cmp cx, si
jge 0x100052bf
mov eax, edx
neg word [eax]
add eax, 2
cmp word [eax], si
jne 0x100052b4
lea eax, [ebp - 0xc]
push eax
push edi
push esi
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10005337
mov cx, word [0x100098a0]
mov edx, 0x100098a0
cmp cx, si
jge 0x100052ef
mov eax, edx
neg word [eax]
add eax, 2
cmp word [eax], si
jne 0x100052e4
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 4]
push eax
push edx
push dword [ebp - 0xc]
call fcn.10001d55
add esp, 0x14
test al, al
je 0x1000532e
cmp dword [ebp - 4], esi
je 0x1000532e
test dword [ebp - 8], 0xfffffffe
jbe 0x1000532e
mov eax, dword [ebp - 4]
lea eax, [eax + esi*2]
mov ecx, 0xe2
xor word [eax], cx
mov eax, dword [ebp - 8]
inc esi
shr eax, 1
cmp esi, eax
jb 0x10005316
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret