joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10006380
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x10c
push ebx
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor ebp, ebp
lea eax, [esp + 0x18]
push ebp
push eax
mov dword [esp + 0x18], ebp
call fcn.1001ba50
add esp, 8
test eax, eax
jne 0x100063c2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
mov ecx, dword [esp + 0x120]
lea edi, [esp + 0x18]
xor eax, eax
mov edx, dword [ecx + 0x80]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push edx
push 0x10040684
lea eax, [esp + ecx + 0x20]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [esp + 0x18]
push ebp
push 0x20
push 3
push ebp
push ebp
push closesocket
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1000641c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10c
ret
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea edx, [edi + 1]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x1000645d
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + ebp]
push edi
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000645d
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x10006478
sub edi, eax
add ebp, eax
jmp 0x10006434
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10c
ret
push 0
push ebp
push esi
call fcn.10024130
add esp, 0xc
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
jne 0x100064a5
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10c
ret
mov ebp, dword [esp + 0x120]
push 0x1004c1c8
lea edx, [esp + 0x14]
push edi
push edx
push ebp
call fcn.10034780
add esp, 0x10
test eax, eax
je 0x100064d3
mov eax, dword [esp + 0x10]
test eax, eax
je 0x100064d3
mov esi, 1
jmp 0x100064d5
xor esi, esi
push edi
call fcn.100232e0
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x10040038]
pop edi
mov dword [ebp + 0x20], eax
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
Function at 0x100072f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x90
push ebx
push ebp
mov ebp, dword [esp + 0x9c]
mov eax, 2
mov ecx, fcn.100062a0
push esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x78], eax
mov eax, dword [ebp + 0x94]
push edi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x84], ecx
push 0x13
lea ecx, [esp + 0x90]
mov esi, 0x10005c20
mov edx, 3
xor ebx, ebx
push eax
push ecx
mov dword [esp + 0x20], 0x100406b4
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], 0x100406c4
mov dword [esp + 0x30], fcn.100061d0
mov dword [esp + 0x34], 1
mov dword [esp + 0x38], 0x100406d4
mov dword [esp + 0x3c], fcn.10005e30
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], 0x100406e4
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], 0x100406f4
mov dword [esp + 0x54], 0x10006320
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], 0x10040704
mov dword [esp + 0x60], 0x10006340
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], 0x10040714
mov dword [esp + 0x6c], fcn.10006380
mov dword [esp + 0x74], 0x10040724
mov dword [esp + 0x78], fcn.10006130
mov dword [esp + 0x7c], edx
mov dword [esp + 0x80], 0x10040738
mov dword [esp + 0x84], esi
mov dword [esp + 0x8c], 0x10040750
mov dword [esp + 0x94], ebx
call dword [sym.imp.MSVCRT.dll_strncpy]
mov esi, dword [sym.imp.MSVCRT.dll_strchr]
lea edx, [esp + 0x98]
push 0x5c
push edx
call esi
mov byte [eax], bl
mov eax, dword [ebp + 0x94]
push 0x5c
push eax
call esi
add esp, 0x1c
mov dword [esp + 0x10], eax
xor esi, esi
lea edi, [esp + 0x14]
mov ecx, dword [edi]
lea edx, [esp + 0x8c]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 8
test eax, eax
je 0x10007453
inc esi
add edi, 0xc
cmp esi, 0xa
jb 0x10007425
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x90
ret
cmp esi, 0xa
jae 0x10007446
call fcn.1000c760
test eax, eax
je 0x10007482
lea eax, [esi + esi*2]
push 0x1004075c
mov ecx, dword [esp + eax*4 + 0x18]
push ecx
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
jne 0x10007482
mov eax, 1
jmp 0x10007484
xor eax, eax
push eax
mov eax, dword [esp + 0x14]
push ebx
lea edx, [esi + esi*2]
push eax
push ebp
call dword [esp + edx*4 + 0x28]
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
Function at 0x10009450
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x124
push ebx
mov eax, dword [esp + 0x12c]
push ebp
push esi
push edi
push 0
push 0x20
push 4
push 0
push 0
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x10], ebp
jne 0x1000948f
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x124
ret
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea ecx, [esi + 1]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
xor edi, edi
test ebx, ebx
je 0x100094d3
lea edx, [esp + 0x14]
push 0
push edx
lea eax, [edi + ebx]
push esi
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100094d3
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x100094ee
sub esi, eax
add edi, eax
jmp 0x100094aa
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x124
ret
push 0
push edi
push ebx
call fcn.10024130
mov ebp, eax
add esp, 0xc
test ebp, ebp
jne 0x1000951f
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x124
ret
mov edi, dword [esp + 0x138]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x30]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.MSVCRT.dll_strrchr]
push ebp
lea edx, [esp + 0x24]
push 0x18
push edx
mov byte [eax], 0
call fcn.1002ead0
add esp, 0x14
test eax, eax
je 0x10009601
push 1
call fcn.1000a800
mov ebx, eax
mov eax, dword [esp + 0x144]
mov eax, dword [eax]
lea ecx, [eax + eax*2]
shl ecx, 6
add ebx, ecx
push ebx
call fcn.10007060
lea edi, [esp + 0x38]
or ecx, 0xffffffff
xor eax, eax
mov dword [ebx + 0x1c], 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
mov edx, ecx
mov esi, edi
mov edi, dword [ebx + 0x84]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x148]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x24]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [ebx + 0x80]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x24]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14c]
push ecx
push edx
push eax
push ebx
call fcn.10008ee0
add esp, 0x1c
mov esi, eax
jmp 0x10009603
xor esi, esi
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret
Function at 0x1000aef0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x9c
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x23
xor eax, eax
lea edi, [esp + 0x1c]
mov dword [esp + 0x14], 0x94
mov dword [esp + 0x18], ebx
push 2
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0xb0]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov esi, eax
mov dword [esp + 0xc], ebx
cmp esi, ebx
jne 0x1000af3b
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x9c
ret
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea edx, [esp + 0xb4]
push edx
push 0x1000aca0
push 0xe
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
cmp dword [esp + 0x28], 1
jne 0x1000b01b
mov eax, dword [esp + 0xb4]
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceA]
and eax, 0xffff
push 0xe
push eax
push esi
call edi
cmp eax, ebx
je 0x1000b03b
mov ebp, dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
push esi
call ebp
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x14], ebx
je 0x1000b03b
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x1000b012
push 0
push 0x10
push 0x10
push 1
push eax
call dword [sym.imp.USER32.dll_LookupIconIdFromDirectoryEx]
test eax, eax
je 0x1000b012
and eax, 0xffff
push 3
push eax
push esi
call edi
mov edi, eax
test edi, edi
je 0x1000b012
push edi
push esi
call ebp
mov ebp, eax
test ebp, ebp
je 0x1000b012
push ebp
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x1000b007
push 0
push 0x10
push 0x10
push 0x30000
push 1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebx
call dword [sym.imp.USER32.dll_CreateIconFromResourceEx]
mov dword [esp + 0x10], eax
push ebp
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ebx, dword [esp + 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x1000b03b
mov ecx, dword [esp + 0xb4]
push ebx
push 0x10
push 0x10
and ecx, 0xffff
push 1
push ecx
push esi
call dword [sym.imp.USER32.dll_LoadImageA]
mov dword [esp + 0x10], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x9c
ret
Function at 0x1000b2f0
Capabilities:
Get file version info

Disassembly:
sub esp, 0x318
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x118]
push 0x104
push eax
mov dword [esp + 0x18], 0
call fcn.1000bd40
lea edi, [esp + 0x120]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x10040a70]
repne scasb al, byte es:[edi]
mov ecx, dword [0x10040a6c]
mov eax, dword [0x10040a74]
mov esi, dword [esp + 0x338]
dec edi
push esi
mov dword [edi], ecx
mov cx, word [0x10040a78]
mov dword [edi + 4], edx
mov edx, dword [esp + 0x330]
push edx
push 0x10040a7c
mov dword [edi + 8], eax
lea eax, [esp + 0x230]
push eax
mov word [edi + 0xc], cx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea ecx, [esp + 0x130]
lea edx, [esp + 0x2c]
push ecx
lea eax, [esp + 0x238]
push edx
push eax
push 0x10040a84
call fcn.1000f520
add esp, 0x28
test eax, eax
jne 0x1000b3cb
lea ecx, [esp + 0x118]
lea edx, [esp + 0x14]
push ecx
push edx
push esi
push str.FILEVERSION
call fcn.1000f520
add esp, 0x10
test eax, eax
jne 0x1000b3cb
pop edi
pop esi
add esp, 0x318
ret
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [esp + 0xc], eax
je 0x1000b42a
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x1000b42a
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LocalSize]
push eax
lea edx, [esp + 0x1c]
push 0
push edx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x1000b423
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
push eax
push ecx
push 0x10040a9c
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x1000b435
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
xor eax, eax
pop esi
add esp, 0x318
ret
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x328]
push esi
mov edx, dword [eax + 8]
mov dword [ecx], edx
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x330]
mov dword [eax], edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, 1
pop esi
add esp, 0x318
ret

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

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret
Function at 0x1000bc80
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x104
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp]
push ebx
mov ebx, dword [esp + 0x10c]
push esi
push edi
mov edi, ebx
push 0x5c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
lea edx, [esp + 0xc]
mov byte [eax], 0
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1000bce3
lea eax, [esp + 0xc]
push eax
call fcn.1000bc80
add esp, 4
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop esi
pop ebx
add esp, 0x104
ret
Function at 0x1000c7b0
Capabilities:
Get system information on windows

Disassembly:
mov eax, dword [0x1004cca4]
push esi
test eax, eax
push edi
je 0x1000c7ce
mov edi, dword [esp + 0xc]
mov ecx, 9
mov esi, 0x1004cca8
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
ret
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x1000c816
push str.GetNativeSystemInfo
push eax
call dword [0x1004c1b8]
test eax, eax
push 0x1004cca8
jne 0x1000c7fa
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
jmp 0x1000c7fc
call eax
mov edi, dword [esp + 0xc]
mov ecx, 9
mov esi, 0x1004cca8
rep movsd dword es:[edi], dword [esi]
mov dword [0x1004cca4], 1
pop edi
pop esi
ret

Function at 0x1000c820
Capabilities:
Get file version info

Disassembly:
sub esp, 0x110
mov eax, dword [esp + 0x118]
mov ecx, dword [esp + 0x114]
push edi
push eax
push ecx
lea edx, [esp + 0x18]
push str._s_smscorlib.dll
push edx
mov dword [esp + 0x1c], 0
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [esp + 4], eax
je 0x1000c8b1
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x1000c8b1
push edi
push edi
call dword [sym.imp.KERNEL32.dll_LocalSize]
push eax
lea edx, [esp + 0x18]
push 0
push edx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x1000c8aa
lea eax, [esp + 4]
lea ecx, [esp + 8]
push eax
push ecx
push 0x10040d70
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x1000c8bc
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor ax, ax
pop edi
add esp, 0x110
ret
mov eax, dword [esp + 8]
push ebx
push esi
push edi
mov esi, dword [eax + 8]
mov bx, word [eax + 8]
shr esi, 0x10
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
pop esi
and eax, 0xffff
shl eax, 8
or eax, ebx
pop ebx
pop edi
add esp, 0x110
ret
Function at 0x1000c8f0
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
sub esp, 0x34c
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
mov byte [esp + 0x254], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x255]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
mov esi, str.Microsoft.NETFramework
repne scasb al, byte es:[edi]
dec edi
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x254]
push ecx
push str._s_v_._.
push edx
movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [esp + 0x114]
lea ecx, [esp + 0x254]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov ebp, edx
mov dword [esp + 0xc], eax
test ebp, ebp
je 0x1000ca63
push ebx
mov ebx, dword [esp + 0x364]
mov edi, 0x10040d9c
lea esi, [esp + 0x144]
mov ecx, 2
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x1000ca41
mov edi, 0x10040da0
lea esi, [esp + 0x144]
mov ecx, 3
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x1000ca41
test byte [esp + 0x118], 0x10
je 0x1000ca41
lea eax, [esp + 0x144]
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.1000c820
add esp, 8
test ax, ax
je 0x1000ca41
mov edi, 0x10040da4
mov esi, ebx
mov ecx, 3
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x1000ca0e
sbb edx, edx
sbb edx, 0xffffffff
test edx, edx
jne 0x1000ca1c
cmp ax, word [esp + 0x360]
jae 0x1000ca5e
mov edi, 0x10040da8
mov esi, ebx
mov ecx, 3
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x1000ca33
sbb edx, edx
sbb edx, 0xffffffff
test edx, edx
jne 0x1000ca41
cmp ax, word [esp + 0x360]
jbe 0x1000ca5e
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x118]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov ebp, eax
test ebp, ebp
jne 0x1000c9a1
mov eax, dword [esp + 0x10]
pop ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, ebp
pop esi
pop ebp
add esp, 0x34c
ret
Function at 0x1000cc30
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
push edi
call fcn.1000cc10
mov ebx, eax
mov eax, dword [esp + 0x124]
xor ebp, ebp
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea esi, [eax + eax*4]
mov eax, dword [esp + 0x128]
shl esi, 3
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea edi, [eax + eax*4]
shl edi, 3
call fcn.1000cc10
sub eax, ebx
cmp eax, esi
jae 0x1000cd2d
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1f4
call ebp
mov eax, dword [esp + 0x12c]
mov dword [esp + 0x10], 0x104
dec eax
je 0x1000ccb9
dec eax
jne 0x1000cce1
mov ecx, dword [esp + 0x120]
mov eax, dword [esp + 0x130]
inc ecx
push eax
push ecx
call fcn.1001cda0
add esp, 8
test eax, eax
jne 0x1000ccee
jmp 0x1000cce1
mov edx, dword [esp + 0x130]
lea eax, [esp + 0x10]
push edx
mov edx, dword [esp + 0x124]
push eax
lea ecx, [esp + 0x1c]
push 0
push ecx
push edx
call fcn.1001cde0
add esp, 0x14
test eax, eax
jne 0x1000ccee
call fcn.1000cc10
sub eax, ebx
cmp eax, esi
jae 0x1000cd3a
jmp 0x1000cc7e
mov eax, dword [esp + 0x128]
test eax, eax
je 0x1000cd1d
call fcn.1000cc10
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
call ebx
sub eax, esi
cmp eax, edi
jae 0x1000cd1d
push 0x1f4
call ebp
call ebx
sub eax, esi
cmp eax, edi
jb 0x1000cd0e
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x108
ret
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x108
ret
Function at 0x1000d860
Capabilities:
Check os version
Create process on windows

Disassembly:
sub esp, 0x520
push esi
push edi
xor esi, esi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x48]
mov dword [esp + 0x40], 0x44
mov dword [esp + 0x44], esi
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x118]
mov dword [esp + 0x14], eax
push 0x104
push ecx
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], eax
call fcn.1000bd40
add esp, 8
call fcn.1000c760
test eax, eax
je 0x1000d944
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x20]
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], esi
push edx
rep stosd dword es:[edi], eax
call fcn.1000c7b0
mov eax, dword [esp + 0x20]
add esp, 4
and eax, 0xffff
cmp eax, 6
je 0x1000d920
cmp eax, 9
je 0x1000d8f9
pop edi
xor eax, eax
pop esi
add esp, 0x520
ret
mov eax, dword [esp + 0x530]
mov ecx, dword [eax + 0x90]
mov edx, dword [eax + 0x80]
push ecx
push edx
lea eax, [esp + 0x224]
push str.LibifX64.exe_eFlashRegister__s__s
push eax
jmp 0x1000d9a9
mov eax, dword [esp + 0x530]
mov ecx, dword [eax + 0x90]
mov edx, dword [eax + 0x80]
push ecx
push edx
lea eax, [esp + 0x224]
push str.LibifI64.exe_eFlashRegister__s__s
push eax
jmp 0x1000d9a9
mov ecx, 0x23
xor eax, eax
lea edi, [esp + 0x8c]
mov dword [esp + 0x84], 0x94
mov dword [esp + 0x88], esi
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x84]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x88]
cmp eax, 6
mov eax, dword [esp + 0x530]
mov edx, dword [eax + 0x90]
mov eax, dword [eax + 0x80]
push edx
push eax
jb 0x1000d99c
push str.Libif32.exe_eFlashRegister__s__s
jmp 0x1000d9a1
push str.rundll32.exe_Flash32.dll_eFlashRegister__s__s
lea ecx, [esp + 0x228]
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea edx, [esp + 0xc]
lea eax, [esp + 0x40]
lea ecx, [esp + 0x118]
push edx
push eax
push ecx
push esi
push 0x200
push esi
push esi
lea edx, [esp + 0x238]
push esi
push edx
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x1000da0e
mov eax, dword [esp + 0xc]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0xc]
lea ecx, [esp + 8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x1000da0e
cmp dword [esp + 8], esi
je 0x1000da0e
mov edi, 1
jmp 0x1000da10
xor edi, edi
mov eax, dword [esp + 0xc]
cmp eax, esi
je 0x1000da28
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
mov eax, edi
pop edi
pop esi
add esp, 0x520
ret
Function at 0x1000dc10
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x104
lea eax, [esp]
push edi
push 0x104
push eax
call fcn.1000bd40
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
mov ecx, dword [0x10040fe0]
mov edx, dword [0x10040fe4]
mov eax, dword [0x10040fe8]
dec edi
mov dword [edi], ecx
mov cx, word [0x10040fec]
mov dword [edi + 4], edx
lea edx, [esp + 4]
push edx
mov edx, dword [esp + 0x110]
mov dword [edi + 8], eax
mov eax, dword [esp + 0x118]
push 0x104
push eax
mov word [edi + 0xc], cx
mov ecx, dword [esp + 0x11c]
push 0x1004ccd0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
xor ecx, ecx
pop edi
cmp ecx, eax
sbb eax, eax
neg eax
add esp, 0x104
ret

Function at 0x1000dca0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x104
lea eax, [esp]
push edi
push 0x104
push eax
call fcn.1000bd40
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
mov ecx, dword [0x10040ff0]
mov edx, dword [0x10040ff4]
mov eax, dword [0x10040ff8]
dec edi
mov dword [edi], ecx
mov cx, word [0x10040ffc]
mov dword [edi + 4], edx
lea edx, [esp + 4]
push edx
push 0xffffffffffffffff
mov dword [edi + 8], eax
mov eax, dword [esp + 0x118]
push eax
mov word [edi + 0xc], cx
mov ecx, dword [esp + 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edx, dword [esp + 0x114]
xor ecx, ecx
cmp eax, 0xffffffff
pop edi
setne cl
mov dword [edx], eax
mov eax, ecx
add esp, 0x104
ret
Function at 0x1000f380
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
test edi, edi
je 0x1000f431
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x1000f431
lea eax, [esp + 0xc]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [esp + 0x14], eax
jbe 0x1000f427
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
test esi, esi
jne 0x1000f3c8
pop edi
pop esi
mov eax, 0x8007000e
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0x14]
push esi
push ecx
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x1000f41e
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push eax
push 0x100411e4
push esi
mov dword [esp + 0x28], 0
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x1000f41e
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1000f41e
mov ecx, dword [eax + 8]
push esi
mov dword [ebx + 4], ecx
mov edx, dword [eax + 0xc]
mov dword [ebx], edx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
pop esi
mov eax, 0x80004005
pop ebx
pop ecx
ret
pop edi
pop esi
mov eax, 0x80070057
pop ebx
pop ecx
ret