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

Disassembly:
sub esp, 0x318
mov eax, dword [0x449e30]
xor eax, esp
mov dword [esp + 0x314], eax
xor eax, eax
push esi
mov esi, dword [esp + 0x320]
mov dword [esp + 0x110], eax
mov dword [esp + 0x114], eax
mov dword [esp + 0xc], eax
mov eax, esi
push edi
mov dword [esp + 8], 0
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ff90
sub eax, edx
sar eax, 1
add eax, 0xfffffffd
push eax
push esi
lea eax, [esp + 0x11c]
push 0x104
push eax
call fcn.00422062
mov eax, esi
add esp, 0x10
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ffc0
xor ecx, ecx
push ecx
push ecx
push 2
push ecx
push 1
sub eax, edx
push 0x40000000
lea edx, [esp + 0x12c]
sar eax, 1
push edx
mov word [esp + eax*2 + 0x12a], cx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x410013
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x314]
xor ecx, esp
call fcn.0041fd8a
add esp, 0x318
ret
push 0x208
push esi
push 0x104
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00422042
lea edx, [esp + 0x24]
push 0x43bc00
push edx
call fcn.00401580
push 0x104
mov esi, eax
lea eax, [esp + 0x30]
push 0
push eax
call fcn.0041fd10
add esp, 0x28
test esi, esi
je 0x40fffa
push 0x104
lea ecx, [esp + 0x14]
push ecx
push esi
call fcn.00401fe0
add esp, 0xc
mov dword [esp + 8], eax
test eax, eax
jle 0x4100a4
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [esp + 0x10]
push edx
push eax
lea eax, [esp + 0x20]
push eax
push edi
call ebx
push 0x104
lea ecx, [esp + 0x18]
push ecx
push esi
call fcn.00401fe0
add esp, 0xc
mov dword [esp + 0xc], eax
test eax, eax
jg 0x410078
pop ebx
push esi
call fcn.00401000
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x31c]
pop edi
pop esi
xor ecx, esp
mov al, 1
call fcn.0041fd8a
add esp, 0x318
ret

Function at 0x4155ac
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x4155d0
cmp dword [edi + 0x54], 0
jne 0x4155d0
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00412965
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0041556d
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x417a41
Capabilities:
Contain obfuscated stackstrings

Disassembly:
aam 0xf
mov bh, 0x47
push es
lea eax, [eax + eax*4]
shl eax, 3
sub eax, dword [ebp + 0x10]
add eax, esi
mov dword [ebp - 0xb4], eax
mov dword [ebp - 8], eax
call fcn.0041782d
sbb cl, byte [esi + ebp*2 + 0x478b66c3]
push es
cmp ax, bx
jbe 0x417a87
lea ecx, [esi + 0xc]
movzx edx, ax
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
add eax, esi
cmp dword [ebp - 8], eax
jae 0x417a81
mov dword [ebp - 8], eax
add ecx, 0x28
dec edx
jne 0x417a72
mov byte [ebp - 0x58], bl
mov byte [ebp - 0x57], bl
mov byte [ebp - 0x56], 0x58
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x54], 0xe0
mov byte [ebp - 0x53], 0xc2
mov byte [ebp - 0x52], 0xd3
mov byte [ebp - 0x51], 0xf4
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.0041782d
pop ds
loopne 0x417af7
std
lea eax, [ebp - 0x58]
push eax
call fcn.0041783d
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.004177f2
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x417b1b
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.0041782d
sub ecx, esp
cmc
insd dword es:[edi], dx
lea eax, [ebp - 0x40]
push eax
call fcn.0041783d
push eax
push esi
push dword [ebp + 8]
call fcn.004177f2
add esp, 0x10
mov dword [ebp - 0x88], eax
call fcn.0041782d
retf
Function at 0x417f8d
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x417f04
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x417f22
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x417f80
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x417f67
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x417f70
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x417f7a
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x417f5c
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x417ee6
mov dword [ebp + 8], esi
xor edi, edi

Function at 0x418046
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add byte [eax - 0x3525b], al
inc dword [eax]
mov byte [ebp - 0x352], 0xda
and byte [ebp - 0x351], 0
mov byte [ebp - 0x350], 0x62
mov byte [ebp - 0x34f], 0x40
mov byte [ebp - 0x34e], 0x51
mov byte [ebp - 0x34d], 0x75
mov byte [ebp - 0x34c], 0x57
mov byte [ebp - 0x34b], 0x4a
mov byte [ebp - 0x34a], 0x46
mov byte [ebp - 0x349], 0x40
inc eax
movsd dword es:[edi], dword [esi]
pushfd
stc
invalid
Function at 0x4184ed
Capabilities:
Contain obfuscated stackstrings

Disassembly:
or bh, bh
xchg ebp, eax
enter 0xfffffffffffffffa, 0xffffffffffffffff
mov dword [ebp - 0x398], eax
mov byte [ebp - 0x544], 1
cmp dword [ebp - 0x398], 0
je 0x418521
cmp dword [ebp - 0x398], 0
je 0x4186eb
cmp dword [ebp + 0xc], 1
je 0x4186eb
cmp dword [ebp + 0xc], 8
jne 0x4186b3
and byte [ebp - 0x6b8], 0
and byte [ebp - 0x6b7], 0
mov byte [ebp - 0x6b6], 0x9b
and byte [ebp - 0x6b5], 0
add dh, al
test dword [ecx + edi*8 - 1], ecx
push dword [ebx]
stc
call fcn.0041782d
cmc
or eax, 0xa58072f0
mov esp, 0xfffffa
push 0
call dword [ebp - 0x340]
mov dword [ebp + 8], eax
push 0x104
lea eax, [ebp - 0x334]
push eax
push 0
call dword [ebp - 0x538]
call fcn.0041782d
mov cl, 0x87
insb byte es:[edi], dx
jo 0x41866c
and byte [ebp - 0x230], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x22f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x12c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.0041780b
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
cld
invalid
invalid
cmp dh, al
test dword [ecx + 0x11fffffc], esp
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
call fcn.0041783d
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004177f2
add esp, 0xc
mov dword [ebp - 0x3d4], eax
call fcn.0041782d
fst dword [edx + 0x46]
cmpsd dword [esi], dword es:[edi]
push 0x104
lea eax, [ebp - 0x12c]
push eax
call dword [ebp - 0x3d4]
mov dword [ebp - 0x28], eax
call fcn.0041782d
invalid
movsd dword es:[edi], dword [esi]
sar ch, 1
invalid
Function at 0x41ad01
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x41ad48
call fcn.00412965
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41ad48
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41ad64
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041a879
mov esi, eax
test edi, edi
je 0x41ad62
test ebx, ebx
je 0x41ad62
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41fd8a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x449e30]
jne 0x41fd94
repz ret
jmp fcn.00427933

Function at 0x431450
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00426f95
and dword [ebp - 4], 0
cmp dword [0x45e610], 0
mov ebx, eax
jne 0x431501
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4315b2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4315b2
push eax
call fcn.00426f23
mov dword [esp], 0x43ebf8
push edi
mov dword [0x45e610], eax
call esi
push eax
call fcn.00426f23
mov dword [esp], 0x43ebe4
push edi
mov dword [0x45e614], eax
call esi
push eax
call fcn.00426f23
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x45e618], eax
call esi
push eax
call fcn.00426f23
pop ecx
mov dword [0x45e620], eax
test eax, eax
je 0x431501
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00426f23
pop ecx
mov dword [0x45e61c], eax
mov eax, dword [0x45e61c]
cmp eax, ebx
je 0x431559
cmp dword [0x45e620], ebx
je 0x431559
push eax
call fcn.00426f9e
push dword [0x45e620]
mov esi, eax
call fcn.00426f9e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x431559
test edi, edi
je 0x431559
call esi
test eax, eax
je 0x431550
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x431550
test byte [ebp - 0xc], 1
jne 0x431559
or dword [ebp + 0x10], 0x200000
jmp 0x431592
mov eax, dword [0x45e614]
cmp eax, ebx
je 0x431592
push eax
call fcn.00426f9e
pop ecx
test eax, eax
je 0x431592
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x431592
mov eax, dword [0x45e618]
cmp eax, ebx
je 0x431592
push eax
call fcn.00426f9e
pop ecx
test eax, eax
je 0x431592
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45e610]
call fcn.00426f9e
pop ecx
test eax, eax
je 0x4315b2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4315b4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40277c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004039f4
test esi, esi
jne 0x4027b2
push 0x105
lea eax, [esp + 4]
push eax
push 0
call fcn.00401118
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00403ae4
jmp 0x4027d0
call fcn.00401100
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402690
mov edi, eax
test esi, esi
je 0x4027d0
cmp dword [ebx], 0
je 0x4027d0
dec esi
jmp 0x4027b9
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402c58
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x40b008], 0x8088405
inc edx
mov dword [ebx + 0x40b008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x402e38
Capabilities:
Clear file content

Disassembly:
movzx edx, word [eax + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x402e56
push dword [eax]
call fcn.004010c0
dec eax
je 0x402e60
jmp fcn.00402644
mov eax, 0x67
jmp fcn.00402634
ret

Function at 0x402f70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40b014]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403008
push 0x80000002
call fcn.00401138
test eax, eax
jne 0x402fe8
xor eax, eax
push ebp
push 0x402fe1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403024
mov eax, dword [ebp - 4]
push eax
call fcn.00401140
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402fe8
mov eax, dword [ebp - 4]
push eax
call fcn.00401130
ret
mov ax, word [0x40b014]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40b014], ax
mov esp, ebp
pop ebp
ret

Function at 0x403878
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40c038], 0
je 0x4038d9
cmp word [0x40c20c], 0xd7b2
jne 0x4038a1
cmp dword [0x40c214], 0
jbe 0x4038a1
mov eax, 0x40c208
call dword [0x40c224]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40b080
push 0xfffffffffffffff5
call fcn.004010a0
push eax
call fcn.004010d8
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403900
push 0xfffffffffffffff5
call fcn.004010a0
push eax
call fcn.004010d8
pop edx
ret
cmp byte [0x40b020], 0
jne 0x4038f5
push 0
push 0x40b078
push 0x40b080
push 0
call fcn.004010f0
pop edx
ret
Function at 0x403904
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, 0x40c624
mov esi, section.DATA
mov edi, 0x40c034
cmp byte [ebx + 0x28], 0
jne 0x403933
cmp dword [edi], 0
je 0x403933
mov edx, dword [edi]
mov eax, edx
xor edx, edx
mov dword [edi], edx
mov ebp, eax
call ebp
cmp dword [edi], 0
jne 0x403922
cmp dword [0x40b004], 0
je 0x40394d
call fcn.004037ec
call fcn.00403878
xor eax, eax
mov dword [0x40b004], eax
cmp byte [ebx + 0x28], 2
jne 0x40395d
cmp dword [esi], 0
jne 0x40395d
xor eax, eax
mov dword [ebx + 0xc], eax
call fcn.004036ec
cmp byte [ebx + 0x28], 1
jbe 0x40396d
cmp dword [esi], 0
je 0x40398e
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x40398e
call fcn.0040421c
mov edx, dword [ebx + 0x10]
mov eax, dword [edx + 0x10]
cmp eax, dword [edx + 4]
je 0x40398e
test eax, eax
je 0x40398e
push eax
call fcn.004010f8
call fcn.004036c4
cmp byte [ebx + 0x28], 1
jne 0x40399c
call dword [ebx + 0x24]
cmp byte [ebx + 0x28], 0
je 0x4039a7
call fcn.00403848
cmp dword [ebx], 0
jne 0x4039c3
cmp dword [0x40c018], 0
je 0x4039bb
call dword [0x40c018]
mov eax, dword [esi]
push eax
call fcn.004010e8
mov eax, dword [ebx]
push esi
mov esi, eax
mov edi, ebx
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
pop esi
jmp 0x40394d

Function at 0x4042a4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x40430a
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call fcn.00401110
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403b60
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402e64
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4042f4
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404311
lea eax, [ebp - 0x10]
call fcn.004039f4
ret

Function at 0x406b04
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ecx
push ebx
push edx
xor edx, edx
push 0x406ad4
push dword fs:[edx]
mov dword [0x40c7e0], esp
mov dword [0x40c7e4], ebp
mov dword [0x40c7e8], 0x406ba0
mov dword fs:[edx], esp
mov edi, dword [ebp + 8]
mov ecx, 0x96
xor al, al
repne scasb al, byte es:[edi]
mov ecx, edi
sub ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
cmp word [edx], 0x5a4d
jne 0x406ba0
add edx, dword [edx + 0x3c]
cmp dword [edx], 0x4550
jne 0x406ba0
mov edx, dword [edx + 0x78]
or edx, edx
je 0x406ba0
add edx, dword [ebp + 0xc]
mov ebx, dword [edx + 0x20]
add ebx, dword [ebp + 0xc]
xor eax, eax
mov edi, dword [ebx]
add edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push ecx
repe cmpsb byte [esi], byte es:[edi]
pop ecx
je 0x406b80
add ebx, 4
inc eax
cmp eax, dword [edx + 0x18]
jb 0x406b67
jmp 0x406ba0
shl eax, 1
add eax, dword [edx + 0x24]
add eax, dword [ebp + 0xc]
mov ax, word [eax]
and eax, 0xffff
shl eax, 2
add eax, dword [edx + 0x1c]
add eax, dword [ebp + 0xc]
mov eax, dword [eax]
add eax, dword [ebp + 0xc]
jmp 0x406ba2
xor eax, eax
xor edx, edx
pop dword fs:[edx]
add esp, 4
pop edx
pop ebx
pop ecx
pop edi
pop esi
pop ebp
ret 8
Function at 0x40627e
Capabilities:
Hash data using sha256

Disassembly:
cmp dword [0x44c200], 2
jl 0x4062a3
movaps xmm0, xmmword [0x4367f0]
movaps xmmword [0x443040], xmm0
movaps xmm0, xmmword [0x4367e0]
movaps xmmword [0x443050], xmm0
push esi
mov esi, dword [esp + 8]
mov ecx, esi
call fcn.0040666c
xor edx, edx
mov ecx, dword [esi + 0xf4]
mov eax, dword [edx + 0x4367b8]
mov dword [edx + ecx], eax
add edx, 4
cmp edx, 0x20
jl 0x4062b1
mov eax, dword [esi + 0xf4]
xor dword [eax], 0x2080020
mov ecx, dword [esi + 0xf4]
mov eax, dword [esp + 0xc]
xor dword [ecx + 8], eax
mov ecx, dword [esi + 0xf4]
mov eax, dword [esp + 0x10]
or eax, 0x2000
shl eax, 0x10
xor dword [ecx + 0xc], eax
pop esi
ret 0xc

Function at 0x4069ea
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
test esi, esi
je 0x406a14
movzx ecx, byte [edi]
movzx eax, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x443060]
inc edi
sub esi, 1
jne 0x4069fc
pop edi
mov eax, edx
pop esi
ret 0xc

Function at 0x406bf3
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x28
mov eax, dword [0x44277c]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
mov ebx, dword [esp + 0x34]
push ebp
push esi
push edi
mov edi, dword [esp + 0x3c]
xor ebp, ebp
cmp dword [edi], 2
lea esi, [edi + 4]
jne 0x406c54
mov eax, dword [esi]
push ebp
push ebp
push ebp
push ebp
mov dword [esp + 0x20], eax
lea eax, [esp + 0x24]
push eax
push 4
lea eax, [esp + 0x28]
push eax
push 0x20
push ebx
call fcn.004073f1
mov edx, ebp
movzx eax, byte [esp + edx + 0x14]
mov ecx, edx
and ecx, 3
shl ecx, 3
shl eax, cl
xor eax, ebp
inc edx
mov ebp, eax
cmp edx, 0x20
jb 0x406c37
mov dword [esi], eax
xor ebp, ebp
cmp dword [edi], 3
jne 0x406c7d
push ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0x24]
push eax
push 0x20
push esi
push 0x20
push ebx
call fcn.004073f1
push 0x20
lea eax, [esp + 0x18]
push eax
push esi
call fcn.00424240
add esp, 0xc
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004210e9
add esp, 0x28
ret 8
Function at 0x4073f1
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0x1d4
mov eax, dword [0x44277c]
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 0x40749d
lea eax, [esp + 0xf8]
push eax
call fcn.00412074
push ebx
push ebp
lea eax, [esp + 0x100]
push eax
call fcn.004120ba
lea eax, [esp + 0x1a0]
push eax
lea eax, [esp + 0xfc]
push eax
call fcn.00411f91
mov edx, dword [esp + 0x10]
lea ebp, [esp + 0x1a0]
push 0x20
pop ebx
test edi, edi
je 0x4074b7
cmp byte [edx], 0
je 0x4074b7
mov esi, edi
lea edi, [esp + 0x28]
push 0x1a
pop ecx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x1c]
jmp 0x407522
xor edx, edx
test ebx, ebx
je 0x4074dd
mov esi, ebp
lea eax, [esp + 0x160]
sub esi, eax
lea ecx, [esp + 0x160]
add ecx, edx
mov al, byte [esi + ecx]
xor al, 0x36
inc edx
mov byte [ecx], al
cmp edx, ebx
jb 0x4074c8
cmp ebx, 0x40
jae 0x4074fc
push 0x40
pop eax
sub eax, ebx
lea ecx, [esp + 0x160]
push eax
add ecx, ebx
push 0x36
push ecx
call fcn.00422630
add esp, 0xc
lea eax, [esp + 0x28]
push eax
call fcn.00412074
push 0x40
lea eax, [esp + 0x164]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.004120ba
test edi, edi
je 0x407533
mov edx, dword [esp + 0x10]
cmp byte [edx], 0
jne 0x407533
push 0x1a
pop ecx
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.004120ba
lea eax, [esp + 0x1c0]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00411f91
mov edi, dword [esp + 0x14]
test edi, edi
je 0x40757f
mov eax, dword [esp + 0x18]
cmp byte [eax], 0
je 0x40757f
mov esi, edi
lea edi, [esp + 0x90]
push 0x1a
pop ecx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x14]
jmp 0x4075ee
test ebx, ebx
je 0x4075a3
lea eax, [esp + 0x160]
sub ebp, eax
xor edx, edx
lea ecx, [esp + 0x160]
add ecx, edx
mov al, byte [ecx + ebp]
xor al, 0x5c
inc edx
mov byte [ecx], al
cmp edx, ebx
jb 0x40758e
cmp ebx, 0x40
jae 0x4075c2
push 0x40
pop eax
sub eax, ebx
lea ecx, [esp + 0x160]
push eax
add ecx, ebx
push 0x5c
push ecx
call fcn.00422630
add esp, 0xc
lea eax, [esp + 0x90]
push eax
call fcn.00412074
push 0x40
lea eax, [esp + 0x164]
push eax
lea eax, [esp + 0x98]
push eax
call fcn.004120ba
test edi, edi
je 0x407602
mov eax, dword [esp + 0x18]
cmp byte [eax], 0
jne 0x407602
push 0x1a
pop ecx
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.004120ba
push dword [esp + 0x24]
lea eax, [esp + 0x94]
push eax
call fcn.00411f91
mov ecx, dword [esp + 0x1e0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004210e9
add esp, 0x1d4
ret 0x24