joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41cb70
Capabilities:
Create process on windows
Self delete

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x880
mov eax, dword [0x48106c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
mov edx, edi
lea ecx, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x41cb90
sub edx, ecx
sar edx, 1
cmp edx, 3
jbe 0x41cdb9
push 2
lea eax, [edi + 2]
push 0x474668
push eax
call fcn.0044651f
add esp, 0xc
test eax, eax
je 0x41cbd7
push 2
push 0x474670
push edi
call fcn.0044651f
add esp, 0xc
test eax, eax
jne 0x41cdb9
push 0x208
lea eax, reloc.USER32.dll_PeekMessageA
push 0
push eax
call fcn.0043ffb0
add esp, 0xc
lea eax, reloc.USER32.dll_PeekMessageA
push 0x208
push 0
push eax
call fcn.0043ffb0
add esp, 0xc
lea eax, reloc.USER32.dll_PeekMessageA
push 0x208
push 0
push eax
call fcn.0043ffb0
add esp, 0xc
push 0
push ecx
push str.tlib
lea ecx, reloc.USER32.dll_PeekMessageA
call fcn.0041c500
add esp, 0xc
test eax, eax
je 0x41cdb9
push ecx
lea edx, reloc.USER32.dll_PeekMessageA
lea ecx, reloc.USER32.dll_PeekMessageA
call fcn.00426f80
add esp, 4
test eax, eax
je 0x41cdb9
push ecx
push str.deldir.bat
lea edx, reloc.USER32.dll_PeekMessageA
lea ecx, reloc.USER32.dll_PeekMessageA
call fcn.0041f690
lea eax, reloc.USER32.dll_PeekMessageA
push 0x47469c
push eax
call fcn.00445fd2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41cdb9
lea eax, reloc.USER32.dll_PeekMessageA
push eax
push 0x4746a0
push esi
call fcn.004100d0
add esp, 0xc
push str.set_i0_n
push esi
call fcn.004100d0
push str.:LOOP_n
push esi
call fcn.004100d0
push str.__ping_127.0.0.1__n_2_n
push esi
call fcn.004100d0
push edi
push str.__del__q___s__n
push esi
call fcn.004100d0
add esp, 0x24
push str.__set__a_ii1_n
push esi
call fcn.004100d0
push str.__if___i___gtr_10_goto_END_n
push esi
call fcn.004100d0
push edi
push str.__if_exist___s__goto_LOOP_n
push esi
call fcn.004100d0
add esp, 0x1c
push str.:END_n
push esi
call fcn.004100d0
lea eax, reloc.USER32.dll_PeekMessageA
push eax
push str.rd__s__q___s__n
push esi
call fcn.004100d0
add esp, 0x14
push esi
call fcn.00445e61
add esp, 4
mov dword [ebp - reloc.USER32.dll_PeekMessageA], 0x44
lea eax, reloc.USER32.dll_PeekMessageA
push 0x40
push 0
push eax
call fcn.0043ffb0
add esp, 0xc
lea eax, reloc.USER32.dll_PeekMessageA
xorps xmm0, xmm0
movups xmmword [ebp - 0x838], xmm0
push eax
lea eax, reloc.USER32.dll_PeekMessageA
push str.cmd.exe__c___s_
push eax
call fcn.00410120
add esp, 0xc
lea eax, reloc.USER32.dll_PeekMessageA
push eax
lea eax, reloc.USER32.dll_PeekMessageA
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
lea eax, reloc.USER32.dll_PeekMessageA
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x41cda4
push dword [ebp - 0x834]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x838]
call esi
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043c755
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0043c755
mov esp, ebp
pop ebp
ret
Function at 0x41cdd0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x48106c]
xor eax, esp
mov dword [esp + reloc.USER32.dll_PeekMessageA], eax
push ebx
push esi
mov esi, ecx
lea ecx, [esp + 0xc]
push edi
call fcn.00421430
push ecx
push dword [esp + 0x18]
push dword [esp + 0x18]
push str.tlib__llx
call fcn.0041fea0
add esp, 0xc
lea ecx, [esp + 0x1c]
mov edx, esi
push eax
call fcn.0041f690
add esp, 8
lea eax, [esp + 0x18]
push 0
push 0x80
push 2
push 0
push 7
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, reloc.USER32.dll_PeekMessageA
jne 0x41ce58
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + reloc.USER32.dll_PeekMessageA]
xor ecx, esp
call fcn.0043c755
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x41ce65
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
nop dword [eax]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x41ce8c
push 0xc8
call ebx
inc edi
cmp edi, 0xa
jl 0x41ce70
test esi, esi
je 0x41ce9c
cmp esi, reloc.USER32.dll_PeekMessageA
je 0x41ce9c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + reloc.USER32.dll_PeekMessageA]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043c755
mov esp, ebp
pop ebp
ret

Function at 0x41d060
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
call fcn.0041cf50
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov eax, 0x10624dd3
sub edi, dword [0x486124]
mul edi
mov esi, edx
shr esi, 6
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
imul eax, esi, 0x3e8
sub edi, eax
mov eax, 0xcccccccd
mul edi
shr edx, 3
push edx
push esi
push 0x474818
push ebx
call fcn.00410020
add esp, 0x14
mov esi, eax
lea eax, [ebp + 0xc]
mov edx, 0xfff
sub edx, esi
push eax
push dword [ebp + 8]
lea ecx, [esi + ebx]
call fcn.0041fb20
add esp, 8
add esi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [reloc.USER32.dll_PeekMessageA]
cmp eax, reloc.USER32.dll_PeekMessageA
je 0x41d0f3
push 0
lea ecx, [ebp - 4]
mov dword [ebp - 4], esi
push ecx
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
call fcn.0040e950
test eax, eax
je 0x41d105
mov edx, esi
mov ecx, ebx
call fcn.0041d010
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41d110
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
call fcn.0041cf50
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov eax, 0x10624dd3
sub edi, dword [0x486124]
mul edi
mov esi, edx
shr esi, 6
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
imul eax, esi, 0x3e8
sub edi, eax
mov eax, 0xcccccccd
mul edi
shr edx, 3
push edx
push esi
push 0x47482c
push ebx
call fcn.00410120
add esp, 0x14
mov edi, eax
lea eax, [ebp + 0xc]
mov ecx, 0x800
sub ecx, edi
push eax
push 0
push dword [ebp + 8]
push ecx
lea ecx, [ebx + edi*2]
push ecx
call fcn.0040ffd0
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.00445d9d
add esp, 0x1c
mov esi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [reloc.USER32.dll_PeekMessageA]
cmp eax, reloc.USER32.dll_PeekMessageA
je 0x41d1c2
or ecx, reloc.USER32.dll_PeekMessageA
test esi, esi
push 0
cmovs esi, ecx
lea ecx, [esp + 0x10]
push ecx
add esi, edi
push esi
push ebx
push eax
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
call fcn.0040e950
test eax, eax
je 0x41d1ff
test ebx, ebx
je 0x41d1e5
mov ecx, ebx
call fcn.00421ef0
mov esi, eax
test esi, esi
je 0x41d1e7
mov ecx, esi
call fcn.0040fea0
jmp 0x41d1e9
xor esi, esi
xor eax, eax
mov edx, eax
mov ecx, esi
call fcn.0041d010
test esi, esi
je 0x41d1ff
push esi
call fcn.0043cb54
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41d210
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45bc00
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x48106c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [reloc.USER32.dll_PeekMessageA], 0xffffffff
je 0x41d3d4
lea eax, [ebp + 0xc]
xor edx, edx
push eax
push dword [ebp + 8]
xor ecx, ecx
call fcn.0041fba0
mov esi, eax
add esp, 8
mov edi, 0
mov dword [ebp - 0x1c], edi
add esi, 1
je 0x41d28d
xor ecx, ecx
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043d001
mov edi, eax
add esp, 4
xor eax, eax
mov dword [ebp - 0x1c], edi
mov word [edi], ax
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 8]
mov edx, esi
mov dword [ebp - 0x18], reloc.USER32.dll_PeekMessageA
mov ecx, edi
call fcn.0041fba0
add esp, 8
test edi, edi
jne 0x41d2bb
xor eax, eax
mov ecx, 0x479dc8
jmp 0x41d2c7
mov ecx, edi
call fcn.0040fe80
mov dword [ebp - 0x18], eax
mov ecx, edi
push 0
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
push edx
push eax
push ecx
push dword [0x481bd4]
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
test eax, eax
jne 0x41d3c7
lea edx, [eax + 1]
call fcn.0041cfd0
mov ecx, 0x479dc8
test al, al
je 0x41d383
test edi, edi
mov dword [ebp - 0x20], reloc.USER32.dll_PeekMessageA
cmovne ecx, edi
test ecx, ecx
je 0x41d314
call fcn.00421ef0
mov ebx, eax
jmp 0x41d316
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov byte [ebp - 4], 1
test ebx, ebx
jne 0x41d325
xor eax, eax
jmp 0x41d32f
mov ecx, ebx
call fcn.0040fea0
mov dword [ebp - 0x20], eax
lea eax, [eax*2 + 1]
mov dword [ebp - 0x10], eax
inc eax
push eax
call fcn.0043d001
mov esi, eax
test ebx, ebx
mov ecx, 0x479dc8
mov edx, esi
cmovne ecx, ebx
mov byte [esi], 0
push dword [ebp - 0x10]
call fcn.0041d3f0
add esp, 8
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x10]
push 0
push ecx
push eax
push esi
push dword [0x481bd4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call fcn.0043cb54
add esp, 4
test ebx, ebx
je 0x41d3c7
push ebx
jmp 0x41d3bf
test edi, edi
cmovne ecx, edi
call fcn.00421ef0
mov esi, eax
test esi, esi
jne 0x41d39a
mov ecx, 0x479dc8
jmp 0x41d3a3
mov ecx, esi
call fcn.0040fea0
mov ecx, esi
push 0
lea edx, [ebp - 0x10]
mov dword [ebp - 0x10], eax
push edx
push eax
push ecx
push dword [0x481bd4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test esi, esi
je 0x41d3c7
push esi
call fcn.0043cb54
add esp, 4
test edi, edi
je 0x41d3d4
push edi
call fcn.0043cb54
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41dae0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x48106c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x48608c], 6
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - reloc.USER32.dll_PeekMessageA], edi
jb 0x41dc48
mov dword [ebp - reloc.USER32.dll_PeekMessageA], 0x24
mov ebx, 0x24
mov dword [ebp - reloc.USER32.dll_PeekMessageA], 0x26
mov dword [ebp - reloc.USER32.dll_PeekMessageA], 0x2a
mov dword [ebp - reloc.USER32.dll_PeekMessageA], 0x23
mov dword [ebp - reloc.USER32.dll_PeekMessageA], reloc.USER32.dll_PeekMessageA
mov dword [ebp - reloc.USER32.dll_PeekMessageA], 0
nop dword [eax]
push 0
push ebx
lea eax, reloc.USER32.dll_PeekMessageA
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x41dc2b
nop word [eax + eax]
lea esi, reloc.USER32.dll_PeekMessageA
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x41db80
sub esi, ecx
lea eax, reloc.USER32.dll_PeekMessageA
sar esi, 1
push esi
push edi
push eax
call fcn.00449b1d
add esp, 0xc
test eax, eax
jne 0x41dbc3
movzx eax, word [edi + esi*2]
test ax, ax
je 0x41dc5b
cmp eax, 0x5c
je 0x41dc5b
cmp eax, 0x2f
je 0x41dc5b
cmp ebx, 0x26
jne 0x41dc2b
lea esi, [esi*2 - 0xc]
mov ecx, str.__x86_
lea edi, reloc.USER32.dll_PeekMessageA
add edi, esi
mov eax, edi
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41dc06
test dx, dx
je 0x41dc02
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41dc06
add eax, 4
add ecx, 4
test dx, dx
jne 0x41dbe0
xor eax, eax
jmp 0x41dc0b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x41dc25
cmp esi, 0x208
jae 0x41dc71
mov word [edi], ax
mov edi, dword [ebp - reloc.USER32.dll_PeekMessageA]
jmp 0x41db70
mov edi, dword [ebp - reloc.USER32.dll_PeekMessageA]
mov eax, dword [ebp - reloc.USER32.dll_PeekMessageA]
inc eax
mov dword [ebp - reloc.USER32.dll_PeekMessageA], eax
mov ebx, dword [ebp + eax*4 - reloc.USER32.dll_PeekMessageA]
cmp ebx, reloc.USER32.dll_PeekMessageA
jne 0x41db50
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043c755
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043c755
mov esp, ebp
pop ebp
ret
call fcn.0043cc7a
int3

Function at 0x41dc80
Capabilities:
Get common file path

Disassembly:
cmp dword [0x48608c], 6
push esi
push edi
mov edi, edx
mov esi, ecx
jb 0x41dd00
call fcn.0041dae0
test eax, eax
je 0x41dce9
push 0
push 0x1c
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x41dce9
cmp word [esi + 2], 0x3a
jne 0x41dce9
cmp word [esi + 4], 0x5c
lea edx, [esi + 4]
jne 0x41dce9
mov ecx, edi
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41dcc0
sub ecx, esi
sar ecx, 1
push edx
push str.VirtualStore_s
lea eax, [edi + ecx*2]
push eax
call fcn.00410120
add esp, 0xc
mov eax, 1
pop edi
pop esi
ret
sub edi, esi
nop dword [eax + eax]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [edi + esi - 2], ax
test ax, ax
jne 0x41dcf0
pop edi
xor eax, eax
pop esi
ret
Function at 0x41df00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x38
lea eax, [ebp - 0x38]
mov dword [ebp - 0x3c], 0x3c
push 0
push eax
call fcn.0043ffb0
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0x474c20
test eax, eax
je 0x41df49
cmp word [eax], 0
mov dword [ebp - 0x28], eax
jne 0x41df50
mov dword [ebp - 0x28], 0
push esi
push edi
push 0
push 0
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x24], 0
push eax
push 0x41deb0
push 0
push 0
mov dword [ebp - 0x20], 5
call fcn.004466ad
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [ebp - 0x1c]
test esi, esi
je 0x41df97
cmp esi, reloc.USER32.dll_PeekMessageA
je 0x41df97
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41e090
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45bd0c
mov eax, dword fs:[0]
push eax
sub esp, 0x20c
mov eax, dword [0x48106c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x498680]
cmp eax, dword [ecx + 4]
jg 0x41e0ee
mov eax, dword [0x49659c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043c755
mov esp, ebp
pop ebp
ret
push 0x498680
call fcn.0043c931
add esp, 4
cmp dword [0x498680], 0xffffffff
jne 0x41e0d0
push 0x208
lea eax, reloc.USER32.dll_PeekMessageA
mov dword [ebp - 4], 0
push 0
push eax
call fcn.0043ffb0
add esp, 0xc
lea eax, reloc.USER32.dll_PeekMessageA
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
or edx, reloc.USER32.dll_PeekMessageA
lea ecx, reloc.USER32.dll_PeekMessageA
call fcn.0040fd80
push 0x498680
mov dword [0x49659c], eax
mov byte [0x498668], 1
call fcn.0043c8e7
add esp, 4
jmp 0x41e0d0
Function at 0x41e410
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x48106c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x228
lea eax, reloc.USER32.dll_PeekMessageA
mov dword [ebp - reloc.USER32.dll_PeekMessageA], 0x22c
push 0
push eax
call fcn.0043ffb0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0
push 2
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
test esi, esi
je 0x41e496
cmp esi, reloc.USER32.dll_PeekMessageA
je 0x41e496
lea eax, reloc.USER32.dll_PeekMessageA
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x41e496
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
nop dword [eax + eax]
cmp dword [ebp - reloc.USER32.dll_PeekMessageA], edi
je 0x41e4bb
lea eax, reloc.USER32.dll_PeekMessageA
push eax
push esi
call ebx
test eax, eax
jne 0x41e480
xor edi, edi
test esi, esi
je 0x41e4a8
cmp esi, reloc.USER32.dll_PeekMessageA
je 0x41e4a8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043c755
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - reloc.USER32.dll_PeekMessageA]
jmp 0x41e498

Function at 0x41f900
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0x25
mov esi, ecx
mov dword [ebp - 4], 0x25
call fcn.0043d001
add esp, 4
mov edi, eax
lea eax, [ebp - 4]
push eax
push edi
push 1
push 0x10
push esi
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
jne 0x41f935
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov ecx, edi
call fcn.0041f8d0
push edi
mov dword [ebp - 4], eax
call fcn.0043cb54
mov eax, dword [ebp - 4]
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41fad0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
sub ecx, edx
push edi
mov edi, dword [ebp + 8]
sub edi, edx
nop
mov al, byte [ecx + edx]
lea edx, [edx + 1]
xor al, byte [edx - 1]
mov byte [edi + edx - 1], al
sub esi, 1
jne 0x41fae0
pop edi
pop esi
pop ebp
ret
Function at 0x421430
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x48608c], 6
push esi
mov esi, ecx
jb 0x42145d
push 2
push 8
push esi
push 0
call dword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
jns 0x421489
mov ecx, esi
call fcn.00421500
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x49898c]
cmp eax, dword [ecx + 4]
jg 0x421493
mov eax, dword [0x499d30]
test eax, eax
je 0x421451
push esi
push 8
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x421451
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
push 0x49898c
call fcn.0043c931
add esp, 4
cmp dword [0x49898c], 0xffffffff
jne 0x421472
push 0xf0000020
push 0x18
push 0
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x4214de
push 0xf0000020
push 3
push eax
push eax
lea eax, [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
jmp 0x4214de
mov eax, dword [ebp - 4]
push 0x49898c
mov dword [0x499d30], eax
call fcn.0043c8e7
add esp, 4
jmp 0x421472

Function at 0x421500
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c18c
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x48106c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.0041dfa0
mov ebx, eax
push ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword fs:[0x2c]
mov edx, dword [ecx]
mov ecx, dword [0x498990]
cmp ecx, dword [edx + 4]
jg 0x421591
lea eax, [esi + 8]
cmp eax, esi
sbb edi, edi
add edi, 1
je 0x421573
call fcn.00421910
mov dword [esi], eax
lea esi, [esi + 8]
mov dword [esi - 4], edx
sub edi, 1
jne 0x421561
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x498990
call fcn.0043c931
add esp, 4
cmp dword [0x498990], 0xffffffff
jne 0x421555
mov dword [ebp - 4], 0
call fcn.0043c037
xor edi, edi
mov dword [0x499d28], 0x55555555
mov esi, eax
mov dword [0x499d2c], 0x55555555
mov dword [0x4989a8], esi
mov dword [0x4989ac], edi
lea ebx, [edi + 1]
jmp 0x4215e0
push 0x5851f42d
xor eax, eax
mov ecx, edi
push 0x4c957f2d
shr ecx, 0x1e
xor eax, edi
xor ecx, esi
push eax
push ecx
call fcn.0043d380
mov esi, eax
mov edi, edx
mov eax, ebx
cdq
add esi, eax
mov dword [ebx*8 + 0x4989a8], esi
adc edi, edx
mov dword [ebx*8 + 0x4989ac], edi
inc ebx
cmp ebx, 0x138
jl 0x4215e0
push 0x498990
mov dword [0x4989a0], 0x138
call fcn.0043c8e7
mov esi, dword [ebp - 0x10]
add esp, 4
mov ebx, dword [ebp - 0x14]
jmp 0x421555
Function at 0x422360
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push 4
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x1004
push eax
mov eax, dword [ecx + 4]
push 4
push 0
push dword [ebp + 8]
push dword [ecx + eax*4 + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
inc eax
mov esp, ebp
pop ebp
ret 8

Function at 0x4224b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp + 0x10]
mov dword [ebp - 4], 1
push eax
push dword [ebp + 0xc]
mov esi, ecx
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 8]
mov eax, dword [esi + 4]
push dword [esi + eax*4 + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x422503
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
mov eax, dword [esi + 4]
push dword [ebp + 8]
push dword [esi + eax*4 + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
je 0x422503
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x422660
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov eax, edx
push esi
push edi
mov esi, ecx
lea edi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x422670
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
mov eax, dword [esi + 4]
push edx
push 1
push 0
push dword [ebp + 8]
push dword [esi + eax*4 + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
pop edi
sbb eax, eax
inc eax
pop esi
pop ebp
ret 8

Function at 0x422710
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 4]
push dword [ebp + 8]
push dword [ecx + eax*4 + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
neg eax
sbb eax, eax
inc eax
pop ebp
ret 4