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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
push edi
xor edi, edi
lea eax, [ebp + 0x13]
push edi
push eax
lea ecx, [ebp - 0x2c]
push dword [ebp + 0x10]
mov dword [ebp - 0x2c], 0x10024398
mov dword [ebp - 0xc], 0x10024390
call fcn.10002642
lea eax, [ebp - 0x60]
lea ecx, [ebp - 0x2c]
push eax
call fcn.10002bda
mov ecx, eax
add eax, 4
neg ecx
sbb ecx, ecx
push str..dll
and ecx, eax
call fcn.10002b29
test eax, eax
je 0x10001089
lea eax, [ebp - 0x94]
lea ecx, [ebp - 0x2c]
push eax
call fcn.10002bda
mov ecx, eax
add eax, 4
neg ecx
sbb ecx, ecx
push 0x1002be58
and ecx, eax
push ecx
call fcn.10002aa2
pop ecx
mov bl, al
pop ecx
lea ecx, [ebp - 0x94]
call fcn.1000316f
test bl, bl
je 0x1000108b
mov bl, 1
lea ecx, [ebp - 0x60]
call fcn.1000316f
test bl, bl
je 0x100010b3
push dword [ebp + 0x14]
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1000129c
add esp, 0x10
mov esi, eax
jmp 0x100011e7
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
lea ecx, [ebp - 0x2c]
call fcn.100027da
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100010df
push eax
jmp 0x100011df
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x100011f3
cmp dword [ebp - 4], 0
jne 0x100011f3
push edi
call fcn.100170d6
mov ebx, eax
pop ecx
test ebx, ebx
je 0x100011da
lea eax, [ebp - 4]
push 0
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100011d3
cmp dword [ebp - 4], 0
je 0x100011d3
lea eax, [ebp - 0x60]
lea ecx, [ebp - 0x2c]
push eax
call fcn.10002bda
mov ecx, eax
add eax, 4
neg ecx
sbb ecx, ecx
push str..bmp
and ecx, eax
push ecx
call fcn.10002aa2
pop ecx
mov byte [ebp + 0x13], al
pop ecx
lea ecx, [ebp - 0x60]
call fcn.1000316f
cmp byte [ebp + 0x13], 0
je 0x10001174
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call sym.IGDI.dll_ProcessBmpFile
jmp 0x100011b8
lea eax, [ebp - 0x60]
lea ecx, [ebp - 0x2c]
push eax
call fcn.10002bda
mov ecx, eax
add eax, 4
neg ecx
sbb ecx, ecx
push str..wmf
and ecx, eax
push ecx
call fcn.10002aa2
pop ecx
mov byte [ebp + 0x13], al
pop ecx
lea ecx, [ebp - 0x60]
call fcn.1000316f
cmp byte [ebp + 0x13], 0
je 0x100011d3
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1000123c
add esp, 0xc
test eax, eax
je 0x100011d3
push ebx
call fcn.10016cc4
test esi, esi
pop ecx
je 0x100011ce
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop esi
jmp 0x100011e7
push ebx
call fcn.10016cc4
pop ecx
test esi, esi
je 0x100011e5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
lea ecx, [ebp - 0x2c]
call fcn.1000316f
mov eax, esi
jmp 0x10001208
test esi, esi
je 0x100011fe
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x2c]
call fcn.1000316f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x100012ec
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movsx eax, word [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
and dword [esi + 0x18], 0
mov dword [esi + 0x20], eax
mov dword [esi + 0x1c], 1
mov eax, dword [edi + 0x10]
mov dword [esi + 0x30], eax
push 2
movzx eax, word [ebp + 0x10]
push eax
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x10001334
push eax
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp + 0x10], eax
jne 0x10001338
xor eax, eax
jmp 0x10001353
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push esi
push edi
call sym.IGDI.dll_BmpCreateBitmap
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_FreeResource]
push 1
pop eax
pop edi
pop esi
pop ebp
ret 0x10
Function at 0x1000248b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x100024bf
xor eax, eax
jmp 0x1000263d
push esi
push edi
lea ecx, [ebp + 8]
push ebx
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ecx
push 4
lea ecx, [ebp - 0x114]
pop edi
push edi
push ecx
push eax
call esi
test eax, eax
je 0x10002630
cmp dword [ebp + 8], edi
jb 0x10002630
lea eax, [ebp - 0x114]
push str.RIFF
push eax
mov byte [ebp - 0x110], bl
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x10002630
lea eax, [ebp + 8]
push ebx
push eax
lea eax, [ebp - 0x114]
push 0xc
push eax
push dword [ebp - 4]
call esi
test eax, eax
je 0x10002630
cmp dword [ebp + 8], 0xc
jb 0x10002630
lea eax, [ebp + 8]
push ebx
push eax
lea eax, [ebp - 0x10]
push edi
push eax
push dword [ebp - 4]
call esi
test eax, eax
je 0x10002630
cmp dword [ebp + 8], edi
jb 0x10002630
push 0x408
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
lea eax, [ebp + 8]
push ebx
push eax
push 4
push edi
push dword [ebp - 4]
call esi
test eax, eax
je 0x10002628
cmp dword [ebp + 8], 4
jb 0x10002628
cmp word [edi + 2], 0x100
jne 0x100025b6
lea eax, [ebp + 8]
push ebx
push eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffffc
push eax
lea eax, [edi + 4]
push eax
push dword [ebp - 4]
call esi
test eax, eax
je 0x10002628
mov eax, dword [ebp - 0x10]
add eax, 0xfffffffc
cmp dword [ebp + 8], eax
jae 0x1000261f
jmp 0x10002628
mov eax, dword [ebp - 0x10]
lea ecx, [eax - 4]
mov eax, 0x3b0
cmp ecx, eax
mov dword [ebp - 8], eax
ja 0x100025cb
mov dword [ebp - 8], ecx
lea eax, [ebp + 8]
push ebx
push eax
lea eax, [edi + 0x2c]
push dword [ebp - 8]
push eax
push dword [ebp - 4]
call esi
test eax, eax
je 0x10002628
mov eax, dword [ebp - 8]
cmp dword [ebp + 8], eax
jb 0x10002628
push ebx
call dword [sym.imp.USER32.dll_GetDC]
mov esi, dword [sym.imp.GDI32.dll_GetSystemPaletteEntries]
lea ecx, [edi + 4]
push ecx
push 0xa
push ebx
push eax
mov dword [ebp - 8], eax
call esi
lea eax, [edi + 0x3dc]
push eax
push 0xa
push 0xf6
push dword [ebp - 8]
call esi
push dword [ebp - 8]
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
push edi
call dword [sym.imp.GDI32.dll_CreatePalette]
mov ebx, eax
lea ecx, [ebp - 0xc]
call fcn.10002a42
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret 4
Function at 0x100035d8
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov eax, 0x10021fb0
call fcn.100174bc
sub esp, 0x10
or dword [ebp - 0x14], 0xffffffff
push ebx
push esi
push edi
mov dword [ebp - 0x1c], ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp dword [ebp - 0x14], esi
je 0x10003629
lea ecx, [ebp - 0x14]
call fcn.10003775
mov dword [ebp - 0x14], esi
cmp dword [ebp - 0x14], 0xffffffff
jne 0x1000365e
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.1000374b
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.10003760
cmp dword [ebp - 0x14], 0xffffffff
je 0x100036e2
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100036e2
push ebx
push ebx
push ebx
push 2
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
cmp dword [ebp - 0x10], edi
je 0x10003687
cmp dword [ebp - 0x10], ebx
je 0x10003684
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], edi
cmp dword [ebp - 0x10], ebx
jne 0x1000369f
cmp dword [ebp - 0x18], ebx
je 0x100036d7
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0x18], ebx
jmp 0x100036ca
push ebx
push ebx
push ebx
push 4
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp dword [ebp - 0x18], edi
je 0x100036c5
cmp dword [ebp - 0x18], ebx
je 0x100036c2
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0x18], edi
cmp dword [ebp - 0x18], ebx
jne 0x100036e6
cmp dword [ebp - 0x10], ebx
je 0x100036d7
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x14], 0xffffffff
je 0x100036e2
push dword [ebp - 0x14]
call esi
xor al, al
jmp 0x1000372b
push dword [ebp + 0xc]
mov edi, dword [ebp - 0x18]
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 0x1c]
push eax
push edi
call fcn.100033de
cmp dword [ebp - 0x18], ebx
je 0x10003711
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x10], ebx
je 0x1000371e
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x14], 0xffffffff
je 0x10003729
push dword [ebp - 0x14]
call esi
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x10008197
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
and byte [ebp - 0x6c], 0
push ebx
push esi
push edi
push 0x13
xor eax, eax
pop ecx
lea edi, [ebp - 0x6b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push 2
push eax
push dword [esi]
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
add dword [ebp - 0x1c], 0xa
sub dword [ebp - 0x14], 0xa
lea eax, [ebp - 0x6c]
push 0x50
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp byte [ebp - 0x6c], 0
je 0x1000830d
push 0x1002be5c
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ebx, dword [sym.imp.USER32.dll_GetWindowLongA]
push 0xfffffffffffffff0
push edi
call ebx
push 0xffffffffffffffec
mov edi, eax
push dword [ebp + 8]
call ebx
xor ebx, ebx
mov dword [ebp + 0xc], eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
push 0xffffffffffffffff
push dword [esi]
shr edi, 0x10
push eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
and edi, 0xff7faffc
or edi, 0x50000000
push eax
lea eax, [ebp - 0x6c]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push edi
push eax
push str.STATIC
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov edi, eax
cmp edi, ebx
je 0x1000830d
push ebx
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 0x31
push dword [esi]
call ebx
push 1
push eax
push 0x30
push edi
mov dword [ebp - 4], eax
call ebx
push 0x100080fa
push 0xfffffffffffffffc
push edi
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov ebx, dword [sym.imp.USER32.dll_SetPropA]
push esi
push str.PROP_STAT_PSKIN
push edi
mov dword [ebp + 0xc], eax
call ebx
push dword [ebp + 0xc]
push str.PROP_STAT_OLDPROC
push edi
call ebx
push edi
call dword [sym.imp.USER32.dll_GetDC]
and dword [ebp - 0xc], 0
and dword [ebp - 8], 0
mov ebx, eax
test ebx, ebx
je 0x100082e8
push dword [ebp - 4]
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x6c]
push eax
push ebx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
push ebx
push edi
call dword [sym.imp.USER32.dll_ReleaseDC]
push 2
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [esi + 0x14c]
push esi
push edi
call fcn.10008312
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10009a87
Capabilities:
Delete file
Get common file path

Disassembly:
mov eax, 0x10022786
call fcn.100174bc
sub esp, 0x224
push ebx
push esi
lea eax, [ebp - 0x230]
push edi
xor ebx, ebx
push eax
push 0x104
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x10009acb
lea ecx, [ebp - 0x58]
call fcn.10009463
lea eax, [ebp - 0x58]
push 0x10025bc0
push eax
call fcn.10017c3f
push 0x24
xor eax, eax
pop ecx
lea edi, [ebp - 0x128]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x12c], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
mov edi, 0x10024398
mov esi, 0x10024390
je 0x10009c0a
cmp dword [ebp - 0x11c], 1
jne 0x10009c0a
lea eax, [ebp - 0xe]
push ebx
push eax
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x1c], esi
call fcn.10002642
push str.123.tmp
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 1
call fcn.1000ac84
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
lea ecx, [ebp - 0x3c]
call fcn.100027da
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x10009be9
lea eax, [ebp - 0x64]
push ebx
push eax
call fcn.10009c6b
pop ecx
pop ecx
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 2
push ecx
mov ecx, eax
call fcn.10002e0a
push dword [0x100243b4]
mov ecx, eax
add eax, 4
mov byte [ebp - 4], 3
neg ecx
sbb ecx, ecx
push ebx
and ecx, eax
push ecx
lea ecx, [ebp - 0x38]
call fcn.10003091
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 2
call fcn.1000316f
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.1000316f
push 0x100283f0
lea ecx, [ebp - 0x3c]
call fcn.1000ac84
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x3c]
push ebx
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.10003224
mov dword [ebp - 0x14], 1
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x3c]
jmp 0x10009c54
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x3c]
call fcn.100027da
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], bl
call fcn.1000316f
lea eax, [ebp - 0xd]
push ebx
push eax
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x44], esi
call fcn.10002642
push 0x100283ec
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], 4
call fcn.1000ac84
mov ecx, dword [ebp + 8]
push ebx
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.10003224
mov dword [ebp - 0x14], 1
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x64]
call fcn.1000316f
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x10009c6b
Capabilities:
Get common file path

Disassembly:
mov eax, 0x100227b7
call fcn.100174bc
sub esp, 0x15c
and dword [ebp - 0x14], 0
push ebx
push esi
push edi
push 1
mov esi, 0x104
pop ebx
cmp dword [ebp + 0xc], ebx
jne 0x10009d16
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x10009d16
push str.GetSystemWindowsDirectoryA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x1002840c], eax
je 0x10009d16
lea ecx, [ebp - 0x168]
push esi
push ecx
call eax
test eax, eax
je 0x10009d16
lea eax, [ebp + 0xf]
push 0
push eax
lea eax, [ebp - 0x168]
mov edi, 0x10024398
mov esi, 0x10024390
push eax
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x44], esi
call fcn.10002642
push 0x100283ec
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], ebx
call fcn.1000ac84
mov ecx, dword [ebp + 8]
push 0
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.10003224
mov dword [ebp - 0x14], ebx
and byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
jmp 0x10009d91
lea eax, [ebp - 0x168]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x10009d3e
lea ecx, [ebp - 0x30]
call fcn.10009463
lea eax, [ebp - 0x30]
push 0x10025bc0
push eax
call fcn.10017c3f
lea eax, [ebp - 0xd]
push 0
push eax
lea eax, [ebp - 0x168]
mov edi, 0x10024398
mov esi, 0x10024390
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x1c], esi
call fcn.10002642
push 0x100283ec
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 2
call fcn.1000ac84
mov ecx, dword [ebp + 8]
push 0
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.10003224
and byte [ebp - 4], 0
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x3c]
call fcn.1000316f
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x1000a372
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x10022840
call fcn.100174bc
sub esp, 0x104
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea edi, [ebp - 0x48]
xor ebx, ebx
neg edi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x44]
sbb edi, edi
mov dword [ebp - 0x14], ebx
and edi, eax
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x110]
push eax
call fcn.1000a83f
push 4
lea ecx, [ebp - 0xc0]
pop esi
mov dword [ebp - 4], ebx
push esi
push ebx
push ecx
mov ecx, eax
call fcn.1000a52a
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x98]
push eax
mov byte [ebp - 4], 1
call fcn.1000a6cb
push dword [ebp - 0x20]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0xe8]
push eax
call fcn.1000dd4c
add esp, 0xc
push dword [0x100243b4]
mov ecx, eax
add eax, esi
mov byte [ebp - 4], 3
neg ecx
sbb ecx, ecx
push ebx
and ecx, eax
mov eax, dword [ebp - 0x18]
push ecx
lea ecx, [eax + 4]
call fcn.10003091
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 2
call fcn.1000316f
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 1
call fcn.1000316f
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], bl
call fcn.1000316f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x110]
call fcn.1000316f
lea eax, [ebp - 0x19]
push ebx
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x48], 0x10024398
mov dword [ebp - 0x28], 0x10024390
call fcn.10003003
lea eax, [ebp - 0x54]
push 0x104
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], esi
call fcn.10013002
mov esi, eax
mov ecx, dword [esi]
mov byte [ebp - 4], 5
call fcn.100027da
movzx ecx, word [ebp - 0x10]
push ecx
push str._hx.rra
push eax
mov dword [esi + 8], eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x54]
call fcn.1000891e
push dword [0x100243b4]
mov eax, dword [ebp - 0x18]
push ebx
push edi
lea ecx, [eax + 4]
call fcn.1000a5e1
mov ecx, dword [ebp - 0x18]
call fcn.100027da
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1000a50d
inc dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.1000316f
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0xffff
jl 0x1000a3a2
push 0x50
lea ecx, [ebp - 0x70]
call fcn.1000a673
lea eax, [ebp - 0x70]
push 0x10025bc0
push eax
call fcn.10017c3f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.1000316f
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x1000dec6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
cmp dword [ebp + 0xc], 0xffffffff
push esi
mov esi, ecx
jne 0x1000dedc
mov dword [ebp + 0xc], 1
lea eax, [ebp + 0xc]
push 0
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1000df11
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.10004fe6
lea eax, [ebp - 0x48]
push 0x100254c0
push eax
call fcn.10017c3f
mov eax, dword [ebp + 0xc]
pop esi
leave
ret 8
Function at 0x10011f18
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x10022d07
call fcn.100174bc
sub esp, 0x138
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
pop ecx
and byte [ebp - 0x144], bl
xor eax, eax
lea edi, [ebp - 0x143]
mov dword [ebp - 0x14], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x10], ebx
push 1
lea eax, [ebp - 0x10]
pop esi
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x10011ffa
cmp dword [ebp + 0xc], esi
mov dword [ebp - 0x18], 0x104
mov eax, str.CommonFilesDir
je 0x10011f81
mov eax, str.ProgramFilesDir
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x144]
push ecx
push ebx
push ebx
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp + 0xf]
push ebx
push eax
lea eax, [ebp - 0x144]
mov edi, 0x10024398
mov esi, 0x10024390
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x20], esi
call fcn.10002642
push 0x100283ec
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.1000ac84
lea ecx, [ebp - 0x40]
call fcn.10011b5d
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x40]
push 0
push eax
mov ecx, ebx
mov dword [ebx], edi
mov dword [ebx + 0x20], esi
call fcn.10003224
mov dword [ebp - 0x14], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
jmp 0x1001204f
lea eax, [ebp + 0xf]
push ebx
push eax
lea eax, [ebp - 0x144]
mov edi, 0x10024398
mov esi, 0x10024390
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x20], esi
call fcn.10002642
push 0x100283ec
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.1000ac84
mov ebx, dword [ebp + 8]
push 0
push eax
mov ecx, ebx
mov dword [ebx], edi
mov dword [ebx + 0x20], esi
call fcn.10003224
mov dword [ebp - 0x14], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.1000316f
cmp dword [ebp - 0x10], 0
je 0x10012063
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x10012217
Capabilities:
Write file on windows

Disassembly:
push 0x4000
push dword [esp + 8]
push dword [0x1002bfa0]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
jmp fcn.10012231
Function at 0x10012231
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x10022d30
call fcn.100174bc
sub esp, 0x34
push ebx
push esi
push dword [0x1002bf9c]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [ebp - 0x40]
call fcn.10012372
push 4
xor ebx, ebx
sub esp, 0x1c
mov ecx, 0x1002bf74
mov esi, esp
mov dword [ebp - 0x14], esp
push 1
mov dword [ebp - 4], ebx
call fcn.10012731
push eax
mov ecx, esi
call fcn.10012320
lea ecx, [ebp - 0x40]
call fcn.100123e2
cmp al, bl
je 0x100122e4
push dword [0x1002bfa0]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 2
push ebx
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x10], eax
call fcn.100124e3
lea eax, [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
push eax
lea eax, [ebp - 0x10]
push 4
push eax
push dword [ebp - 0x3c]
call esi
push 0x21
lea ecx, [ebp - 0x14]
push dword [ebp - 0x10]
mov dword [ebp - 0x14], ebx
push dword [0x1002bfa0]
call fcn.10016c51
mov eax, dword [0x1002bfa0]
lea ecx, [ebp - 0x18]
push ebx
push ecx
push dword [ebp - 0x10]
push eax
push dword [ebp - 0x3c]
call esi
lea ecx, [ebp - 0x40]
call fcn.10012511
push dword [0x1002bf9c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x40], 0x100244f0
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 1
call fcn.10012511
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.1001288e
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret