joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401530
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x401559
pop edi
pop ebx
pop ebp
ret
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40156f
xor esi, esi
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401566
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x4015a2
nop
cmp esi, ecx
jae 0x401566
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x401590
cmp esi, ecx
jae 0x401566
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x401850
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 4], ecx
call fcn.0040706a
mov ebx, eax
test ebx, ebx
jne 0x401870
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, edi
shr eax, 4
push esi
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x401957
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401957
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401957
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x4018d8
cmp esi, ecx
jae 0x401957
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x4018c2
cmp esi, ecx
jae 0x401957
cmp word [esi], 0
je 0x401957
movzx eax, word [esi]
lea ecx, [esi + 2]
push 0
push 0
push 0
push 0
push eax
push ecx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
js 0x401962
mov ebx, dword [ebp - 4]
mov edx, 1
mov ecx, dword [ebx]
sub edx, dword [ecx - 4]
mov ecx, dword [ecx - 8]
sub ecx, edi
or edx, ecx
jge 0x401920
push edi
mov ecx, ebx
call fcn.00401760
movzx eax, word [esi]
push 0
push 0
push edi
push dword [ebx]
push eax
lea eax, [esi + 2]
push eax
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebx]
cmp edi, dword [eax - 8]
jg 0x401962
mov dword [eax - 0xc], edi
mov eax, dword [ebx]
pop esi
mov byte [edi + eax], 0
mov eax, 1
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00401990
int3
Function at 0x404094
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x42f07a
call fcn.00416648
mov eax, ecx
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp + 0x10]
xor edi, edi
mov esi, dword [ebp + 0x14]
push edi
mov dword [ebx], edi
mov dword [esi], edi
cmp dword [eax + 0x58], edi
je 0x40413c
push dword [ebp + 8]
call fcn.004043bd
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4041cf
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], edi
push ecx
push edi
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], edi
push ecx
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0x14], edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 0x14]
mov dword [esi], ecx
test eax, eax
jne 0x404125
push ecx
call fcn.0040217f
pop ecx
lea ecx, [ebp - 0x14]
mov dword [ebx], eax
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404125
xor edi, edi
inc edi
jmp 0x40412f
push dword [ebx]
call fcn.0040217a
pop ecx
mov dword [ebx], edi
lea ecx, [ebp - 0x24]
call fcn.00403fb9
jmp 0x4041cd
mov eax, dword [eax]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov esi, dword [eax + 0x84]
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call dword [0x430490]
mov ecx, dword [ebp - 0x18]
call esi
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 1
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x4041c5
mov esi, dword [ebp + 0x14]
shr ecx, 1
push ecx
mov dword [esi], ecx
call fcn.0040217f
mov dword [ebx], eax
pop ecx
cmp dword [esi], edi
jbe 0x4041bf
mov esi, dword [ebp + 0x10]
xor ecx, ecx
inc ecx
mov dword [ebp - 0x18], ecx
push ecx
lea ecx, [ebp - 0x10]
call fcn.00403f96
lea ecx, [edi + edi]
push ecx
lea ecx, [ebp - 0x10]
lea ebx, [eax - 1]
shl bl, 4
sub bl, 0x41
call fcn.00403f96
mov ecx, dword [esi]
add al, bl
mov byte [edi + ecx], al
inc edi
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x18]
add ecx, 2
mov dword [ebp - 0x18], ecx
cmp edi, dword [eax]
jb 0x404189
mov eax, dword [ebp - 0x10]
xor edi, edi
inc edi
lea ecx, [eax - 0x10]
call fcn.004019e0
mov eax, edi
call fcn.00416616
ret 0x10

Function at 0x4041d7
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x40422a
push esi
push dword [ebp + 8]
call fcn.004043bd
mov edi, eax
test edi, edi
je 0x404225
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x404225
mov eax, dword [ebp - 8]
jmp 0x40423c
mov eax, dword [ebp + 0x10]
jmp 0x40423c
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop edi
pop esi
leave
ret 0xc
Function at 0x404242
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42f0a7
mov eax, dword fs:[0]
push eax
mov eax, 0x101c
call fcn.004167f0
mov eax, dword [0x43f394]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x101c], edi
mov dword [ebp - 0x1024], eax
cmp dword [ecx + 0x58], ebx
je 0x404370
push ebx
push edx
call fcn.004043bd
mov ebx, eax
test ebx, ebx
jne 0x4042aa
push esi
jmp 0x404398
lea ecx, [ebp - 0x1014]
call fcn.00401a00
xor ecx, ecx
lea eax, [ebp - 0x1018]
push eax
push ecx
lea eax, [ebp - 0x1020]
mov dword [ebp - 4], ecx
push eax
push ecx
push dword [ebp - 0x1024]
mov dword [ebp - 0x1020], ecx
push ebx
mov dword [ebp - 0x1018], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x101c], eax
test eax, eax
jne 0x40432f
push dword [ebp - 0x1018]
lea ecx, [ebp - 0x1014]
call fcn.004017c0
lea ecx, [ebp - 0x1018]
push ecx
push eax
lea eax, [ebp - 0x1020]
push eax
push 0
push dword [ebp - 0x1024]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x1014]
mov dword [ebp - 0x101c], eax
call fcn.004044f9
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x101c], 0
jne 0x40435d
mov esi, dword [ebp - 0x1014]
add esi, 0xfffffff0
push esi
call fcn.00402c50
pop ecx
add eax, 0x10
mov ecx, esi
mov dword [edi], eax
call fcn.004019e0
jmp 0x40439f
push esi
mov ecx, edi
call fcn.004022ce
mov ecx, dword [ebp - 0x1014]
lea ecx, [ecx - 0x10]
jmp 0x404356
test esi, esi
jne 0x404379
mov esi, 0x432739
push dword [ecx + 0x6c]
lea ecx, [ebp - 0x1010]
push 0x1000
push ecx
push esi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x1010]
push eax
mov ecx, edi
call fcn.004022ce
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00415f61
leave
ret 0x10
Function at 0x40de8e
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
xor eax, eax
mov dword [ebp - 8], ecx
inc eax
inc ebx
mov dword [ebp - 4], eax
cmp dword [edi + 8], ebx
jle 0x40df05
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x40decb
mov eax, dword [ecx + 0x10]
cmp dword [eax + ebx*8 + 4], edx
je 0x40decb
mov eax, dword [edi + 0xc]
cmp dword [eax + ebx*4], 0
je 0x40def8
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x40defb
mov eax, dword [edi + 0xc]
mov eax, dword [eax + ebx*4]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x40def1
mov eax, dword [eax]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x430490]
mov ecx, dword [ebp - 0xc]
call esi
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [edi + 0xc]
and dword [eax + ebx*4], 0
mov eax, dword [ebp - 4]
inc ebx
cmp ebx, dword [edi + 8]
jl 0x40deae
test eax, eax
je 0x40df4c
lea esi, [ecx + 0x1c]
mov ebx, edi
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 8]
push edi
add ecx, 0x14
call fcn.0040e17d
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x430490]
mov ecx, edi
call esi
mov eax, dword [ebp - 8]
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40e1d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x10
mov eax, 0x42f671
call fcn.004166b1
mov ebx, ecx
mov dword [ebp - 0x18], ebx
lea eax, [ebx + 0x1c]
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebp + 8]
test edi, edi
jle 0x40e2c7
cmp edi, dword [ebx + 0xc]
jge 0x40e2c7
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x40e227
cmp edi, dword [esi + 8]
jl 0x40e2b5
cmp dword [ebp + 0xc], 0
je 0x40e2b5
xor edi, edi
jmp 0x40e259
xor edi, edi
push 0x10
mov dword [ebp - 4], edi
call fcn.0040dc8d
mov esi, eax
test esi, esi
je 0x40e241
mov dword [esi], vtable.CThreadData.0
jmp 0x40e243
mov esi, edi
or dword [ebp - 4], 0xffffffff
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
mov dword [esi + eax], ecx
mov dword [ebx + 0x14], esi
push 4
push dword [ebx + 0xc]
call fcn.00406a2c
cmp dword [esi + 0xc], 0
pop ecx
pop ecx
jne 0x40e275
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x40e281
push 2
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edx, eax
test edx, edx
je 0x40e2ee
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], edx
mov eax, dword [ebx + 0xc]
sub eax, ecx
shl eax, 2
push eax
lea eax, [edx + ecx*4]
push edi
push eax
call fcn.00417cc0
mov eax, dword [ebx + 0xc]
add esp, 0xc
mov dword [esi + 8], eax
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edi, dword [ebp + 8]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x40e2c7
cmp edi, dword [esi + 8]
jge 0x40e2c7
mov eax, dword [ebp + 0xc]
mov dword [ecx + edi*4], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00416616
ret 8
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00406ed4
int3
Function at 0x416efb
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x416f3a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x416f3a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x416f3a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x416f3a
cmp dword [ecx + 0x74], 0xe
jbe 0x416f3a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x42477e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x436d48
push 0x436d40
push str.FlsAlloc
push 0x1f
call fcn.0042463d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4247b2
push dword [ebp + 8]
mov ecx, esi
call dword [0x430490]
call esi
jmp 0x4247b8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4247fc
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x436d58
push 0x436d50
push str.FlsGetValue
push 0x21
call fcn.0042463d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x424833
push dword [ebp + 8]
mov ecx, esi
call dword [0x430490]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x42483b
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x436d60
push 0x436d58
push str.FlsSetValue
push 0x22
call fcn.0042463d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x424875
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x430490]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x427195
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x427232
push ebx
push esi
call fcn.0042715e
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00425ea8
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4271df
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x427231
push edi
push eax
call fcn.004231e1
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4271ff
call fcn.004231a7
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x427230
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00425ea8
add esp, 0x20
test eax, eax
jne 0x42721e
push edi
call fcn.004231a7
jmp 0x427226
push ebx
call fcn.004231a7
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x427235
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x427246
pop esi
ret
push ebx
push edi
push esi
call fcn.0042715e
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004231e1
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x42726e
push ebx
push esi
push edi
call fcn.00417740
add esp, 0xc
push 0
call fcn.004231a7
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x42763e
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00427283
Function at 0x40493f
Capabilities:
Hash data using sha256

Disassembly:
cmp dword [0x43ea38], 2
push esi
push edi
mov edi, eax
mov esi, ecx
jl 0x404953
call fcn.004037cc
mov ecx, esi
call fcn.0040491c
xor eax, eax
mov edx, dword [eax + 0x425308]
mov ecx, dword [esi + 0xf4]
mov dword [eax + ecx], edx
add eax, 4
cmp eax, 0x20
jl 0x40495c
mov eax, dword [esi + 0xf4]
xor dword [eax], 0x2080020
mov eax, dword [esi + 0xf4]
mov ecx, dword [esp + 0xc]
xor dword [eax + 8], ecx
mov esi, dword [esi + 0xf4]
or edi, 0x2000
shl edi, 0x10
xor dword [esi + 0xc], edi
pop edi
pop esi
ret 4
Function at 0x405767
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
push ebx
push esi
push edi
push 0x400
lea eax, [ebp - 0x800]
push eax
push dword [ebp + 0xc]
call fcn.0040f3c8
call fcn.0041a122
add eax, 0x20
xor ebx, ebx
cmp dword [ebp + 8], eax
jne 0x40579e
cmp byte [0x42c170], bl
jne 0x4057b3
call fcn.0041a122
add eax, 0x40
cmp dword [ebp + 8], eax
jne 0x40581a
cmp byte [0x42c171], bl
je 0x40581a
push dword [ebp + 0x10]
lea eax, [ebp - 0x800]
push ebx
push eax
mov esi, 0x1800
push esi
mov edi, 0x42d978
push edi
call fcn.00418317
add esp, 0x14
push esi
mov esi, 0x42c178
push esi
push edi
call fcn.00410649
push esi
push esi
call dword [sym.imp.USER32.dll_CharToOemA]
call fcn.0041a122
xor ecx, ecx
add eax, 0x20
cmp dword [ebp + 8], eax
sete cl
add ecx, 0xfffffff4
push ecx
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
push ebx
lea eax, [ebp + 0x10]
push eax
push esi
call fcn.00418380
pop ecx
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x405869
push dword [ebp + 0x10]
lea eax, [ebp - 0x800]
push ebx
push eax
push 0x1800
mov edi, 0x42d978
push edi
call fcn.00418317
add esp, 0x14
call fcn.0041a122
xor ecx, ecx
add eax, 0x40
cmp dword [ebp + 8], eax
setne cl
add ecx, 0xfffffff4
push ecx
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
push ebx
lea eax, [ebp + 0xc]
push eax
push edi
call fcn.004180d1
pop ecx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x405e61
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
test esi, esi
jbe 0x405e8e
test cl, 7
je 0x405e8e
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x433178]
dec esi
inc ecx
jmp 0x405e6f
cmp esi, 8
jb 0x405f31
mov edx, esi
shr edx, 3
mov dword [ebp + 8], edx
push ebx
mov edx, dword [ecx + 4]
xor eax, dword [ecx]
mov ebx, edx
shr ebx, 0x10
movzx edi, bl
mov edi, dword [edi*4 + 0x433578]
mov ebx, edx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x433178]
mov ebx, edx
shr ebx, 8
movzx ebx, bl
xor edi, dword [ebx*4 + 0x433978]
mov ebx, eax
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x434178]
mov ebx, eax
shr ebx, 0x10
movzx ebx, bl
xor edi, dword [ebx*4 + 0x434578]
mov ebx, eax
shr ebx, 8
movzx ebx, bl
xor edi, dword [ebx*4 + 0x434978]
movzx edx, dl
xor edi, dword [edx*4 + 0x433d78]
movzx eax, al
xor edi, dword [eax*4 + 0x434d78]
sub esi, 8
add ecx, 8
dec dword [ebp + 8]
mov eax, edi
jne 0x405ea0
pop ebx
jmp 0x405f31
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x433178]
dec esi
inc ecx
test esi, esi
ja 0x405f1d
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4061f2
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d0
push ebx
push esi
mov esi, dword [ebp + 0xc]
push 0x40
pop ebx
cmp esi, ebx
jbe 0x40623c
lea eax, [ebp - 0x1d0]
push eax
call fcn.0040ece8
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x1d0]
push eax
call fcn.0040efea
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x1d0]
push eax
call fcn.0040f063
lea eax, [ebp - 0x80]
push 0x20
mov dword [ebp + 8], eax
pop esi
xor ecx, ecx
push edi
test esi, esi
jbe 0x40625c
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x40]
sub edi, eax
lea eax, [ebp + ecx - 0x40]
mov dl, byte [edi + eax]
xor dl, 0x36
inc ecx
mov byte [eax], dl
cmp ecx, esi
jb 0x40624b
cmp esi, ebx
jae 0x406274
mov ecx, ebx
sub ecx, esi
push ecx
lea eax, [ebp + esi - 0x40]
push 0x36
push eax
call fcn.00418140
add esp, 0xc
lea eax, [ebp - 0xf0]
push eax
call fcn.0040ece8
push ebx
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0xf0]
push eax
call fcn.0040efea
push dword [ebp + 0x14]
lea eax, [ebp - 0xf0]
push dword [ebp + 0x10]
push eax
call fcn.0040efea
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0xf0]
push eax
call fcn.0040f063
lea eax, [ebp - 0x160]
push eax
call fcn.0040ece8
xor ecx, ecx
test esi, esi
jbe 0x4062de
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x40]
sub edi, eax
lea eax, [ebp + ecx - 0x40]
mov dl, byte [edi + eax]
xor dl, 0x5c
inc ecx
mov byte [eax], dl
cmp ecx, esi
jb 0x4062cd
pop edi
cmp esi, ebx
jae 0x4062f7
mov ecx, ebx
sub ecx, esi
push ecx
lea eax, [ebp + esi - 0x40]
push 0x5c
push eax
call fcn.00418140
add esp, 0xc
push ebx
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x160]
push eax
call fcn.0040efea
push 0x20
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x160]
push eax
call fcn.0040efea
push dword [ebp + 0x18]
lea eax, [ebp - 0x160]
push eax
call fcn.0040f063
pop esi
pop ebx
leave
ret 0x14
Function at 0x40632f
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x58]
sub esp, 0xbc
push esi
mov esi, dword [ebp + 0x6c]
push edi
push 0x40
pop eax
cmp esi, eax
jae 0x406348
mov eax, esi
push eax
push dword [ebp + 0x68]
lea eax, [ebp - 0x44]
push eax
call fcn.00419bb0
add esp, 0xc
lea eax, [ebp + 0x20]
push eax
mov byte [ebp + esi - 0x44], 0
mov byte [ebp + esi - 0x43], 0
mov byte [ebp + esi - 0x42], 0
mov byte [ebp + esi - 0x41], 1
add esi, 4
push esi
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 0x64]
push dword [ebp + 0x60]
call fcn.004061f2
push 0x20
pop esi
push esi
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp]
push eax
call fcn.00419bb0
mov eax, dword [ebp + 0x7c]
add esp, 0xc
dec eax
mov dword [ebp + 0x4c], eax
push 0x10
pop eax
mov dword [ebp + 0x50], eax
mov dword [ebp + 0x54], eax
mov eax, dword [ebp + 0x70]
mov dword [ebp + 0x40], eax
mov eax, dword [ebp + 0x74]
mov dword [ebp + 0x44], eax
mov eax, dword [ebp + 0x78]
mov dword [ebp + 0x48], eax
xor edi, edi
mov eax, dword [ebp + edi + 0x4c]
test eax, eax
jbe 0x4063ff
mov dword [ebp + 0x6c], eax
lea eax, [ebp - 0x64]
push eax
push esi
lea eax, [ebp + 0x20]
push eax
push dword [ebp + 0x64]
push dword [ebp + 0x60]
call fcn.004061f2
push esi
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp + 0x20]
push eax
call fcn.00419bb0
add esp, 0xc
xor eax, eax
mov cl, byte [ebp + eax + 0x20]
xor byte [ebp + eax], cl
inc eax
cmp eax, esi
jb 0x4063ed
dec dword [ebp + 0x6c]
jne 0x4063c6
push esi
lea eax, [ebp]
push eax
push dword [ebp + edi + 0x40]
call fcn.00419bb0
add edi, 4
add esp, 0xc
cmp edi, 0xc
jb 0x4063bb
push 0x44
lea eax, [ebp - 0x44]
push eax
call fcn.0040e63f
push esi
lea eax, [ebp]
push eax
call fcn.0040e63f
push esi
lea eax, [ebp + 0x20]
push eax
call fcn.0040e63f
push esi
lea eax, [ebp - 0x64]
push eax
call fcn.0040e63f
pop edi
pop esi
add ebp, 0x58
leave
ret 0x20