joyce8/EMBER2024-capa huggingface dataset:
Function at 0x60002a
Capabilities:
Encode data using xor

Disassembly:
adc bh, byte [edx]
xchg esi, eax
mov bh, 0x8c
mov dl, 0x99
jbe 0x60004a
or byte [eax - 8], al
fldcw word [esi + 9]
mov esp, 0x58088935
in al, 0x6a
call 0x98e8f8a0
add byte [edx], cl
sub esi, dword [edx + edi - 0x6c]
je 0x600086
xchg esp, eax
sbb ebx, dword [eax + 0x19]
test eax, 0x687934bd
jno 0x600049
fldenv [edx]
nop
push ebx
mov byte [0xa154495a], al
and byte [esp + esi], cl
jne 0x60006d
inc ebp
sbb ecx, dword [esi + ebx*4 + 0x39]
shr dword [edi + edi*2 - 0x3c], 0x65
lodsd eax, dword [esi]
les esp, [ebp - 0x53]
xor al, 0xe9
jbe 0x60006d
push esp
add esp, edx
pop ecx
inc ecx
out 0xf2, al
mov ch, 0x3e
leave
adc al, 0x89
cld
stosb byte es:[edi], al
clc
jns 0x60004d
dec ecx
test byte [esp + 0x4716d149], dl
push ss
inc edi
pop edi
nop
sbb eax, 0x2e44e968
sbb cl, cl
push edx
cld
push esp
jmp 0x60008b

Function at 0x601ff4
Capabilities:
Encode data using xor

Disassembly:
xor dword [ecx + 0xca72498], edx
push es
mov edi, 0xeeeda375
mov al, byte ds:[edi + 0x4bfafdb6]
xor ecx, dword [ebx - 0x489217a]
add eax, 0x8ffcfe6e
push 0x3d8f36fd
insd dword es:[edi], dx
mov ebp, dword [ebx - 0xa]
jno 0x601ffb
xor al, 0x13
cli
xor ebp, dword [ebx]
in al, dx
push esp
invalid

Function at 0x7c5a3d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x7cd378
cmp edx, dword [eax]
je 0x7c5a5f
add eax, 8
inc ecx
cmp eax, 0x7cd408
jl 0x7c5a50
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x7cd378]
jne 0x7c5b8d
mov eax, dword [0xbcccd0]
cmp eax, 1
je 0x7c5b67
test eax, eax
jne 0x7c5a90
cmp dword [0x7cd2a4], 1
je 0x7c5b67
cmp edx, 0xfc
je 0x7c5b8d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x7c5ac7
lea eax, [ebp - 0x1a4]
push 0x7ca7a0
push eax
call fcn.007c6420
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.007c68b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x7c5b0a
lea eax, [ebp - 0x1a4]
push eax
call fcn.007c68b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x7ca79c
push edi
call fcn.007c8780
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x7ca780
push eax
call fcn.007c6420
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.007c6430
lea eax, [ebp - 0xa0]
push 0x7ca77c
push eax
call fcn.007c6430
push dword [esi + 0x7cd37c]
lea eax, [ebp - 0xa0]
push eax
call fcn.007c6430
push 0x12010
lea eax, [ebp - 0xa0]
push 0x7ca754
push eax
call fcn.007c86f4
add esp, 0x2c
pop edi
jmp 0x7c5b8d
lea eax, [ebp + 8]
lea esi, [esi + 0x7cd37c]
push 0
push eax
push dword [esi]
call fcn.007c68b0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x100019f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
push edi
and esp, 0xfffffff8
sub esp, 0xa8
mov dword [esp + 0x94], 0
mov dword [esp + 0x90], 0x61e97249
mov dword [esp + 0x88], 0x7e089752
mov byte [esp + 0x7f], 0xdb
mov al, byte [esp + 0x7f]
mov dword [esp + 0x54], 0xb9ca5a4
cmp al, 0xd4
mov byte [esp + 0x43], al
jne 0x10001ba5
jmp 0x10001ba5
lea eax, [esp + 0x80]
xor ecx, ecx
mov edx, 8
mov esi, 0x14
lea edi, [esp + 0x64]
mov dword [esp], edi
mov dword [esp + 4], 0
mov dword [esp + 8], 0x14
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], esi
call sub.msvcrt.dll_memset
mov bl, byte [esp + 0x43]
xor bl, bl
mov byte [esp + 0x8f], bl
mov dword [esp + 0x60], 0x91b
mov byte [esp + 0x8f], 0x9e
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 8
call sub.msvcrt.dll_memset
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0x78]
add ecx, 1
mov dword [esp + 0x78], ecx
jmp 0x10001c8c
mov dword [esp + 0x78], 0
jmp 0x10001c8c
mov dword [esp + 0x44], 1
mov eax, dword [esp + 0x44]
lea esp, [ebp - 0xc]
pop edi
pop ebx
pop esi
pop ebp
ret
mov eax, 0x58ab9580
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0xa0]
and edx, 0xc401d54
mov dword [esp + 0xa0], edx
cmp eax, ecx
jne 0x10001adf
jmp 0x10001ae7
mov dword [esp + 0x5c], 0
jmp 0x10001bf5
call fcn.100041d0
cmp eax, 0
jne 0x10001be0
jmp 0x10001b16
mov eax, 0xbc5d4e
mov ecx, 0xee8
mov edx, dword [esp + 0x88]
add edx, 0x81f76ecc
mov dword [esp + 0x50], edx
mov edx, esp
mov dword [edx + 4], 0xee8
mov dword [edx], 0xbc5d4e
mov edx, dword [sym.imp.USER32.dll_ShowOwnedPopups]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], ecx
call edx
sub esp, 8
xor ecx, ecx
mov edx, esp
mov dword [edx + 4], 0
mov dword [edx], 0
mov edx, dword [sym.imp.ADVAPI32.dll_RegOverridePredefKey]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ecx
call edx
sub esp, 8
mov ecx, dword [esp + 0x5c]
add ecx, 1
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x1c], eax
jmp 0x10001bf5
lea eax, str.dpppeepwwy.dll
mov cx, word [esp + 0x8c]
mov word [esp + 0x8c], cx
mov edx, esp
mov dword [edx], str.dpppeepwwy.dll
mov edx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [esp + 0x18], eax
call edx
sub esp, 4
cmp eax, 0
jne 0x10001af3
jmp 0x10001b23
mov eax, 0x7e089752
sub eax, dword [esp + 0x88]
mov dword [esp + 0x44], eax
jmp 0x10001ae7
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x9c], 0
mov dword [esp + 0x98], 0x115f3d9c
cmp eax, 0x3ff
jl 0x10001b33
jmp 0x10001ad2
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0x11efb6f3
mov eax, dword [esp + 0x98]
and eax, 0x666fb746
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], 0
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x94]
add eax, 0xaddec9ff
adc ecx, 0xffffffff
mov edx, dword [esp + 0x4c]
mov esi, dword [esp + 0x48]
sub esi, eax
sbb edx, ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edx
jb 0x10001b23
jmp 0x10001c7f
mov dword [esp + 0x44], 0
jmp 0x10001ae7
cmp dword [esp + 0x78], 0x349
jne 0x10001a42
jmp 0x10001c1f
Function at 0x10004fd0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
push edi
and esp, 0xfffffff8
sub esp, 0x40
mov al, byte [esp + 0x33]
mov byte [esp + 0x3b], 0x6a
mov word [esp + 0x26], 0x3231
mov dword [esp + 0x14], fcn.10004fd0
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0x59515fb5
mov byte [esp + 0x12], al
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
jmp 0x100050fa
mov eax, dword [esp + 0x20]
lea esp, [ebp - 0xc]
pop edi
pop ebx
pop esi
pop ebp
ret
mov eax, dword [esp + 0x18]
movzx eax, word [eax]
cmp eax, 0x5a4d
jne 0x10005098
mov ax, word [esp + 0x30]
not ax
mov word [esp + 0x30], ax
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x3c]
mov ecx, dword [ecx + edx]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
cmp ecx, 0x4550
je 0x100050e5
jmp 0x10005096
mov dword [esp + 0x20], 0
mov ax, word [esp + 0x26]
add ax, 0xc317
mov word [esp + 0x1e], ax
mov cl, byte [esp + 0x12]
sub cl, 0xdd
mov ax, word [esp + 0x1e]
mov byte [esp + 0x33], cl
cmp ax, 0xb2e8
jb 0x100050e5
jmp 0x1000501d
jmp 0x10005098
mov eax, dword [esp + 0x14]
add eax, 0xfffff000
mov cl, byte [esp + 0x12]
or cl, 0xb7
mov byte [esp + 0x33], cl
and eax, 0xfffff000
mov edx, 0x717e76c6
mov esi, dword [esp + 0xc]
mov dword [esp + 4], eax
mov eax, esi
mul edx
mov edi, dword [esp + 8]
imul ebx, edi, 0x717e76c6
add edx, ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 4]
mov dword [esp + 0x14], eax
mov byte [esp + 0x33], 0x10
jmp 0x100050ef
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jmp 0x10005070
mov al, 1
test al, 1
jne 0x100050fa
jmp 0x10005068
mov byte [esp + 0x13], 0x49
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x34]
imul ecx, dword [esp + 0x34]
mov dl, byte [esp + 0x3b]
mov dword [esp + 0x34], ecx
mov ah, byte [esp + 0x12]
xor ah, 0x22
add dl, 0x41
mov byte [esp + 0x33], ah
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], ecx
cmp al, dl
jbe 0x10005029
jmp 0x10005096
Function at 0x4052c4
Capabilities:
Hash data using sha256

Disassembly:
cmp dword [0x440e48], 2
jl 0x4052e9
movaps xmm0, xmmword [0x42f400]
movaps xmmword [0x439b60], xmm0
movaps xmm0, xmmword [0x42f3f0]
movaps xmmword [0x439b70], xmm0
push esi
mov esi, dword [esp + 8]
mov ecx, esi
call fcn.00405695
xor edx, edx
mov ecx, dword [esi + 0xf4]
mov eax, dword [edx + 0x42f3d0]
mov dword [edx + ecx], eax
add edx, 4
cmp edx, 0x20
jl 0x4052f7
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 0x405a29
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x405a5b
test dl, 7
je 0x405a5b
movzx ecx, byte [edx]
movzx eax, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x439b80]
inc edx
mov dword [ebp + 0xc], edx
sub esi, 1
jne 0x405a3b
cmp esi, 8
jb 0x405aeb
push edi
mov edi, esi
shr edi, 3
xor ebx, dword [edx]
sub esi, 8
mov edx, dword [edx + 4]
mov ecx, edx
shr ecx, 0x18
mov eax, edx
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x439b80]
xor ecx, dword [eax*4 + 0x439f80]
mov eax, edx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x43a380]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x43ab80]
mov eax, ebx
shr eax, 0x10
movzx eax, al
xor ecx, dword [eax*4 + 0x43af80]
mov eax, ebx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x43b380]
movzx eax, dl
mov edx, dword [ebp + 0xc]
add edx, 8
mov dword [ebp + 0xc], edx
xor ecx, dword [eax*4 + 0x43a780]
movzx eax, bl
xor ecx, dword [eax*4 + 0x43b780]
mov ebx, ecx
sub edi, 1
jne 0x405a6a
pop edi
test esi, esi
je 0x405b07
movzx ecx, byte [edx]
movzx eax, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x439b80]
inc edx
sub esi, 1
jne 0x405aef
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0xc

Function at 0x405c74
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
xor ebx, ebx
push 0x20
pop ebp
cmp dword [esi], 2
jne 0x405ccb
mov eax, dword [esi + 4]
push edi
push ebx
push ebx
push ebx
push ebx
mov dword [esp + 0x44], eax
lea eax, [esp + 0x20]
push eax
push 4
lea eax, [esp + 0x4c]
push eax
push ebp
push dword [esp + 0x58]
call fcn.00406366
mov dword [esi + 4], ebx
mov edx, ebx
mov edi, ebx
movzx eax, byte [esp + edx + 0x10]
mov ecx, edx
and ecx, 3
shl ecx, 3
shl eax, cl
xor edi, eax
inc edx
cmp edx, ebp
jb 0x405cb1
mov dword [esi + 4], edi
pop edi
cmp dword [esi], 3
jne 0x405cf7
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x1c]
add esi, 4
push eax
push ebp
push esi
push ebp
push dword [esp + 0x54]
call fcn.00406366
push ebp
lea eax, [esp + 0x10]
push eax
push esi
call fcn.0041d100
add esp, 0xc
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8
Function at 0x40610f
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x264
push ebx
mov ebx, dword [esp + 0x280]
mov eax, ecx
mov dword [esp + 4], eax
cmp ebx, 0x18
ja 0x40630b
push ebp
push esi
xor ebp, ebp
lea esi, [eax + 0x4b4]
push edi
mov edi, ebp
cmp dword [esi + 0x134], ebx
jne 0x406173
push dword [esp + 0x27c]
mov ecx, esi
call fcn.0040d787
test al, al
je 0x406173
push 0x10
push dword [esp + 0x288]
lea eax, [esi + 0x102]
push eax
call fcn.0041da4a
add esp, 0xc
test eax, eax
je 0x406315
inc edi
add esi, 0x178
cmp edi, 4
jb 0x406139
mov esi, 0x200
lea eax, [esp + 0x74]
push esi
push eax
push dword [esp + 0x288]
call fcn.004102a5
xor eax, eax
mov ecx, ebx
inc eax
shl eax, cl
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x20]
push eax
push 0x10
push dword [esp + 0x298]
lea eax, [esp + 0x8c]
push eax
call fcn.00421270
pop ecx
push eax
lea eax, [esp + 0x90]
push eax
call fcn.00406571
push esi
lea eax, [esp + 0x78]
push eax
call fcn.0040d9b5
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x27c]
push 0x40
mov ecx, dword [edx + 0xa94]
lea ebx, [edx + 0x4b4]
mov eax, ecx
and eax, 3
imul eax, eax, 0x178
add ebx, eax
lea eax, [ecx + 1]
mov dword [edx + 0xa94], eax
mov edi, ebx
mov eax, dword [esp + 0x290]
pop ecx
mov dword [ebx + 0x134], eax
lea eax, [ebx + 0x102]
rep movsd dword es:[edi], dword [esi]
push 0x10
push dword [esp + 0x288]
push eax
movsw word es:[edi], word [esi]
call fcn.0041d100
push 0x20
pop edi
push edi
lea eax, [esp + 0x24]
push eax
lea esi, [ebx + 0x112]
push esi
call fcn.0041d100
push edi
lea eax, [esp + 0x50]
push eax
lea eax, [ebx + 0x138]
push eax
call fcn.0041d100
push edi
lea eax, [esp + 0x7c]
push eax
lea eax, [ebx + 0x158]
push eax
call fcn.0041d100
add esp, 0x30
push ebp
push 1
push edi
push esi
call fcn.0040d8c0
cmp dword [esp + 0x290], ebp
je 0x406299
push edi
lea eax, [esp + 0x58]
push eax
push dword [esp + 0x298]
call fcn.0041d100
add esp, 0xc
mov esi, dword [esp + 0x294]
test esi, esi
je 0x4062cc
push 8
push ebp
push esi
call fcn.0041cfa0
add esp, 0xc
mov al, byte [esp + ebp + 0x34]
mov ecx, ebp
and ecx, 7
xor byte [ecx + esi], al
inc ebp
cmp ebp, edi
jb 0x4062b0
push edi
lea eax, [esp + 0x38]
push eax
call fcn.0040d9b5
cmp dword [esp + 0x288], 0
je 0x4062fd
push dword [esp + 0x288]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push 0x100
push eax
push dword [esp + 0x284]
add ecx, 0xa9c
call fcn.0040ce5b
push edi
lea eax, [esp + 0x18]
push eax
call fcn.0040d9b5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x264
ret 0x20
push 0x20
pop edi
push edi
lea eax, [esi + 0x112]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0041d100
add esp, 0xc
lea eax, [esp + 0x14]
push ebp
push ebp
push edi
push eax
call fcn.0040d8c0
push edi
lea eax, [esi + 0x138]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0041d100
push edi
lea eax, [esi + 0x158]
push eax
lea eax, [esp + 0x68]
push eax
call fcn.0041d100
add esp, 0x18
jmp 0x40627b
Function at 0x406366
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0x1bc
push ebx
mov ebx, dword [esp + 0x1c8]
push ebp
push esi
push edi
push 0x40
pop edi
cmp ebx, edi
jbe 0x4063bb
lea eax, [esp + 0x164]
push eax
call fcn.0040e582
push ebx
push dword [esp + 0x1d4]
lea eax, [esp + 0x16c]
push eax
call fcn.0040e5c8
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x168]
push eax
call fcn.0040e493
push 0x20
lea eax, [esp + 0x58]
pop ebx
jmp 0x4063c2
mov eax, dword [esp + 0x1d0]
mov ebp, dword [esp + 0x1e4]
mov dword [esp + 0x10], eax
test ebp, ebp
je 0x4063ed
mov edx, dword [esp + 0x1e8]
cmp byte [edx], 0
je 0x4063ed
push 0x1a
pop ecx
mov esi, ebp
lea edi, [esp + 0x94]
rep movsd dword es:[edi], dword [esi]
jmp 0x40644e
xor edx, edx
test ebx, ebx
je 0x40640d
mov esi, eax
lea eax, [esp + 0x14]
sub esi, eax
lea ecx, [esp + 0x14]
add ecx, edx
mov al, byte [esi + ecx]
xor al, 0x36
inc edx
mov byte [ecx], al
cmp edx, ebx
jb 0x4063fb
cmp ebx, edi
jae 0x406427
mov eax, edi
lea ecx, [esp + 0x14]
sub eax, ebx
add ecx, ebx
push eax
push 0x36
push ecx
call fcn.0041cfa0
add esp, 0xc
lea eax, [esp + 0x94]
push eax
call fcn.0040e582
push edi
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x9c]
push eax
call fcn.0040e5c8
mov edx, dword [esp + 0x1e8]
test ebp, ebp
je 0x406468
cmp byte [edx], 0
jne 0x406468
push 0x1a
pop ecx
lea esi, [esp + 0x94]
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov byte [edx], 1
push dword [esp + 0x1dc]
lea eax, [esp + 0x98]
push dword [esp + 0x1dc]
push eax
call fcn.0040e5c8
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x98]
push eax
call fcn.0040e493
mov ebp, dword [esp + 0x1ec]
test ebp, ebp
je 0x4064bc
mov eax, dword [esp + 0x1f0]
cmp byte [eax], 0
je 0x4064bc
push 0x1a
pop ecx
mov esi, ebp
lea edi, [esp + 0xfc]
rep movsd dword es:[edi], dword [esi]
jmp 0x406522
test ebx, ebx
je 0x4064de
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
sub edx, eax
xor esi, esi
lea ecx, [esp + 0x14]
add ecx, esi
mov al, byte [edx + ecx]
xor al, 0x5c
inc esi
mov byte [ecx], al
cmp esi, ebx
jb 0x4064cc
cmp ebx, 0x40
jae 0x4064fa
push 0x40
pop eax
sub eax, ebx
lea ecx, [esp + 0x14]
push eax
add ecx, ebx
push 0x5c
push ecx
call fcn.0041cfa0
add esp, 0xc
lea eax, [esp + 0xfc]
push eax
call fcn.0040e582
push 0x40
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x104]
push eax
call fcn.0040e5c8
mov eax, dword [esp + 0x1f0]
test ebp, ebp
je 0x40653c
cmp byte [eax], 0
jne 0x40653c
push 0x1a
pop ecx
lea esi, [esp + 0xfc]
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov byte [eax], 1
push 0x20
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x104]
push eax
call fcn.0040e5c8
push dword [esp + 0x1e0]
lea eax, [esp + 0x100]
push eax
call fcn.0040e493
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1bc
ret 0x24
Function at 0x406571
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x58]
sub esp, 0x18c
push ebx
push esi
mov esi, dword [ebp + 0x6c]
push edi
push 0x40
pop eax
cmp esi, eax
jae 0x40658b
mov eax, esi
push eax
push dword [ebp + 0x68]
lea eax, [ebp - 0x44]
push eax
call fcn.0041d100
add esp, 0xc
mov dword [ebp + esi - 0x44], 0x1000000
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp + 0x20]
push eax
lea eax, [esi + 4]
push eax
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 0x64]
push dword [ebp + 0x60]
call fcn.00406366
push 0x20
pop ebx
push ebx
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp]
push eax
call fcn.0041d100
mov eax, dword [ebp + 0x7c]
add esp, 0xc
dec eax
mov byte [ebp + 0x6b], 0
mov dword [ebp + 0x4c], eax
xor esi, esi
mov byte [ebp + 0x6f], 0
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
mov edi, dword [ebp + esi + 0x4c]
test edi, edi
je 0x406657
lea eax, [ebp + 0x6f]
push eax
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp + 0x6b]
push eax
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x64]
push eax
push ebx
lea eax, [ebp + 0x20]
push eax
push dword [ebp + 0x64]
push dword [ebp + 0x60]
call fcn.00406366
push ebx
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp + 0x20]
push eax
call fcn.0041d100
add esp, 0xc
xor ecx, ecx
mov al, byte [ebp + ecx + 0x20]
xor byte [ebp + ecx], al
inc ecx
cmp ecx, ebx
jb 0x406645
sub edi, 1
jne 0x406608
push ebx
lea eax, [ebp]
push eax
push dword [ebp + esi + 0x40]
call fcn.0041d100
add esi, 4
add esp, 0xc
cmp esi, 0xc
jb 0x406600
push 0x44
lea eax, [ebp - 0x44]
push eax
call fcn.0040d9b5
push ebx
lea eax, [ebp]
push eax
call fcn.0040d9b5
push ebx
lea eax, [ebp + 0x20]
push eax
call fcn.0040d9b5
push ebx
lea eax, [ebp - 0x64]
push eax
call fcn.0040d9b5
pop edi
pop esi
pop ebx
lea esp, [ebp + 0x58]
pop ebp
ret 0x20
Function at 0x408cd3
Capabilities:
Move file

Disassembly:
mov eax, 0x42e8e3
call fcn.0041befc
mov eax, 0x5024
call fcn.0041bfd0
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x4030]
push edi
mov ebx, 0x800
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x408e92
cmp eax, ebx
jae 0x408e92
push ebx
lea eax, [ebp - 0x5030]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x408e92
cmp eax, ebx
jae 0x408e92
lea eax, [ebp - 0x4030]
push eax
call fcn.0040b298
mov dword [ebp + 8], eax
lea eax, [ebp - 0x5030]
push eax
call fcn.0040b298
mov edi, eax
xor ebx, ebx
cmp word [edi], bx
je 0x408e92
push edi
push dword [ebp + 8]
call fcn.00410444
test eax, eax
je 0x408e92
push edi
push esi
call fcn.0040b298
push eax
call fcn.00410444
test eax, eax
jne 0x408e92
mov word [ebp - 0x100c], ax
mov edi, ebx
test ax, ax
jne 0x408df4
push 0x800
push esi
lea eax, [ebp - 0x100c]
push eax
call fcn.0040ea71
push edi
push str.rtmp_d
push 0x800
lea eax, [ebp - 0x100c]
push eax
call fcn.0040b298
push eax
call fcn.00403ade
add esp, 0x10
lea eax, [ebp - 0x100c]
push eax
call fcn.004098a5
test al, al
je 0x408dd9
xor eax, eax
mov word [ebp - 0x100c], ax
jmp 0x408de0
mov ax, word [ebp - 0x100c]
add edi, 0x7b
cmp edi, 0x2710
jl 0x408d87
test ax, ax
je 0x408e92
mov edi, 0x800
lea eax, [ebp - 0x3030]
push edi
push esi
push eax
call fcn.0040ea71
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x3030]
push eax
call fcn.0040b30e
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [ebp - 0x100c]
push eax
lea eax, [ebp - 0x3030]
push eax
call edi
test eax, eax
je 0x408e92
lea ecx, [ebp - 0x2030]
call fcn.00408ea7
push esi
mov dword [ebp - 4], ebx
call fcn.004098a5
test al, al
jne 0x408e59
push 0x12
push esi
lea ecx, [ebp - 0x2030]
call fcn.00408f97
mov bl, al
lea eax, [ebp - 0x3030]
push eax
lea eax, [ebp - 0x100c]
push eax
call edi
test bl, bl
je 0x408e83
lea ecx, [ebp - 0x2030]
call fcn.00408f49
lea ecx, [ebp - 0x2030]
call fcn.00409090
lea ecx, [ebp - 0x2030]
call fcn.00408edd
mov al, 1
jmp 0x408e94
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x4090b9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0xc], 1
jne 0x4090d2
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 4], eax
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x409145
mov ecx, esi
call fcn.004091c0
test al, al
je 0x40910d
mov eax, 0x4e20
cmp dword [ebp + 0xc], eax
jbe 0x40910d
push eax
push dword [ebp + 8]
mov ecx, esi
call fcn.004090b9
jmp 0x409148
cmp dword [esi + 0xc], 1
jne 0x409122
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x409122
xor eax, eax
jmp 0x409148
cmp dword [esi + 0xc], 0
jne 0x409140
mov ebx, 0x8000
cmp dword [ebp + 0xc], ebx
jbe 0x409140
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
jne 0x409140
push ebx
jmp 0x409101
or eax, 0xffffffff
jmp 0x409148
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4091e3
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x1008
call fcn.0041bfd0
push ebx
mov ebx, dword [esp + 0x1014]
xor edx, edx
push ebp
push edi
mov edi, ecx
mov dword [edi + 0x1020], edx
cmp byte [edi + 0x1c], dl
jne 0x40920d
mov cl, dl
test bl, 4
je 0x40920f
mov cl, 1
mov eax, ebx
shr eax, 1
push esi
and al, 1
movzx esi, al
neg esi
sbb esi, esi
and esi, 0xc0000000
add esi, 0x80000000
test bl, 1
je 0x409234
or esi, 0x40000000
shr ebx, 3
not ebx
and ebx, 1
test cl, cl
je 0x409243
or ebx, 2
xor eax, eax
cmp byte [edi + 0x15], al
push edx
setne al
dec eax
and eax, 0x8000000
push eax
push 3
push edx
push ebx
push esi
push dword [esp + 0x1034]
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x4092d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x18]
push 0x800
push eax
push dword [esp + 0x1024]
call fcn.0040ace3
test al, al
je 0x4092c1
push 0
push dword [esp + 0x18]
lea eax, [esp + 0x20]
push 3
push 0
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4092bc
mov dword [esp + 0x10], eax
cmp ebp, 0xffffffff
jne 0x4092d2
cmp dword [esp + 0x10], 2
jne 0x4092d2
mov dword [edi + 0x1020], 1
xor eax, eax
cmp ebp, 0xffffffff
mov byte [edi + 0x12], al
setne bl
mov dword [edi + 0xc], eax
mov byte [edi + 0x10], al
pop esi
cmp ebp, 0xffffffff
je 0x409301
push 0x800
push dword [esp + 0x101c]
lea ecx, [edi + 0x1e]
mov dword [edi + 4], ebp
push ecx
call fcn.0040ea71
pop edi
pop ebp
mov al, bl
pop ebx
add esp, 0x1008
ret 8