joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f496
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x41f504
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push str.DisableMMX
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41f4fb
cmp dword [ebp - 0xc], 4
jne 0x41f4fb
cmp dword [ebp - 0x10], edi
je 0x41f4fb
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x6d16d4], edi
xor eax, eax
jmp 0x41f52c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x6d16d4], edi
jge 0x41f527
mov dword [0x6d16d4], edi
call fcn.0041f471
test eax, eax
je 0x41f527
emms
mov dword [0x6d16d4], 1
mov eax, dword [0x6d16d4]
pop edi
leave
ret

Function at 0x41f60c
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x98
push ebx
push edi
push 0x25
pop ecx
xor eax, eax
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
xor bl, bl
and byte [ebp + 0x73], bl
push eax
mov dword [ebp - 0x24], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x41f643
inc bl
mov byte [ebp + 0x73], 1
cmp dword [ebp - 0x14], 1
jne 0x41f665
cmp dword [ebp - 0x20], 4
ja 0x41f66f
jne 0x41f65f
cmp dword [ebp - 0x1c], 0xa
jb 0x41f65f
cmp word [ebp - 0x18], 0x55d
jae 0x41f66f
mov byte [ebp + 0x73], 1
jmp 0x41f66f
cmp dword [ebp - 0x14], 2
jne 0x41f685
test bl, bl
je 0x41f6a0
mov eax, dword [ebp + 0x7c]
sub eax, 6
je 0x41f690
dec eax
je 0x41f689
sub eax, 3
jne 0x41f685
cmp byte [ebp + 0x73], 0
je 0x41f6b1
xor eax, eax
jmp 0x41f6b9
call fcn.0041f52f
jmp 0x41f6b9
cmp byte [ebp + 0x73], 0
jne 0x41f685
call fcn.0041f567
and eax, 4
jmp 0x41f6b9
cmp dword [ebp + 0x7c], 0xa
je 0x41f6b1
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
jmp 0x41f6b9
call fcn.0041f567
and eax, 8
pop edi
pop ebx
add ebp, 0x74
leave
ret
Function at 0x422dc5
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x20
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
push ebp
mov ebp, dword [eax + 0x18]
mov eax, dword [edx + 0x18]
push esi
mov esi, dword [edx + 0x105c]
push edi
mov edi, dword [edx + 0x1050]
imul esi, edi
add esi, eax
cmp eax, esi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], esi
jae 0x422efb
push ebx
mov edx, dword [edx + 0x1058]
add edx, eax
add edi, eax
cmp eax, edx
mov ebx, eax
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], edx
jae 0x422ed6
movzx ebp, byte [ebx]
movzx esi, byte [ebx + 1]
movzx eax, byte [edi + 1]
movzx edi, byte [edi]
mov edx, eax
push 0xf
pop ecx
and edx, ecx
mov ebx, ebp
and ebx, ecx
add edx, ebx
mov ebx, edi
and ebx, ecx
add edx, ebx
mov ebx, esi
and ebx, ecx
lea edx, [edx + ebx + 2]
mov ecx, eax
and ecx, 0xffff00f0
mov ebx, ebp
and ebx, 0xffff00f0
add ecx, ebx
mov ebx, edi
and ebx, 0xffff00f0
add ecx, ebx
mov ebx, esi
and ebx, 0xffff00f0
shr edx, 2
lea ecx, [ecx + ebx + 0x20]
mov ebx, dword [esp + 0x14]
shr ecx, 2
xor dl, cl
mov ecx, 0xf0
and ax, cx
and bp, cx
and di, cx
and si, cx
and dl, 0xf
add eax, ebp
add eax, edi
mov edi, dword [esp + 0x18]
lea eax, [eax + esi + 0x20]
shr eax, 2
xor dl, al
mov eax, dword [esp + 0x10]
inc dword [esp + 0x10]
inc ebx
inc ebx
inc edi
inc edi
cmp ebx, dword [esp + 0x24]
mov byte [eax], dl
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edi
jb 0x422e24
mov ecx, dword [esp + 0x28]
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x2c]
mov edx, dword [ecx + 4]
add ebp, dword [edx + 0x1050]
mov edx, dword [ecx]
mov edi, dword [edx + 0x1050]
lea eax, [eax + edi*2]
cmp eax, esi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], eax
jb 0x422e00
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x20
ret

Function at 0x42b7ac
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x42b7d9
push esi
call fcn.0043b2be
cmp byte [esi + 0x40], 0
pop ecx
je 0x42b7d2
mov dword [esi + 0x10], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x42b848
mov eax, dword [esi + 0x18c]
cmp byte [eax + 0x10], 0
je 0x42b83d
mov eax, dword [esi + 8]
test eax, eax
je 0x42b7fa
push esi
call dword [eax]
pop ecx
mov eax, dword [esi + 0x18c]
push esi
call dword [eax]
test eax, eax
pop ecx
je 0x42b839
cmp eax, 2
je 0x42b83d
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x42b7ef
cmp eax, 3
je 0x42b81e
cmp eax, 1
jne 0x42b7ef
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
cmp dword [eax + 4], ecx
jl 0x42b7ef
mov edx, dword [esi + 0x118]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x42b7ef
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
jmp 0x42b866
cmp eax, 0xcc
je 0x42b866
mov eax, dword [esi]
mov dword [eax + 0x14], 0x12
mov eax, dword [esi]
mov ecx, dword [esi + 0x10]
mov dword [eax + 0x18], ecx
mov eax, dword [esi]
push esi
call dword [eax]
pop ecx
call fcn.0042b67f
pop esi
ret
Function at 0x43cbc8
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x43cbd6
xor eax, eax
pop ebp
ret
cmp dword [ebp + 0x10], 8
push esi
mov esi, dword [ebp + 8]
not esi
mov ecx, 0xff
jb 0x43ccaa
mov eax, dword [ebp + 0x10]
push ebx
shr eax, 3
push edi
xor ebx, ebx
mov bl, byte [edx]
mov edi, esi
shr edi, 8
sub dword [ebp + 0x10], 8
xor ebx, esi
and ebx, ecx
mov esi, dword [ebx*4 + 0x672fb8]
xor ebx, ebx
xor esi, edi
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
mov edi, dword [ebx*4 + 0x672fb8]
xor ebx, ebx
shr esi, 8
xor edi, esi
inc edx
mov bl, byte [edx]
xor ebx, edi
and ebx, ecx
mov esi, dword [ebx*4 + 0x672fb8]
xor ebx, ebx
shr edi, 8
xor esi, edi
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
mov edi, dword [ebx*4 + 0x672fb8]
xor ebx, ebx
shr esi, 8
xor edi, esi
inc edx
mov bl, byte [edx]
xor ebx, edi
and ebx, ecx
mov esi, dword [ebx*4 + 0x672fb8]
xor ebx, ebx
shr edi, 8
xor esi, edi
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
mov edi, dword [ebx*4 + 0x672fb8]
shr esi, 8
xor edi, esi
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, edi
and ebx, ecx
mov esi, dword [ebx*4 + 0x672fb8]
shr edi, 8
xor esi, edi
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
mov edi, dword [ebx*4 + 0x672fb8]
shr esi, 8
xor esi, edi
inc edx
dec eax
jne 0x43cbf3
pop edi
pop ebx
cmp dword [ebp + 0x10], 0
je 0x43ccca
xor eax, eax
mov al, byte [edx]
xor eax, esi
and eax, ecx
mov eax, dword [eax*4 + 0x672fb8]
shr esi, 8
xor esi, eax
inc edx
dec dword [ebp + 0x10]
jne 0x43ccb0
mov eax, esi
not eax
pop esi
pop ebp
ret
Function at 0x44c680
Capabilities:
Access peb ldr_data

Disassembly:
cmp dword [ecx + 0x18], 0
jne 0x44c697
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
jmp 0x44c69a
mov eax, dword [ecx + 8]
movups xmm0, xmmword [eax - 8]
movups xmmword [ecx], xmm0
movups xmm0, xmmword [eax + 8]
movups xmmword [ecx + 0x10], xmm0
movups xmm0, xmmword [eax + 0x18]
movups xmmword [ecx + 0x20], xmm0
mov eax, dword [eax + 0x28]
mov dword [ecx + 0x30], eax
mov eax, dword [ecx + 0x18]
ret

Function at 0x44c6c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
test edx, edx
je 0x44c6df
mov ecx, edx
call fcn.0044c5d0
mov ecx, eax
call fcn.0044c720
mov edx, esi
mov ecx, eax
pop esi
jmp fcn.0044c790
mov ecx, 1
call fcn.0044c5d0
mov ecx, eax
call fcn.0044c720
mov edx, esi
mov ecx, eax
call fcn.0044c790
test eax, eax
jne 0x44c71e
lea ecx, [eax + 3]
call fcn.0044c5d0
mov ecx, eax
call fcn.0044c720
mov edx, esi
mov ecx, eax
call fcn.0044c790
test eax, eax
jne 0x44c71e
lea ecx, [eax + 2]
jmp 0x44c6c9
pop esi
ret

Function at 0x44c790
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov eax, dword [edi + 0x3c]
mov eax, dword [eax + edi + 0x78]
add eax, edi
mov edx, dword [eax + 0x1c]
mov ecx, dword [eax + 0x24]
add edx, edi
add ecx, edi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], ecx
cmp ebx, 0xffff
ja 0x44c7d6
sub bx, word [eax + 0x10]
movzx ecx, bx
cmp ecx, dword [eax + 0x14]
jae 0x44c809
mov eax, dword [edx + ecx*4]
add eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [eax + 0x20]
xor esi, esi
mov eax, dword [eax + 0x18]
add ecx, edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x44c809
nop word [eax + eax]
mov edx, dword [ecx + esi*4]
mov ecx, ebx
add edx, edi
call fcn.0044d260
test eax, eax
je 0x44c812
mov ecx, dword [ebp - 8]
inc esi
cmp esi, dword [ebp - 4]
jb 0x44c7f0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + esi*2]
mov eax, dword [ecx + eax*4]
add eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44cc10
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
xor eax, eax
xor esi, esi
mov ebx, edx
test edi, edi
je 0x44ccb5
test ebx, ebx
je 0x44ccb5
lea edx, [edi + 3]
sub edi, ebx
lea ecx, [ebx + 1]
mov bl, byte [edx - 3]
cmp bl, 0xcc
je 0x44cca8
inc eax
cmp bl, byte [ecx - 1]
jne 0x44cca8
mov bl, byte [edi + ecx]
cmp bl, 0xcc
je 0x44cca7
inc eax
cmp bl, byte [ecx]
jne 0x44cca7
mov bl, byte [edx - 1]
cmp bl, 0xcc
je 0x44cc97
inc eax
cmp bl, byte [ecx + 1]
jne 0x44cc97
mov bl, byte [edx]
cmp bl, 0xcc
je 0x44cc87
inc eax
cmp bl, byte [ecx + 2]
jne 0x44cc87
add esi, 4
add edx, 4
add ecx, 4
cmp esi, 0x100
jb 0x44cc33
xor ecx, ecx
cmp eax, esi
pop edi
sete cl
pop esi
mov eax, ecx
pop ebx
ret
add esi, 3
xor ecx, ecx
cmp eax, esi
pop edi
sete cl
pop esi
mov eax, ecx
pop ebx
ret
add esi, 2
xor ecx, ecx
cmp eax, esi
pop edi
sete cl
pop esi
mov eax, ecx
pop ebx
ret
inc esi
xor ecx, ecx
cmp eax, esi
pop edi
sete cl
pop esi
mov eax, ecx
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x44ce90
Capabilities:
Create thread

Disassembly:
push 0x72a958
push 0
push 0
push 0x44ce30
push 0
push 0
mov dword [0x72a948], ecx
mov dword [0x72a940], 2
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret

Function at 0x44cec0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
cmp dword [0x72a958], 0
push esi
mov esi, ecx
jne 0x44cf4a
push 0x208
lea eax, [ebp - 0x208]
push 0
push eax
call fcn.005d5420
push 0x208
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.005d5420
add esp, 0x18
lea eax, [ebp - 0x208]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x44cf4a
push 0x104
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x44cf4a
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x410]
call fcn.0044d2d0
test eax, eax
je 0x44cf4a
mov ecx, esi
call fcn.0044ce90
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x452550
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x634f6d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x6d5600]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.00599754
mov edi, eax
add esp, 4
test edi, edi
je 0x4525ed
push 1
mov dword [ebp - 4], 0
call fcn.0059858e
add esp, 4
mov dword [edi + 4], eax
jmp 0x4525ef
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov edi, dword [edi + 4]
mov ecx, edi
mov dword [ebp - 0x10], edi
mov eax, dword [edi]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
call fcn.0044fa50
add esp, 4
mov ecx, dword [eax]
push 0x20
mov edx, dword [ecx + 0x20]
mov ecx, eax
call edx
mov dword [ebp - 4], 0xffffffff
mov bl, al
test edi, edi
je 0x45264a
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 8]
test eax, eax
je 0x45264a
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], bl
jne 0x452666
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x452689
cmp byte [ebp + 0xc], 0
je 0x452675
push esi
call fcn.00598a26
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 8
test cl, 4
je 0x452695
mov esi, str.ios_base::badbit_set
jmp 0x4526a5
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.004526d0
add esp, 8
lea ecx, [ebp - 0x28]
push eax
push esi
call fcn.0044ff80
push 0x6a87b4
lea eax, [ebp - 0x28]
push eax
call fcn.005d55fc
int3

Function at 0x454420
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x6d5600]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
cmp edi, eax
je 0x45445a
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x454451
mov eax, dword [eax]
push ecx
push eax
mov ecx, edi
call fcn.004544d0
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x408], 0x400
jb 0x45446c
mov esi, dword [esi]
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x404]
push eax
push 0
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x4544b3
lea edx, [ebp - 0x404]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x454495
sub edx, ecx
lea eax, [ebp - 0x404]
sar edx, 1
mov ecx, edi
push edx
push eax
call fcn.004544d0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005994b1
mov esp, ebp
pop ebp
ret 0x10
Function at 0x45f4b0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov edx, dword [ebp + 0xc]
mov eax, edx
mov ecx, dword [ebp + 8]
cmp ecx, edx
cmovbe eax, ecx
cmovbe ecx, edx
mov dword [ebp - 8], eax
lea edx, [ebp - 8]
mov dword [ebp - 4], ecx
xor eax, eax
movzx ecx, byte [edx]
inc edx
imul eax, eax, 0x1000193
xor eax, ecx
lea ecx, [ebp]
cmp edx, ecx
jb 0x45f4d1
mov esp, ebp
pop ebp
ret

Function at 0x466060
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x635bce
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x6d5600]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [0x6e614c], edi
lea edx, [edi + 4]
mov dword [ebp - 4], 0
mov dword [0x6e8378], edx
mov dword [edx], vtable.IAbstractCharacterManager.0
lea eax, [edi + 8]
mov dword [eax], vtable.IObjectManager.0
mov dword [0x72444c], eax
lea esi, [edi + 0x20]
mov dword [edi], vtable.CPythonCharacterManager.0
mov dword [edx], vtable.CPythonCharacterManager.1.0
mov dword [eax], vtable.CPythonCharacterManager.2.0
push 0x18
mov byte [ebp - 4], 2
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00599754
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
push 0xc
mov byte [ebp - 4], 3
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
call fcn.00599754
add esp, 8
mov ecx, edi
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [edi + 0x28], eax
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
call fcn.00467140
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x47e010
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x6d5600]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x47e0cc
cmp byte [esi + 0x3d], 0
je 0x47e0cc
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x47e0ba
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x47e082
sub eax, 1
je 0x47e086
sub eax, 2
jne 0x47e0ba
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005994b1
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x47e0a3
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.005e88a8
add esp, 0x10
cmp edi, eax
jne 0x47e0ba
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005994b1
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005994b1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.005994b1
mov esp, ebp
pop ebp
ret
Function at 0x47fd20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x6d5600]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x47fd50
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005994b1
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x47fd8c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x47fd8c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005994b1
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x47fe74
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x47fdb4
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x47fde7
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.005e7fb2
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005994b1
mov esp, ebp
pop ebp
ret 4
mov byte [ebp - 0x28], bl
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x47fe47
sub eax, 1
je 0x47fe47
sub eax, 2
jne 0x47fe74
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.00478830
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005994b1
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x47fe64
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.005e88a8
add esp, 0x10
cmp edi, eax
jne 0x47fe74
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x47fd77
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005994b1
mov esp, ebp
pop ebp
ret 4
Function at 0x4806f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
je 0x4807be
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test esi, esi
jl 0x4807ad
jg 0x480728
test edx, edx
je 0x4807ad
call fcn.00451d10
mov esi, eax
mov eax, edx
mov dword [ebp - 8], eax
test eax, eax
jl 0x480776
jg 0x48073e
test esi, esi
je 0x480776
cmp ebx, eax
jg 0x48074d
jl 0x480748
cmp edi, esi
jae 0x48074d
mov esi, edi
mov dword [ebp - 8], ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 8]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.005d5670
mov ecx, dword [ebp - 4]
add esp, 0xc
sub edi, esi
sbb ebx, dword [ebp - 8]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x48079a
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
push eax
call edx
cmp eax, 0xffffffff
je 0x4807a7
mov ecx, dword [ebp - 4]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [ebp + 8], esi
test ebx, ebx
jg 0x480728
jl 0x4807a7
test edi, edi
jne 0x480728
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
pop edi
sbb esi, ebx
mov eax, edx
mov edx, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x14], esi
mov edx, dword [eax]
lea eax, [ecx + 0x30]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
test edx, edx
je 0x4807e2
mov eax, dword [eax]
mov edx, dword [eax]
jmp 0x4807e7
xor edx, edx
mov dword [ebp - 0xc], eax
mov eax, edx
cdq
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], edx
test edi, edi
jl 0x480846
jg 0x4807fa
test esi, esi
je 0x480846
test edx, edx
jl 0x480841
jg 0x480804
test eax, eax
je 0x480841
cmp edi, edx
jg 0x480816
jl 0x48080e
cmp esi, eax
jae 0x480816
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 8], edi
mov ebx, dword [ebp + 8]
push eax
push ebx
push dword [ebp - 0x10]
call fcn.005d5670
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov edx, dword [ebp + 0x10]
add ebx, edx
mov ecx, dword [ebp - 4]
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [ebp - 8]
sub dword [eax], edx
mov eax, dword [ecx + 0x20]
add dword [eax], edx
jmp 0x480849
mov ebx, dword [ebp + 8]
jmp 0x480853
mov ebx, dword [ebp + 8]
test edi, edi
jl 0x48086c
jg 0x480853
test esi, esi
je 0x48086c
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x48086c
push eax
push esi
push 1
push ebx
call fcn.005e88a8
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4b16a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0x58edadb9
xor ecx, ecx
cmp byte [ebp - 4], cl
jbe 0x4b16db
mov eax, dword [ebp - 4]
xor eax, 0x80164043
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub eax, 0x29e08a43
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ecx*4 + 0x6e86b8], eax
inc ecx
movzx eax, byte [ebp - 4]
cmp ecx, eax
jb 0x4b16b2
movups xmm0, xmmword [0x6e8755]
push esi
xor esi, esi
movups xmmword [0x6e8698], xmm0
nop dword [eax]
call fcn.004f03b0
mov dword [esi + 0x6e8698], eax
add esi, 4
cmp esi, 0x10
jb 0x4b16f0
push 0x10
push 0x6e86dd
push 0x6e8698
push 0x6e86a8
call fcn.004f51f0
add esp, 0x10
pop esi
mov esp, ebp
pop ebp
ret