joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001efa0
Capabilities:
Delete file

Disassembly:
push 0x20
mov eax, 0x101da1f2
call fcn.1005d8ab
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor edi, edi
cmp dword [ebx + 0x1108], eax
je 0x1001efdb
mov dword [ebx + 0x10e4], 0x3f3
mov dword [ebx + 0x10e8], edi
mov dword [ebx + 0x10ec], edi
xor eax, eax
jmp 0x1001f1c9
cmp dword [ebx + 0x10f0], edi
je 0x1001efd4
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov dword [ebx + 0x1104], eax
mov dword [ebx + 0x10f4], edi
mov eax, dword [ebx + 0xc]
mov dword [ebx + 8], edi
mov word [eax], cx
mov eax, dword [ebx + 0x14]
mov word [eax], cx
lea ecx, [ebx + 0x10cc]
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x20], edi
mov dword [ebx + 0x24], edi
call fcn.100202e0
push dword [ebp + 0xc]
lea esi, [ebx + 0x58]
mov dword [ebx + 0x4c], edi
mov ecx, esi
call fcn.1001e2c3
push esi
call fcn.100205a9
mov dword [esp], str.MEMORY_
push dword [esi]
call fcn.100863ee
neg eax
pop ecx
sbb eax, eax
pop ecx
inc eax
lea ecx, [ebp - 0x2c]
mov dword [ebx + 0x10f8], eax
call fcn.1001e034
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], edi
call fcn.1001e034
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 8]
call fcn.10020535
add esp, 0xc
mov ecx, esi
call fcn.10020011
cmp eax, 3
jb 0x1001f1a1
lea ecx, [ebp - 0x2c]
call fcn.10020011
cmp eax, 2
jb 0x1001f1a1
lea ecx, [ebp - 0x24]
call fcn.10020011
cmp eax, 2
jb 0x1001f1a1
mov eax, dword [ebx + 0x60]
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x1c]
call fcn.1001df8d
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.1001df8d
jmp 0x1001f119
lea ecx, [ebx + 0x60]
call fcn.10020011
test eax, eax
je 0x1001f157
mov esi, dword [ebx + 0x60]
lea ecx, [ebx + 0x60]
call fcn.10020011
push eax
push esi
lea ecx, [ebp - 0x24]
call fcn.1001e4bf
push dword [ebp - 0x14]
call fcn.1001f39e
push dword [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.1001f39e
mov eax, dword [ebx + 0x60]
pop ecx
pop ecx
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x1c]
call fcn.1001df8d
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.1001df8d
push dword [ebp + 0x10]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
push edi
push 0x1001f353
push edi
push dword [ebp - 0x2c]
call fcn.1001ebd5
mov esi, dword [ebp - 0x24]
lea ecx, [ebp - 0x1c]
push eax
push esi
call fcn.1001ebd5
push eax
push dword [ebx + 0x10f0]
call dword [ebx + 0x1114]
add esp, 0x1c
test eax, eax
jne 0x1001f0c2
push dword [ebp - 0x14]
call fcn.1001f39e
push dword [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.1001f39e
pop ecx
pop ecx
push dword [ebx + 8]
mov ecx, ebx
call fcn.1001f8ec
cmp dword [ebx + 0x10f4], edi
je 0x1001f18d
cmp dword [ebx + 8], edi
je 0x1001f18d
push dword [ebx + 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebx + 0x10cc]
call fcn.1001ffcd
mov edi, eax
neg edi
sbb edi, edi
inc edi
jmp 0x1001f1b7
mov esi, dword [ebp - 0x24]
lea eax, [ebx + 0x10cc]
mov dword [eax + 0x18], 0x3ea
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], edi
push esi
call fcn.1001f39e
push dword [ebp - 0x2c]
call fcn.1001f39e
pop ecx
pop ecx
mov eax, edi
call fcn.1005d885
ret 0xc
Function at 0x1001fdb7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xc
mov eax, 0x101da2f9
call fcn.1005d8ab
mov edi, ecx
lea eax, [edi + 0x1134]
push eax
lea ecx, [ebp - 0x18]
call fcn.1001dfaa
mov eax, dword [edi + 0x1130]
xor ebx, ebx
mov dword [ebp - 4], ebx
test eax, eax
je 0x1001fdf5
push eax
lea eax, [ebp - 0x18]
push 0x101e3328
push eax
call fcn.1001fcdc
add esp, 0xc
lea ecx, [edi + 0x1128]
mov esi, ebx
call fcn.10020011
test eax, eax
je 0x1001fe0c
mov esi, dword [edi + 0x1128]
mov eax, dword [edi + 0x1150]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x1001fe23
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x10], eax
push dword [edi + 0x113c]
push dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push dword [ebp - 0x10]
mov dword [edi + 0x1144], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [edi + 0x114c], eax
mov dword [edi + 0x1148], ebx
cmp dword [edi + 0x1144], ebx
je 0x1001fe73
test eax, eax
je 0x1001fe73
xor ebx, ebx
inc ebx
jmp 0x1001fe89
mov dword [edi + 0x10e4], 0x3ec
mov dword [edi + 0x10e8], ebx
mov dword [edi + 0x10ec], ebx
push dword [ebp - 0x18]
call fcn.1001f39e
pop ecx
mov eax, ebx
call fcn.1005d885
ret

Function at 0x10020123
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
test byte [ebp + 0x10], 0x80
je 0x10020132
pop ebp
jmp method.Cabinet::CExtract.virtual_20
mov eax, dword [ecx]
pop ebp
jmp dword [eax + 0x18]

Function at 0x100201fd
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1008569f
add esp, 0xc
pop ebp
ret 0xc

Function at 0x10020215
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
push esi
lea ecx, [edi + 0x48]
call fcn.1001fcb4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
test eax, eax
js 0x10020243
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x1c]
test eax, eax
jle 0x1002024b
add dword [esi + 4], eax
jmp 0x1002024b
call fcn.1008569f
add esp, 0xc
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x100204a8
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1002052e
push esi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
mov esi, dword [ebp + 0x14]
test eax, eax
je 0x10020519
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
test esi, 0x100
ja 0x1002050b
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea eax, [ebp - 8]
push eax
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and esi, 0x27
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop esi
pop edi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x10020e13
Capabilities:
Delete file

Disassembly:
push 0x34
mov eax, 0x101da36c
call fcn.1005d8df
lea eax, [ebp - 0x40]
push eax
call fcn.10020e70
and dword [ebp - 4], 0
mov dword [esp], str.theme.ini
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.100045f0
add esp, 0xc
lea ecx, [ebp - 0x40]
push 0
push 1
call fcn.10002630
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.10002630
call fcn.1005d89a
ret

Function at 0x10020f04
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x10285294]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
je 0x1002102c
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.10078730
lea eax, [ebp - 0x42c]
push eax
call fcn.10020e70
add esp, 0x10
cmp dword [eax + 0x14], 8
jb 0x10020f51
mov eax, dword [eax]
push str..wnpf
push esi
push eax
lea eax, [ebp - 0x20c]
push 0x101e3550
push eax
call fcn.10021c56
add esp, 0x14
lea ecx, [ebp - 0x42c]
push 0
push 1
call fcn.10002630
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10020fbc
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x42c]
push eax
call fcn.10073785
pop ecx
pop ecx
push eax
mov ecx, edi
call fcn.10004080
push 0
push 1
lea ecx, [ebp - 0x42c]
call fcn.10002630
mov al, 1
jmp 0x1002102e
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.10078730
lea eax, [ebp - 0x42c]
push eax
call fcn.10020e70
add esp, 0x10
cmp dword [eax + 0x14], 8
jb 0x10020fe6
mov eax, dword [eax]
push str..swnpf
push esi
push eax
lea eax, [ebp - 0x414]
push 0x101e3550
push eax
call fcn.10021c56
add esp, 0x14
lea ecx, [ebp - 0x42c]
push 0
push 1
call fcn.10002630
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1002102c
lea eax, [ebp - 0x414]
jmp 0x10020f92
xor al, al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1005d874
mov esp, ebp
pop ebp
ret
Function at 0x10021240
Capabilities:
Check if file exists

Disassembly:
push 0x268
mov eax, 0x101da3c8
call fcn.1005d8df
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x264], eax
call fcn.10021605
mov ecx, eax
call fcn.10073b29
push eax
lea ecx, [ebp - 0x260]
call fcn.10002590
lea eax, [ebp - 0x248]
xor esi, esi
push eax
mov dword [ebp - 4], esi
call fcn.10020e70
pop ecx
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 1
mov dword [ebp - 0x26c], esi
mov dword [ebp - 0x268], esi
call fcn.100216eb
mov dword [ebp - 0x26c], eax
push 7
mov dword [ebp - 0x220], esi
xor eax, eax
pop ebx
mov esi, str..wnpf
mov byte [ebp - 4], 2
push esi
mov dword [ebp - 0x21c], ebx
mov word [ebp - 0x230], ax
call fcn.100802ff
pop ecx
push eax
push esi
lea ecx, [ebp - 0x230]
call fcn.100026f0
push dword [ebp - 0x264]
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 3
push eax
push 0
lea eax, [ebp - 0x274]
push eax
lea ecx, [ebp - 0x26c]
call fcn.10020bff
push 0
push 1
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
call fcn.10002630
and dword [ebp - 0x220], 0
xor eax, eax
mov esi, str..swnpf
mov dword [ebp - 0x21c], ebx
push esi
mov word [ebp - 0x230], ax
call fcn.100802ff
pop ecx
push eax
push esi
lea ecx, [ebp - 0x230]
call fcn.100026f0
push dword [ebp - 0x264]
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 4
push eax
push 0
lea eax, [ebp - 0x274]
push eax
lea ecx, [ebp - 0x26c]
call fcn.10020bff
push 0
push 1
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
call fcn.10002630
mov ecx, dword [ebp - 0x26c]
mov eax, dword [ecx]
mov dword [ebp - 0x270], eax
cmp eax, ecx
je 0x10021456
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea esi, [eax + 0x10]
cmp dword [esi + 0x14], 8
jb 0x100213a3
mov edx, dword [esi]
jmp 0x100213a5
mov edx, esi
cmp dword [edi + 0x14], 8
jb 0x100213af
mov ecx, dword [edi]
jmp 0x100213b1
mov ecx, edi
cmp dword [ebp - 0x24c], 8
lea eax, [ebp - 0x260]
push edx
cmovae eax, dword [ebp - 0x260]
push ecx
push eax
lea eax, [ebp - 0x218]
push str._sSkin_s_s
push eax
call fcn.10021c56
add esp, 0x14
lea eax, [ebp - 0x218]
push eax
call ebx
test eax, eax
jne 0x10021489
cmp dword [esi + 0x14], 8
jb 0x100213f5
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x100213ff
mov ecx, dword [edi]
jmp 0x10021401
mov ecx, edi
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
push esi
cmovae eax, dword [ebp - 0x248]
push ecx
push eax
lea eax, [ebp - 0x218]
push 0x101e3550
push eax
call fcn.10021c56
add esp, 0x14
lea eax, [ebp - 0x218]
push eax
call ebx
test eax, eax
jne 0x10021489
lea ecx, [ebp - 0x270]
call fcn.100462a1
mov eax, dword [ebp - 0x270]
cmp eax, dword [ebp - 0x26c]
jne 0x10021396
xor esi, esi
lea ecx, [ebp - 0x26c]
call fcn.10020ddc
push 0
push 1
lea ecx, [ebp - 0x248]
call fcn.10002630
push 0
push 1
lea ecx, [ebp - 0x260]
call fcn.10002630
mov eax, esi
call fcn.1005d89a
ret
cmp word [ebp - 0x218], 0
jne 0x10021497
xor eax, eax
jmp 0x100214a4
lea eax, [ebp - 0x218]
push eax
call fcn.100802ff
pop ecx
mov ecx, dword [ebp - 0x264]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.100026f0
xor esi, esi
inc esi
jmp 0x10021458
Function at 0x10021544
Capabilities:
Read .ini file

Disassembly:
push 0x240
mov eax, 0x101da439
call fcn.1005d8df
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x248]
xor edi, edi
push eax
mov dword [ebp - 0x24c], edi
call fcn.10020e70
mov dword [esp], str.theme.ini
push eax
lea eax, [ebp - 0x230]
mov dword [ebp - 4], edi
push eax
call fcn.100045f0
add esp, 0xc
push edi
push 1
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 2
call fcn.10002630
push 0x208
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.10078730
add esp, 0xc
lea eax, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
cmovae eax, dword [ebp - 0x230]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x101e3658
push 0x101e3668
push str.Theme
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.10002590
push edi
push 1
lea ecx, [ebp - 0x230]
call fcn.10002630
mov eax, esi
call fcn.1005d89a
ret

Function at 0x100266df
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
push esi
push 8
mov ecx, edx
pop esi
mov eax, ecx
shr ecx, 1
and eax, 1
dec eax
not eax
and eax, 0xedb88320
xor ecx, eax
sub esi, 1
jne 0x100266e7
mov dword [edx*4 + 0x1028ef48], ecx
inc edx
cmp edx, 0x100
jb 0x100266e2
mov esi, 0x800
jmp 0x10026730
mov ecx, dword [edx*4 + 0x1028eb48]
movzx eax, cl
shr ecx, 8
xor ecx, dword [eax*4 + 0x1028ef48]
mov dword [edx*4 + 0x1028ef48], ecx
inc edx
cmp edx, esi
jb 0x10026714
mov dword [0x10290f48], 0x10022879
call fcn.10026ae3
mov ecx, dword [0x10290f48]
test eax, eax
mov edx, 0x10022912
cmove ecx, edx
mov dword [0x10290f48], ecx
pop esi
ret

Function at 0x10026b85
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [edi]
test esi, esi
jne 0x10026b97
xor eax, eax
jmp 0x10026bbe
push ebx
mov ebx, dword [ebp + 8]
push dword [ebx]
push esi
push 1
push dword [ebp + 0xc]
call fcn.1008cc4f
add esp, 0x10
mov dword [edi], eax
cmp eax, esi
jne 0x10026bb5
xor eax, eax
jmp 0x10026bbd
push dword [ebx]
call fcn.1008ca58
pop ecx
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x10026c11
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [edi]
test esi, esi
jne 0x10026c23
xor eax, eax
jmp 0x10026c4a
push ebx
mov ebx, dword [ebp + 8]
push dword [ebx]
push esi
push 1
push dword [ebp + 0xc]
call fcn.1008c4c6
add esp, 0x10
mov dword [edi], eax
cmp eax, esi
jne 0x10026c41
xor eax, eax
jmp 0x10026c49
push dword [ebx]
call fcn.1008ca58
pop ecx
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x100277b5
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x10
push esi
mov esi, dword [ebp + 0x14]
push edi
xor edi, edi
mov esi, dword [esi]
and esi, 7
cmp eax, 5
jae 0x100277d6
xor eax, eax
jmp 0x1002792b
add dword [ebp + 0x10], 5
lea ecx, [eax - 4]
mov edx, dword [ebp + 8]
push ebx
or ebx, 0xffffffff
add ecx, edx
mov dword [ebp - 8], ecx
add edx, edi
mov dword [ebp - 4], edx
cmp edx, ecx
jae 0x10027802
mov al, byte [edx]
and al, 0xfe
cmp al, 0xe8
je 0x100277ff
inc edx
cmp edx, ecx
jb 0x100277f2
mov dword [ebp - 4], edx
mov edi, edx
sub edi, dword [ebp + 8]
cmp edx, ecx
jae 0x1002790f
mov ecx, edi
sub ecx, ebx
cmp ecx, 3
jbe 0x1002783a
xor esi, esi
mov al, byte [edx + 4]
mov ebx, edi
mov dword [ebp - 0x10], ebx
test al, al
je 0x10027877
cmp al, 0xff
je 0x10027877
and esi, 3
xor eax, eax
add esi, esi
or esi, 1
inc eax
jmp 0x10027908
dec ecx
shl esi, cl
and esi, 7
je 0x1002781a
movzx eax, byte [esi + 0x101e669c]
mov ecx, edx
sub ecx, eax
cmp byte [esi + 0x101e6694], 0
mov al, byte [ecx + 4]
je 0x10027861
test al, al
je 0x10027861
cmp al, 0xff
jne 0x1002781a
and esi, 3
mov ebx, edi
add esi, esi
or esi, 1
inc edi
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
jmp 0x100277e9
movzx ebx, al
movzx eax, byte [edx + 3]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 2]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 1]
mov edx, dword [ebp + 0x10]
shl ebx, 8
or ebx, eax
cmp dword [ebp + 0x18], 0
je 0x100278a4
add ebx, edi
add ebx, edx
jmp 0x100278a8
sub ebx, edi
sub ebx, edx
mov dword [ebp + 0xc], ebx
test esi, esi
je 0x100278de
movzx eax, byte [esi + 0x101e669c]
shl eax, 3
push 0x18
pop ecx
sub ecx, eax
mov dword [ebp - 0xc], eax
mov eax, ebx
shr eax, cl
test al, al
je 0x100278cd
cmp al, 0xff
jne 0x100278de
xor ebx, ebx
push 0x20
pop ecx
sub ecx, dword [ebp - 0xc]
inc ebx
shl ebx, cl
dec ebx
xor ebx, dword [ebp + 0xc]
jmp 0x10027898
mov edx, dword [ebp - 4]
mov eax, ebx
shr eax, 0x18
and al, 1
dec al
not al
mov byte [edx + 1], bl
mov byte [edx + 4], al
mov eax, ebx
shr eax, 0x10
mov byte [edx + 3], al
mov eax, ebx
mov ebx, dword [ebp - 0x10]
shr eax, 8
push 5
mov byte [edx + 2], al
pop eax
add edi, eax
jmp 0x1002786c
mov edx, edi
xor eax, eax
sub edx, ebx
pop ebx
lea ecx, [edx - 1]
shl esi, cl
and esi, 7
cmp edx, 3
cmova esi, eax
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100279f2
Capabilities:
Read .ini file

Disassembly:
push 0x258
mov eax, 0x101da560
call fcn.1005d8df
mov edi, ecx
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x10027a1a
xor al, al
jmp 0x10027b7a
call fcn.10027d18
push 0x208
mov esi, eax
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10078730
add esp, 0xc
lea eax, [ebp - 0x248]
mov ecx, edi
push dword [ebp - 0x264]
push eax
call fcn.10027f5a
and dword [ebp - 4], 0
lea ecx, [ebp - 0x218]
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
push esi
cmovae eax, dword [ebp - 0x248]
mov esi, 0x1026dd78
push 0x104
push ecx
push esi
push eax
push 0x101e6778
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.10086563
pop ecx
pop ecx
test eax, eax
jne 0x10027b29
and dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
cmp dword [ebp - 0x234], 8
lea ecx, [ebp - 0x230]
push ecx
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 1
cmovae eax, dword [ebp - 0x248]
mov ecx, edi
push eax
push 0x101e6778
call fcn.10027b82
test al, al
jne 0x10027af3
push 0
push 1
lea ecx, [ebp - 0x230]
call fcn.10002630
xor bl, bl
jmp 0x10027b69
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.100802dd
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0
call fcn.10002630
lea eax, [ebp - 0x218]
mov ecx, edi
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.10027e19
lea eax, [ebp - 0x260]
mov byte [ebp - 4], 2
cmp ebx, eax
je 0x10027b58
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
call fcn.10002900
push 0
push 1
lea ecx, [ebp - 0x260]
mov bl, 1
call fcn.10002630
push 0
push 1
lea ecx, [ebp - 0x248]
call fcn.10002630
mov al, bl
call fcn.1005d89a
ret 8

Function at 0x10027c94
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
mov eax, dword [0x10285294]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
call fcn.10021605
mov ecx, eax
call fcn.10073a95
push eax
push 0x64
lea eax, [ebp - 0xcc]
push eax
push 0x1026dd78
push str.UserID
push str.Setting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0xcc], 0
jne 0x10027ce4
xor eax, eax
jmp 0x10027cf1
lea eax, [ebp - 0xcc]
push eax
call fcn.100802ff
pop ecx
push eax
lea eax, [ebp - 0xcc]
mov ecx, esi
push eax
call fcn.100026f0
cmp dword [esi + 0x10], 0
mov ecx, dword [ebp - 4]
seta al
xor ecx, ebp
pop esi
call fcn.1005d874
mov esp, ebp
pop ebp
ret 4

Function at 0x10027d47
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
mov eax, dword [0x10285294]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.10021605
mov ecx, eax
call fcn.10073a95
push eax
push 0x64
lea eax, [ebp - 0xcc]
push eax
push 0x1026dd78
push str.UserID
push str.Setting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0xcc]
push eax
call fcn.100802ff
cmp eax, 1
pop ecx
mov ecx, dword [ebp - 4]
setg al
xor ecx, ebp
call fcn.1005d874
mov esp, ebp
pop ebp
ret
Function at 0x10028e82
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push 0
push 0x80
push 3
push 0
push 1
push connect
push dword [ebp + 8]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10028f81
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x10028f80
cmp dword [ebp - 4], 0
jne 0x10028f80
push edi
call fcn.1001f34a
pop ecx
push 0
lea ecx, [ebp - 4]
mov dword [ebp - 0x10], eax
push ecx
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10028f80
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 1
push 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x10028f79
mov eax, dword [ebp - 8]
push 0
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp - 8]
push 0
push dword [ebp - 4]
push dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
test eax, eax
jne 0x10028f67
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov edi, eax
mov dword [ebp - 0xc], edi
test edi, edi
je 0x10028f62
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0xc]
and dword [ebp - 0xc], 0
push ecx
push eax
mov dword [edi], vtable.Gdiplus::Bitmap.0
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov dword [edi + 8], eax
mov eax, dword [ebp - 0xc]
mov dword [edi + 4], eax
jmp 0x10028f64
xor edi, edi
mov dword [esi + 0x10], edi
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push dword [ebp - 0x10]
call fcn.1001f39e
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov ecx, dword [esi + 0x10]
test ecx, ecx
jne 0x10028f8c
xor eax, eax
jmp 0x10029005
mov eax, dword [ecx + 8]
and dword [ecx + 8], 0
mov ecx, dword [esi + 0x10]
test eax, eax
je 0x10028faa
test ecx, ecx
je 0x10028fa4
mov eax, dword [ecx]
push 1
call dword [eax]
and dword [esi + 0x10], 0
jmp 0x10028f88
call fcn.100057b0
mov ecx, dword [esi + 0x10]
mov dword [esi], eax
call fcn.100057e0
mov ecx, esi
mov dword [esi + 4], eax
call fcn.10028e16
test al, al
je 0x10028fdc
push 0
push dword [esi + 0x10]
mov byte [esi + 8], 1
call fcn.10028e02
mov ecx, eax
call fcn.10028448
push dword [ebp + 8]
mov ecx, esi
call fcn.10028e6d
test al, al
je 0x10029002
push 1
push dword [ebp + 8]
mov byte [esi + 8], 1
push dword [esi + 0x10]
call fcn.10028e02
mov ecx, eax
call fcn.100283c0
xor eax, eax
inc eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4