joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c140
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x80c
mov eax, dword [0x48d1f4]
xor eax, esp
mov dword [esp + 0x808], eax
mov eax, dword [esp + 0x814]
lea ecx, [esp + 8]
push esi
mov esi, dword [esp + 0x814]
push edi
mov edi, dword [esp + 0x820]
push 0x400
push ecx
push eax
call fcn.004566d0
push 1
call fcn.0046dfd8
add esp, 4
cmp esi, eax
jne 0x41c192
cmp byte [0x48f0cd], 0
jne 0x41c1b1
push 2
call fcn.0046dfd8
add esp, 4
cmp esi, eax
jne 0x41c294
cmp byte [0x48f0ce], 0
je 0x41c294
push 1
call fcn.0046dfd8
xor ecx, ecx
add esp, 4
cmp esi, eax
sete cl
add ecx, 0xfffffff4
push ecx
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push edi
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
push 0x1800
push 0x4928d8
call fcn.00407eb0
push dword [eax + 4]
push dword [eax]
call fcn.0046ce43
mov eax, dword [0x48f0c8]
add esp, 0x1c
cmp eax, 3
jne 0x41c22f
mov ecx, 0x4928d8
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41c204
sub ecx, edx
lea eax, [esp + 8]
push 0
sar ecx, 1
push eax
lea eax, [ecx + ecx]
push eax
push 0x4928d8
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x41c303
push 0x1800
push 0x4958d8
push 0x4928d8
cmp eax, 4
jne 0x41c24a
call fcn.0045a0d0
jmp 0x41c24f
call fcn.0045a050
mov eax, dword [0x48f0c8]
test eax, eax
je 0x41c25d
cmp eax, 2
jne 0x41c26d
push 0x4958d8
push 0x4958d8
call dword [sym.imp.USER32.dll_CharToOemA]
mov ecx, 0x4958d8
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41c275
push 0
lea eax, [esp + 0xc]
sub ecx, edx
push eax
push ecx
push 0x4958d8
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x41c303
push edi
push 0
lea eax, [esp + 0x18]
push eax
push 0x1800
push 0x4928d8
call fcn.00407eb0
push dword [eax + 4]
push dword [eax]
call fcn.0046ce43
push 2
call fcn.0046dfd8
xor ecx, ecx
add esp, 0x20
cmp esi, eax
setne cl
add ecx, 0xfffffff4
push ecx
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, 0x4928d8
lea esi, [edx + 2]
jmp 0x41c2e0
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x41c2e0
push 0
sub edx, esi
lea ecx, [esp + 0x10]
push ecx
sar edx, 1
push edx
push 0x4928d8
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
mov ecx, dword [esp + 0x810]
pop edi
pop esi
xor ecx, esp
call fcn.004669f1
add esp, 0x80c
ret 0xc
Function at 0x41c570
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
test esi, esi
je 0x41c5a3
test bl, 7
je 0x41c5a3
movzx edx, byte [ebx]
inc ebx
movzx ecx, al
xor edx, ecx
shr eax, 8
mov dword [esp + 0x10], ebx
xor eax, dword [edx*4 + 0x4970d8]
sub esi, 1
jne 0x41c582
cmp esi, 8
jb 0x41c639
push edi
mov edi, esi
shr edi, 3
xor eax, dword [ebx]
sub esi, 8
mov ebx, dword [ebx + 4]
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x4974d8]
xor edx, dword [ecx*4 + 0x4978d8]
mov ecx, eax
shr ecx, 0x10
movzx ecx, cl
xor edx, dword [ecx*4 + 0x4984d8]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x4988d8]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x4970d8]
mov ecx, eax
shr ecx, 0x18
movzx eax, al
xor edx, dword [ecx*4 + 0x4980d8]
movzx ecx, bl
mov ebx, dword [esp + 0x14]
add ebx, 8
mov dword [esp + 0x14], ebx
xor edx, dword [ecx*4 + 0x497cd8]
xor edx, dword [eax*4 + 0x498cd8]
mov eax, edx
sub edi, 1
jne 0x41c5b2
pop edi
test esi, esi
je 0x41c65a
lea ecx, [ecx]
movzx edx, byte [ebx]
lea ebx, [ebx + 1]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x4970d8]
sub esi, 1
jne 0x41c640
pop esi
pop ebx
ret 0xc
Function at 0x41c660
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x1c]
test ebp, ebp
je 0x41c6ab
test cl, 7
je 0x41c6ab
movzx ecx, byte [ecx]
dec ebp
movzx eax, bl
xor ecx, eax
mov dword [esp + 0x1c], ebp
shrd ebx, edx, 8
shr edx, 8
xor ebx, dword [ecx*8 + 0x4990d8]
xor edx, dword [ecx*8 + 0x4990dc]
mov ecx, dword [esp + 0x18]
inc ecx
mov dword [esp + 0x18], ecx
test ebp, ebp
jne 0x41c677
mov eax, ebp
shr eax, 3
lea eax, [ecx + eax*8]
mov dword [esp + 8], eax
cmp ecx, eax
jae 0x41c79b
push esi
mov ebp, eax
push edi
xor ebx, dword [ecx]
mov ecx, dword [ecx + 4]
xor ecx, edx
mov eax, ecx
mov dword [esp + 0x10], ecx
mov esi, dword [esp + 0x10]
shr eax, 0x10
movzx edx, al
mov eax, ecx
shr eax, 8
movzx eax, al
mov edi, dword [edx*8 + 0x4998d8]
mov edx, dword [edx*8 + 0x4998dc]
xor edx, dword [eax*8 + 0x49a0dc]
xor edi, dword [eax*8 + 0x49a0d8]
movzx eax, cl
mov ecx, ebx
xor edx, dword [eax*8 + 0x49a8dc]
xor edi, dword [eax*8 + 0x49a8d8]
mov eax, esi
shrd ecx, eax, 0x18
movzx eax, cl
mov ecx, ebx
xor edx, dword [eax*8 + 0x49b0dc]
xor edi, dword [eax*8 + 0x49b0d8]
mov eax, esi
shrd ecx, eax, 0x10
movzx eax, cl
mov ecx, ebx
xor edx, dword [eax*8 + 0x49b8dc]
xor edi, dword [eax*8 + 0x49b8d8]
mov eax, esi
shrd ecx, eax, 8
shr esi, 0x18
movzx eax, cl
mov ecx, dword [esp + 0x20]
add ecx, 8
mov dword [esp + 0x20], ecx
xor edx, dword [eax*8 + 0x49c0dc]
xor edi, dword [eax*8 + 0x49c0d8]
xor edi, dword [esi*8 + 0x4990d8]
xor edx, dword [esi*8 + 0x4990dc]
movzx eax, bl
mov ebx, edi
mov dword [esp + 0x10], edi
xor ebx, dword [eax*8 + 0x49c8d8]
xor edx, dword [eax*8 + 0x49c8dc]
cmp ecx, ebp
jb 0x41c6c3
mov ebp, dword [esp + 0x24]
pop edi
pop esi
and ebp, 7
jbe 0x41c7cb
movzx ecx, byte [ecx]
movzx eax, bl
xor ecx, eax
shrd ebx, edx, 8
shr edx, 8
xor ebx, dword [ecx*8 + 0x4990d8]
xor edx, dword [ecx*8 + 0x4990dc]
mov ecx, dword [esp + 0x18]
inc ecx
mov dword [esp + 0x18], ecx
sub ebp, 1
jne 0x41c7a0
pop ebp
mov eax, ebx
pop ebx
pop ecx
ret 0x10
Function at 0x41ceb0
Capabilities:
Authenticate hmac
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
sub esp, 0x164
mov eax, dword [0x48d1f4]
xor eax, esp
mov dword [esp + 0x160], eax
push ebx
mov ebx, dword [esp + 0x16c]
push esi
mov esi, dword [esp + 0x174]
push edi
cmp dword [ebx], 2
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
jne 0x41cfab
mov eax, dword [ebx + 4]
push ebp
push 0
push 0
push 0
push 0
mov dword [esp + 0x20], eax
lea eax, [esp + 0x140]
push eax
push 4
lea eax, [esp + 0x28]
push eax
push 0x20
push esi
call fcn.0041e320
lea eax, [esp + 0x131]
xor ebp, ebp
mov esi, 2
mov dword [esp + 0x10], ebp
sub esi, eax
lea ecx, [esp + 0x131]
mov eax, 3
sub eax, ecx
lea ebx, [ebp + 1]
mov dword [esp + 0x14], eax
jmp 0x41cf40
lea edx, [esp + 0x131]
add edx, ebp
movzx edi, byte [edx + 2]
lea ecx, [edx + eax]
movzx eax, byte [edx + 1]
and ecx, 3
shl ecx, 3
shl edi, cl
lea ecx, [edx + esi]
and ecx, 3
shl ecx, 3
shl eax, cl
mov ecx, ebp
xor edi, eax
and ecx, 3
movzx eax, byte [edx - 1]
add ebp, 4
shl ecx, 3
shl eax, cl
mov ecx, ebx
xor edi, eax
and ecx, 3
movzx eax, byte [edx]
add ebx, 4
shl ecx, 3
shl eax, cl
xor edi, eax
mov eax, dword [esp + 0x14]
xor edi, dword [esp + 0x10]
mov dword [esp + 0x10], edi
cmp ebx, 0x21
jb 0x41cf40
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
pop ebp
mov dword [ebx + 4], edi
cmp dword [ebx], 3
jne 0x41d13d
lea eax, [esp + 0xec]
xor edx, edx
sub esi, eax
nop
lea ecx, [esp + 0xec]
add ecx, edx
inc edx
mov al, byte [esi + ecx]
xor al, 0x36
mov byte [ecx], al
cmp edx, 0x20
jb 0x41cfc0
lea eax, [esp + 0x1c]
mov dword [esp + 0x10c], 0x36363636
push eax
mov dword [esp + 0x114], 0x36363636
mov dword [esp + 0x118], 0x36363636
mov dword [esp + 0x11c], 0x36363636
mov dword [esp + 0x120], 0x36363636
mov dword [esp + 0x124], 0x36363636
mov dword [esp + 0x128], 0x36363636
mov dword [esp + 0x12c], 0x36363636
call fcn.00455bb0
push 0x40
lea eax, [esp + 0xf0]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00455c00
push 0x20
lea edi, [ebx + 4]
push edi
lea eax, [esp + 0x24]
push eax
call fcn.00455c00
lea eax, [esp + 0x12c]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00455aa0
xor eax, eax
lea edx, [esp + 0xec]
add edx, eax
inc eax
mov cl, byte [esi + edx]
xor cl, 0x5c
mov byte [edx], cl
cmp eax, 0x20
jb 0x41d070
lea eax, [esp + 0x84]
mov dword [esp + 0x10c], 0x5c5c5c5c
push eax
mov dword [esp + 0x114], 0x5c5c5c5c
mov dword [esp + 0x118], 0x5c5c5c5c
mov dword [esp + 0x11c], 0x5c5c5c5c
mov dword [esp + 0x120], 0x5c5c5c5c
mov dword [esp + 0x124], 0x5c5c5c5c
mov dword [esp + 0x128], 0x5c5c5c5c
mov dword [esp + 0x12c], 0x5c5c5c5c
call fcn.00455bb0
push 0x40
lea eax, [esp + 0xf0]
push eax
lea eax, [esp + 0x8c]
push eax
call fcn.00455c00
push 0x20
lea eax, [esp + 0x130]
push eax
lea eax, [esp + 0x8c]
push eax
call fcn.00455c00
lea eax, [esp + 0x14c]
push eax
lea eax, [esp + 0x88]
push eax
call fcn.00455aa0
mov ecx, 8
lea esi, [esp + 0x14c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x16c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004669f1
add esp, 0x164
ret 8
Function at 0x41d160
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x2c
mov eax, dword [0x48d1f4]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x40]
mov dword [esp + 0x24], edi
mov eax, dword [edi]
xor eax, dword [ecx + 0x10a4]
mov ebp, dword [edi + 8]
xor ebp, dword [ecx + 0x10ac]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 4]
xor eax, dword [ecx + 0x10a8]
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0xc]
xor eax, dword [ecx + 0x10b0]
mov dword [esp + 0x1c], eax
mov eax, dword [edi]
mov dword [esp + 0x28], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 8]
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0xc]
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x34], eax
mov eax, 0x1f
mov dword [esp + 0x18], eax
and eax, 3
mov edx, edi
rol edx, 0xb
add edx, ebp
mov esi, dword [ecx + eax*4 + 0x10a4]
xor edx, esi
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx ebx, byte [eax + ecx + 0xfa4]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + ecx + 0xfa4]
shl eax, 8
or ebx, eax
mov eax, edx
shr eax, 8
movzx eax, al
shl ebx, 8
movzx eax, byte [eax + ecx + 0xfa4]
or ebx, eax
movzx eax, dl
mov edx, ebp
shl ebx, 8
ror edx, 0xf
xor edx, edi
movzx eax, byte [eax + ecx + 0xfa4]
add edx, esi
or ebx, eax
mov eax, edx
shr eax, 0x10
movzx eax, al
xor ebx, dword [esp + 0x14]
movzx esi, byte [eax + ecx + 0xfa4]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + ecx + 0xfa4]
shl eax, 8
or esi, eax
mov eax, edx
shr eax, 8
movzx eax, al
shl esi, 8
movzx eax, byte [eax + ecx + 0xfa4]
or esi, eax
movzx eax, dl
shl esi, 8
mov edx, ebp
mov dword [esp + 0x14], edx
mov ebp, ebx
movzx eax, byte [eax + ecx + 0xfa4]
or esi, eax
mov eax, dword [esp + 0x18]
xor esi, dword [esp + 0x10]
sub eax, 1
mov dword [esp + 0x10], edi
mov edi, esi
mov dword [esp + 0x18], eax
jns 0x41d1d1
mov ebp, dword [ecx + 0x10a4]
mov edi, dword [esp + 0x24]
xor ebp, ebx
mov dword [edi], ebp
mov eax, dword [ecx + 0x10a8]
xor eax, esi
mov dword [edi + 4], eax
mov eax, dword [ecx + 0x10ac]
xor eax, edx
mov dword [edi + 8], eax
mov eax, dword [ecx + 0x10b0]
xor eax, dword [esp + 0x10]
mov dword [edi + 0xc], eax
lea eax, [esp + 0x28]
push eax
call fcn.0041e290
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004669f1
add esp, 0x2c
ret 4
Function at 0x41d300
Capabilities:
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0xa98]
dec eax
cmp eax, 4
ja case.default.0x41d317
push ebx
push ebp
push edi
jmp dword [eax*4 + 0x41d460]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
test edx, edx
je 0x41d456
mov edi, edi
movzx eax, byte [esi + 0x10b6]
lea ecx, [ecx + 1]
add byte [esi + 0x10b5], al
movzx eax, byte [esi + 0x10b5]
add byte [esi + 0x10b4], al
movzx eax, byte [esi + 0x10b4]
sub byte [ecx - 1], al
sub edx, 1
jne 0x41d330
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret 8
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], eax
test ebp, ebp
je 0x41d456
mov ecx, 0x1234
lea ecx, [ecx]
add cx, word [esi + 0x10b8]
movzx eax, cx
mov word [esi + 0x10b8], ax
movzx ebx, cx
mov eax, ebx
shr eax, 1
movzx eax, al
lea ecx, [esi + eax*4]
movzx eax, word [ecx + 0xba4]
xor word [esi + 0x10ba], ax
movzx eax, word [ecx + 0xba6]
mov ecx, 1
sub word [esi + 0x10bc], ax
movzx eax, word [esi + 0x10be]
movzx edx, word [esi + 0x10ba]
movzx edi, word [esi + 0x10bc]
ror ax, cl
xor ax, dx
ror ax, cl
mov ecx, dword [esp + 0x10]
movzx eax, ax
mov word [esi + 0x10be], ax
xor eax, edi
xor eax, ebx
movzx eax, ax
mov word [esi + 0x10b8], ax
shr eax, 8
xor byte [ecx], al
inc ecx
mov dword [esp + 0x10], ecx
mov ecx, 0x1234
sub ebp, 1
jne 0x41d380
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret 8
mov ebx, dword [esp + 0x1c]
xor edi, edi
test ebx, ebx
je 0x41d456
mov ebp, dword [esp + 0x18]
lea eax, [edi + ebp]
mov ecx, esi
push eax
call fcn.0041d160
add edi, 0x10
cmp edi, ebx
jb 0x41d427
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret 8
mov eax, dword [esp + 0x18]
lea ecx, [esi + 0xa9c]
push eax
push dword [esp + 0x20]
push eax
call fcn.00450b10
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret 8

Function at 0x41d4b0
Capabilities:
Generate random numbers via winapi

Disassembly:
push ecx
push 0xf0000040
push 1
push 0
push 0
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x41d4fa
push esi
push dword [esp + 0xc]
push dword [esp + 0x14]
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [esp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp esi, 1
pop esi
je 0x41d507
push dword [esp + 0xc]
push dword [esp + 0xc]
call fcn.0041e200
pop ecx
ret 8
Function at 0x41d530
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x190
mov eax, dword [0x48d1f4]
xor eax, esp
mov dword [esp + 0x18c], eax
mov eax, dword [esp + 0x1a4]
push ebx
push ebp
mov ebp, dword [esp + 0x1a8]
push esi
push edi
mov edi, dword [esp + 0x1ac]
mov esi, ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1bc]
mov dword [esp + 0x14], eax
cmp byte [edi + 0x100], 0
mov eax, dword [esp + 0x1c0]
mov dword [esp + 0x10], eax
je 0x41d73c
mov ebx, dword [esp + 0x1a8]
test ebx, ebx
je 0x41d73c
push 0x80
lea eax, [esp + 0xa0]
mov dword [esi + 0xa98], ebx
push eax
mov ecx, edi
call fcn.00453cf0
push 0x80
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0xa4]
push eax
call fcn.0045a050
dec ebx
cmp ebx, 4
ja case.default.0x41d5d0
jmp dword [ebx*4 + 0x41d75c]
mov cl, byte [esp + 0x1c]
mov word [esi + 0x10b5], 0
mov byte [esi + 0x10b4], 0
test cl, cl
je case.default.0x41d5d0
xor dl, dl
lea edi, [esp + 0x1c]
xor bl, bl
xor al, al
lea ecx, [ecx]
add al, cl
lea edi, [edi + 1]
add dl, cl
rol al, 1
xor bl, cl
mov cl, byte [edi]
test cl, cl
jne 0x41d600
mov byte [esi + 0x10b6], al
mov byte [esi + 0x10b5], bl
mov byte [esi + 0x10b4], dl
jmp case.default.0x41d5d0
lea eax, [esi + 0xba4]
push eax
call fcn.0041c820
lea ecx, [esp + 0x1c]
lea edx, [ecx + 1]
jmp 0x41d640
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41d640
sub ecx, edx
lea eax, [esp + 0x1c]
push ecx
push eax
push 0xffffffffffffffff
call fcn.0041c570
mov cl, byte [esp + 0x1c]
mov word [esi + 0x10b8], ax
shr eax, 0x10
mov word [esi + 0x10ba], ax
xor eax, eax
mov dword [esi + 0x10bc], eax
test cl, cl
je case.default.0x41d5d0
xor ebx, ebx
lea edi, [esp + 0x1c]
xor ebp, ebp
movzx eax, cl
lea edi, [edi + 1]
movzx ecx, cl
mov dx, word [esi + eax*4 + 0xba4]
xor dx, cx
xor dx, bx
mov word [esi + 0x10bc], dx
mov ax, word [esi + eax*4 + 0xba6]
add ax, cx
movzx ebx, dx
mov cl, byte [edi]
add ax, bp
mov word [esi + 0x10be], ax
movzx ebp, ax
test cl, cl
jne 0x41d683
jmp case.default.0x41d5d0
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
call fcn.0041d770
jmp case.default.0x41d5d0
push ebp
lea eax, [esp + 0xa0]
mov ecx, esi
push eax
push edi
push dword [esp + 0x1b0]
call fcn.0041da60
jmp case.default.0x41d5d0
push dword [esp + 0x10]
lea eax, [esp + 0xa0]
mov ecx, esi
push dword [esp + 0x18]
push dword [esp + 0x1c0]
push dword [esp + 0x24]
push ebp
push eax
push edi
push dword [esp + 0x1c0]
call fcn.0041de20
push 0x80
lea eax, [esp + 0x20]
push eax
call fcn.00454020
push 0x100
lea eax, [esp + 0xa0]
push eax
call fcn.00454020
mov al, 1
jmp 0x41d73e
xor al, al
mov ecx, dword [esp + 0x19c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004669f1
add esp, 0x190
ret 0x20
Function at 0x41e110
Capabilities:
Generate random numbers via winapi

Disassembly:
sub esp, 0xa0
mov eax, dword [0x48d1f4]
xor eax, esp
mov dword [esp + 0x9c], eax
push edi
mov edi, dword [esp + 0xa8]
lea eax, [esp + 4]
push 0xf0000040
push 1
push 0
push 0
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x41e174
push esi
lea eax, [esp + 0x74]
push eax
push 0x10
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [esp + 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp esi, 1
pop esi
je 0x41e180
push 0x10
lea eax, [esp + 0x74]
push eax
call fcn.0041e200
push 0x10
lea eax, [esp + 0x74]
push eax
call fcn.0041e200
lea eax, [esp + 8]
push eax
call fcn.00455bb0
push 0x10
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x10]
push eax
call fcn.00455c00
lea eax, [esp + 0x80]
push eax
lea eax, [esp + 0xc]
push eax
call fcn.00455aa0
mov eax, dword [esp + 0xac]
cmp eax, 0x20
jb 0x41e1ca
mov eax, 0x20
push eax
lea eax, [esp + 0x84]
push eax
push edi
call fcn.00468820
mov ecx, dword [esp + 0xac]
add esp, 0xc
pop edi
xor ecx, esp
call fcn.004669f1
add esp, 0xa0
ret 8

Function at 0x41e200
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push ebp
push edi
lea ecx, [esp + 8]
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.00458200
lea ecx, [esp + 8]
call fcn.00457f40
mov edi, eax
mov ebp, edx
call fcn.0046e586
cdq
add edi, eax
adc ebp, edx
xor ecx, ecx
mov dword [esp + 8], ecx
cmp dword [esp + 0x18], ecx
jbe 0x41e27e
push ebx
mov ebx, dword [0x49d0dc]
push esi
mov esi, dword [esp + 0x1c]
sub esi, ebx
nop
and ecx, 7
mov eax, edi
shl ecx, 3
mov edx, ebp
call fcn.00466fa0
mov ecx, dword [esp + 0x10]
xor al, cl
add al, bl
inc ecx
mov byte [esi + ebx], al
inc ebx
mov dword [esp + 0x10], ecx
cmp ecx, dword [esp + 0x20]
jb 0x41e250
pop esi
mov dword [0x49d0dc], ebx
pop ebx
pop edi
pop ebp
add esp, 8
ret 8

Function at 0x41e290
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov edx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x10ac]
add edx, 2
push ebp
mov ebp, dword [ecx + 0x10b0]
push esi
mov esi, dword [ecx + 0x10a4]
push edi
mov edi, dword [ecx + 0x10a8]
mov dword [esp + 0x10], 4
lea esp, [esp]
movzx eax, byte [edx - 2]
lea edx, [edx + 4]
xor esi, dword [ecx + eax*4 + 0xba4]
mov dword [ecx + 0x10a4], esi
movzx eax, byte [edx - 5]
xor edi, dword [ecx + eax*4 + 0xba4]
mov dword [ecx + 0x10a8], edi
movzx eax, byte [edx - 4]
xor ebx, dword [ecx + eax*4 + 0xba4]
mov dword [ecx + 0x10ac], ebx
movzx eax, byte [edx - 3]
xor ebp, dword [ecx + eax*4 + 0xba4]
sub dword [esp + 0x10], 1
mov dword [ecx + 0x10b0], ebp
jne 0x41e2c0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x41e320
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0x1d4
mov eax, dword [0x48d1f4]
xor eax, esp
mov dword [esp + 0x1d0], eax
mov eax, dword [esp + 0x1e0]
mov edx, dword [esp + 0x1f0]
push ebx
mov ebx, dword [esp + 0x1e0]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1ec]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1f8]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x1fc]
mov dword [esp + 4], edx
mov dword [esp + 0xc], eax
push ebp
mov ebp, dword [esp + 0x1e0]
push esi
push edi
mov edi, dword [esp + 0x1fc]
mov dword [esp + 0x1c], edi
cmp ebx, 0x40
jbe 0x41e3ce
lea eax, [esp + 0xf8]
push eax
call fcn.00455bb0
push ebx
push ebp
lea eax, [esp + 0x100]
push eax
call fcn.00455c00
lea eax, [esp + 0x1a0]
push eax
lea eax, [esp + 0xfc]
push eax
call fcn.00455aa0
mov edx, dword [esp + 0x10]
lea ebp, [esp + 0x1a0]
mov ebx, 0x20
mov eax, 0x40
test edi, edi
je 0x41e3ef
cmp byte [edx], 0
je 0x41e3ef
mov esi, edi
mov ecx, 0x1a
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x1c]
jmp 0x41e45c
xor edx, edx
test ebx, ebx
je 0x41e41a
mov esi, ebp
lea eax, [esp + 0x160]
sub esi, eax
lea ecx, [esp + 0x160]
add ecx, edx
inc edx
mov al, byte [esi + ecx]
xor al, 0x36
mov byte [ecx], al
cmp edx, ebx
jb 0x41e400
mov eax, 0x40
cmp ebx, 0x40
jae 0x41e436
sub eax, ebx
lea ecx, [esp + 0x160]
push eax
add ecx, ebx
push 0x36
push ecx
call fcn.00468da0
add esp, 0xc
lea eax, [esp + 0x28]
push eax
call fcn.00455bb0
push 0x40
lea eax, [esp + 0x164]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.00455c00
test edi, edi
je 0x41e46f
mov edx, dword [esp + 0x10]
cmp byte [edx], 0
jne 0x41e46f
mov ecx, 0x1a
lea esi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
mov byte [edx], 1
push dword [esp + 0x1f4]
lea eax, [esp + 0x2c]
push dword [esp + 0x24]
push eax
call fcn.00455c00
lea eax, [esp + 0x1c0]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00455aa0
mov edi, dword [esp + 0x14]
test edi, edi
je 0x41e4bd
mov eax, dword [esp + 0x18]
cmp byte [eax], 0
je 0x41e4bd
mov esi, edi
mov ecx, 0x1a
lea edi, [esp + 0x90]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x14]
jmp 0x41e532
xor edx, edx
test ebx, ebx
je 0x41e4e5
lea eax, [esp + 0x160]
sub ebp, eax
lea esp, [esp]
lea ecx, [esp + 0x160]
add ecx, edx
inc edx
mov al, byte [ecx + ebp]
xor al, 0x5c
mov byte [ecx], al
cmp edx, ebx
jb 0x41e4d0
cmp ebx, 0x40
jae 0x41e506
mov ecx, 0x40
lea eax, [esp + 0x160]
sub ecx, ebx
add eax, ebx
push ecx
push 0x5c
push eax
call fcn.00468da0
add esp, 0xc
lea eax, [esp + 0x90]
push eax
call fcn.00455bb0
push 0x40
lea eax, [esp + 0x164]
push eax
lea eax, [esp + 0x98]
push eax
call fcn.00455c00
test edi, edi
je 0x41e548
mov eax, dword [esp + 0x18]
cmp byte [eax], 0
jne 0x41e548
mov ecx, 0x1a
lea esi, [esp + 0x90]
rep movsd dword es:[edi], dword [esi]
mov byte [eax], 1
push 0x20
lea eax, [esp + 0x1c4]
push eax
lea eax, [esp + 0x98]
push eax
call fcn.00455c00
push dword [esp + 0x24]
lea eax, [esp + 0x94]
push eax
call fcn.00455aa0
mov ecx, dword [esp + 0x1e0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004669f1
add esp, 0x1d4
ret 0x24