joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003c720
Capabilities:
Get common file path

Disassembly:
sub esp, 0x21c
mov eax, dword [0x1006f3c0]
xor eax, esp
mov dword [esp + 0x218], eax
cmp dword [0x10074b2c], 0
mov eax, dword [esp + 0x220]
mov ecx, dword [esp + 0x224]
je 0x1003c76a
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.100526ad
add esp, 0x21c
ret 8
push esi
push eax
push ecx
lea ecx, [esp + 0xc]
call fcn.1003bce0
mov eax, dword [esp + 0x218]
push dword [esp + 8]
add eax, eax
shr eax, 1
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 4]
call fcn.1003be80
mov esi, eax
test esi, esi
jle 0x1003c79c
dec esi
lea ecx, [esp + 4]
call fcn.1003be80
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
cmp eax, ecx
je 0x1003c7ca
mov ecx, eax
shr ecx, 0x10
test ecx, ecx
je 0x1003c7ca
cmp dword [esp + 4], 0xffffffff
je 0x1003c7ca
push eax
call fcn.10055408
add esp, 4
mov ecx, dword [esp + 0x21c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.100526ad
add esp, 0x21c
ret 8

Function at 0x1003c8d0
Capabilities:
Move file

Disassembly:
jmp 0x1003c8d0
sub esp, 0x42c
mov eax, dword [0x1006f3c0]
xor eax, esp
mov dword [esp + 0x428], eax
cmp dword [0x10074b2c], 0
mov eax, dword [esp + 0x430]
push esi
mov esi, dword [esp + 0x438]
je 0x1003c91c
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
pop esi
mov ecx, dword [esp + 0x428]
xor ecx, esp
call fcn.100526ad
add esp, 0x42c
ret 8
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x220]
mov dword [esp + 0x220], 0
mov dword [esp + 0x224], 0
call fcn.1003bef0
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.1003bef0
push dword [esp + 8]
push dword [esp + 0x220]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov esi, eax
lea ecx, [esp + 0xc]
mov eax, dword [esp + 8]
cmp eax, ecx
je 0x1003c995
mov ecx, eax
shr ecx, 0x10
test ecx, ecx
je 0x1003c995
cmp dword [esp + 4], 0xffffffff
je 0x1003c995
push eax
call fcn.10055408
add esp, 4
mov ecx, dword [esp + 0x21c]
lea eax, [esp + 0x220]
mov dword [esp + 8], 0
cmp ecx, eax
je 0x1003c9cb
mov eax, ecx
shr eax, 0x10
test eax, eax
je 0x1003c9cb
cmp dword [esp + 0x218], 0xffffffff
je 0x1003c9cb
push ecx
call fcn.10055408
add esp, 4
mov ecx, dword [esp + 0x42c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.100526ad
add esp, 0x42c
ret 8
Function at 0x1003cac0
Capabilities:
Delete registry value

Disassembly:
sub esp, 0x218
mov eax, dword [0x1006f3c0]
xor eax, esp
mov dword [esp + 0x214], eax
cmp dword [0x10074b2c], 0
mov eax, dword [esp + 0x220]
push esi
mov esi, dword [esp + 0x220]
je 0x1003cb0c
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
pop esi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.100526ad
add esp, 0x218
ret 8
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.1003bef0
push dword [esp + 8]
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp + 8]
mov esi, eax
lea eax, [esp + 0xc]
cmp edx, eax
je 0x1003cb5a
mov ecx, edx
shr ecx, 0x10
test ecx, ecx
je 0x1003cb5a
cmp dword [esp + 4], 0xffffffff
je 0x1003cb5a
push edx
call fcn.10055408
add esp, 4
mov ecx, dword [esp + 0x218]
mov eax, esi
pop esi
xor ecx, esp
call fcn.100526ad
add esp, 0x218
ret 8
Function at 0x1007e172
Capabilities:
Encode data using xor

Disassembly:
call 0x1007e0eb
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or eax, dword [ebx - 0x178f73c]
xor esi, 0xde5af04
add eax, esi
lea esp, [esp - 0xe]
mov esi, dword [esp + 0xe]
lea esp, [esp + 0x12]
xor esi, dword [esp]
push eax
sub eax, 0xf24f2b00
mov eax, esp
or dword [eax - 0x22], ebx
pop eax
jmp 0x1007e11b
xor dword [esp], esi
xor eax, 0
mov dword [esp], esi
add esp, 4
add esi, dword [ebp + 8]
push ebp
add ebp, 0xc
mov ecx, dword [ebp]
pop ebp
ja 0x1007e137
xor edx, 0
jmp 0x1007e142
xor edx, edx
jmp 0x1007e159
jmp 0x1007e165
xor eax, eax
push 0x8427d7c0
call 0x1007e172
stc
add esp, 8
add esi, 0
cmp ecx, 0
je 0x1007e1ae
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
add bl, dl
xor byte [esi], bl
mov dl, byte [esi]
inc esi
add ebx, edi
rol ebx, 8
dec ecx
jne 0x1007e187
lea esp, [esp - 4]
xchg dword [esp], ebx
mov ebx, dword [esp]
or eax, edx
xor eax, eax
add eax, dword [esp]
add esp, 4
pop esi
pop edi
pop ebx
xchg dword [esp], ecx
mov dword [esp], ecx
lea esp, [esp + 4]
pop edx
leave
je 0x1007e1c5
add eax, 0
jno 0x1007e1ca
add esi, 0
ret 0x10

Function at 0x1007ef33
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp - 0x63]
mov dword [esp + 0x5f], ebx
lea esp, [esp + 0x5f]
mov ebx, 0x8dff8662
xchg dword [esp], ebx
and dword [esp], ebp
jmp 0x1007ef55
add ebx, 0
or dword [esp], ebp
mov ebp, esp
push eax
push edi
lea esp, [esp - 4]
xchg dword [esp], ecx
pop ecx
lea esp, [esp - 4]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp edi, dword [ebp + 0x14]
ja 0x1007f0f7
cmp edi, dword [ebp + 0x10]
jb 0x1007f0f7
lea esi, [esi]
sub esi, 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
sub esp, 0x6a
mov dword [esp + 0x66], 0xc2ccbc3c
add esp, 0x66
mov dword [esp], edi
or edi, 0xffffffff
and edi, 0xcedcf875
xor edi, 0xce9c140e
xchg dword [esp], edi
push edx
mov edx, esp
xor edx, 0
add edx, 0
push ebx
lea ebx, [edx + 4]
mov dword [ebx], eax
pop ebx
pop edx
push edi
call fcn.1007ea1f
inc edi
jmp 0x1007efde
jmp 0x1007efeb
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.1007ea1f
inc edi
and dword [esp - 0x4e], ecx
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.1007ea1f
inc edi
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push 0
sub esi, 0
add dword [esp], edx
xor edx, edx
je 0x1007f03f
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or edx, 0x13e27bd2
push ebx
add ebx, esi
mov ebx, esp
xor dword [ebx - 0x2a], edi
fdiv qword [ecx]
jnp 0x1007f023
pop ebx
xor edx, 0x1b7d0cc
add edx, 0xedeb415d
xchg dword [esp], edx
push edx
mov edx, esp
call int.1007f06d
add dword [eax], 0x39
jle 0x1007f049
sub al, 0xf5
mov ch, al
call fcn.1007f082
mov dword [edi], eax
pop ecx
pop edi
pop eax
leave
ret 0x10
Function at 0x10080d5a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push ecx
push edx
push 0
sub esi, esi
shr esi, 9
and dword [esp - 0x69], ebx
jbe 0x10080d70
add edi, 0
shr esi, 0x17
or esi, dword [esp]
add esp, 4
add esi, dword [ebp + 8]
xor eax, eax
xor edx, edx
cld
and dword [esp - 0x46], edx
xor ecx, ecx
rol edx, 7
and dword [esp - 0x4b], edx
xor dl, al
mov al, byte [esi]
inc esi
or al, al
jne 0x10080d81
mov eax, edx
pop edx
pop ecx
pop esi
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
push 0x54
call fcn.10080dc2
std
inc ebx
sar cl, 0x3e
lahf
in al, dx
mov ch, 0x4a
mov ebx, 0x971631d8
test byte [ebp - 0x5e], ch
xor eax, dword [ebx + 0x2b5108c4]
add esp, 8
push ecx
sub ecx, eax
mov ecx, esp
cmp dword [ecx - 0x51], edx

Function at 0x1008312e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0xffffffffffffffff
push esi
mov esi, esp
xor dword [esp - 0x43], esi
xor dword [esp - 0x45], esi
and dword [esi + 4], eax
pop esi
push 0
ja 0x10083077
add ebx, 0
push ecx
call 0x1008308c
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
add esp, 8
xor dword [esp], ebx
sub esp, 0x6b
mov dword [esp + 0x67], edx
add esp, 0x67
push ecx
push 0
xor dword [esp - 0x56], edx
xor edi, 0
add dword [esp], edi
push esi
mov ebx, 0x6c76716a
sub ebx, dword [0x6c7869a9]
mov dword [ebp - 8], ebx
xchg esi, eax
push 0x6c786999
call fcn.1007eb56
xchg esi, eax
add esi, ebx
mov edx, dword [ebp + 8]
sub edx, ebx
call fcn.1007e064
mov edi, eax
mov eax, dword [esi + 8]
xor dword [esp - 0x69], edx
xor ebx, 0
xor eax, edi
cmp edx, eax
jb 0x100831ea
mov eax, dword [esi + 0xc]
xor eax, edi
cmp edx, eax
ja 0x100831ea
mov ecx, dword [esi + 0x10]
sub dword [esp - 0x34], ebx
xor ecx, edi
mov edx, dword [esi + 0x14]
xor edx, edi
shl edx, 2
add edx, 0x18
mov eax, dword [esi]
xor eax, edi
cmp eax, 1
je 0x100831a1
mov eax, 1
lock xchg dword [0x6c7869a5], eax
push 0x3dd1fc71
call 0x1008312e
push esi
add esp, 8
cmp eax, 0
jne 0x10083117
push edx
mov eax, edi
xor byte [esi + edx], al
inc edx
dec ecx
jne 0x1008313d
pop edx
mov eax, dword [esi + 0x14]
xor eax, edi
js 0x10083152
cmp ecx, edx
cmp eax, 0
je 0x10083177
mov dword [ebp - 4], eax
lea ecx, [esi + 0x18]
mov eax, dword [esi + ecx]
xor eax, edi
add eax, edx
add dword [esi + eax], ebx
add ecx, 4
dec dword [ebp - 4]
jne 0x10083161
mov eax, 1
mov dword [esp - 0x1a], eax
push 0x8ae1b7eb
call fcn.10083190
dec eax
loope 0x10083193
invalid
xor eax, edi
mov dword [esi], eax
mov dword [0x6c7869a5], 0
add edx, esi
mov dword [ebp + 4], edx
xchg dword [esp], esi
push ecx
lea ecx, [edi - 0x72d1f741]
mov ecx, esp
mov dword [ecx - 0x15], ebx
pop ecx
push esi
xor esi, esi
mov esi, esp
and dword [esi - 0x1d], ecx
pop esi
mov dword [esp], esi
jb 0x100831c7
xor edx, 0
add esp, 4
pop edi
pop ecx
pop edx
pop ebx
pop eax
leave
jmp 0x100831dc
jmp 0x100831e7
ret 4
mov eax, dword [esi + 4]
xor eax, edi
add esi, eax
jmp 0x100830d5
Function at 0x1008a24f
Capabilities:
Access peb ldr_data

Disassembly:
add esp, 8
and dword [esp], ebx
push ecx
push edx
push edi
push esi
or edi, 0xffffffff
not edi
add edi, dword [ebp + 8]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
xor edx, edx
mov ecx, dword [ecx]
cmp ecx, dword [esp]
je 0x1008a525
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0x6c77361d
add esp, 0x2e
sub esp, 4
mov dword [esp], 0x6c76a5e3
push 0xffffffffffffffff
call fcn.1008144f
xchg edx, eax
and eax, 0
add eax, 0x75d46dc4
push ecx
and ecx, 0xcfb6d7ec
mov ecx, esp
mov dword [ecx - 0x54], esi
pop ecx
ja 0x1008a2b9
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.1008a2d1
mov byte [0xee69f033], al
invalid
mov eax, ecx
pop esi
mov edi, dword [esp]
add esp, 4
pop edx
xor ecx, ecx
add ecx, 0xffffffff
and ecx, dword [esp]
xor ecx, 0
add esp, 4
pop ebx
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
jno 0x1008a519
xor eax, 0
ret 4
xor ecx, ecx
jmp 0x1008a4ed
Function at 0x10099d1f
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x10099d41
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x10099d41
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x10099d41
ret
cmp word [ebx + 4], 0x14c
jne 0x10099d41
test word [ebx + 0x16], 2
je 0x10099d41
test word [ebx + 0x16], 0x100
je 0x10099d41
cmp word [ebx + 0x18], 0x10b
jne 0x10099d41
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x10099d41
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x10099dcd
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x10099d61
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.10080cac
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x10099d41
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x10099dcd
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x10099d41
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x10099d41
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x10099d41
ret
cmp word [ebx + 4], 0x14c
jne 0x10099d41
test word [ebx + 0x16], 2
je 0x10099d41
test word [ebx + 0x16], 0x100
je 0x10099d41
cmp word [ebx + 0x18], 0x10b
jne 0x10099d41
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x10099d41
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x10099dcd
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x10099d61
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.10080cac
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x10099d41
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0x10099e84
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x10099edd
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x10099e84
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x10099e93
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x1049fb36
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x10099ee4
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.10080d5a
cmp eax, dword [ebp + 0xc]
pop eax
je 0x10099f83
add edi, 4
add eax, 2
dec ecx
jne 0x10099ec9
call 0x10099f30
loope 0x10099f26
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x10099f80
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x10099f91
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x10099f44
cmp eax, ecx
ja 0x10099f44
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x10099fce
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x10099fc4
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.10081239
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x10099e93
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x10099edd
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x10099e84
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x10099e93
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x1049fb36
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x10099ee4
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.10080d5a
cmp eax, dword [ebp + 0xc]
pop eax
je 0x10099f83
add edi, 4
add eax, 2
dec ecx
jne 0x10099ec9
call 0x10099f30
loope 0x10099f26
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x10099f80
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x10099f91
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x10099f44
cmp eax, ecx
ja 0x10099f44
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x10099fce
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x10099fc4
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.10081239
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x100010a0
Capabilities:
Encode data using xor
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xf67c4
call fcn.10003d10
mov eax, dword [ebp + 8]
push esi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
lea ecx, [ebp - 4]
push ecx
push eax
lea edx, [ebp - 0xf67c4]
push edx
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
jmp 0x10001100
xor byte [ebp + eax - 0xf67c4], 0xc6
inc eax
cmp eax, 0xf67c0
jne 0x10001100
push 0x40
push 0x3000
push eax
push 0
call dword [0x100086fc]
mov esi, eax
push 0xf67c0
lea eax, [ebp - 0xf67c4]
push eax
push esi
call dword [sym.imp.MSVCR100.dll_memmove]
add esp, 0xc
push 0
push esi
push 0
call dword [sym.imp.IMM32.dll_ImmEnumInputContext]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10001320
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, 0x17
lea esi, [ebp - 0x1c]
mov dword [ebp - 8], 0xf
mov dword [ebp - 0xc], 0
mov byte [ebp - 0x1c], 0
call fcn.10002550
mov eax, dword [ebp - 0x1c]
mov esi, 0x10
cmp dword [ebp - 8], esi
jae 0x10001358
lea eax, [ebp - 0x1c]
push 0x10005424
push eax
call dword [sym.imp.MSVCR100.dll_fopen]
add esp, 8
test eax, eax
je 0x10001379
push eax
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
mov bl, 1
jmp 0x1000137b
xor bl, bl
cmp dword [ebp - 8], esi
jb 0x1000138d
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.mfc100.dll_Ordinal_1296]
add esp, 4
pop edi
pop esi
test bl, bl
pop ebx
je 0x100013b0
push str.C:Program_FilesFonsd_version.xml
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push str.C:Program_FilesFonsdkdsd.dat
call fcn.100010a0
add esp, 4
mov esp, ebp
pop ebp
ret
call fcn.10001150
push str.C:Program_FilesFonsd_version.xml
call fcn.100010a0
push str.C:Program_FilesFonsdkdsd.dat
call fcn.100010a0
add esp, 8
mov esp, ebp
pop ebp
ret
Function at 0x100022a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10003e98
push eax
mov dword fs:[0], esp
sub esp, 0x20
cmp dword [ebx + 0x44], 0
je 0x10002453
cmp byte [ebx + 0x49], 0
je 0x10002453
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
jne 0x100022ef
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push esi
push edi
lea esi, [ebp - 0x2c]
call fcn.100020c0
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x10002312
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebx + 0x44]
push edx
push eax
lea eax, [ebx + 0x4c]
push eax
call dword [sym.imp.MSVCP100.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x10002353
dec eax
je 0x10002357
sub eax, 2
lea esi, [ebp - 0x2c]
je 0x10002431
call fcn.10001430
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x10002367
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x10]
sub esi, edx
je 0x10002395
cmp edi, 0x10
jae 0x10002376
lea eax, [ebp - 0x2c]
mov edx, dword [ebx + 0x54]
push edx
push esi
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x10002426
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x1000242e
test esi, esi
jne 0x10002306
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x10002448
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x10002448
cmp edi, esi
jae 0x1000240f
push ecx
push esi
lea eax, [ebp - 0x2c]
push eax
call fcn.10002720
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x10002306
mov ecx, eax
cmp edi, 0x10
jae 0x100023eb
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x10002406
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x10002300
test esi, esi
jne 0x100023e1
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x1000241e
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x10002300
lea esi, [ebp - 0x2c]
jmp 0x1000233c
lea esi, [ebp - 0x2c]
call fcn.10001430
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push str.string_too_long
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const__]
mov ecx, dword [ebp - 0xc]
mov al, 1
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x10003658
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100080a8]
jne 0x10003662
repz ret
jmp fcn.100039e6
Function at 0x402ba0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
neg eax
rcl esi, 0xf5
dec ebx
inc esi
not edx
sbb eax, 0xcf
dec eax
dec edi
neg ebx
not edi
add edi, 0xaa
ror edx, 0xec
dec ebx
rcl edx, 0xe2
imul edi
neg esi
sbb esi, 0x15
not ebx
dec edi
ror eax, 0x15
dec eax
rcl edx, 0x8e
dec ebx
neg ebx
rol eax, 0x43
sbb esi, 0xa3
neg edx
imul esi
dec edi
sub eax, 0x66
not ebx
mov eax, 0x1d
rcl eax, 8
dec esi
bswap edx
sub esi, 0x69
not eax
neg esi
sbb eax, 0x48
inc esi
rol edx, 0xbc
not edx
inc esi
add edx, 0x2c
neg esi
rol edx, 0xff
add edi, 0xf9
rol ebx, 0xd5
neg edi
add esi, 0xa6
xor ecx, ecx
xor edi, edi
dec ebx
or esi, 0x73
sbb eax, 0x15
neg edx
sub esi, 0x95
dec esi
inc edx
imul esi
dec ebx
imul ebx
not eax
neg eax
mov ebx, 0x3b
imul eax
not edi
ror ebx, 0x1a
add eax, 0x17
or eax, 0xfa
neg edi
dec ebx
not edx
add edi, 0xb7
rcl eax, 0xa0
dec edi
rcr edx, 0xb3
sub edi, 0x1f
imul edx
bswap edi
mov eax, 0x35
ror esi, 0x7a
or edx, 0x91
dec edx
rcl edx, 0xe5
sub ebx, 0xd2
imul edx
add ebx, 0xb3
imul eax
ror esi, 0x2b
or esi, 0x39
imul eax
bswap esi
sub edx, 0x6e
inc edi
mov esi, pe_nt_image_headers32
and esi, 0x64
imul ebx
inc ebx
and eax, 0x17
dec edx
rcr eax, 0x3e
mov ecx, dword [ebp + 0xc]
imul edx
dec edx
sub esi, 0x7d
dec eax
imul eax
dec esi
neg eax
sbb ebx, 0x85
imul edx
rcl esi, 0x28
neg edx
add esi, 0xa6
imul eax
inc edi
sub edi, 0x76
rol edi, 0xe6
sbb edi, 0xc6
neg eax
dec ebx
rcl ebx, 0x99
bswap eax
dec ebx
or edx, 0x97
bswap edx
mov esi, 0xb2
neg edx
not edi
rcr edi, 0x8f
bswap edx
dec esi
sub edi, 0
bswap edi
not edx
not eax
dec esi
rcl ebx, 0x63
add esi, 0xff
neg ebx
bswap eax
dec edx
rcl edi, 0x92
bswap edi
neg esi
inc esi
rcl esi, 0xda
rcr ebx, 0xc6
dec edx
dec ebx
dec edi
and ebx, 0x47
mov edi, dword [ebp + 8]
xor esi, ebx
xor ebx, esi
mov ebx, eax
xor eax, esi
xor ebx, ebx
xor ebx, eax
xor ebx, esi
mov eax, eax
mov esi, eax
xor ebx, eax
mov esi, eax
mov ebx, esi
not byte [edi]
xor eax, ebx
mov esi, esi
mov eax, esi
xor ebx, eax
xor eax, esi
xor esi, eax
mov esi, eax
xor ebx, eax
mov esi, ebx
sub byte [edi], 0x89
xor eax, ebx
mov ebx, esi
xor eax, esi
mov esi, esi
mov ebx, eax
xor ebx, esi
mov esi, ebx
xor ebx, eax
xor eax, eax
add byte [edi], 0x57
mov esi, esi
xor eax, esi
mov esi, ebx
mov ebx, eax
xor esi, eax
mov esi, esi
xor eax, eax
xor esi, eax
xor ebx, ebx
imul byte [edi]
inc edi
loop 0x402d3c
pop esi
pop edi
pop ebx
pop ebp
ret