joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10048380
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10048390
sub ecx, edx
sar ecx, 1
jne 0x100483a8
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push 1
push 0
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x100483d3
sub esp, 8
mov ecx, esi
call fcn.100483e0
add esp, 8
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100483e0
Capabilities:
Create process on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10157ff0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x94
mov eax, dword [0x101ba0ec]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x44
lea eax, [ebp - 0xa0]
push 0
push eax
call fcn.1012bcf0
xorps xmm0, xmm0
mov dword [ebp - 0xa0], 0x44
xor eax, eax
mov dword [ebp - 0x18], 7
add esp, 0xc
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x54], xmm0
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], eax
mov word [ebp - 0x44], ax
mov byte [ebp - 4], 1
cmp word [esi], ax
jne 0x10048478
xor ecx, ecx
jmp 0x1004848f
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10048480
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.10041f80
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0xa0]
push ecx
push 0
push 0
push 0
push 1
push 0
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x100484cc
xor esi, esi
jmp 0x100484e1
push dword [ebp - 0x54]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x50]
call esi
mov esi, 1
mov eax, dword [ebp - 0x30]
cmp eax, 8
jb 0x100484f6
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.10042120
mov ecx, dword [ebp - 0x18]
xor eax, eax
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
cmp ecx, 8
jb 0x1004851f
inc ecx
push ecx
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x2c]
call fcn.10042120
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1010a7f2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x10048bb0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x160c
call fcn.1010bb90
mov eax, dword [0x101ba0ec]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
lea eax, [ebp - 0x210]
mov ebx, ecx
push 0
push eax
mov dword [ebp - 0x160c], ebx
call fcn.1012bcf0
add esp, 0xc
lea eax, [ebp - 0x210]
push ebx
push 0x10184498
push eax
call fcn.1004b4b0
lea ecx, [ebp - 0x210]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10048c06
sub ecx, edx
sar ecx, 1
lea eax, [ecx - 1]
test eax, eax
jle 0x10048c34
cmp word [ebp + ecx*2 - 0x212], 0x5c
je 0x10048c34
mov eax, 0x5c
mov word [ebp + ecx*2 - 0x210], ax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0xbe8]
push 0x10184a18
push eax
call fcn.1004b4b0
add esp, 0xc
lea eax, [ebp - 0x1608]
push eax
lea eax, [ebp - 0xbe8]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10048d3a
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
nop word [eax + eax]
lea eax, [ebp - 0x1608]
push eax
push esi
call edi
test eax, eax
je 0x10048d34
cmp word [ebp - 0x15dc], 0x2e
je 0x10048c80
mov ax, word [ebp - 0x15da]
test ax, ax
je 0x10048c80
cmp ax, 0x2e
jne 0x10048cb8
cmp word [ebp - 0x15d8], 0
je 0x10048c80
test byte [ebp - 0x1608], 0x10
je 0x10048d04
push 0x208
lea eax, [ebp - 0x418]
push 0
push eax
call fcn.1012bcf0
add esp, 0xc
lea eax, [ebp - 0x15dc]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x418]
push str._s_s_
push eax
call fcn.1004b4b0
add esp, 0x10
lea ecx, [ebp - 0x418]
call fcn.10048bb0
lea eax, [ebp - 0x15dc]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x13b8]
push 0x10184440
push eax
call fcn.1004b4b0
add esp, 0x10
lea eax, [ebp - 0x13b8]
push eax
call ebx
jmp 0x10048c80
mov ebx, dword [ebp - 0x160c]
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x20
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1010a7f2
mov esp, ebp
pop ebp
ret
Function at 0x1004e470
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10158608
mov eax, dword fs:[0]
push eax
sub esp, 0xec
mov eax, dword [0x101ba0ec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0xf0], esi
xor eax, eax
mov dword [ebp - 0xf4], 0
push eax
push 0x1018444c
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.10041f80
lea ecx, [ebp - 0xe8]
mov dword [ebp - 4], 0
call fcn.10110e64
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1004e603
push 0
push 1
push 4
push 0
push 1
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1004e531
push 0x1018444c
mov ecx, esi
call fcn.10041a70
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x1004e636
inc ecx
push ecx
jmp 0x1004e62b
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xec], eax
inc eax
push eax
mov dword [ebp - 0xf0], eax
call fcn.10050ec0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x1004e56f
push 0x1018444c
mov ecx, esi
call fcn.10041a70
lea ecx, [ebp - 0x28]
call fcn.100420d0
jmp 0x1004e636
push dword [ebp - 0xf0]
push 0
push ebx
call fcn.1012bcf0
add esp, 0xc
lea eax, [ebp - 0xf8]
push 0
push eax
push dword [ebp - 0xec]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xec]
lea ecx, [ebp - 0xe8]
push ebx
call fcn.10111835
push ebx
call fcn.10050eb0
add esp, 4
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0xe8]
push eax
call fcn.10111080
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
call fcn.101109aa
add esp, 8
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.100467b0
cmp dword [ebp - 0x30], 0
jbe 0x1004e5fb
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.10041c10
lea ecx, [ebp - 0x40]
call fcn.100420d0
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
mov word [esi], ax
lea eax, [ebp - 0x28]
push eax
call fcn.100419b0
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x1004e636
inc eax
push eax
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.10042120
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1010a7f2
mov esp, ebp
pop ebp
ret
Function at 0x1004f5a0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10158788
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x101ba0ec]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1004f5f6
and al, 0x10
xor cl, cl
cmp cl, al
sbb eax, eax
neg eax
je 0x1004f5f6
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
lea ecx, [ebp - 0x14]
call fcn.10051e70
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x14]
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004f610
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jle 0x1004f633
cmp word [edi + ecx*2 - 2], 0x5c
jne 0x1004f633
xor eax, eax
mov word [edi + ecx*2 - 2], ax
push 0x5c
push edi
call fcn.1012aca4
add esp, 8
test eax, eax
jne 0x1004f647
lea esi, [eax + 0xf]
jmp 0x1004f677
xor ecx, ecx
mov word [eax], cx
mov ecx, edi
call fcn.1004f5a0
mov esi, eax
test esi, esi
jne 0x1004f677
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1004f675
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xb7
jne 0x1004f677
xor esi, esi
push edi
call fcn.10050eb0
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1004f7c0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push esi
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 0x1004f850
lea eax, [esp + 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 0x1004f83c
mov eax, dword [esp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], eax
test esi, 0x100
ja 0x1004f82d
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea eax, [esp + 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 edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10050ed0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 0x1108], eax
je 0x10050f03
mov dword [edi + 0x10e4], 0x3f3
xor eax, eax
mov dword [edi + 0x10e8], 0
mov dword [edi + 0x10ec], 0
pop edi
ret
mov eax, dword [0x101c7fe4]
push esi
cmp eax, 0xffffffff
je 0x1005109a
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call esi
test eax, eax
je 0x10050f42
pop esi
mov dword [edi + 0x10e4], 0x3f4
xor eax, eax
mov dword [edi + 0x10e8], 0
mov dword [edi + 0x10ec], 0
pop edi
ret
mov eax, dword [0x101c7fe4]
cmp eax, 0xffffffff
je 0x1005109a
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1005109a
push dword [0x101c7fe4]
call esi
test eax, eax
je 0x1005109a
push ebx
lea ebx, [edi + 0x10cc]
xorps xmm0, xmm0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
movq qword [ebx], xmm0
mov dword [ebx + 8], 0
cmp dword [edi + 0x10f0], 0
jne 0x10051050
cmp dword [edi + 0x110c], 0
jne 0x10051056
push 0x1018f198
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FDICreate
push eax
mov dword [edi + 0x110c], eax
call esi
push str.FDICopy
push dword [edi + 0x110c]
mov dword [edi + 0x1110], eax
call esi
push str.FDIIsCabinet
push dword [edi + 0x110c]
mov dword [edi + 0x1114], eax
call esi
push str.FDIDestroy
push dword [edi + 0x110c]
mov dword [edi + 0x1118], eax
call esi
cmp dword [edi + 0x1110], 0
mov dword [edi + 0x111c], eax
je 0x10051031
cmp dword [edi + 0x1114], 0
je 0x10051031
cmp dword [edi + 0x1118], 0
je 0x10051031
test eax, eax
jne 0x10051056
mov dword [edi + 0x110c], 0
mov dword [ebx + 0x18], 0x3e8
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
pop ebx
pop esi
xor eax, eax
pop edi
ret
mov eax, dword [edi + 0x1110]
push ebx
push 1
push 0x100502d0
push 0x10050430
push 0x100505e0
push 0x10050c00
push 0x10050e70
push fcn.10050eb0
push fcn.10050ec0
call eax
add esp, 0x24
mov dword [edi + 0x10f0], eax
xor ecx, ecx
test eax, eax
setne cl
pop ebx
pop esi
mov eax, ecx
pop edi
ret
pop esi
mov dword [edi + 0x10e4], 0
xor eax, eax
mov dword [edi + 0x10e8], 0xe
mov dword [edi + 0x10ec], 0
pop edi
ret
Function at 0x10051700
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101588d5
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x101ba0ec]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
lea edi, [ebx + 8]
mov dword [ebx], vtable.Cabinet::CExtract.0
mov dword [ebp - 0x14], edi
lea ecx, [edi + 4]
push 0x12c
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.10052410
mov eax, dword [edi + 4]
xor ecx, ecx
mov word [eax], cx
mov dword [ebp - 4], ecx
mov dword [edi + 0xc], ecx
mov dword [edi + 0x10], ecx
lea ecx, [edi + 0xc]
push 0x12c
call fcn.10052410
mov eax, dword [edi + 0xc]
xor ecx, ecx
mov word [eax], cx
mov dword [ebp - 4], 1
mov dword [ebx + 0x28], ecx
mov dword [ebx + 0x2c], ecx
mov dword [ebx + 0x30], ecx
mov dword [ebx + 0x34], ecx
mov dword [ebx + 0x38], ecx
mov dword [ebx + 0x3c], ecx
mov dword [ebx + 0x40], ecx
lea ecx, [ebx + 0x48]
mov dword [ebx + 0x44], 0xc8
mov dword [ebp - 0x14], ecx
call fcn.10051680
mov byte [ebp - 4], 2
lea ecx, [ebx + 0x58]
push 0x12c
mov dword [ebx + 0x58], 0
mov dword [ebx + 0x5c], 0
call fcn.10052410
mov eax, dword [ebx + 0x58]
xor ecx, ecx
mov word [eax], cx
mov byte [ebp - 4], 3
mov dword [ebx + 0x60], ecx
mov dword [ebx + 0x64], ecx
lea ecx, [ebx + 0x60]
push 0x12c
call fcn.10052410
mov eax, dword [ebx + 0x60]
xor ecx, ecx
mov word [eax], cx
mov dword [ebx + 0x74], ecx
mov dword [ebx + 0x70], 0xffffffff
mov dword [ebx + 0x10c0], ecx
mov dword [ebx + 0x10c4], ecx
mov dword [ebx + 0x10c8], ecx
lea edi, [ebx + 0x10cc]
mov byte [ebp - 4], 5
mov dword [ebp - 0x14], edi
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], ecx
lea ecx, [edi + 0x10]
push 0x12c
call fcn.10052410
mov eax, dword [edi + 0x10]
xor ecx, ecx
xorps xmm0, xmm0
mov word [eax], cx
mov dword [edi + 0xc], 1
mov dword [edi + 0x18], ecx
mov dword [edi + 0x1c], ecx
mov dword [edi + 0x20], ecx
movq qword [edi], xmm0
mov dword [edi + 8], ecx
mov dword [ebx + 0x10f0], ecx
mov dword [ebx + 0x110c], ecx
mov dword [ebx + 0x10fc], ecx
mov dword [ebx + 0x1100], 0x4e4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebx + 0x1108], eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10051b10
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.1013ee4c
add esp, 0xc
pop ebp
ret 0xc
Function at 0x10051b30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, ecx
mov edx, dword [edi + 0x4c]
test edx, edx
jle 0x10051b52
mov ecx, dword [edi + 0x50]
cmp dword [ecx], esi
je 0x10051b67
inc eax
add ecx, 4
cmp eax, edx
jl 0x10051b46
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.1013ee4c
add esp, 0xc
pop edi
pop esi
pop ebp
ret 0xc
test eax, eax
js 0x10051b52
push dword [ebp + 0x10]
mov eax, dword [edi]
mov ecx, edi
push dword [ebp + 0xc]
push esi
call dword [eax + 0x1c]
test eax, eax
jle 0x10051b61
add dword [esi + 4], eax
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x10051c90
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
test dword [ebp + 0xc], 0x100
je 0x10051cab
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push 0x40
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1013d83a
mov ecx, dword [ebp - 4]
or edx, 0xffffffff
add esp, 0x18
test eax, eax
cmovne ecx, edx
mov eax, ecx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10051ce0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
test bl, bl
jns 0x10051d2b
test dword [ebp + 0xc], 0x100
je 0x10051d02
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
lea eax, [ebp + 0x10]
push eax
push ebx
push 0x40
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1013d83a
mov ecx, dword [ebp + 0x10]
add esp, 0x18
or edx, 0xffffffff
test eax, eax
cmovne ecx, edx
mov eax, ecx
pop ebx
pop ebp
ret 0xc
mov eax, dword [ecx]
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [eax + 0x18]
pop ebx
pop ebp
ret 0xc
Function at 0x10052020
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101588f8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x101ba0ec]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [edi + 0x1134]
push eax
lea ecx, [ebp - 0x18]
call fcn.10051ef0
mov dword [ebp - 4], 0
mov eax, dword [edi + 0x1130]
test eax, eax
je 0x1005207c
push eax
lea eax, [ebp - 0x18]
push 0x1018f238
push eax
call fcn.10051f90
add esp, 0xc
mov ecx, dword [edi + 0x1128]
xor edx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10052087
sub ecx, esi
sar ecx, 1
cmp ecx, dword [edi + 0x112c]
jb 0x100520b3
push 0x101af208
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], str.The_string_has_no_terminating_null_character_
push eax
call fcn.1012b31d
test ecx, ecx
je 0x100520bd
mov edx, dword [edi + 0x1128]
mov ebx, dword [edi + 0x1150]
test ebx, ebx
jne 0x100520d0
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
push dword [edi + 0x113c]
push dword [ebp - 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push ebx
mov dword [edi + 0x1144], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp dword [edi + 0x1144], 0
mov dword [edi + 0x114c], eax
mov dword [edi + 0x1148], 0
je 0x10052123
test eax, eax
je 0x10052123
mov esi, 1
jmp 0x10052143
mov dword [edi + 0x10e4], 0x3ec
xor esi, esi
mov dword [edi + 0x10e8], 0
mov dword [edi + 0x10ec], 0
push dword [ebp - 0x18]
call fcn.10050eb0
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10052850
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x430
mov eax, dword [0x101ba0ec]
xor eax, esp
mov dword [esp + 0x42c], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
test esi, esi
je 0x100529c5
push 0x208
lea eax, [esp + 0x24]
push 0
push eax
call fcn.1012bcf0
add esp, 0xc
lea ecx, [esp + 8]
call fcn.10052590
cmp dword [eax + 0x14], 8
jb 0x1005289d
mov eax, dword [eax]
push str..wnpf
push esi
push eax
lea eax, [esp + 0x2c]
push str._s_s_s
push eax
call fcn.10041b40
mov eax, dword [esp + 0x30]
add esp, 0x14
cmp eax, 8
jb 0x100528ce
inc eax
lea ecx, [esp + 8]
push eax
push dword [esp + 0xc]
call fcn.10042120
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10052920
lea edx, [esp + 0x20]
lea ecx, [esp + 8]
call fcn.1004e470
push eax
mov ecx, ebx
call fcn.10041550
mov eax, dword [esp + 0x1c]
cmp eax, 8
jb 0x1005290a
inc eax
lea ecx, [esp + 8]
push eax
push dword [esp + 0xc]
call fcn.10042120
mov al, 1
pop esi
pop ebx
mov ecx, dword [esp + 0x42c]
xor ecx, esp
call fcn.1010a7f2
mov esp, ebp
pop ebp
ret
push 0x208
lea eax, [esp + 0x22c]
push 0
push eax
call fcn.1012bcf0
add esp, 0xc
lea ecx, [esp + 8]
call fcn.10052590
cmp dword [eax + 0x14], 8
jb 0x10052948
mov eax, dword [eax]
push str..swnpf
push esi
push eax
lea eax, [esp + 0x234]
push str._s_s_s
push eax
call fcn.10041b40
mov eax, dword [esp + 0x30]
add esp, 0x14
cmp eax, 8
jb 0x1005297c
inc eax
lea ecx, [esp + 8]
push eax
push dword [esp + 0xc]
call fcn.10042120
lea eax, [esp + 0x228]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100529c5
lea edx, [esp + 0x228]
lea ecx, [esp + 8]
call fcn.1004e470
push eax
mov ecx, ebx
call fcn.10041550
lea ecx, [esp + 8]
call fcn.100420d0
mov al, 1
pop esi
pop ebx
mov ecx, dword [esp + 0x42c]
xor ecx, esp
call fcn.1010a7f2
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x434]
xor al, al
pop esi
pop ebx
xor ecx, esp
call fcn.1010a7f2
mov esp, ebp
pop ebp
ret
Function at 0x100529e0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101589f8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x101ba0ec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x1018f320
push esi
call fcn.10138edb
add esp, 8
test eax, eax
jne 0x10052a29
mov eax, 1
jmp 0x10052afd
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
lea edx, [ebp - 0x28]
mov dword [ebp - 4], eax
mov ecx, esi
call fcn.10052850
test al, al
jne 0x10052a55
xor esi, esi
jmp 0x10052ae6
mov edi, dword [ebp - 0x14]
lea ecx, [ebp - 0x28]
mov esi, dword [ebp - 0x28]
lea ebx, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
cmp edi, 8
mov dword [ebp - 0x44], fcn.1013cc9c
cmovae ecx, esi
cmovae ebx, esi
lea edx, [ecx + eax*2]
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x28]
cmovae ecx, esi
push ebx
call fcn.1004b3c0
add esp, 8
lea ecx, [ebp - 0x40]
call fcn.10052730
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
lea eax, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x40]
cmp dword [ebp - 0x14], 8
push ecx
cmovae eax, dword [ebp - 0x28]
push 0
push eax
push 0x1018f334
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
neg eax
sbb esi, esi
mov eax, dword [ebp - 0x2c]
neg esi
cmp eax, 8
jb 0x10052ad2
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.10042120
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x10052afb
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.10042120
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1010a7f2
mov esp, ebp
pop ebp
ret