joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1751a570
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1753a32c]
jne 0x1750d0da
repz ret
jmp 0x1751a570
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x1753c708], eax
mov dword [0x1753c704], ecx
mov dword [0x1753c700], edx
mov dword [0x1753c6fc], ebx
mov dword [0x1753c6f8], esi
mov dword [0x1753c6f4], edi
mov word [0x1753c720], ss
mov word [0x1753c714], cs
mov word [0x1753c6f0], ds
mov word [0x1753c6ec], es
mov word [0x1753c6e8], fs
mov word [0x1753c6e4], gs
pushfd
pop dword [0x1753c718]
mov eax, dword [ebp]
mov dword [0x1753c70c], eax
mov eax, dword [ebp + 4]
mov dword [0x1753c710], eax
lea eax, [ebp + 8]
mov dword [0x1753c71c], eax
mov eax, dword [ebp - 0x320]
mov dword [0x1753c658], 0x10001
mov eax, dword [0x1753c710]
mov dword [0x1753c60c], eax
mov dword [0x1753c600], 0xc0000409
mov dword [0x1753c604], 1
mov ecx, dword [0x1753a32c]
mov dword [ebp - 0x328], ecx
mov edx, dword [0x1753a330]
mov dword [ebp - 0x324], edx
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1753c650], eax
push 1
call fcn.1750e160
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x17533af8
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1753c650], 0
jne 0x1751a668
push 1
call fcn.1750e160
add esp, 4
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov esp, ebp
pop ebp
ret

Function at 0x1751c310
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x1751c330
xor eax, eax
jmp 0x1751c36b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp dword [edx], 0x4550
je 0x1751c34b
xor eax, eax
jmp 0x1751c36b
mov eax, dword [ebp - 0xc]
add eax, 0x18
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
movzx edx, word [ecx]
cmp edx, 0x10b
je 0x1751c366
xor eax, eax
jmp 0x1751c36b
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x1751c370
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0
mov edx, dword [ebp - 4]
movzx eax, word [edx + 0x14]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 0xc], edx
jmp 0x1751c3b0
mov eax, dword [ebp - 8]
sub eax, 0xffffffff
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
add ecx, 0x28
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 4]
movzx eax, word [edx + 6]
cmp dword [ebp - 8], eax
jae 0x1751c3df
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 0xc]
cmp edx, dword [ecx + 0xc]
jb 0x1751c3dd
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 0xc]
add ecx, dword [edx + 8]
cmp dword [ebp + 0xc], ecx
jae 0x1751c3dd
mov eax, dword [ebp - 0xc]
jmp 0x1751c3e1
jmp 0x1751c39e
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x101b83
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push edi
push 0x6d4477
xor ebx, ebx
push 0x800
push ebx
xor edi, edi
mov dword [ebp - 4], ebx
call dword [0x12104c]
cmp eax, ebx
mov dword [ebp - 0x10], eax
jne 0x101bb4
mov eax, 0xc000009a
jmp 0x101d2f
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
push esi
mov ecx, dword [ebp - 4]
mov esi, dword [eax + ecx*4]
lea eax, [ebp - 0x34]
push eax
push 0x10008
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x34], 0x18
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x28], 0x140
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.NTOSKRNL.EXE_ZwOpenKey]
cmp eax, ebx
mov dword [ebp + 8], eax
jl 0x101d2b
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 8]
call dword [sym.imp.NTOSKRNL.EXE_ZwEnumerateKey]
cmp eax, 0xc0000023
mov dword [ebp + 8], eax
jne 0x101c58
cmp edi, ebx
je 0x101c21
push edi
call dword [0x120f98]
mov eax, dword [ebp - 0xc]
push 0x206d4477
add eax, 2
push eax
push ebx
call dword [0x12104c]
mov edi, eax
cmp edi, ebx
je 0x101d24
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
add eax, 2
push eax
push edi
push ebx
push ebx
push dword [ebp - 8]
call dword [sym.imp.NTOSKRNL.EXE_ZwEnumerateKey]
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0x8000001a
jne 0x101c93
push dword [ebp - 8]
call dword [sym.imp.NTOSKRNL.EXE_ZwDeleteKey]
cmp dword [ebp - 4], ebx
mov dword [ebp + 8], eax
jle 0x101c8b
push dword [esi + 4]
call dword [0x120f98]
push esi
call dword [0x120f98]
push dword [ebp - 8]
call dword [0x110564]
dec dword [ebp - 4]
jmp 0x101d17
cmp dword [ebp + 8], ebx
jne 0x101d2b
movzx eax, word [esi]
mov ecx, dword [edi + 0xc]
lea eax, [eax + ecx + 4]
push 0x6d4477
push eax
push ebx
mov dword [ebp - 0x18], eax
call dword [0x12104c]
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x101d24
push 0x206d4477
push 8
push ebx
call dword [0x12104c]
mov esi, eax
cmp esi, ebx
je 0x101d24
mov eax, dword [ebp - 0x14]
push dword [ebp - 0x1c]
mov dword [esi + 4], eax
mov ax, word [ebp - 0x18]
mov word [esi + 2], ax
mov word [esi], bx
mov eax, dword [edi + 0xc]
shr eax, 1
push esi
mov word [edi + eax*2 + 0x10], bx
call dword [sym.imp.NTOSKRNL.EXE_RtlAppendUnicodeStringToString]
push 0x10d244
push esi
call fcn.00102952
lea eax, [edi + 0x10]
push eax
push esi
call fcn.00102952
inc dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov dword [eax + ecx*4], esi
cmp dword [ebp - 4], ebx
jl 0x101d2b
mov eax, dword [ebp - 0x10]
jmp 0x101bba
mov dword [ebp + 8], 0xc000009a
mov eax, dword [ebp + 8]
pop esi
pop edi
pop ebx
leave
ret 4
Function at 0x1022b0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
xor eax, eax
xor ecx, ecx
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
push ebx
xor edx, edx
cmp dword [ebp + 0xc], edx
jne 0x1022ef
cmp ecx, edx
je 0x102322
xor edi, edi
inc edi
cmp ecx, edx
mov dword [ebp - 8], ecx
je 0x10231b
mov ebx, dword [ebp - 4]
movzx edx, dl
shl ebx, 8
add ecx, 8
or ebx, edx
mov dword [ebp - 4], ebx
jmp 0x10231b
cmp edi, edx
jne 0x1022d2
mov edx, dword [ebp + 8]
inc dword [ebp + 8]
mov dl, byte [edx]
dec dword [ebp + 0xc]
jmp 0x1022dc
mov edx, dword [ebp - 4]
sub ecx, 6
shr edx, cl
and edx, 0x3f
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + esi], dl
inc eax
test edi, edi
je 0x10231b
xor ecx, ecx
cmp ecx, 6
jge 0x102300
jmp 0x1022c7
cmp dword [ebp - 8], 2
pop ebx
jne 0x102330
mov byte [eax + esi], 0x3d
inc eax
jmp 0x102336
cmp dword [ebp - 8], 4
jne 0x10233b
mov byte [eax + esi], 0x3d
inc eax
pop edi
mov byte [eax + esi], dl
pop esi
leave
ret 0x10

Function at 0x1027fc
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push esi
xor edx, edx
push edi
xor eax, eax
mov ecx, ebx
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x10280b
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
xor edi, edi
mov ecx, ebx
mov dword [ebp + 0x10], 0x100
mov eax, dword [ebp + 8]
movzx esi, dl
movzx edx, byte [esi + eax]
movzx eax, byte [ecx]
add edx, edi
add eax, edx
cdq
mov edi, 0x100
idiv edi
mov al, byte [ecx]
movzx edi, dl
mov dl, byte [edi + ebx]
mov byte [ecx], dl
mov byte [edi + ebx], al
lea eax, [esi + 1]
cdq
idiv dword [ebp + 0xc]
inc ecx
dec dword [ebp + 0x10]
jne 0x10282c
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x102866
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
xor edx, edx
cmp dword [ebp + 0xc], edx
push esi
mov esi, dword [ebp + 0x10]
mov al, byte [esi + 0x100]
mov cl, byte [esi + 0x101]
mov dword [ebp - 8], edx
jle 0x102901
push ebx
push edi
movzx edi, al
movzx ebx, cl
mov dword [ebp - 0xc], edx
jmp 0x102896
mov ebx, dword [ebp - 0x10]
lea eax, [edi + 1]
cdq
mov ecx, 0x100
idiv ecx
movzx edi, dl
lea ecx, [edi + esi]
movzx eax, byte [ecx]
add eax, ebx
mov byte [ebp + 0x13], dl
cdq
mov ebx, 0x100
idiv ebx
movzx eax, dl
mov dword [ebp - 0x10], eax
add eax, esi
mov bl, byte [eax]
mov byte [ebp - 1], dl
mov dl, byte [ecx]
mov byte [ecx], bl
mov ebx, dword [ebp - 0xc]
mov byte [eax], dl
movzx eax, byte [eax]
movzx ecx, byte [ecx]
mov edx, dword [ebp + 8]
add eax, ecx
add ebx, edx
cdq
mov ecx, 0x100
idiv ecx
movzx eax, dl
mov al, byte [eax + esi]
xor byte [ebx], al
inc dword [ebp - 8]
movsx eax, word [ebp - 8]
cmp eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
jl 0x102893
mov al, byte [ebp + 0x13]
mov cl, byte [ebp - 1]
pop edi
pop ebx
mov byte [esi + 0x100], al
mov byte [esi + 0x101], cl
pop esi
leave
ret 0xc
Function at 0x102b9f
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp + 0xc], 0x20
mov edi, ecx
shr edi, 5
mov ebx, ecx
shl ebx, 4
xor edi, ebx
add edi, ecx
mov ebx, esi
and ebx, 3
mov ebx, dword [edx + ebx*4]
add ebx, esi
xor edi, ebx
add eax, edi
mov edi, eax
shr edi, 5
mov ebx, eax
shl ebx, 4
xor edi, ebx
sub esi, 0x61c88647
mov ebx, esi
shr ebx, 0xb
and ebx, 3
mov ebx, dword [edx + ebx*4]
add edi, eax
add ebx, esi
xor edi, ebx
add ecx, edi
dec dword [ebp + 0xc]
jne 0x102bb9
mov edx, dword [ebp + 0x10]
pop edi
pop esi
mov dword [edx], eax
mov dword [edx + 4], ecx
pop ebx
pop ebp
ret 0xc

Function at 0x102c0e
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, 0xc6ef3720
mov dword [ebp + 0xc], 0x20
mov edi, ecx
shr edi, 5
mov ebx, ecx
shl ebx, 4
xor edi, ebx
mov ebx, esi
shr ebx, 0xb
and ebx, 3
mov ebx, dword [edx + ebx*4]
add ebx, esi
add edi, ecx
xor edi, ebx
sub eax, edi
mov edi, eax
shr edi, 5
mov ebx, eax
shl ebx, 4
xor edi, ebx
add esi, 0x61c88647
mov ebx, esi
and ebx, 3
mov ebx, dword [edx + ebx*4]
add edi, eax
add ebx, esi
xor edi, ebx
sub ecx, edi
dec dword [ebp + 0xc]
jne 0x102c2b
mov edx, dword [ebp + 0x10]
pop edi
pop esi
mov dword [edx], ecx
mov dword [edx + 4], eax
pop ebx
pop ebp
ret 0xc

Function at 0x102c80
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
and dword [ebp - 8], 0
push ebx
push esi
push edi
mov ebx, 0x1105f4
push ebx
mov edi, 0x10d2b8
push edi
mov esi, 0x10d2a8
push esi
call fcn.00102b9f
push dword [ebp + 8]
xor eax, eax
push dword [ebp + 0xc]
push eax
push eax
push eax
push 0x1f03ff
lea eax, [ebp - 4]
push eax
call dword [sym.imp.NTOSKRNL.EXE_PsCreateSystemThread]
push ebx
push edi
push esi
call fcn.00102c0e
xor eax, eax
cmp dword [ebp - 4], eax
je 0x102cf1
push eax
lea ecx, [ebp - 8]
push ecx
push eax
push eax
push 0x1f03ff
push dword [ebp - 4]
call dword [sym.imp.NTOSKRNL.EXE_ObReferenceObjectByHandle]
push dword [ebp - 4]
call dword [sym.imp.NTOSKRNL.EXE_ZwClose]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x10354b
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
lea eax, [ebp - 4]
push eax
push 0
push eax
push 0xb
call esi
cmp eax, 0xc0000004
je 0x10356c
xor eax, eax
jmp 0x1035c4
push edi
push 0x206d4477
push dword [ebp - 4]
push 0
call dword [0x12104c]
mov edi, eax
test edi, edi
je 0x1035c1
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push edi
push 0xb
call esi
test eax, eax
jl 0x1035c1
mov esi, dword [edi]
jmp 0x1035bd
dec esi
mov eax, esi
imul eax, eax, 0x11c
mov dword [ebp - 4], esi
movzx ecx, word [eax + edi + 0x1e]
add ecx, eax
push str.ndis.sys
lea eax, [ecx + edi + 0x20]
push eax
call fcn.00102a1a
test eax, eax
je 0x1035c7
test esi, esi
jne 0x103597
xor eax, eax
pop edi
pop esi
leave
ret
imul esi, esi, 0x11c
lea eax, [esi + edi + 4]
mov ecx, dword [eax + 8]
mov dword [0x1105ec], ecx
mov eax, dword [eax + 0xc]
mov dword [0x1105f0], eax
xor eax, eax
inc eax
jmp 0x1035c3

Function at 0x10409f
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jle 0x1040b2
mov eax, dword [esp + 4]
xor byte [eax], 0x55
inc eax
dec ecx
jne 0x1040ab
ret 8
Function at 0x10584c
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x174
mov eax, dword [0x1105bc]
mov dword [ebp - 0x58], eax
mov eax, dword [0x1105b8]
mov dword [ebp - 0x54], eax
mov eax, dword [0x110118]
mov dword [ebp - 0x50], eax
mov eax, dword [0x11011c]
mov dword [ebp - 0x4c], eax
mov eax, dword [0x1105c4]
push ebx
xor ebx, ebx
mov dword [ebp - 0x48], eax
mov eax, dword [0x110574]
cmp eax, ebx
push esi
mov word [ebp - 0x18], 0x74
mov word [ebp - 0x16], 0x76
mov dword [ebp - 0x14], str.REGISTRYMACHINESYSTEMCurrentControlSetServicesSWFDrv
mov word [ebp - 0x20], 0x12
mov word [ebp - 0x1e], 0x14
mov dword [ebp - 0x1c], str.SwfDriver
mov dword [ebp - 4], ebx
je 0x1058d8
mov dword [ebp - 0x44], eax
mov eax, dword [0x110578]
mov dword [ebp - 0x40], eax
mov eax, dword [0x11057c]
mov dword [ebp - 0x3c], eax
mov eax, dword [0x110580]
mov dword [ebp - 0x38], eax
mov eax, dword [0x110584]
mov dword [ebp - 0x34], eax
jmp 0x1058f0
mov eax, dword [0x110578]
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov eax, dword [0x120f8c]
mov dword [ebp - 0x30], eax
mov eax, dword [0x120f88]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x120ff4]
mov dword [ebp - 0x28], eax
mov eax, dword [0x120ff0]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x174]
push eax
push 6
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 0x10], 0x23
mov byte [ebp - 0xe], 0x26
mov byte [ebp - 0xb], 0x24
mov byte [ebp - 0xd], 0x28
mov byte [ebp - 0xc], 0x40
mov byte [ebp - 0xf], 0x25
mov byte [ebp - 0xa], bl
call fcn.001027fc
lea eax, [ebp - 0x174]
push eax
push 0x38
lea eax, [ebp - 0x58]
push eax
call fcn.00102866
lea eax, [ebp - 0x18]
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x70]
push eax
push 0x20006
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x70], 0x18
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x64], 0x140
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
call dword [sym.imp.NTOSKRNL.EXE_ZwOpenKey]
mov esi, eax
cmp esi, ebx
jl 0x10599d
push 0x38
lea eax, [ebp - 0x58]
push eax
push 3
push ebx
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 4]
call dword [sym.imp.NTOSKRNL.EXE_ZwSetValueKey]
mov esi, eax
push dword [ebp - 4]
call dword [0x110564]
lea ecx, [ebp - 0x70]
call dword [sym.imp.NTOSKRNL.EXE_ObfDereferenceObject]
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x416920
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
mov edx, dword [edx]
sub esp, 0xc
xor eax, eax
and edx, 7
cmp ecx, 5
jb 0x416a72
add dword [ebp + 0xc], 5
or dword [ebp - 4], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 8]
lea ecx, [esi + ecx - 4]
push edi
mov dword [ebp - 8], ecx
lea edi, [eax + esi]
jmp 0x41695c
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x416961
inc edi
cmp edi, dword [ebp - 8]
jb 0x416953
mov eax, edi
sub eax, esi
cmp edi, dword [ebp - 8]
jae 0x416a52
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, 3
jbe 0x4169e5
xor edx, edx
mov cl, byte [edi + 4]
mov dword [ebp - 4], eax
test cl, cl
je 0x41698d
cmp cl, 0xff
jne 0x416a14
movzx esi, cl
movzx ecx, byte [edi + 3]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 2]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 1]
shl esi, 8
or esi, ecx
sub esi, eax
sub esi, dword [ebp + 0xc]
mov ebx, esi
mov dword [ebp - 0xc], ebx
test edx, edx
je 0x416a25
movzx esi, byte [edx + 0x405140]
push 0x18
shl esi, 3
pop ecx
sub ecx, esi
shr ebx, cl
mov cl, bl
test cl, cl
je 0x4169d5
cmp cl, 0xff
jne 0x416a22
push 0x20
pop ecx
sub ecx, esi
xor esi, esi
inc esi
shl esi, cl
dec esi
xor esi, dword [ebp - 0xc]
jmp 0x4169ab
dec ecx
shl edx, cl
and edx, 7
je 0x41697a
movzx ecx, byte [edx + 0x405140]
mov ebx, edi
sub ebx, ecx
cmp byte [edx + 0x405138], 0
mov cl, byte [ebx + 4]
je 0x416a11
test cl, cl
je 0x416a11
cmp cl, 0xff
jne 0x41697a
mov dword [ebp - 4], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x41694e
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [edi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [edi + 2], cl
mov byte [edi + 1], bl
add eax, 5
jmp 0x41694e
mov esi, eax
sub esi, dword [ebp - 4]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
pop edi
and ecx, edx
mov edx, dword [ebp + 0x10]
pop esi
mov dword [edx], ecx
pop ebx
leave
ret 0xc

Function at 0x418424
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
lea eax, [esi + 4]
xor ebx, ebx
cmp dword [eax], ebx
jne 0x41843e
push ebx
push ebx
push eax
call fcn.0041828f
cmp eax, ebx
jne 0x418497
push edi
lea edi, [esi + 8]
cmp dword [edi], ebx
jne 0x418452
push ebx
push ebx
push edi
call fcn.0041828f
cmp eax, ebx
jne 0x418496
lea eax, [esi + 4]
call fcn.004183b5
mov eax, edi
call fcn.004183b5
mov byte [esi + 0x10], bl
cmp dword [esi + 0xc], ebx
je 0x41846d
xor eax, eax
jmp 0x418496
lea eax, [ebp - 4]
push eax
push ebx
push esi
push 0x4183df
push ebx
push ebx
call fcn.00423b9f
add esp, 0x18
mov dword [esi + 0xc], eax
cmp eax, ebx
jne 0x418469
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x418496
xor eax, eax
inc eax
pop edi
pop ebx
leave
ret

Function at 0x4195c9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42a050]
jne 0x4195d3
repz ret
jmp fcn.0041b144
Function at 0x41dbd0
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42a050]
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.0041a92d
and dword [ebp - 0x14], 0
cmp dword [0x42be70], 0
mov dword [ebp - 0x18], eax
jne 0x41dc83
push 0x402268
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41dd2b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40225c
push ebx
call edi
test eax, eax
je 0x41dd2b
mov esi, dword [fcn.00402b74]
push eax
call esi
push 0x40224c
push ebx
mov dword [0x42be70], eax
call edi
push eax
call esi
push 0x402238
push ebx
mov dword [0x42be74], eax
call edi
push eax
call esi
push 0x40221c
push ebx
mov dword [0x42be78], eax
call edi
push eax
call esi
mov dword [0x42be80], eax
test eax, eax
je 0x41dc83
push 0x402204
push ebx
call edi
push eax
call esi
mov dword [0x42be7c], eax
mov eax, dword [0x42be7c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [fcn.00402b70]
cmp eax, ecx
je 0x41dcdc
cmp dword [0x42be80], ecx
je 0x41dcdc
push eax
call esi
push dword [0x42be80]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41dcdc
test ebx, ebx
je 0x41dcdc
call edi
test eax, eax
je 0x41dcd3
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41dcd3
test byte [ebp - 8], 1
jne 0x41dcdc
or dword [ebp + 0x10], 0x200000
jmp 0x41dd0f
mov eax, dword [0x42be74]
cmp eax, dword [ebp - 0x18]
je 0x41dd0f
push eax
call esi
test eax, eax
je 0x41dd0f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41dd0f
mov eax, dword [0x42be78]
cmp eax, dword [ebp - 0x18]
je 0x41dd0f
push eax
call esi
test eax, eax
je 0x41dd0f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42be70]
call esi
test eax, eax
je 0x41dd2b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41dd2d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004195c9
leave
ret

Function at 0x423fc0
Capabilities:
Hash data using sha256

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
pop ebp
ret 4
Function at 0x424c40
Capabilities:
Hash data using sha256

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x42a050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 0x24]
push edi
mov ecx, ebx
and ecx, 0x3f
mov edi, 0x40
sub edi, ecx
cmp edi, 8
mov dword [ebp - 0x50], eax
ja 0x424c75
add edi, 0x40
lea edx, [edi - 8]
push edx
lea eax, [ebp - 0x4c]
push 0
push eax
call fcn.0041e230
mov ecx, dword [esi + 0x20]
add ecx, ecx
add ecx, ecx
add ecx, ecx
mov edx, ebx
shr edx, 0x1d
or ecx, edx
add esp, 0xc
mov dword [ebp - 0x58], ecx
push 2
lea ecx, [ebp - 0x58]
push ecx
lea edx, [ebp + edi - 0x54]
lea eax, [ebx*8]
push edx
mov byte [ebp - 0x4c], 0x80
mov dword [ebp - 0x54], eax
call fcn.00424d40
push edi
lea eax, [ebp - 0x4c]
push eax
push esi
call fcn.00424b30
mov ecx, dword [ebp - 0x50]
push 8
push esi
push ecx
call fcn.00424d40
xor eax, eax
push 0x40
mov dword [esi], 0x6a09e667
mov dword [esi + 4], 0xbb67ae85
mov dword [esi + 8], 0x3c6ef372
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
push eax
add esi, 0x28
push esi
call fcn.0041e230
mov ecx, dword [ebp - 4]
add esp, 0xc
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004195c9
mov esp, ebp
pop ebp
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401060
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 8]
push eax
push 0x20219
push 0
push esi
push edi
xor bl, bl
mov dword [esp + 0x1c], 0
call ebp
test eax, eax
jne 0x4010b9
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0xc]
push ecx
push eax
push eax
push eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 8]
test eax, eax
push ecx
sete bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
jne 0x4010fc
lea edx, [esp + 8]
push edx
push 0x20119
push 0
push esi
push edi
call ebp
test eax, eax
jne 0x4010fc
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 8]
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov eax, dword [esp + 8]
push eax
sete bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
mov al, bl
pop ebx
add esp, 8
ret