joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004b9d3
Capabilities:
Enumerate files on windows

Disassembly:
push 0x1d0
mov eax, 0x100aeefe
call fcn.10091010
mov esi, edx
mov dword [ebp - 0x1dc], esi
mov dword [ebp - 0x1d8], ecx
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x1d0]
xor ebx, ebx
mov dword [ebp - 0x1d4], ebx
mov ecx, esi
push eax
mov byte [ebp - 0x1d0], 0x5c
call fcn.1000399b
xor ecx, ecx
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 0x2c], cl
mov dword [ebp - 4], ecx
mov edi, 0x100cac5c
mov ecx, dword [esi + 0x10]
dec ecx
cmp eax, ecx
je 0x1004ba41
push edi
call fcn.10006fa1
pop ecx
push eax
push edi
lea ecx, [ebp - 0x2c]
call fcn.10006a1b
mov edi, 0x100cbe6c
push edi
call fcn.10006fa1
pop ecx
push eax
push edi
lea ecx, [ebp - 0x2c]
call fcn.10006a1b
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x44]
push esi
push eax
call fcn.1004718e
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1cc]
cmp dword [ebp - 0x30], 0x10
lea eax, [ebp - 0x44]
push ecx
cmovae eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x1004bc0f
cmp dword [ebp + 8], 0
jne 0x1004baa3
test byte [ebp - 0x1cc], 2
jne 0x1004bbed
test byte [ebp - 0x1cc], 0x10
je 0x1004bbed
lea eax, [ebp - 0x1a0]
push eax
lea ecx, [ebp - 0x74]
call fcn.10006fbe
mov esi, eax
mov byte [ebp - 4], 2
or ebx, 1
push 0x100bc6c4
mov dword [ebp - 0x1d4], ebx
call fcn.10006fa1
pop ecx
push eax
push 0x100bc6c4
push dword [esi + 0x10]
mov ecx, esi
push 0
call fcn.1003665e
test eax, eax
je 0x1004bb38
lea eax, [ebp - 0x1a0]
push eax
lea ecx, [ebp - 0x5c]
call fcn.10006fbe
mov esi, eax
mov dword [ebp - 4], 3
or ebx, 2
push 0x100cbe70
mov dword [ebp - 0x1d4], ebx
call fcn.10006fa1
pop ecx
push eax
push 0x100cbe70
push dword [esi + 0x10]
mov ecx, esi
push 0
call fcn.1003665e
mov byte [ebp - 0x1d0], 1
test eax, eax
jne 0x1004bb3f
mov byte [ebp - 0x1d0], 0
test bl, 2
je 0x1004bb53
push 0
push 1
lea ecx, [ebp - 0x5c]
and ebx, 0xfffffffd
call fcn.100072c0
xor eax, eax
inc eax
mov dword [ebp - 4], eax
test al, bl
je 0x1004bb6b
push 0
push eax
lea ecx, [ebp - 0x74]
and ebx, 0xfffffffe
call fcn.100072c0
cmp byte [ebp - 0x1d0], 0
je 0x1004bbed
mov edx, dword [ebp - 0x1dc]
lea ecx, [ebp - 0x8c]
mov esi, 0x100cac5c
push esi
call fcn.10004d50
lea ecx, [ebp - 0x1a0]
mov byte [ebp - 4], 4
push ecx
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.10005021
push esi
push eax
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 5
push eax
call fcn.10005021
add esp, 0x1c
mov ecx, dword [ebp - 0x1d8]
push eax
mov byte [ebp - 4], 6
call fcn.10049d7e
push 0
push 1
lea ecx, [ebp - 0x74]
call fcn.100072c0
push 0
push 1
lea ecx, [ebp - 0x5c]
call fcn.100072c0
push 0
push 1
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 1
call fcn.100072c0
lea eax, [ebp - 0x1cc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1004ba90
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor esi, esi
inc esi
jmp 0x1004bc11
xor esi, esi
push 0
push 1
lea ecx, [ebp - 0x44]
call fcn.100072c0
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.100072c0
mov eax, esi
call fcn.10090fbf
ret
Function at 0x1004bc31
Capabilities:
Enumerate files on windows

Disassembly:
push 0x1dc
mov eax, 0x100aef5c
call fcn.10091010
mov ebx, edx
mov dword [ebp - 0x1e8], ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x28]
push eax
call fcn.10006ec7
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x1004bc78
mov esi, 0x100cbe74
push esi
call fcn.10006fa1
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.10006f28
mov ecx, dword [ebp - 0x18]
cmp dword [ebp - 0x14], 0x10
lea esi, [ebp - 0x28]
lea edi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
add esi, ecx
cmp dword [ebp - 0x14], 0x10
cmovae edi, dword [ebp - 0x28]
add edi, ecx
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
mov eax, edi
cmovae ecx, dword [ebp - 0x28]
sub eax, ecx
push eax
push 0x2e
push ecx
call fcn.1008b9f0
add esp, 0xc
test eax, eax
cmovne edi, eax
cmp edi, esi
jne 0x1004bce0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x70]
push 0x100bc6c4
push eax
call fcn.10004fb9
add esp, 0xc
lea ecx, [ebp - 0x28]
push eax
call fcn.10003002
push 0
push 1
lea ecx, [ebp - 0x70]
call fcn.100072c0
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x1e4]
mov byte [ebp - 0x1e4], 0x5c
push eax
mov ecx, ebx
call fcn.1000399b
and dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov byte [ebp - 4], 1
mov ecx, dword [ebx + 0x10]
dec ecx
cmp eax, ecx
je 0x1004bd2a
mov esi, 0x100cac5c
push esi
call fcn.10006fa1
pop ecx
push eax
push esi
lea ecx, [ebp - 0x40]
call fcn.10006a1b
mov esi, 0x100bc7b8
push esi
call fcn.10006fa1
pop ecx
push eax
push esi
lea ecx, [ebp - 0x40]
call fcn.10006a1b
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x70]
push ebx
push eax
call fcn.1004718e
add esp, 0xc
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
push ecx
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.1000504e
add esp, 0xc
push 0
push 1
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 4
call fcn.100072c0
cmp dword [ebp - 0x44], 0x10
lea ecx, [ebp - 0x1e0]
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1004be2c
mov edi, dword [ebp - 0x1e8]
cmp dword [ebp + 0xc], 0
jne 0x1004bdaf
test byte [ebp - 0x1e0], 2
jne 0x1004be0e
test byte [ebp - 0x1e0], 0x10
jne 0x1004be0e
mov edx, ebx
lea ecx, [ebp - 0xa0]
call fcn.1004bf93
lea ecx, [ebp - 0x1b4]
mov byte [ebp - 4], 5
push ecx
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.10005021
add esp, 0xc
push eax
mov ecx, edi
mov byte [ebp - 4], 6
call fcn.10049d7e
push 0
push 1
lea ecx, [ebp - 0x88]
call fcn.100072c0
push 0
push 1
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 4
call fcn.100072c0
lea eax, [ebp - 0x1e0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1004bda0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor esi, esi
inc esi
jmp 0x1004be2e
xor esi, esi
push 0
push 1
lea ecx, [ebp - 0x58]
call fcn.100072c0
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.100072c0
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.100072c0
mov eax, esi
call fcn.10090fbf
ret
Function at 0x1004cf31
Capabilities:
Hash data with md5

Disassembly:
push esi
xor eax, eax
mov dword [ecx + 4], 0x67452301
push 0x40
lea esi, [ecx + 0x5c]
mov dword [ecx + 0x18], eax
push eax
push esi
mov dword [ecx + 0x14], eax
mov dword [ecx + 8], 0xefcdab89
mov dword [ecx + 0xc], 0x98badcfe
mov dword [ecx + 0x10], 0x10325476
call fcn.10090560
add esp, 0xc
mov byte [esi], 0x80
pop esi
ret

Function at 0x1004cf6a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x100da4b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
mov dword [ebp - 0x48], eax
lea edi, [ebp - 0x13]
xor eax, eax
mov dword [ebp - 0x40], ecx
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
mov byte [ebp - 0x14], bl
stosd dword es:[edi], eax
push 0x100bc448
push ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.1008ad8d
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x1004cfb2
xor al, al
jmp 0x1004d0b1
push esi
push 2
push ebx
push edi
call fcn.1008d3d9
push edi
call fcn.1008d7ec
push ebx
push ebx
push edi
mov esi, eax
call fcn.1008d3d9
push esi
call fcn.1008bbd6
push edi
push esi
push 1
push eax
mov dword [ebp - 0x44], eax
call fcn.1008b0e9
mov ecx, dword [ebp - 0x40]
add esp, 0x30
push esi
mov esi, dword [ebp - 0x44]
push esi
call fcn.1004d0c3
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x14]
push eax
call fcn.1004d189
test esi, esi
je 0x1004d006
push esi
call fcn.1008aaab
pop ecx
push edi
call fcn.1008b201
pop ecx
push 8
xor eax, eax
mov byte [ebp - 0x38], bl
pop ecx
lea edi, [ebp - 0x37]
mov byte [ebp - 0x3c], bl
rep stosd dword es:[edi], eax
mov word [ebp - 0x3b], ax
push 0x10
lea eax, [ebp - 0x3c]
push eax
movzx eax, byte [ebp + ebx - 0x14]
push eax
call fcn.100abf84
add esp, 0xc
cmp byte [ebp - 0x3b], 0
jne 0x1004d06c
lea edi, [ebp - 0x38]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1004d03f
mov ax, word [0x100c943c]
lea edx, [ebp - 0x3c]
mov word [edi], ax
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x1004d055
lea edi, [ebp - 0x38]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1004d062
jmp 0x1004d086
lea edx, [ebp - 0x3c]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x1004d071
lea edi, [ebp - 0x38]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1004d07e
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
inc ebx
rep movsb byte es:[edi], byte [esi]
cmp ebx, 0x10
jl 0x1004d021
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x38]
mov ecx, edx
sub eax, ecx
pop esi
mov cl, byte [edx]
mov byte [eax + edx], cl
inc edx
test cl, cl
jne 0x1004d0a5
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.1008a221
mov esp, ebp
pop ebp
ret 8
Function at 0x1004e2c2
Capabilities:
Get common file path
Read .ini file

Disassembly:
push 0x364
mov eax, 0x100af246
call fcn.10091010
mov esi, ecx
mov edi, 0x103
lea eax, [ebp - 0x117]
xor ebx, ebx
push edi
push ebx
push eax
mov byte [ebp - 0x118], bl
call fcn.10090560
add esp, 0xc
lea eax, [ebp - 0x118]
push 1
push 0x23
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push edi
lea eax, [ebp - 0x327]
mov byte [ebp - 0x328], bl
push ebx
push eax
call fcn.10090560
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
push 0x100bc8a0
push edi
lea eax, [ebp - 0x328]
push 0x104
push eax
call fcn.1008bac3
add esp, 0x14
mov byte [ebp - 0x220], bl
lea eax, [ebp - 0x21f]
push edi
push ebx
push eax
call fcn.10090560
add esp, 0xc
lea eax, [ebp - 0x328]
push eax
push edi
lea eax, [ebp - 0x220]
push eax
push 0x100bc7cc
push 0x100bc8cc
push 0x100bc8d8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x220]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004e38c
sub ecx, edx
cmp ecx, 0xa
jb 0x1004e441
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x358]
call fcn.10006fbe
push 0x100cc00c
push eax
lea eax, [ebp - 0x370]
mov dword [ebp - 4], ebx
push eax
call fcn.10005021
add esp, 0xc
push 0x100cc000
push eax
lea eax, [ebp - 0x340]
mov byte [ebp - 4], 1
push eax
call fcn.10005021
add esp, 0xc
push ebx
push 1
lea ecx, [ebp - 0x370]
call fcn.100072c0
push ebx
push 1
lea ecx, [ebp - 0x358]
mov byte [ebp - 4], 4
call fcn.100072c0
cmp dword [ebp - 0x32c], 0x10
lea eax, [ebp - 0x340]
push edi
cmovae eax, dword [ebp - 0x340]
push eax
push esi
call fcn.1008c350
add esp, 0xc
lea ecx, [ebp - 0x340]
call fcn.1004b64a
test eax, eax
lea ecx, [ebp - 0x340]
push 0
push 1
setne bl
call fcn.100072c0
mov al, bl
call fcn.10090fbf
ret
Function at 0x1005013a
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edi
mov ebx, dword [edi + 0x2c]
mov eax, dword [edi + 0x2c]
mov edx, dword [edi + 0x3c]
add eax, 0xfffffefa
sub edx, dword [edi + 0x74]
add eax, ebx
sub edx, dword [edi + 0x6c]
mov dword [ebp - 0xc], edx
cmp dword [edi + 0x6c], eax
jb 0x100501d5
mov ecx, dword [edi + 0x38]
push ebx
lea eax, [ecx + ebx]
push eax
push ecx
call fcn.1008fd00
mov ecx, dword [edi + 0x4c]
add esp, 0xc
mov eax, dword [edi + 0x44]
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
sub dword [edi + 0x5c], ebx
mov edi, ecx
mov dword [ebp - 8], ecx
lea esi, [eax + ecx*2]
lea esi, [esi - 2]
xor ecx, ecx
movzx edx, word [esi]
mov eax, edx
sub eax, ebx
cmp edx, ebx
movzx eax, ax
cmovae ecx, eax
mov word [esi], cx
dec edi
jne 0x1005018e
mov edi, dword [ebp - 4]
mov eax, dword [edi + 0x40]
mov edi, ebx
lea esi, [eax + ebx*2]
lea esi, [esi - 2]
xor ecx, ecx
movzx edx, word [esi]
mov eax, edx
sub eax, ebx
cmp edx, ebx
movzx eax, ax
cmovae ecx, eax
mov word [esi], cx
dec edi
jne 0x100501b3
mov edx, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
add edx, ebx
mov esi, dword [edi]
cmp dword [esi + 4], 0
je 0x10050290
mov eax, dword [edi + 0x74]
add eax, dword [edi + 0x6c]
add eax, dword [edi + 0x38]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 4]
cmp eax, edx
mov ecx, eax
cmova ecx, edx
mov dword [ebp - 8], ecx
test ecx, ecx
jne 0x10050202
xor eax, eax
jmp 0x10050253
sub eax, ecx
mov dword [esi + 4], eax
mov eax, dword [esi + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x1005021f
mov edx, dword [esi]
push ecx
mov ecx, dword [esi + 0x30]
call fcn.1004efde
jmp 0x10050237
cmp eax, 2
jne 0x1005023b
mov edx, dword [esi]
test edx, edx
jne 0x1005022e
xor eax, eax
jmp 0x10050238
push ecx
mov ecx, dword [esi + 0x30]
call fcn.1004f281
pop ecx
mov dword [esi + 0x30], eax
push dword [ebp - 8]
push dword [esi]
push dword [ebp - 0xc]
call fcn.1008fd00
mov eax, dword [ebp - 8]
add esp, 0xc
add dword [esi], eax
add dword [esi + 8], eax
add dword [edi + 0x74], eax
cmp dword [edi + 0x74], 3
jb 0x1005027b
mov edx, dword [edi + 0x6c]
mov eax, dword [edi + 0x38]
mov ecx, dword [edi + 0x58]
movzx esi, byte [edx + eax]
mov dword [edi + 0x48], esi
movzx eax, byte [edx + eax + 1]
shl esi, cl
xor esi, eax
and esi, dword [edi + 0x54]
mov dword [edi + 0x48], esi
cmp dword [edi + 0x74], 0x106
jae 0x10050290
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x1005014b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10052169
Capabilities:
Delete file

Disassembly:
push 0x44
mov eax, 0x100af429
call fcn.10091010
mov edi, edx
mov ebx, ecx
mov dword [ebp - 0x50], ebx
cmp dword [edi + 0x14], 0x10
jb 0x10052186
mov ecx, dword [edi]
jmp 0x10052188
mov ecx, edi
push ecx
push ecx
call fcn.1005971e
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1005219e
xor al, al
jmp 0x1005230b
mov eax, dword [ebx + 4]
xor edx, edx
mov ecx, dword [ebx]
sub eax, ecx
mov dword [ebp - 0x48], edx
push 0x18
cdq
pop ebx
idiv ebx
test eax, eax
je 0x100522bb
xor eax, eax
mov dword [ebp - 0x44], eax
add eax, ecx
lea ecx, [ebp - 0x28]
push eax
call fcn.10006ec7
and dword [ebp - 4], 0
push 0x100cc1f0
call fcn.10006fa1
mov edx, eax
mov dword [ebp - 0x4c], edx
pop ecx
test edx, edx
je 0x10052234
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x10052234
cmp ecx, 0xffffffff
jbe 0x100521f1
or ecx, 0xffffffff
jmp 0x100521f2
dec ecx
cmp dword [ebp - 0x14], 0x10
lea ebx, [ebp - 0x28]
cmovae ebx, dword [ebp - 0x28]
add ebx, ecx
push ebx
push edx
jmp 0x10052214
cmp dword [ebp - 0x14], 0x10
cmovae eax, dword [ebp - 0x28]
cmp ebx, eax
je 0x10052234
dec ebx
push ebx
push dword [ebp - 0x4c]
push 0x100cc1f0
call fcn.10005fcd
add esp, 0xc
test eax, eax
lea eax, [ebp - 0x28]
je 0x10052203
cmp dword [ebp - 0x14], 0x10
cmovae eax, dword [ebp - 0x28]
sub ebx, eax
jmp 0x10052237
or ebx, 0xffffffff
push 0xffffffffffffffff
lea eax, [ebx + 1]
push eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.10003027
push eax
lea ecx, [ebp - 0x28]
call fcn.10003002
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.100072c0
mov ebx, dword [ebp - 0x50]
mov eax, dword [ebx]
add eax, dword [ebp - 0x44]
cmp dword [eax + 0x14], 0x10
jb 0x1005226e
mov eax, dword [eax]
cmp dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x28]
push ecx
cmovae edx, dword [ebp - 0x28]
push ecx
push eax
mov ecx, esi
call fcn.1005983e
add esp, 0xc
test eax, eax
jne 0x100522cd
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
push eax
push 1
call fcn.100072c0
mov ecx, dword [ebx]
push 0x18
pop eax
add dword [ebp - 0x44], eax
mov eax, dword [ebx + 4]
sub eax, ecx
inc dword [ebp - 0x48]
push 0x18
cdq
pop ebx
idiv ebx
cmp dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x44]
jb 0x100521bd
mov ecx, esi
call fcn.10056145
test al, al
je 0x10052304
call fcn.100560fb
jmp 0x10052309
cmp dword [edi + 0x14], 0x10
jb 0x100522d5
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, esi
call fcn.10056145
test al, al
je 0x100522ee
call fcn.100560fb
jmp 0x100522f3
call fcn.1005986f
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.100072c0
jmp 0x10052197
call fcn.1005986f
mov al, 1
call fcn.10090fbf
ret
Function at 0x100541f6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x10054201
xor eax, eax
pop ebp
ret
push ebx
push esi
mov esi, dword [ebp + 8]
not ecx
mov ebx, 0xff
cmp esi, 8
jb 0x100542b9
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x100c6c00]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x100c6c00]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x100c6c00]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x100c6c00]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x100c6c00]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x100c6c00]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x100c6c00]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x100c6c00]
dec edi
jne 0x1005421c
pop edi
test esi, esi
je 0x100542d2
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x100c6c00]
inc edx
dec esi
jne 0x100542bd
not ecx
pop esi
mov eax, ecx
pop ebx
pop ebp
ret

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

Disassembly:
push esi
push edi
mov edi, ecx
movsx eax, dl
mov edx, 0xff
mov esi, dword [edi]
xor eax, esi
and eax, edx
shr esi, 8
mov eax, dword [eax*4 + 0x100c6c00]
xor eax, esi
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul ecx, eax, 0x8088405
mov eax, dword [edi + 8]
inc ecx
mov dword [edi + 4], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, edx
xor eax, dword [ecx*4 + 0x100c6c00]
mov dword [edi + 8], eax
pop edi
pop esi
ret

Function at 0x100549d6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, edx
mov esi, ebx
mov eax, ecx
imul esi, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp byte [edi], 0
je 0x10054a10
push 0
lea ecx, [ebp + 8]
push ecx
push esi
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10054a0b
mov byte [edi + 8], 1
mov eax, dword [ebp + 8]
jmp 0x10054a37
mov edx, dword [edi + 0x1c]
lea eax, [edx + esi]
cmp eax, dword [edi + 0x18]
jbe 0x10054a20
mov esi, dword [edi + 0x18]
sub esi, edx
mov ecx, dword [edi + 0x14]
push esi
add ecx, edx
push ecx
push dword [ebp - 4]
call fcn.1008fd00
add esp, 0xc
mov eax, esi
add dword [edi + 0x1c], esi
pop edi
xor edx, edx
pop esi
div ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100555c1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
jne 0x10055646
cmp dword [esi + 4], 0xffffffff
jne 0x10055646
lea edi, [esi + 0x140]
mov ebx, 0x104
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100555ee
sub ecx, edx
mov al, byte [ecx + esi + 0x13f]
cmp al, 0x5c
je 0x10055615
cmp al, 0x2f
je 0x10055615
push 0x100cac5c
push ebx
push edi
call fcn.1008ee83
add esp, 0xc
lea eax, [ebp - 4]
push eax
push ecx
mov ecx, dword [ebp + 8]
call fcn.100548bc
pop ecx
pop ecx
test eax, eax
jne 0x1005562d
mov eax, dword [ebp - 4]
jmp 0x1005564b
mov ecx, eax
call fcn.10054c74
xor ecx, ecx
mov dword [esi], eax
test eax, eax
mov edx, 0x200
cmove ecx, edx
mov eax, ecx
jmp 0x1005564b
mov eax, 0x1000000
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10055bfe
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x100da4b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, ecx
mov ebx, edx
test edi, edi
je 0x10055c30
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10055c30
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [ebx]
test al, al
je 0x10055cec
push esi
mov esi, ebx
mov ecx, ebx
cmp al, 0x2f
je 0x10055c47
cmp al, 0x5c
jne 0x10055c49
mov esi, ecx
inc ecx
mov al, byte [ecx]
test al, al
jne 0x10055c3f
cmp esi, ebx
je 0x10055c88
sub esi, ebx
lea eax, [ebp - 0x20c]
push esi
push ebx
push eax
call fcn.1008fd00
add esp, 0xc
cmp esi, 0x104
jae 0x10055cfc
lea edx, [ebp - 0x20c]
mov byte [ebp + esi - 0x20c], 0
mov ecx, edi
call fcn.10055bfe
mov byte [ebp - 0x108], 0
pop esi
test edi, edi
je 0x10055cb6
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10055c99
sub ecx, edx
push edi
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.1008dc24
add esp, 0xc
push ebx
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.1008ee83
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10055cec
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.1008a221
mov esp, ebp
pop ebp
ret
call fcn.1008c5ac
int3
Function at 0x100574c1
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, edx
push esi
push edi
mov esi, ecx
lea eax, [ebx - 1]
cmp eax, 7
jbe 0x100574dd
mov dword [esi + 0x6afa4], 0x100cc430
xor edi, edi
mov dword [esi + 0x6af78], edi
cmp dword [esi + 0x6af70], edi
jne 0x10057501
mov dword [esi + 0x6af78], 1
mov dword [esi + 0x6af70], 0x10000
push 0x1fffc
lea eax, [esi + 0x4af70]
mov dword [esi + 0x6af6c], edi
push edi
push eax
call fcn.10090560
movzx eax, word [ebx*8 + 0x100c8622]
add esp, 0xc
mov dword [esi + 0x6af98], eax
movzx eax, word [ebx*8 + 0x100c8620]
mov dword [esi + 0x6af9c], eax
movzx eax, word [ebx*8 + 0x100c8624]
push 2
mov dword [esi + 0x6afa0], eax
movzx eax, word [ebx*8 + 0x100c8626]
pop ecx
mov dword [esi + 0x6af94], eax
cmp ebx, ecx
jg 0x10057564
mov eax, dword [ebp + 8]
or word [eax], 4
jmp 0x1005756f
cmp ebx, 8
jl 0x1005756f
mov eax, dword [ebp + 8]
or word [eax], cx
push 0x10000
lea ebx, [esi + 0x1af70]
mov dword [esi + 0x6af84], edi
push ebx
push esi
mov dword [esi + 0x6af74], edi
call dword [esi + 0xc]
add esp, 0xc
mov dword [esi + 0x6af90], eax
test eax, eax
je 0x100575d6
cmp eax, 0xffffffff
je 0x100575d6
mov dword [esi + 0x6af8c], edi
cmp eax, 0x106
jae 0x100575b1
mov ecx, esi
call fcn.10057791
mov dword [esi + 0x6af7c], edi
mov ecx, edi
movzx eax, byte [ebx + edi]
shl ecx, 5
xor ecx, eax
and ecx, 0x7fff
inc edi
mov dword [esi + 0x6af7c], ecx
cmp edi, 2
jb 0x100575b9
jmp 0x100575e6
mov dword [esi + 0x6af8c], 1
mov dword [esi + 0x6af90], edi
pop edi
pop esi
pop ebx
pop ebp
ret