joyce8/EMBER2024-capa huggingface dataset:
Function at 0x65129b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x6d97a4
push 0x6d979c
push str.FlsAlloc
push 0x1f
call fcn.00650f69
mov esi, eax
add esp, 0x10
test esi, esi
je 0x6512cf
push dword [ebp + 8]
mov ecx, esi
call dword [0x68dd90]
call esi
jmp 0x6512d5
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x651319
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x6d97b4
push 0x6d97ac
push str.FlsGetValue
push 0x21
call fcn.00650f69
mov esi, eax
add esp, 0x10
test esi, esi
je 0x651350
push dword [ebp + 8]
mov ecx, esi
call dword [0x68dd90]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x651358
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x6d97bc
push 0x6d97b4
push str.FlsSetValue
push 0x22
call fcn.00650f69
mov esi, eax
add esp, 0x10
test esi, esi
je 0x651392
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x68dd90]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x65557f
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x71c1c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x6555c2
call fcn.0060fc4c
mov dword [eax], 0xf
call fcn.0060fc5f
mov dword [eax], 0xd
call fcn.0060fae8
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005f1450
leave
ret
test eax, eax
jne 0x6555c9
inc eax
jmp 0x6555b6
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x6555b4
xor eax, eax
cmp ecx, 1
setne al
jmp 0x6555b6
Function at 0x657f49
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x71c1c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x657f94
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0065831b
test al, al
jne 0x657f8e
sub edx, 2
cmp edx, edi
jne 0x657f74
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x657fb6
lea eax, [edi + 2]
cmp edx, eax
je 0x657fb6
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00657c10
add esp, 0x10
jmp 0x6580b0
push esi
lea ecx, [ebp - 0x255]
call fcn.0065831b
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x657ff9
push dword [ebp - 0x25c]
jmp 0x657fa6
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x658036
cmp word [ebp - 0x226], 0
je 0x658057
cmp word [ebp - 0x226], ax
jne 0x658036
cmp word [ebp - 0x224], 0
je 0x658057
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00657c10
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x6580a3
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x658010
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x65808b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x6580b0
push 0x65772f
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0064c2d0
add esp, 0x10
jmp 0x658080
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005f1450
leave
ret
Function at 0x6590ec
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x659189
push ebx
push esi
call fcn.006590a8
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00655783
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x659136
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x659188
push edi
push eax
call fcn.0065081c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x659156
call fcn.0064dafd
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x659187
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00655783
add esp, 0x20
test eax, eax
jne 0x659175
push edi
call fcn.0064dafd
jmp 0x65917d
push ebx
call fcn.0064dafd
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x65918c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x65919d
pop esi
ret
push ebx
push edi
push esi
call fcn.006590a8
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0065081c
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x6591c5
push ebx
push esi
push edi
call fcn.00601f90
add esp, 0xc
push 0
call fcn.0064dafd
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x659aa9
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0065943a

Function at 0x65a92f
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0065a803

Function at 0x65d108
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0064d0f3
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x65d177
cmp esi, dword [ebp - 4]
je 0x65d172
cmp dword [ebp + 0xc], 0
je 0x65d172
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x65d14f
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0065cc5a
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x65d179
xor eax, eax
inc eax
jmp 0x65d179
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x65d1de
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x71c1c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0064d0f3
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0064d0f3
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x65d255
cmp word [ecx], dx
je 0x65d255
mov eax, dword [0x6da144]
push edi
dec eax
push eax
push 0x6da030
call fcn.0065d17d
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x65d2c8
cmp word [eax], dx
je 0x65d2c8
mov eax, dword [edi]
test eax, eax
je 0x65d279
cmp word [eax], dx
je 0x65d279
lea eax, [ebp - 0x10]
push eax
call fcn.0065cb60
jmp 0x65d282
lea eax, [ebp - 0x10]
push eax
call fcn.0065cbfb
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x65d2f2
mov eax, dword [0x6da02c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x6d9d20
call fcn.0065d17d
add esp, 0xc
test al, al
je 0x65d2f2
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x65d2bd
cmp word [eax], di
je 0x65d2bd
lea eax, [ebp - 0x10]
push eax
call fcn.0065cb60
pop ecx
jmp 0x65d2f4
lea eax, [ebp - 0x10]
push eax
call fcn.0065cbfb
jmp 0x65d2ba
mov eax, dword [edi]
test eax, eax
je 0x65d2df
cmp word [eax], dx
je 0x65d2df
lea eax, [ebp - 0x10]
push eax
call fcn.0065caf7
pop ecx
jmp 0x65d2f2
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x65d3bd
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0065d002
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x65d3bd
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x65d3bd
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x65d3bd
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x65d34a
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00651629
test ebx, ebx
je 0x65d3b8
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00651629
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x65d3bd
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x65d3bd
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0062ed05
add esp, 0x10
xor eax, eax
inc eax
jmp 0x65d3bf
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005f1450
leave
ret
Function at 0x6654e0
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00665304
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x66564f
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x66564f
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x665604
jg 0x66553c
test eax, eax
je 0x6655fa
push 1
push 0x1000
call fcn.00652ef1
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x66555f
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x6655f1
push 0x8000
push ebx
call fcn.0064a1a6
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x665588
jg 0x665583
cmp ecx, 0x1000
jb 0x665588
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0065009c
add esp, 0x10
cmp eax, 0xffffffff
je 0x6655cd
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x665583
jl 0x6655b4
test ecx, ecx
jne 0x665575
push dword [ebp - 0xc]
push ebx
call fcn.0064a1a6
push esi
call fcn.0064dafd
add esp, 0xc
xor ebx, ebx
jmp 0x66565d
cmp byte [edi + 0x24], 0
je 0x6655e4
cmp dword [edi + 0x20], 5
jne 0x6655e4
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x6655ef
mov ebx, dword [edi + 0x18]
jmp 0x6655f1
xor ebx, ebx
push esi
call fcn.0064dafd
pop ecx
jmp 0x66565d
test ecx, ecx
jg 0x6655c6
jl 0x665604
test eax, eax
jae 0x6655c6
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0064f4f1
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x665624
cmp byte [edi + 0x1c], 0
je 0x6655c6
jmp 0x665655
push ebx
call fcn.00644640
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x6655c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x66565d
cmp byte [edi + 0x1c], 0
je 0x66565a
mov ebx, dword [edi + 0x18]
jmp 0x66565d
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0064f4f1
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x667a90
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x667abd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x667abd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1b017769
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x1b01b190
cmp edx, dword [eax]
je 0x1b01778b
add eax, 8
inc ecx
cmp eax, 0x1b01b220
jl 0x1b01777c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x1b01b190]
jne 0x1b0178b9
mov eax, dword [0x1b01bbb0]
cmp eax, 1
je 0x1b017893
test eax, eax
jne 0x1b0177bc
cmp dword [0x1b01b0e4], 1
je 0x1b017893
cmp edx, 0xfc
je 0x1b0178b9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1b0177f3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.1b018670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.1b018490
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x1b017836
lea eax, [ebp - 0x1a4]
push eax
call fcn.1b018490
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x1b01a45c
push edi
call fcn.1b018f00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.1b018670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.1b018680
lea eax, [ebp - 0xa0]
push 0x1b01a43c
push eax
call fcn.1b018680
push dword [esi + 0x1b01b194]
lea eax, [ebp - 0xa0]
push eax
call fcn.1b018680
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.1b018e75
add esp, 0x2c
pop edi
jmp 0x1b0178b9
lea eax, [ebp + 8]
lea esi, [esi + 0x1b01b194]
push 0
push eax
push dword [esi]
call fcn.1b018490
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 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
nop
mov ecx, 0x1f121916
test eax, eax
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x431024
nop
nop
nop
nop
nop
mov eax, section..reloc
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0xf5b3da1
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x431084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219

Function at 0x401e7d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401ebc
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401ebc
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401ebc
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401ebc
cmp dword [ecx + 0x74], 0xe
jbe 0x401ebc
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x100173e9
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
xor ebx, ebx
push edi
mov edi, ecx
cmp dword [esp + 0x10], ebx
jbe 0x10017462
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov eax, dword [edi + 0x100]
inc eax
movzx esi, al
mov dword [edi + 0x100], esi
movzx eax, byte [esi + edi]
add eax, dword [edi + 0x104]
movzx edx, al
mov dword [edi + 0x104], edx
mov cl, byte [esi + edi]
mov al, byte [edx + edi]
mov byte [esi + edi], al
mov byte [edx + edi], cl
mov eax, dword [edi + 0x104]
movzx ecx, byte [eax + edi]
mov eax, dword [edi + 0x100]
movzx eax, byte [eax + edi]
add ecx, eax
and ecx, 0x800000ff
jns 0x10017450
dec ecx
or ecx, 0xffffff00
inc ecx
movzx eax, cl
mov al, byte [eax + edi]
xor byte [ebx + ebp], al
inc ebx
cmp ebx, dword [esp + 0x18]
jb 0x100173fb
pop esi
pop ebp
pop edi
pop ebx
ret 8

Function at 0x100174d2
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, ecx
xor eax, eax
mov byte [eax + esi], al
inc eax
cmp eax, 0x100
jb 0x100174da
xor ebp, ebp
xor edi, edi
xor edx, edx
mov bl, byte [edi + esi]
mov eax, edi
movzx ecx, bl
div dword [esp + 0x18]
mov eax, dword [esp + 0x14]
movzx eax, byte [edx + eax]
add eax, ebp
add ecx, eax
movzx ebp, cl
mov al, byte [esi + ebp]
mov byte [edi + esi], al
inc edi
mov byte [esi + ebp], bl
cmp edi, 0x100
jb 0x100174e9
and dword [esi + 0x100], 0
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x10017526
Capabilities:
Allocate or change rwx memory
Get file size
Read file on windows

Disassembly:
push 0x7c
mov eax, 0x1002a7db
call fcn.100181cc
push 0x43
pop eax
push 0x3a
mov word [ebp - 0x7c], ax
pop eax
push 0x5c
pop edx
push 0x55
mov word [ebp - 0x7a], ax
pop eax
push 0x73
pop ebx
push 0x65
pop esi
push 0x72
mov word [ebp - 0x74], ax
pop eax
push 0x50
mov word [ebp - 0x6e], ax
pop eax
push 0x75
pop edi
push 0x62
mov word [ebp - 0x66], ax
pop eax
push 0x6c
mov word [ebp - 0x62], ax
pop eax
push 0x69
mov word [ebp - 0x60], ax
pop eax
push 0x63
pop ecx
push 0x44
mov word [ebp - 0x5e], ax
pop eax
push 0x6f
mov word [ebp - 0x56], ax
mov word [ebp - 0x78], dx
mov word [ebp - 0x76], dx
mov word [ebp - 0x6a], dx
mov word [ebp - 0x68], dx
mov word [ebp - 0x5a], dx
mov word [ebp - 0x58], dx
pop edx
push 0x6d
pop eax
push 0x6e
mov word [ebp - 0x4e], ax
pop eax
push 0x74
mov word [ebp - 0x4a], ax
pop eax
push 0x5c
mov word [ebp - 0x48], ax
pop eax
push 0x70
mov word [ebp - 0x44], ax
mov word [ebp - 0x42], ax
pop eax
push 0x2e
mov word [ebp - 0x3e], ax
mov word [ebp - 0x3a], ax
pop eax
push 0x78
mov word [ebp - 0x38], ax
pop eax
mov word [ebp - 0x72], bx
mov word [ebp - 0x70], si
mov word [ebp - 0x6c], bx
mov word [ebp - 0x64], di
mov word [ebp - 0x5c], cx
mov word [ebp - 0x54], dx
mov word [ebp - 0x52], cx
mov word [ebp - 0x50], di
mov word [ebp - 0x4c], si
mov word [ebp - 0x46], bx
mov word [ebp - 0x40], di
mov word [ebp - 0x3c], di
mov word [ebp - 0x36], dx
mov word [ebp - 0x34], ax
xor edi, edi
xor eax, eax
push edi
push 0x80
push 3
push edi
push 1
mov word [ebp - 0x32], ax
lea eax, [ebp - 0x7c]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x88], esi
test esi, esi
mov dword [ebp - 4], edi
setne al
test al, al
je 0x1001770c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x1001770c
push 0x40
push 0x1000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
mov dword [ebp - 0x84], edi
mov byte [ebp - 4], 1
test edi, edi
je 0x1001770c
push 0
lea eax, [ebp - 0x80]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10017700
push 0x10
lea eax, [ebp - 0x20]
mov dword [ebp - 0x30], 0x14537221
push eax
push 0x10
lea eax, [ebp - 0x30]
mov dword [ebp - 0x2c], 0xb8a79685
push eax
push ebx
push edi
mov dword [ebp - 0x28], 0xfcebdac9
mov dword [ebp - 0x24], 0x302f1e0d
mov dword [ebp - 0x20], 0xd3274b9f
mov dword [ebp - 0x1c], 0x2acd8e51
mov dword [ebp - 0x18], 0x56a13cbf
mov dword [ebp - 0x14], 0x3d9a78e4
call fcn.10017467
add esp, 0x18
push edi
call section..text
test eax, eax
je 0x10017700
push edi
lea ecx, [ebp - 0x84]
call fcn.100173ce
test esi, esi
je 0x1001771e
cmp esi, 0xffffffff
je 0x1001771e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1001771e
push edi
lea ecx, [ebp - 0x84]
call fcn.100173ce
test esi, esi
je 0x1001771c
cmp esi, 0xffffffff
je 0x1001771c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
call fcn.10018187
ret
Function at 0x10017724
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
cmp dword [ebp + 0xc], ecx
jbe 0x1001774b
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
xor edx, edx
mov eax, ecx
div dword [ebp + 0x14]
mov al, byte [edx + edi]
xor byte [ecx + esi], al
inc ecx
cmp ecx, dword [ebp + 0xc]
jb 0x10017736
pop edi
pop esi
pop ebp
ret
Function at 0x401419
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x14]
mov ecx, dword [eax + 0x28]
test ecx, ecx
jne 0x401443
push ecx
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor ecx, ecx
test eax, eax
setg cl
jmp 0x401457
mov eax, dword [ecx]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ecx
call dword [eax + 0xc]
xor ecx, ecx
test eax, eax
setns cl
test ecx, ecx
jne 0x40145d
and dword [esi], ecx
mov eax, ecx
pop esi
pop ebp
ret 0x10

Function at 0x4039eb
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x410438]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push 0x105
push eax
lea eax, [ebp - 0x210]
mov dword [ebx], 9
push eax
xor esi, esi
call fcn.0040a2c6
lea eax, [ebp - 0x210]
push eax
call fcn.00407a21
mov edi, eax
test edi, edi
je 0x403a4d
push esi
push edi
call fcn.004096bb
push edi
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x403a4d
test al, 0x10
jne 0x403a4d
inc esi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bb1a
mov esp, ebp
pop ebp
ret 8