joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ed63
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 4], 0x65
cmp dword [ebp + 8], 0
je 0x40eed7
cmp dword [ebp + 0xc], 0
je 0x40eed7
cmp dword [ebp + 0xc], 0xffff
jbe 0x40ed9b
mov eax, dword [ebp + 0xc]
movsx ecx, byte [eax]
test ecx, ecx
je 0x40eed7
mov edx, dword [ebp + 8]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x7c], 0
je 0x40eed7
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x78], 0
je 0x40eed7
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov eax, dword [ecx + 0x78]
cmp eax, dword [edx + 0x50]
jae 0x40eed7
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
add edx, dword [ecx + 0x78]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
add ecx, dword [eax + 0x1c]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
add eax, dword [edx + 0x20]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
add edx, dword [ecx + 0x24]
mov dword [ebp - 0x14], edx
cmp dword [ebp + 0xc], 0xffff
ja 0x40ee4c
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [eax + 0x10]
jb 0x40ee47
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x14]
mov ecx, dword [ebp - 0x10]
add eax, dword [ecx + 0x10]
cmp dword [ebp + 0xc], eax
jae 0x40ee47
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
sub eax, dword [edx + 0x10]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 8]
add edx, dword [ecx + eax*4]
mov eax, edx
jmp 0x40eed9
jmp 0x40eed7
mov dword [ebp - 0x20], 0
jmp 0x40ee5e
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x20]
cmp edx, dword [ecx + 0x18]
jae 0x40eed7
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x28]
movsx edx, byte [ecx]
mov eax, dword [ebp - 0x24]
movsx ecx, byte [eax]
cmp edx, ecx
jne 0x40eed2
mov edx, dword [ebp - 0x28]
movsx eax, byte [edx]
test eax, eax
jne 0x40eeaf
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x14]
movzx eax, word [edx + ecx*2]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 8]
add edx, dword [ecx + eax*4]
mov eax, edx
jmp 0x40eed9
mov dword [ebp - 0x2c], 0x57
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
lea edx, [ecx + eax - 0x56]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
lea edx, [ecx + eax - 0x56]
mov dword [ebp - 0x24], edx
jmp 0x40ee7e
jmp 0x40ee55
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x401f90
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [0x406028]
mov ebx, dword [esp + 0x30]
test eax, eax
je 0x401ff8
mov esi, dword [eax + 4]
mov edx, dword [eax]
mov dword [0x406028], esi
test edx, edx
je 0x401fc0
sub dword [edx + 0x18], 1
jne 0x401fc0
mov dword [edx + 4], esi
mov dword [0x406028], edx
mov edx, dword [esp + 0x20]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x24]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x28]
mov dword [eax + 0x10], edx
mov edx, dword [esp + 0x2c]
mov dword [eax + 0x14], edx
test ebx, ebx
je 0x401fe4
add dword [ebx + 0x18], 1
mov dword [eax], ebx
mov dword [eax + 0x18], 0
add esp, 0x14
pop ebx
pop esi
ret
mov edx, dword [0x406020]
test edx, edx
je 0x402020
sub edx, 1
mov eax, dword [0x406024]
imul ecx, edx, 0x1c
mov dword [0x406020], edx
add eax, ecx
jmp 0x401fc0
mov dword [esp], 0x445c0
call sym._malloc
mov dword [0x406024], eax
test eax, eax
je 0x402041
mov ecx, 0x445a4
mov edx, 0x270f
jmp 0x40200d
mov dword [esp], 2
call dword [0x40401c]
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Error:_Insufficient_memory_n
call sym._fwrite
mov dword [esp], 1
call sym._exit
lea esi, [esi]

Function at 0x402470
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]
Function at 0x4024d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x40639c]
test esi, esi
jle 0x4025d0
mov eax, dword [0x4063a0]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x402500
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x40257f
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x4024f0
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x4025f7
mov eax, dword [0x4063a0]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x4063a0]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x4025d7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x402578
sub eax, 4
and eax, 0xfffffffb
jne 0x402586
add dword [0x40639c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
add ebx, dword [0x4063a0]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x402578
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
xor esi, esi
jmp 0x40250a
mov eax, dword [0x4063a0]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
nop

Function at 0x402ab0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4063b8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4063b0]
sub esp, 4
test ebx, ebx
je 0x402b05
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x402afe
test esi, esi
je 0x402afe
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402ae0
mov dword [esp], 0x4063b8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x7d8058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.007d81a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x7d807e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x7d806a
add dl, dl
jne 0x7d8089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x7d80dc
xor eax, eax
add dl, dl
jne 0x7d8096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x7d817d
add dl, dl
jne 0x7d80a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7d80b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7d80bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7d80c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x7d80d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x7d8075
mov eax, 1
add dl, dl
jne 0x7d80ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7d80f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x7d80e1
sub eax, ebx
mov ebx, 1
jne 0x7d8128
mov ecx, 1
add dl, dl
jne 0x7d810e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x7d8119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x7d8105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x7d8075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x7d813f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x7d814a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x7d8136
cmp eax, 0x7d00
jae 0x7d816d
cmp eax, 0x500
jb 0x7d8168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x7d8075
cmp eax, 0x7f
ja 0x7d8170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x7d8075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x7d819e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x7d8075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

Function at 0x43b647
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x43b3c1
and edx, ecx
and ecx, edx
mov edx, edx
call fcn.0043b694
and ecx, edx
xor dword [edi], eax
sub edx, 0x39616f85
add edi, 1
add edx, 0xc3004225
and ecx, ecx
add ecx, 0xe8c0b406
cmp edi, ebx
jne fcn.0043b647
and ecx, edx
add ecx, 0xb2f735e8
ret
Function at 0x5eb1fa
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
pushal
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x5eb2e9
mov ecx, eax
mov ebx, dword [ecx + 0x3c]
add ecx, ebx
mov ecx, dword [ecx + 0x7c]
test ecx, ecx
je 0x5eb2e9
mov dword [ebp - 4], ecx
mov ebx, eax
mov ecx, dword [ebx + 0x3c]
add ebx, ecx
mov ebx, dword [ebx + 0x78]
add ebx, eax
mov dword [ebp - 8], ebx
mov eax, dword [ebp + 0xc]
test eax, 0xffff0000
je 0x5eb295
mov ecx, dword [ebx + 0x18]
test ecx, ecx
je 0x5eb2e9
dec ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x20]
add eax, dword [ebp - 0xc]
push ecx
shl ecx, 2
add eax, ecx
mov eax, dword [eax]
add eax, dword [ebp - 0xc]
push edi
push dword [ebp + 0xc]
push eax
call dword [edi + 0x124af22b]
pop edi
pop ecx
test eax, eax
jne 0x5eb24e
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x24]
add eax, dword [ebp - 0xc]
shl ecx, 1
add eax, ecx
movzx ecx, word [eax]
jmp 0x5eb29b
mov ecx, dword [ebp + 0xc]
sub ecx, dword [ebx + 0x10]
mov ebx, dword [ebp - 8]
mov eax, dword [ebx + 0x14]
cmp ecx, eax
jge 0x5eb2e9
mov eax, dword [ebp - 0xc]
mov edx, dword [ebx + 0x1c]
add edx, eax
shl ecx, 2
add edx, ecx
cmp dword [edx], 0
je 0x5eb2e9
mov ebx, dword [edx]
add eax, ebx
mov dword [ebp - 0x10], eax
cmp eax, dword [ebp - 8]
jle 0x5eb2e9
sub eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jge 0x5eb2e9
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.005eb143
mov dword [ebp - 0x10], eax
popal
mov eax, dword [ebp - 0x10]
leave
ret 8
Function at 0x42e005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x42e072
nop
mov ebx, 0x407ef8
nop
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x727d5f28
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x42e060
nop
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x42e0d2
nop
nop
mov ebx, 0x42cd70
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x60453d85
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x1003268
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.010053b4
test esi, esi
jne 0x10032a0
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.010054f0
jmp 0x10032be
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0100314c
mov edi, eax
test esi, esi
je 0x10032be
cmp dword [ebx], 0
je 0x10032be
dec esi
jmp 0x10032a7
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x10032f0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x1055008], 0x8088405
inc edx
mov dword [ebx + 0x1055008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x10035fc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x1055018]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x1003694
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x1003674
xor eax, eax
push ebp
push 0x100366d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x10036cc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1003674
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x1055018]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x1055018], ax
mov esp, ebp
pop ebp
ret

Function at 0x10046f4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x1058050], 0
je 0x1004755
cmp word [0x105832c], 0xd7b2
jne 0x100471d
cmp dword [0x1058334], 0
jbe 0x100471d
mov eax, 0x1058328
call dword [fcn.01058344]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push 0x1055778
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x1004780
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x1055024], 0
jne 0x1004771
push 0
push 0x1055770
push 0x1055778
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x1004920
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x1055028], 0
je 0x1004946
mov edx, esi
mov eax, ebx
call dword [0x1055028]
jmp 0x1004955
mov eax, 8
call fcn.01002ef4
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x1058051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x10048e8
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x1009bf8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.01005440
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x1009c16
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x1009c37
cmp ebx, 3
je 0x1009c37
cmp ebx, 0x7b
je 0x1009c37
mov eax, esi
call fcn.01009bb8
test al, al
jne 0x1009c3b
xor eax, eax
jmp 0x1009c3d
mov al, 1
pop esi
pop ebx
ret

Function at 0x1009c40
Capabilities:
Encode data using xor
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x1009e00
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, ebx
call fcn.01005440
push eax
call sub.kernel32.dll_CreateFileW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x1009c9e
mov eax, dword [ebp - 8]
mov edx, dword [0x10557e0]
call fcn.010053b4
jmp 0x1009dea
xor edx, edx
push ebp
push 0x1009de3
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x1009cd8
mov eax, dword [ebp - 8]
mov edx, dword [0x10557e0]
call fcn.010053b4
call fcn.01004290
jmp 0x1009dea
mov eax, dword [ebp - 0x10]
call fcn.01002ef4
mov dword [ebp - 0x18], eax
xor edx, edx
push ebp
push 0x1009dc5
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_ReadFile
test eax, eax
jne 0x1009d29
mov eax, dword [ebp - 8]
mov edx, dword [0x10557e0]
call fcn.010053b4
call fcn.01004290
call fcn.01004290
jmp 0x1009dea
lea eax, [ebp - 4]
mov edx, esi
mov ecx, 0
call fcn.010055f0
mov eax, dword [ebp - 4]
test eax, eax
je 0x1009d57
mov edx, eax
sub edx, 0xa
cmp word [edx], 1
je 0x1009d57
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, dword [ebp - 4]
call fcn.01004b60
test eax, eax
je 0x1009d60
sub eax, 4
mov eax, dword [eax]
mov ecx, eax
test ecx, ecx
jle 0x1009d87
mov edi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
dec ebx
test ebx, ebx
jl 0x1009d87
inc ebx
xor esi, esi
mov eax, esi
cdq
idiv ecx
mov eax, dword [ebp - 4]
movzx eax, byte [eax + edx]
xor byte [edi], al
inc edi
inc esi
dec ebx
jne 0x1009d74
mov ecx, dword [ebp - 0x14]
inc ecx
shr ecx, 1
mov eax, dword [ebp - 8]
mov edx, ecx
call fcn.01005728
mov eax, dword [ebp - 8]
call fcn.01005cf8
mov edx, eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
call fcn.0100304c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1009dcc
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
call fcn.01002f10
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1009e07
lea eax, [ebp - 4]
call fcn.01004980
ret
Function at 0x1009e10
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov ebx, ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.0100539c
xor eax, eax
push ebp
push 0x1009fd4
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
mov eax, esi
call fcn.01005440
push eax
call sub.kernel32.dll_CreateFileW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x1009e6c
mov byte [ebp - 9], 0
jmp 0x1009fb6
xor edx, edx
push ebp
push 0x1009faf
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
test eax, eax
je 0x1009e97
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x1009e97
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.01004b30
test eax, eax
je 0x1009ea0
sub eax, 4
mov eax, dword [eax]
add eax, eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x1009eb9
mov byte [ebp - 9], 0
call fcn.01004290
jmp 0x1009fb6
mov eax, dword [ebp - 0x14]
call fcn.01002ef4
mov dword [ebp - 0x1c], eax
xor edx, edx
push ebp
push 0x1009f91
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
test eax, eax
je 0x1009eef
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x1009eef
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.01004b30
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
call fcn.0100304c
lea eax, [ebp - 8]
mov edx, ebx
mov ecx, 0
call fcn.010055f0
mov eax, dword [ebp - 8]
test eax, eax
je 0x1009f28
mov edx, eax
sub edx, 0xa
cmp word [edx], 1
je 0x1009f28
lea eax, [ebp - 8]
xor ecx, ecx
mov edx, dword [ebp - 8]
call fcn.01004b60
test eax, eax
je 0x1009f31
sub eax, 4
mov eax, dword [eax]
mov edi, eax
test edi, edi
jle 0x1009f58
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
dec ecx
test ecx, ecx
jl 0x1009f58
inc ecx
xor esi, esi
mov eax, esi
cdq
idiv edi
mov eax, dword [ebp - 8]
movzx eax, byte [eax + edx]
xor byte [ebx], al
inc ebx
inc esi
dec ecx
jne 0x1009f45
push 0
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_WriteFile_1
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 9], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1009f98
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
call fcn.01002f10
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1009fdb
lea eax, [ebp - 8]
call fcn.01004980
lea eax, [ebp - 4]
call fcn.010053a4
ret
Function at 0x100ef04
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
mov eax, edi
mov edx, dword [0x1057080]
mov edx, dword [edx]
call fcn.010053b4
mov eax, dword [esi + 0x20]
push eax
call sub.user32.dll_GetWindowTextLengthW
mov ebx, eax
test ebx, ebx
jle 0x100ef81
inc ebx
mov eax, ebx
add eax, eax
call fcn.01009600
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x100ef7a
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
mov eax, dword [ebp - 4]
push eax
mov eax, dword [esi + 0x20]
push eax
call sub.user32.dll_GetWindowTextW
test eax, eax
jle 0x100ef64
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.01005570
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x100ef81
mov eax, dword [ebp - 4]
call fcn.01009628
ret
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret