joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10009a0b
Capabilities:
Create thread

Disassembly:
push 0x14
mov eax, 0x100268ef
call fcn.1001cf7f
mov ebx, dword [ebp + 8]
xor edi, edi
push ebx
mov dword [ebp - 4], edi
call fcn.1000253f
cmp byte [ebx + 0x28], 0
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
je 0x10009a3c
push dword [ebx + 0x3c]
push dword [ebx + 4]
call dword [0x100283dc]
lea eax, [ebx + 0x34]
push eax
call fcn.10008e22
pop ecx
mov ecx, ebx
call fcn.100094a8
mov esi, ebx
call fcn.10009fab
push ebx
call fcn.10009d54
mov eax, 0x10037c5c
push eax
mov dword [ebp - 0x20], eax
call dword [0x1002821c]
mov byte [ebp - 0x1c], 1
mov byte [ebp - 4], 1
mov eax, dword [0x10037c34]
mov esi, dword [eax]
lea eax, [ebp - 0x14]
push eax
push dword [esi + 4]
mov dword [ebp - 0x14], ebx
push esi
call fcn.1000a479
mov ecx, 0x3ffffffe
sub ecx, dword [0x10037c38]
cmp ecx, 1
jae 0x10009aa2
push 0x1002aae4
call fcn.10013c2e
inc dword [0x10037c38]
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
mov eax, dword [0x10037c34]
mov eax, dword [eax]
push eax
add eax, 8
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, 0x10037c30
call fcn.1000a28c
push edi
push edi
push ebx
push 0x10009928
push edi
push edi
call fcn.100160e2
xor ecx, ecx
add esp, 0x18
cmp eax, edi
setne cl
mov dword [ebx + 0x7c], eax
cmp ecx, edi
jne 0x10009af4
push 0x80004005
call fcn.1000869d
mov ecx, ebx
call fcn.100097ea
lea edi, [ebp - 0x14]
mov esi, 0x10037bf8
mov dword [ebp - 0x14], 3
call fcn.10001e3d
push dword [eax]
push 0x1002b37c
call fcn.10013e66
pop ecx
pop ecx
test eax, eax
je 0x10009b2c
push 0
push dword [ebx + 4]
call dword [str._pXs]
mov eax, dword [ebp + 0xc]
push 0x10037c5c
mov dword [eax], 1
call dword [0x10028220]
xor eax, eax
inc eax
call fcn.1001d024
ret 8
Function at 0x1000d6f6
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor ebx, ebx
push esi
mov esi, eax
cmp dword [edi + 0x40], ebx
jne 0x1000d70e
mov eax, 0x80004005
jmp 0x1000d74c
lea eax, [edi + 0x14]
push eax
mov dword [ebp - 0x18], eax
call dword [0x1002821c]
mov eax, dword [edi + 0xc]
cmp esi, eax
jne 0x1000d72f
push dword [ebp - 0x18]
call dword [0x10028220]
mov eax, ebx
jmp 0x1000d74c
mov dword [ebp - 4], ebx
jge 0x1000d829
sub eax, esi
mov dword [ebp - 0xc], eax
cmp eax, ebx
jg 0x1000d754
push dword [ebp - 0x18]
call dword [0x10028220]
xor eax, eax
pop esi
pop ebx
leave
ret 4
xor ebx, ebx
push dword [edi + 0x3c]
call dword [0x100280d0]
xor eax, eax
lea esi, [edi + 0x38]
inc eax
mov ecx, esi
xchg dword [ecx], eax
push 0xffffffffffffffff
push ebx
push ebx
push dword [edi + 0x40]
call dword [0x100280cc]
push dword [ebp + 8]
mov eax, dword [edi + 0x3c]
push eax
call dword [0x10028208]
mov ecx, 0x102
cmp eax, ecx
jne 0x1000d79d
xor eax, eax
xchg dword [esi], eax
cmp eax, ebx
je 0x1000d7a1
mov eax, ecx
call fcn.100106be
mov ebx, eax
jmp 0x1000d722
cmp eax, ebx
jne 0x1000d807
lea esi, [edi + 4]
mov edx, dword [esi + 8]
cmp edx, ebx
jle 0x1000d7bc
mov ecx, dword [edi + 0x10]
mov eax, dword [esi]
cmp dword [eax], ecx
je 0x1000d7bf
inc ebx
add eax, 4
cmp ebx, edx
jl 0x1000d7b0
or ebx, 0xffffffff
cmp ebx, 0xffffffff
je 0x1000d7f3
test ebx, ebx
js 0x1000d818
cmp ebx, edx
jge 0x1000d818
mov eax, dword [esi + 4]
mov eax, dword [eax + ebx*4]
push 0xea60
push eax
mov dword [ebp - 8], eax
call dword [0x10028208]
test eax, eax
jne 0x1000d80e
push dword [ebp - 8]
call dword [0x10028258]
call fcn.1000da25
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jl 0x1000d752
jmp 0x1000d741
call fcn.100073ed
jmp 0x1000d799
mov ebx, 0x80004005
jmp 0x1000d722
push 0
push 0
push 1
push 0xc000008c
call dword [0x10028120]
sub esi, eax
mov dword [ebp - 0x10], esi
cmp esi, ebx
jle 0x1000d741
jmp 0x1000d83a
xor ebx, ebx
push dword [edi + 0x3c]
call dword [0x100280d0]
mov eax, dword [edi + 0x2c]
lea ecx, [ebp - 8]
push ecx
push ebx
push edi
push 0x1000decb
push eax
push ebx
call fcn.100160e2
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x1000d807
push dword [ebp + 8]
mov eax, dword [edi + 0x3c]
push eax
call dword [0x10028208]
test eax, eax
jne 0x1000d8a6
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
lea esi, [edi + 4]
push eax
mov dword [ebp - 0xc], ebx
call fcn.1000e757
test eax, eax
je 0x1000d88b
xor ebx, ebx
test ebx, ebx
je 0x1000d896
push ebx
call dword [0x10028258]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x10]
jl 0x1000d838
jmp 0x1000d741
cmp eax, 0x102
jne 0x1000d8be
push ebx
call dword [0x10028258]
mov ebx, 0x80070102
jmp 0x1000d722
call fcn.100073ed
push ebx
mov esi, eax
call dword [0x10028258]
mov ebx, esi
jmp 0x1000d722
Function at 0x6203b80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x46b5000]
push edi
or ebp, 0xffffffff
jmp 0x6203ba2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x6203ba9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6203b98
mov eax, 1
add ebx, ebx
jne 0x6203bbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x6203bcc
jne 0x6203beb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6203beb
dec eax
add ebx, ebx
jne 0x6203bd8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x6203bb0
add ebx, ebx
jne 0x6203be7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x6203c3d
xor ecx, ecx
sub eax, 3
jb 0x6203c03
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x6203c72
sar eax, 1
mov ebp, eax
jmp 0x6203c0e
add ebx, ebx
jne 0x6203c0e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6203bdc
inc ecx
add ebx, ebx
jne 0x6203c1c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6203bdc
add ebx, ebx
jne 0x6203c29
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x6203c1e
jne 0x6203c3a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x6203c1e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x6203c5c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x6203c4e
jmp 0x6203b9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x6203c5c
add edi, ecx
jmp 0x6203b9e
pop esi
mov edi, esi
mov ecx, 0x1b237b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x6203c7a
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x6203c7f
lea edi, [esi + 0x5bb2000]
mov eax, dword [edi]
or eax, eax
je 0x6203ce7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5e1e0ec]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5e1e348]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x6203ca5
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5e1e350]
or eax, eax
je 0x6203ce1
mov dword [ebx], eax
add ebx, 4
jmp 0x6203cc2
call dword [esi + 0x5e1e34c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x6203d21
cmp al, 0xef
ja 0x6203d0b
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x6203ced
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
or eax, eax
jne 0x6203cfa
mov eax, dword [edi]
add edi, 4
jmp 0x6203cfa
mov ebp, dword [esi + 0x5e1e354]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x6203d55
sub esp, 0xffffff80
jmp 0x465c940
Function at 0x6630209f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ebx
mov dword [esp + 4], 1
mov dword [esp], edx
call sym._fread
cmp ebx, eax
je 0x663020d6
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
call sym._checkErr__systemZio_141_4
mov eax, dword [ebp - 0xc]
add esp, 0x24
pop ebx
pop ebp
ret 4

Function at 0x663025ef
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
xor eax, eax
push ebx
mov ebx, edx
sub esp, 0x10
test edx, edx
je 0x66302609
mov dword [esp], edx
call sym._strlen
mov dword [esp + 0xc], esi
mov dword [esp], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], 1
call sym._fwrite
mov dword [esp], esi
call sym._fflush
add esp, 0x10
pop ebx
pop esi
pop ebp
ret

Function at 0x66303c23
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, edx
push esi
mov esi, ecx
push ebx
sub esp, 0x1c
mov dword [esp], 2
call dword [0x6630f0b4]
mov dword [esp + 8], edi
mov dword [esp], esi
mov ebx, eax
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
call sym._fwrite
mov dword [esp], ebx
call sym._fflush
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x66307710
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [esp], 2
call sym.___acrt_iob_func
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], 0x663109dc
call sym._fwrite
mov ebx, dword [ebp - 0xc]
mov dword [esp], 2
call sym.___acrt_iob_func
mov dword [esp + 8], ebx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._vfprintf
call sym._abort

Function at 0x66308004
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x66308023
mov eax, 0
jmp 0x66308067
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x66308046
mov eax, 0
jmp 0x66308067
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x10b
je 0x66308062
mov eax, 0
jmp 0x66308067
mov eax, 1
leave
ret
Function at 0x66308069
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x663080c8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x663080c0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x663080c0
mov eax, dword [ebp - 4]
jmp 0x663080dc
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x6630809d
mov eax, 0
leave
ret
Function at 0x40610d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x40611c
pop dword [ebp - 0x10]
mov eax, 0x1a31e5cf
sub eax, 0x19f184b3
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0xe0b0864b
add dword [ebp - 0x20], 0x6da1bf00
mov dword [ebp - 0x1c], 0x17c95a55
add dword [ebp - 0x1c], 0x1a69f1f0
mov dword [ebp - 0x18], 0xcfbb8460
sub dword [ebp - 0x18], 0x836f4032
mov dword [ebp - 0x14], 0x3a251e27
sub dword [ebp - 0x14], 0x3a251e27
lea eax, [ebp - 0x20]
push eax
mov eax, 0xe419afe3
add eax, 0x1c26c07d
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x33d4ab0
sub dword [ebp - 0x20], 0x8ecae15a
mov dword [ebp - 0x1c], 0x6fee0da9
sub dword [ebp - 0x1c], 0x2e81ac34
mov dword [ebp - 0x18], 0x2186ba2e
add dword [ebp - 0x18], 0x41e8b23e
mov dword [ebp - 0x14], 0x74374dda
add dword [ebp - 0x14], 0x8bc8b226
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0x638fe12e
add eax, 0x9cb08fd2
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x3976f
push 0
call eax
mov ecx, 0xe4490e1b
add ecx, 0x1bb74552
mov edx, eax
mov edi, 0x7642d136
add edi, 0x89fe2eca
add edi, dword [ebp - 0x10]
mov esi, 0xbe8494b7
add esi, 0xa4bcff5c
add dword [ebp - 0xc], 0xb77fc00a
mov ebx, dword [edi]
sub dword [ebp - 8], 0x9ab80b26
add ebx, esi
xor dword [ebp - 8], 0x989d17e
mov dword [edx], ebx
add dword [ebp - 0xc], 0x8210e481
add edx, 0x1b00f4fa
add edx, 0xe4ff0b0a
add edi, 0x12eb108d
add edi, 0xed14ef77
loop 0x40623e
add eax, 0xcf926c02
sub eax, 0xcf912b7b
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x10]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43100c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403e6a
sub eax, 0x403e10
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219
Function at 0x1001086
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edi, edi
cmp eax, edi
je 0x10011fc
mov dword [0x10182ec], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
lea eax, [esp + 0x20]
call fcn.010015cd
mov esi, eax
cmp esi, edi
jne 0x10011ff
mov eax, dword [esp + 0x20]
mov esi, 0x1004020
cmp eax, edi
je 0x10010d5
push esi
call fcn.01001735
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push dword [0x100401c]
push esi
call fcn.01001443
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, eax
cmp esi, edi
jne 0x10011ed
push dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
call fcn.010014c0
and eax, 0xffff
cmp eax, 0x800
jne 0x10011ea
mov eax, dword [0x1005028]
cmp eax, 0x60519d17
je 0x10011ea
mov eax, dword [0x1008038]
cmp eax, 0x6e589d17
je 0x10011ea
lea eax, [esp + 0x10]
push eax
push dword [0x100803c]
push 0x1008040
call fcn.0100166c
mov esi, eax
cmp esi, edi
jne 0x10011ed
mov ecx, dword [esp + 0x10]
push 1
call fcn.01001b73
cmp eax, edi
je 0x10011d8
mov eax, dword [eax]
add eax, dword [esp + 0x10]
push edi
push dword [esp + 0x34]
push dword [esp + 0x2c]
push dword [esp + 0x34]
push dword [esp + 0x3c]
push dword [esp + 0x28]
push dword [esp + 0x30]
push dword [0x100502c]
push 0x1005030
call eax
mov esi, eax
cmp esi, edi
jne 0x10011d8
lea eax, [esp + 0x1c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
cmp esi, edi
jne 0x10011d8
mov ecx, dword [esp + 0x10]
push 2
call fcn.01001b73
cmp eax, edi
je 0x10011cb
mov eax, dword [eax]
push dword [esp + 0x1c]
add eax, dword [esp + 0x14]
call eax
push dword [esp + 0x1c]
push edi
push dword [0x10182ec]
call ebx
push 0x8000
push edi
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x10011ed
push 0xb
pop esi
push dword [esp + 0x34]
push edi
push dword [0x10182ec]
call ebx
jmp 0x10011ff
push 8
pop esi
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x100166c
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0xc
push ebx
push esi
push edi
jb 0x1001729
mov ecx, dword [ebp + 8]
call fcn.0100164d
mov esi, eax
test esi, esi
je 0x1001729
push 0x40
push 0x1000
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test ebx, ebx
je 0x100171f
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push esi
push ebx
call fcn.010017f4
mov edx, eax
test edx, edx
je 0x1001708
mov esi, dword [ebx + 0x3c]
add esi, ebx
lea ecx, [esi + 0x80]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
add eax, ebx
push edx
call fcn.010014da
mov edi, eax
test edi, edi
jne 0x100170f
lea eax, [esi + 0xa0]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
add ecx, ebx
push ebx
call fcn.01001207
mov esi, dword [esi + 0x28]
push edi
push 1
add esi, ebx
push ebx
call esi
test eax, eax
je 0x10016fe
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
jmp 0x100172c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x100170b
push 0xb
pop edi
test edi, edi
je 0x100172c
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x100172c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x100172c
push 0xb
pop edi
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x10019e0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0xc]
mov edx, dword [eax + 8]
sub edx, dword [ecx + 0xac]
push ebx
push ebp
mov ebp, dword [eax + 4]
push esi
mov esi, dword [eax]
sub esi, dword [ecx + 0xa8]
add ecx, 0xa0
push edi
mov edi, dword [eax + 0xc]
mov dword [esp + 0x14], 0x13
mov dword [esp + 0x10], ecx
mov eax, edi
mov edi, edx
mov edx, ebp
mov ebp, esi
mov esi, eax
push ebp
mov eax, ebp
call fcn.01001640
mov ebx, eax
push edi
mov eax, edi
rol ebx, 5
call fcn.01001640
mov ecx, dword [esp + 0x10]
sub edx, dword [ecx + 4]
rol eax, 5
mov cl, bl
ror edx, cl
mov ecx, dword [esp + 0x10]
sub esi, dword [ecx]
sub dword [esp + 0x10], 8
xor edx, eax
mov cl, al
mov eax, dword [esp + 0x14]
ror esi, cl
dec eax
mov dword [esp + 0x14], eax
xor esi, ebx
test eax, eax
jge 0x1001a14
mov ecx, dword [esp + 0x1c]
sub ebp, dword [ecx]
mov eax, dword [esp + 0x20]
sub edi, dword [ecx + 4]
mov dword [eax], esi
mov dword [eax + 0xc], edi
pop edi
pop esi
mov dword [eax + 4], ebp
pop ebp
mov dword [eax + 8], edx
pop ebx
add esp, 8
ret 8
Function at 0x1001a90
Capabilities:
Encrypt data using rc6

Disassembly:
sub esp, 0x1d0
push ebx
push ebp
push esi
xor ebp, ebp
xor ecx, ecx
push edi
xor eax, eax
movzx esi, byte [ecx + edx]
shl eax, 8
inc ecx
or eax, esi
test cl, 3
jne 0x1001ab9
mov dword [esp + ebp*4 + 0xe0], eax
inc ebp
xor eax, eax
cmp ecx, 0x10
jb 0x1001aa0
mov dword [esp + 0x18], 0xb7e15163
mov eax, 1
jmp 0x1001ad0
mov ecx, dword [esp + eax*4 + 0x14]
sub ecx, 0x61c88647
mov dword [esp + eax*4 + 0x18], ecx
inc eax
cmp eax, 0x2c
jb 0x1001ad0
mov eax, 0x2c
cmp ebp, 0x2c
jb 0x1001af0
mov eax, ebp
lea eax, [eax + eax*2]
xor edi, edi
xor esi, esi
xor edx, edx
xor ebx, ebx
test eax, eax
jbe 0x1001b54
mov dword [esp + 0x10], eax
jmp 0x1001b09
mov edx, dword [esp + 0x14]
mov eax, dword [esp + esi*4 + 0x18]
add eax, edx
add eax, ebx
rol eax, 3
mov dword [esp + esi*4 + 0x18], eax
mov ebx, eax
mov eax, dword [esp + edi*4 + 0xe0]
add eax, edx
add eax, ebx
mov cl, bl
add cl, dl
rol eax, cl
xor edx, edx
mov ecx, 0x2c
mov dword [esp + edi*4 + 0xe0], eax
mov dword [esp + 0x14], eax
lea eax, [esi + 1]
div ecx
lea eax, [edi + 1]
mov esi, edx
xor edx, edx
div ebp
sub dword [esp + 0x10], 1
mov edi, edx
jne 0x1001b05
mov edi, dword [esp + 0x1e4]
mov ecx, 0x2c
lea esi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1d0
ret 4
Function at 0x5b8d61
Capabilities:
Encode data using xor

Disassembly:
shr dword [esi + ecx - 0x72ce43e3], 1
arpl bx, dx

Function at 0x64cead
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x654398
cmp edx, dword [eax]
je 0x64cecf
add eax, 8
inc ecx
cmp eax, 0x654428
jl 0x64cec0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x654398]
jne 0x64cffd
mov eax, dword [0xa57cf0]
cmp eax, 1
je 0x64cfd7
test eax, eax
jne 0x64cf00
cmp dword [0x6542c4], 1
je 0x64cfd7
cmp edx, 0xfc
je 0x64cffd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x64cf37
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0064d890
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0064dd20
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x64cf7a
lea eax, [ebp - 0x1a4]
push eax
call fcn.0064dd20
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x6525a4
push edi
call fcn.0064fbf0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0064d890
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0064d8a0
lea eax, [ebp - 0xa0]
push 0x652584
push eax
call fcn.0064d8a0
push dword [esi + 0x65439c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0064d8a0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0064fb64
add esp, 0x2c
pop edi
jmp 0x64cffd
lea eax, [ebp + 8]
lea esi, [esi + 0x65439c]
push 0
push eax
push dword [esi]
call fcn.0064dd20
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 0x410c9a
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x405ca8
push dword [ebp + 8]
mov ebx, edx
mov esi, ecx
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wfopen]
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x410cc3
mov eax, 0x800710fe
jmp 0x410d17
mov eax, dword [esi + 0x2c]
mov edx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
mov eax, edx
or eax, ecx
je 0x410cf1
cmp edx, 1
jne 0x410cea
test ecx, ecx
jne 0x410cea
push dword [ebp + 0x10]
mov edx, esi
mov ecx, edi
push ebx
call fcn.0041015a
jmp 0x410cfe
mov esi, 0x80004005
jmp 0x410d00
push dword [ebp + 0xc]
mov edx, esi
mov ecx, edi
push ebx
call fcn.00410782
mov esi, eax
push edi
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_fclose]
pop ecx
test esi, esi
jns 0x410d15
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x418863
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
je 0x41887b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [esi + 0x18], 0
je 0x41888a
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 8]
lea ecx, [ebp - 4]
sub eax, dword [esi]
push 0
pop edi
push edi
cdq
add eax, 2
push ecx
push eax
push dword [esi + 0x14]
adc edx, edi
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x4188ca
mov eax, dword [eax]
jmp 0x4188cc
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4188f0
test al, 0x20
je 0x4188f0
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x4188e5
mov edi, dword [ecx]
and eax, 0xffffffdf
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop edi
pop esi
leave
ret