joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10042860
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x10042893
push esi
call fcn.10050be0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x1004288c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x10042919
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x10042902
mov eax, dword [esi + 8]
test eax, eax
je 0x100428b7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x100428fe
cmp eax, 2
je 0x10042902
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x100428aa
cmp eax, 3
je 0x100428dd
cmp eax, 1
jne 0x100428aa
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x100428aa
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x100428aa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.10042940
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x10042928
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.10042940
add esp, 4
pop esi
ret

Function at 0x100431b0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x100431d1
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x100431d1
mov eax, dword [eax + 0x44]
test eax, eax
je 0x100431d1
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x10043620
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x1004362b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x1004372e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x10083ec0]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x10083ec0]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x10083ec0]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x10083ec0]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x10083ec0]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x10083ec0]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x10083ec0]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x10083ec0]
xor eax, edx
inc ecx
dec edi
jne 0x10043646
pop edi
test esi, esi
je 0x10043750
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x10083ec0]
xor eax, edx
inc ecx
dec esi
jne 0x10043732
pop esi
pop ebx
not eax
ret
Function at 0x10071969
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x100719a1
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.1006fa3a
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.1006fa12
jmp 0x100719ad
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x1007305e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x100730a0
call fcn.100789f6
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x100730a0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x10073097
xor eax, eax
jmp 0x100730a8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.100730ae
pop edi
pop esi
pop ebx
ret 4
Function at 0x10027c1
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x1002cc8
call fcn.010029f4
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x1004750
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x100257c
cmp eax, esi
jne 0x100256f
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x100257f
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1002556
xor esi, esi
inc esi
mov eax, dword [0x100474c]
cmp eax, esi
jne 0x1002592
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x10025c1
mov eax, dword [0x100474c]
test eax, eax
jne 0x10025bb
mov dword [0x100474c], esi
push 0x1001154
push 0x1001148
call fcn.010024b8
pop ecx
pop ecx
test eax, eax
je 0x10025c1
jmp 0x10026e5
mov dword [0x1004414], esi
mov eax, dword [0x100474c]
cmp eax, esi
jne 0x10025e5
push 0x1001144
push 0x100113c
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x100474c], 2
cmp dword [ebp - 0x20], ebx
jne 0x10025f2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1004754], ebx
je 0x1002613
push 0x1004754
call fcn.01002969
pop ecx
test eax, eax
je 0x1002613
push ebx
push 2
push ebx
call dword [0x1004754]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x10026e5
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x100267d
cmp cx, bx
je 0x1002638
cmp dword [ebp - 0x1c], ebx
jne 0x100267d
movzx ecx, word [eax]
cmp cx, bx
je 0x100264d
cmp cx, 0x20
ja 0x100264d
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x1002638
test byte [ebp - 0x40], 1
je 0x1002659
movzx ecx, word [ebp - 0x3c]
jmp 0x100265c
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x1004410], eax
cmp dword [0x1004404], ebx
jne 0x10026c2
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x100268e
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x1002622
cmp dword [0x1004414], ebx
jne 0x10026d0
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1004410]
jmp 0x10026f1
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01002a39
ret
call fcn.01002b41
jmp 0x1002519

Function at 0x1040f144
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1040f14e
pushal
call 0x1040f154
pop ebp
sub ebp, 0x10
sub ebp, 0x40f144
mov al, byte [esp + 0x28]
cmp al, 1
je 0x1040f178
popal
xor eax, eax
inc eax
ret 0xc
jmp 0x1040f181
mov eax, 0x40f144
add eax, ebp
add eax, 0x63
mov ecx, 0x5eb
mov edx, 0x1c1b127
xor byte [eax], dl
inc eax
dec ecx
jne 0x1040f198
jmp 0x1040f1ab
lodsb al, byte [esi]
ljmp 0x2727
Function at 0x4178d0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 4]
test esi, esi
je 0x41791a
mov eax, dword [edi + 0x28]
test eax, eax
je 0x41791a
push ebx
xor ebx, ebx
test eax, eax
je 0x417919
add esi, 0x29
nop dword [eax]
lea ecx, [eax - 1]
xor edx, edx
mov eax, 0xff
lea esi, [esi + 4]
div ecx
movzx ecx, bl
inc ebx
movzx eax, al
imul eax, ecx
mov byte [esi - 3], al
mov byte [esi - 4], al
mov byte [esi - 5], al
mov eax, dword [edi + 0x28]
cmp ebx, eax
jb 0x4178f0
pop ebx
pop edi
pop esi
ret

Function at 0x418640
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 4]
test eax, eax
jne 0x41864e
pop ebp
ret 0xc
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.005c9dcc
add esp, 0x10
pop ebp
ret 0xc

Function at 0x418670
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 4]
test eax, eax
jne 0x41867e
pop ebp
ret 0xc
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.005c9b8b
add esp, 0x10
pop ebp
ret 0xc

Function at 0x419e40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e8a58
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push edi
mov eax, dword [0x6670f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 8]
test edi, edi
je 0x419f04
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push dword [ebp + 0x10]
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x419eec
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x419f04
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], vtable.CxMemFile.0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push eax
mov ecx, ebx
call fcn.0041a340
lea ecx, [ebp - 0x24]
mov bl, al
call fcn.00441f90
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebx + 0x44]
push str.Unable_to_load_resource__err_d
push eax
call fcn.00418510
add esp, 0xc
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x43ee00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
mov edx, 1
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
push edi
mov dword [esi + 0xf868], eax
mov eax, 1
shl ax, cl
mov dword [esi + 0xf864], ecx
dec ax
mov dword [esi + 0xf858], ecx
dec ecx
shl edx, cl
mov word [esi + 0xf85c], ax
mov dword [esi + 0xf860], 0
mov dword [esi + 0x1dc], 0
lea eax, [edx + 1]
mov dword [esi + 0x1d8], 0
mov dword [esi + 0xf870], eax
lea eax, [edx + 2]
mov word [esi + 0xf85e], ax
mov eax, dword [esi + 0x1d4]
mov dword [esi + 0xf86c], edx
mov dword [esi + 0xf874], 0
test eax, eax
jne 0x43ee8d
or eax, 0xffffffff
mov dword [ebp + 8], eax
jmp 0x43eed0
mov ebx, dword [esi + 0x1d0]
dec eax
mov edi, dword [esi + 0x1cc]
mov ecx, esi
push ebx
push edi
mov dword [esi + 0x1d4], eax
call fcn.00416dd0
movzx eax, al
mov dword [ebp + 8], eax
lea eax, [edi + 1]
mov dword [esi + 0x1cc], eax
cmp eax, dword [esi + 0xc]
jne 0x43eed0
lea eax, [ebx - 1]
mov dword [esi + 0x1cc], 0
mov dword [esi + 0x1d0], eax
xor ecx, ecx
mov eax, 0x138b
add eax, eax
inc ecx
cmp eax, 0x10000
jl 0x43eed7
mov eax, 8
sub eax, ecx
push ecx
mov ecx, esi
mov dword [ebp + 0xc], eax
call fcn.0043f280
movzx eax, word [esi + 0xf86c]
push eax
call fcn.0043f040
mov eax, dword [esi + 0x1d4]
mov ecx, esi
test eax, eax
je 0x43f012
mov ebx, dword [esi + 0x1d0]
dec eax
mov edi, dword [esi + 0x1cc]
push ebx
push edi
mov dword [esi + 0x1d4], eax
call fcn.00416dd0
movzx ecx, al
lea eax, [edi + 1]
mov dword [ebp - 4], ecx
mov dword [esi + 0x1cc], eax
cmp eax, dword [esi + 0xc]
jne 0x43ef51
lea eax, [ebx - 1]
mov dword [esi + 0x1cc], 0
mov dword [esi + 0x1d0], eax
mov edx, dword [ebp + 8]
mov ebx, ecx
mov edi, ecx
shl ebx, 0xc
mov ecx, dword [ebp + 0xc]
add ebx, edx
shl edi, cl
xor edi, edx
mov eax, dword [esi + edi*4 + 0x8314]
cmp eax, ebx
jne 0x43ef7c
movzx ecx, word [esi + edi*2 + 0xd140]
mov dword [ebp + 8], ecx
jmp 0x43ef00
test eax, eax
js 0x43efad
mov ecx, 0x138b
mov eax, 1
sub ecx, edi
test edi, edi
cmove ecx, eax
mov eax, edi
sub eax, ecx
lea edi, [eax + 0x138b]
cmovns edi, eax
mov eax, dword [esi + edi*4 + 0x8314]
cmp eax, ebx
je 0x43ef6f
test eax, eax
jg 0x43ef91
push edx
mov ecx, esi
call fcn.0043f040
mov eax, dword [ebp - 4]
mov ecx, 0x1000
mov dword [ebp + 8], eax
movzx eax, word [esi + 0xf85e]
cmp ax, cx
jge 0x43efe7
mov word [esi + edi*2 + 0xd140], ax
inc word [esi + 0xf85e]
mov dword [esi + edi*4 + 0x8314], ebx
jmp 0x43ef00
push ecx
mov ecx, esi
call fcn.0043f280
movzx ecx, word [esi + 0xf86c]
push ecx
mov dword [esi + 0xf860], 1
lea eax, [ecx + 2]
mov ecx, esi
mov word [esi + 0xf85e], ax
jmp 0x43eefb
mov eax, dword [ebp + 8]
push eax
call fcn.0043f040
movzx eax, word [esi + 0xf870]
mov ecx, esi
push eax
call fcn.0043f040
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x44b290
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e93f8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x6670f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x48], ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [ecx + 0x2c], eax
mov eax, dword [ebp + 0x10]
mov dword [ecx + 0x30], eax
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44b2e5
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00449bc0
mov dword [ebp - 4], 0
xor ecx, ecx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], cx
lea edx, [eax - 1]
cmp eax, edx
jb 0x44b495
sub eax, edx
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x40]
lea eax, [eax + edx*2]
push eax
call fcn.00449bc0
cmp dword [ebp - 0x2c], 8
lea esi, [ebp - 0x40]
mov edi, dword [ebp - 0x40]
cmovae esi, edi
cmp dword [ebp - 0x30], 1
jne 0x44b387
mov ecx, 0x64528c
mov edx, 1
sub esi, ecx
nop dword [eax]
mov ax, word [esi + ecx]
cmp ax, word [ecx]
jne 0x44b387
add ecx, 2
sub edx, 1
jne 0x44b370
mov byte [ebp - 0x41], 1
jmp 0x44b38b
mov byte [ebp - 0x41], 0
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x44b3c2
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x44b3b8
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44b49a
push ecx
push edi
call fcn.0050ed4e
add esp, 8
cmp byte [ebp - 0x41], 0
je 0x44b416
xor eax, eax
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x2c], 7
lea ecx, [eax - 1]
cmp eax, ecx
cmovb ecx, eax
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.00449bc0
lea ecx, [ebp - 0x28]
call fcn.00449b10
movups xmm0, xmmword [ebp - 0x40]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [ebp - 0x30]
movq qword [ebp - 0x18], xmm0
mov esi, dword [ebp - 0x48]
lea eax, [ebp - 0x28]
cmp esi, eax
je 0x44b433
cmp dword [ebp - 0x14], 8
mov ecx, esi
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00449bc0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x44b442
push eax
mov ecx, esi
call fcn.0044c460
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x44b478
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44b46e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44b49f
push edx
push ecx
call fcn.0050ed4e
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050ed5c
mov esp, ebp
pop ebp
ret 0xc
call fcn.0044ef30
call fcn.005978c6
call fcn.005978c6
int3
Function at 0x44c290
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x44c298
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x44c2ae
test al, 0x10
jne 0x44c2ae
mov eax, 1
ret
xor eax, eax
ret
Function at 0x450760
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov dword [ebp - 4], 0
lea ecx, [ebp - 4]
push ecx
push 0
mov eax, dword [esi]
mov ecx, esi
push dword [ebp + 8]
call dword [eax + 0x1c]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
pop esi
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
mov esp, ebp
pop ebp
ret 4

Function at 0x450a60
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
xorps xmm0, xmm0
lea ecx, [ebp - 8]
movlpd qword [ebp - 8], xmm0
push ecx
push 0
push dword [ebp + 0xc]
mov eax, dword [esi]
mov ecx, esi
push dword [ebp + 8]
call dword [eax + 0x3c]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
pop esi
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
mov esp, ebp
pop ebp
ret 8
Function at 0x454320
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [ebp + 8]
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x454356
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4543c5
push ebx
call fcn.0050f771
add esp, 4
mov dword [ebp - 4], 0
mov edi, eax
lea eax, [ebp - 4]
push 0
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4543c5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, dword [ebp - 4]
jne 0x4543af
mov eax, dword [ebp - 8]
mov dword [eax], edi
mov eax, dword [ebp - 0xc]
pop edi
mov dword [eax], ebx
mov eax, 1
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x4543cc
push edi
call fcn.0050edcc
add esp, 4
xor eax, eax
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x458450
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e9d93
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x6670f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x20], 0x66d4a8
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [ebp - 4], 0
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [ecx], 0x66d4a8
mov byte [ebp - 4], 1
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x3c], 0xffffffff
push 0
push 0x62c63d
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], 0
mov byte [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.0045d2e0
mov dword [esi + 0x40], 0
mov eax, esi
mov dword [esi + 0x3c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x459090
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e9ef2
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x6670f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x48
call fcn.0050ed1e
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x20], 0x66d4a8
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [ecx], 0x66d4a8
mov byte [ebp - 4], 2
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x3c], 0xffffffff
push 0
push 0x62c63d
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], 0
mov byte [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.0045d2e0
push esi
mov ecx, edi
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
mov dword [ebp - 4], 0xffffffff
call fcn.00459000
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x459a80
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e9ff9
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x6670f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x20], 0x66d4a8
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 5
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [ebp - 4], 0
lea ecx, [esi + 0x2c]
mov dword [esi], vtable.TiXmlDeclaration.0
mov dword [ecx], 0x66d4a8
mov dword [esi + 0x30], 0x66d4a8
mov dword [esi + 0x34], 0x66d4a8
mov edi, dword [ebp + 8]
mov edx, edi
mov byte [ebp - 4], 3
lea ebx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x459b21
sub edx, ebx
push edx
push edi
call fcn.0045d2e0
mov edi, dword [ebp + 0xc]
mov edx, edi
lea ecx, [edx + 1]
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x459b40
sub edx, ecx
lea ecx, [esi + 0x30]
push edx
push edi
call fcn.0045d2e0
mov edi, dword [ebp + 0x10]
mov edx, edi
lea ecx, [edx + 1]
nop dword [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x459b60
sub edx, ecx
lea ecx, [esi + 0x34]
push edx
push edi
call fcn.0045d2e0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x46d7e0
Capabilities:
Terminate process

Disassembly:
test ecx, ecx
je 0x46d7fa
mov eax, dword [ecx + 0x40]
test eax, eax
je 0x46d7fa
mov ecx, dword [ecx + 0x44]
test ecx, ecx
je 0x46d7fa
push 1
push ecx
call eax
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4866b7
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, ecx
push esi
push edi
mov esi, 0x100
mov dword [ebp - 0x1c], ebx
mov edx, dword [ebx + 0x4c]
cmp edx, 1
mov edi, dword [ebx + 0x1a8]
sete al
mov dword [ebp - 0x20], edi
mov dword [ebp - 8], edx
mov byte [edi + 0x1c], al
mov eax, 0x2fe
push dword [ebx + 0x64]
mov ecx, dword [ebx + 4]
cmovne eax, esi
push eax
push 1
push ebx
call dword [ecx + 8]
xor esi, esi
mov dword [edi + 0x18], eax
mov eax, dword [edi + 0x14]
add esp, 0x10
mov dword [ebp - 0x10], esi
cmp dword [ebx + 0x64], esi
jle 0x4867db
mov ecx, dword [edi + esi*4 + 0x20]
cdq
idiv ecx
cmp dword [ebp - 8], 1
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], eax
jne 0x48672b
mov eax, dword [edi + 0x18]
add dword [eax + esi*4], 0xff
mov eax, dword [edi + 0x18]
xor ecx, ecx
mov dword [ebp - 4], ecx
mov eax, dword [eax + esi*4]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
lea eax, [esi + 0xfe]
lea ebx, [esi*2 - 2]
cdq
idiv ebx
mov dword [ebp - 0x18], ebx
xor edi, edi
mov edx, eax
cmp edi, edx
jle 0x48677b
imul eax, ecx, 0x1fe
lea ebx, [esi + 0xfe]
add ebx, eax
add ebx, 0x1fe
inc ecx
mov eax, ebx
cdq
idiv dword [ebp - 0x18]
mov edx, eax
cmp edi, edx
jg 0x486765
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 0x14]
movzx eax, al
movzx ecx, cl
imul ecx, eax
mov eax, dword [ebp - 0xc]
mov byte [edi + eax], cl
inc edi
mov ecx, dword [ebp - 4]
cmp edi, 0xff
jle 0x486753
cmp dword [ebp - 8], 1
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x1c]
jne 0x4867c8
mov edi, eax
xor ecx, ecx
inc ecx
lea edx, [edi - 1]
mov al, byte [edi]
mov byte [edx], al
mov al, byte [edi + 0xff]
mov byte [edi + ecx + 0xff], al
inc ecx
dec edx
cmp ecx, 0xff
jle 0x4867ad
mov edi, dword [ebp - 0x20]
inc esi
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], esi
cmp esi, dword [ebx + 0x64]
jl 0x48670e
pop edi
pop esi
pop ebx
leave
ret