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, [ebp - 0x210]
push 0
push eax
call fcn.0043ffb0
add esp, 0xc
lea eax, [ebp - 0x620]
push 0x208
push 0
push eax
call fcn.0043ffb0
add esp, 0xc
lea eax, [ebp - 0x418]
push 0x208
push 0
push eax
call fcn.0043ffb0
add esp, 0xc
push 0
push ecx
push str.tlib
lea ecx, [ebp - 0x210]
call fcn.0041c500
add esp, 0xc
test eax, eax
je 0x41cdb9
push ecx
lea edx, [ebp - 0x620]
lea ecx, [ebp - 0x210]
call fcn.00426f80
add esp, 4
test eax, eax
je 0x41cdb9
push ecx
push str.deldir.bat
lea edx, [ebp - 0x210]
lea ecx, [ebp - 0x418]
call fcn.0041f690
lea eax, [ebp - 0x418]
push 0x47469c
push eax
call fcn.00445fd2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41cdb9
lea eax, [ebp - 0x620]
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, [ebp - 0x210]
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 - 0x880], 0x44
lea eax, [ebp - 0x87c]
push 0x40
push 0
push eax
call fcn.0043ffb0
add esp, 0xc
lea eax, [ebp - 0x418]
xorps xmm0, xmm0
movups xmmword [ebp - 0x838], xmm0
push eax
lea eax, [ebp - 0x828]
push str.cmd.exe__c___s_
push eax
call fcn.00410120
add esp, 0xc
lea eax, [ebp - 0x838]
push eax
lea eax, [ebp - 0x880]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
lea eax, [ebp - 0x828]
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 + 0x218], 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, 0xffffffff
jne 0x41ce58
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x218]
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, 0xffffffff
je 0x41ce9c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x224]
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 [0x482860]
cmp eax, 0xffffffff
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 [0x482860]
cmp eax, 0xffffffff
je 0x41d1c2
or ecx, 0xffffffff
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 [0x481bd4], 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], 0xffffffff
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], 0xffffffff
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 - 0x224], edi
jb 0x41dc48
mov dword [ebp - 0x220], 0x24
mov ebx, 0x24
mov dword [ebp - 0x21c], 0x26
mov dword [ebp - 0x218], 0x2a
mov dword [ebp - 0x214], 0x23
mov dword [ebp - 0x210], 0xffffffff
mov dword [ebp - 0x228], 0
nop dword [eax]
push 0
push ebx
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x41dc2b
nop word [eax + eax]
lea esi, [ebp - 0x20c]
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x41db80
sub esi, ecx
lea eax, [ebp - 0x20c]
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, [ebp - 0x20c]
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 - 0x224]
jmp 0x41db70
mov edi, dword [ebp - 0x224]
mov eax, dword [ebp - 0x228]
inc eax
mov dword [ebp - 0x228], eax
mov ebx, dword [ebp + eax*4 - 0x220]
cmp ebx, 0xffffffff
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, 0xffffffff
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, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.0043ffb0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
or edx, 0xffffffff
lea ecx, [ebp - 0x218]
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, [ebp - 0x22c]
mov dword [ebp - 0x230], 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, 0xffffffff
je 0x41e496
lea eax, [ebp - 0x230]
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 - 0x228], edi
je 0x41e4bb
lea eax, [ebp - 0x230]
push eax
push esi
call ebx
test eax, eax
jne 0x41e480
xor edi, edi
test esi, esi
je 0x41e4a8
cmp esi, 0xffffffff
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 - 0x218]
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 0x4216e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
push 0
push 0x2f5
mov eax, edx
mov dword [ebp - 0x18], ecx
push 0
push eax
mov dword [ebp - 0xc], eax
mov ebx, ecx
call fcn.0045b0e0
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov dword [ebp - 0x1c], 0
mov edi, dword [eax*8 + 0x482ef8]
mov esi, dword [eax*8 + 0x482efc]
xor edi, 0x4190944b
xor esi, 0x313b88a3
mov dword [ebp - 0x10], edi
mov eax, edi
mov dword [ebp - 0x14], esi
xor eax, 0xcf82b318
mov dword [ebp - 4], eax
mov eax, esi
xor eax, 0xa0f643cc
mov dword [ebp - 8], eax
mov eax, ecx
and ecx, 0xfffffff8
and eax, 7
mov dword [ebp - 0x24], eax
lea eax, [ecx + ebx]
shr ecx, 3
cmp ebx, eax
cmova ecx, edx
mov dword [ebp - 0xc], ecx
test ecx, ecx
je 0x4217fb
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
xor eax, 0x57ff7a3a
push 0xda5174b5
push 0xa1d8414f
xor ecx, 0xd28cb573
push eax
push ecx
call fcn.0043d380
mov ecx, dword [ebp - 0x14]
mov edi, eax
mov ebx, edx
xor esi, esi
mov edx, dword [ebp - 0x10]
mov eax, edx
shrd edx, ecx, 0x11
shl eax, 0xf
shr ecx, 0x11
or esi, edx
or eax, ecx
mov ecx, edi
xor ecx, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov eax, ebx
xor eax, dword [ebp - 8]
push 0
push 0x2f5
push eax
push ecx
call fcn.0045b0e0
mov ecx, dword [ebp - 0x14]
xor esi, dword [eax*8 + 0x482ef8]
xor ecx, dword [eax*8 + 0x482efc]
xor esi, edi
mov eax, dword [ebp - 0x1c]
xor ecx, ebx
add dword [ebp - 4], 0x17
mov edi, esi
mov ebx, dword [ebp - 0x18]
adc dword [ebp - 8], 0
add ebx, 8
inc eax
mov dword [ebp - 0x10], esi
mov esi, ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], eax
cmp eax, dword [ebp - 0xc]
jb case.default.0x4217fe
mov eax, dword [ebp - 0x24]
jmp dword [eax*4 + 0x4218e8]
mov eax, 0x88888888
mov edx, eax
jmp 0x4218c8
mov al, byte [ebx]
mov edx, 0x11111111
mov dword [ebp - 0x20], 0x11111111
mov byte [ebp - 0x20], al
jmp 0x4218c5
mov ax, word [ebx]
mov edx, 0x22222222
mov dword [ebp - 0x20], 0x22222222
mov word [ebp - 0x20], ax
jmp 0x4218c5
mov ax, word [ebx]
mov edx, 0x33333333
mov dword [ebp - 0x20], 0x33333333
mov word [ebp - 0x20], ax
mov al, byte [ebx + 2]
mov byte [ebp - 0x1e], al
jmp 0x4218c5
mov eax, dword [ebx]
mov edx, 0x44444444
mov dword [ebp - 0x20], 0x44444444
jmp 0x4218c8
mov cl, byte [ebx + 4]
mov eax, dword [ebx]
mov dword [ebp - 0x1c], 0x55555555
mov byte [ebp - 0x1c], cl
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0x55555555
jmp 0x4218c8
mov cx, word [ebx + 4]
mov eax, dword [ebx]
mov dword [ebp - 0x1c], 0x66666666
mov word [ebp - 0x1c], cx
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0x66666666
jmp 0x4218c8
mov cx, word [ebx + 4]
mov eax, dword [ebx]
mov dword [ebp - 0x1c], 0x77777777
mov word [ebp - 0x1c], cx
mov cl, byte [ebx + 6]
mov byte [ebp - 0x1a], cl
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0x77777777
jmp 0x4218c8
mov eax, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x24]
xor ecx, ecx
add ebx, dword [ebp - 4]
adc ecx, dword [ebp - 8]
push ecx
push ebx
push edx
push eax
push esi
push edi
call fcn.00421660
add esp, 0x18
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret