joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002c29
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x100923c]
push ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x110]
push eax
push 0x2001f
xor ebx, ebx
push ebx
push 0x10012ac
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1002d98
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
push ebx
push ebx
mov edi, 0x10016d0
push edi
push dword [ebp - 0x110]
mov dword [ebp - 0x10c], ebx
call esi
test eax, eax
je 0x1002d8a
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
push ebx
push ebx
push edi
push dword [ebp - 0x110]
mov dword [ebp - 0x10c], 0x104
call esi
test eax, eax
jne 0x1002d8a
cmp byte [ebp - 0x108], bl
jne 0x1002d8a
push ebx
lea eax, [ebp - 0x114]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push 0x1001358
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1002d8a
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
push ebx
push ebx
push 0x10013c0
push dword [ebp - 0x114]
mov dword [ebp - 0x10c], 0x104
call esi
test eax, eax
jne 0x1002d35
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.USER32.dll_CharUpperA]
cmp byte [eax], 0x59
je 0x1002d7e
push edi
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push 0x100177c
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x108]
push eax
push 1
push ebx
push 0x10013c0
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.01005857
leave
ret
Function at 0x1002da8
Capabilities:
Check if file exists
Get common file path
Get file attributes
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x324
mov eax, dword [0x100923c]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
push 0x40
pop ecx
xor eax, eax
xor ebx, ebx
mov byte [ebp - 0x20c], bl
lea edi, [ebp - 0x20b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x318], ebx
mov dword [ebp - 0x314], 1
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
call edi
push 0x10017f0
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.01005cac
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp - 0x324], eax
je 0x1002f6f
push 0x10017d8
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov byte [ebp - 0x108], bl
je 0x1002f63
push ebx
push 6
lea ecx, [ebp - 0x108]
push ecx
push ebx
call eax
test eax, eax
je 0x1002f63
lea eax, [ebp - 0x31c]
push eax
push 0x20019
push ebx
push 0x10017ac
push 0x80000002
mov dword [ebp - 0x320], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1002ed1
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x310]
push eax
push ebx
push ebx
push 0x1001798
push dword [ebp - 0x31c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1002ebd
mov dword [ebp - 0x314], ebx
push dword [ebp - 0x31c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x314], ebx
je 0x1002f2f
push 0x100178c
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01005cac
push 2
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
cmp eax, ebx
mov dword [ebp - 0x314], eax
je 0x1002f2f
push esi
lea ecx, [ebp - 0x310]
push ecx
push 0x1200
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
jne 0x1002f23
push 0x1001780
lea eax, [ebp - 0x310]
push eax
call edi
push dword [ebp - 0x314]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x310]
push eax
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.01005cac
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1002f63
test al, 0x10
je 0x1002f63
mov dword [ebp - 0x318], 1
push dword [ebp - 0x324]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x318]
pop edi
pop esi
pop ebx
call fcn.01005857
leave
ret
Function at 0x1002f87
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
xor esi, esi
push esi
push 4
push esi
push esi
push esi
push 0x1001818
push 0x80000001
call edi
cmp eax, esi
jne 0x1003029
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 3
push esi
push esi
push esi
push 0x1001808
push dword [ebp - 0xc]
call edi
push dword [ebp - 0xc]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
call edi
cmp ebx, esi
jne 0x1003026
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
push eax
push esi
push esi
mov ebx, 0x10017fc
push ebx
push dword [ebp - 8]
mov dword [ebp - 0x14], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1003008
mov dword [ebp - 4], esi
or byte [ebp - 2], 0x10
push 4
lea eax, [ebp - 4]
push eax
push 4
push esi
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 8]
mov ebx, eax
call edi
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret

Function at 0x100308a
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp dword [eax + 0x10], 2
jne 0x1003129
mov ecx, dword [eax + 4]
cmp ecx, 5
jbe 0x10030ad
inc ebx
jmp 0x1003129
jne 0x1003129
mov ecx, dword [eax + 8]
push edi
xor edi, edi
inc edi
cmp ecx, edi
jbe 0x10030be
mov ebx, edi
jmp 0x1003128
jne 0x1003128
mov eax, dword [eax + 0xc]
mov ecx, 0xa28
cmp eax, ecx
ja 0x10030ba
jne 0x1003128
lea eax, [ebp + 8]
push eax
push edi
push ebx
push 0x10018f4
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1003128
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x10018e8
push dword [ebp + 8]
mov dword [ebp - 4], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100311f
cmp dword [ebp - 8], 4
jne 0x100311f
cmp dword [ebp - 0xc], 0x100
jb 0x100311f
mov ebx, edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x1003326
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x100923c]
push esi
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x210]
push eax
push 0x2001f
xor esi, esi
push esi
push 0x100150c
push 0x80000001
mov dword [ebp - 0x214], esi
xor edi, edi
mov dword [ebp - 0x21c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1003463
cmp dword [ebp - 0x21c], esi
jne 0x1003457
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x214]
mov dword [ebp - 0x218], 0x104
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, esi
mov dword [ebp - 0x21c], eax
jne 0x100344f
lea eax, [ebp - 0x220]
push eax
push 0x20019
push esi
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1003430
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push esi
push 0x1001544
push dword [ebp - 0x220]
mov dword [ebp - 0x218], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1003424
push 0x1001578
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov edi, eax
neg edi
sbb edi, edi
inc edi
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
je 0x1003449
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x100344f
inc dword [ebp - 0x214]
cmp edi, esi
je 0x1003370
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01005857
leave
ret
Function at 0x10040f2
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x100923c]
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x120], 0x3e9
inc ebx
call fcn.01003326
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
xor esi, esi
push esi
lea eax, [ebp - 0x124]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
push 0x100150c
push 0x80000001
call edi
test eax, eax
jne 0x1004275
push dword [ebp - 0x120]
lea eax, [ebp - 0x14]
push 0x1001a9c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x11c]
push eax
push 0x20019
push esi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1004194
push dword [ebp - 0x11c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x120]
jmp 0x1004196
xor ebx, ebx
cmp ebx, esi
jne 0x1004147
push esi
lea eax, [ebp - 0x11c]
push eax
push esi
push 0x20006
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x124]
call edi
test eax, eax
jne 0x1004269
push 0x104
lea eax, [ebp - 0x118]
push eax
push 0xf
push dword [0x100924c]
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
jne 0x10041ef
push 0x1001550
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x118]
push eax
call edi
inc eax
push eax
lea eax, [ebp - 0x118]
push eax
push 1
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0x1001564
push dword [ebp - 0x11c]
call esi
mov ebx, 0x1001578
push ebx
call edi
inc eax
push eax
push ebx
push 1
push 0
push 0x1001544
push dword [ebp - 0x11c]
call esi
push 4
lea eax, [ebp - 0x120]
push eax
push 4
push 0
push 0x1001570
push dword [ebp - 0x11c]
mov dword [ebp - 0x120], 0x50000
call esi
push dword [ebp - 0x11c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01005857
leave
ret
Function at 0x1004939
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100923c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x100495e
cmp byte [eax], bl
je 0x100495e
xor eax, eax
jmp 0x1004961
xor eax, eax
inc eax
push eax
call fcn.010043a2
cmp dword [0x1009260], ebx
je 0x10049ad
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x1001bf4
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.01005cac
push 0xa
push ebx
push 0x1001bdc
lea eax, [ebp - 0x108]
push eax
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop esi
mov ecx, dword [ebp - 4]
xor eax, eax
pop ebx
call fcn.01005857
leave
ret 0x10

Function at 0x10049c1
Capabilities:
Accept command line arguments
Check os version
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xdc
mov eax, dword [0x100923c]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor ebx, ebx
push ebx
mov esi, eax
call edi
push ebx
mov dword [0x100924c], eax
call dword [sym.imp.ole32.dll_OleInitialize]
test eax, eax
jge 0x1004a0b
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor eax, eax
pop ebx
call fcn.01005857
leave
ret 0x10
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x1004a50
xor eax, eax
inc eax
cmp dword [ebp - 0x94], 5
mov dword [0x1009250], eax
jb 0x1004a6b
cmp dword [ebp - 0x90], eax
mov dword [0x1009254], eax
jb 0x1004a6b
mov dword [0x1009258], eax
jmp 0x1004a6b
cmp dword [ebp - 0x88], 1
jne 0x1004a6b
cmp dword [ebp - 0x90], ebx
jne 0x1004a6b
mov dword [0x100925c], 1
lea eax, [ebp - 0x98]
push eax
call fcn.0100308a
push 0x8001
mov dword [0x1009260], eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov al, byte [esi]
cmp al, 0x22
jne 0x1004a9f
inc esi
mov al, byte [esi]
cmp al, bl
je 0x1004a98
cmp al, 0x22
jne 0x1004a8d
cmp byte [esi], 0x22
jne 0x1004ab0
jmp 0x1004aaf
cmp al, 0x20
jle 0x1004ab0
inc esi
cmp byte [esi], 0x20
jg 0x1004aa3
jmp 0x1004ab0
cmp al, 0x20
jg 0x1004ab6
inc esi
mov al, byte [esi]
cmp al, bl
jne 0x1004aab
lea eax, [ebp - 0xdc]
push eax
mov dword [ebp - 0xb0], ebx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0xb0], 1
je 0x1004adb
movzx eax, word [ebp - 0xac]
jmp 0x1004ade
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.01004939
call dword [sym.imp.ole32.dll_OleUninitialize]
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x1004afd
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
push edi
mov edi, dword [ebp + 0x18]
test edi, edi
je 0x1004bac
mov eax, dword [ebx]
mov dword [ebp + 0x1c], eax
lea eax, [ebp + 0x1c]
push eax
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov dword [ebp - 8], eax
jne 0x1004c34
cmp dword [ebp - 4], 1
jne 0x1004b57
mov eax, dword [ebp + 0x1c]
cmp eax, dword [ebx]
jae 0x1004c34
mov byte [eax + edi], 0
jmp 0x1004c34
cmp dword [ebp - 4], 2
jne 0x1004c34
push dword [ebx]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x1004be9
push dword [ebx]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
mov dword [ebp + 0x1c], eax
jbe 0x1004ba0
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov dword [ebp + 0x1c], eax
je 0x1004ba0
mov ecx, dword [ebx]
cmp eax, ecx
ja 0x1004ba0
push ecx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
jmp 0x1004ba9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
push esi
jmp 0x1004c27
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
and dword [ebp + 0x1c], 0
lea eax, [ebp + 0x1c]
push eax
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
test eax, eax
mov dword [ebp - 8], eax
jne 0x1004c34
cmp dword [ebp - 4], 2
jne 0x1004c34
push dword [ebp + 0x1c]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x1004bee
push 0xe
pop eax
jmp 0x1004c4c
lea eax, [ebp + 0x1c]
push eax
push edi
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
test eax, eax
mov dword [ebp - 8], eax
jne 0x1004c26
push 1
lea eax, [ebp + 0x1b]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
mov dword [ebp + 0x1c], eax
jbe 0x1004c26
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov dword [ebp + 0x1c], eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 4], 1
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x1004c40
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
test ebx, ebx
je 0x1004c49
mov eax, dword [ebp + 0x1c]
mov dword [ebx], eax
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x1004e0d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1004e74
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0x14], eax
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 8]
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0x18]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push dword [ebp - 4]
je 0x1004e60
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1004e74
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0x14], 0
je 0x1004e74
xor eax, eax
inc eax
cmp dword [ebp + 0x10], eax
je 0x1004e76
xor eax, eax
leave
ret 0x14

Function at 0x1004ee2
Capabilities:
Create directory
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x100923c]
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp esi, edi
mov dword [ebp - 4], eax
je 0x1004f58
push 0x1001ccc
push esi
call fcn.0100799d
cmp eax, edi
je 0x1004f58
sub eax, esi
cmp eax, 0x64
jle 0x1004f16
push 0x63
pop eax
inc eax
push eax
push esi
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x68]
push eax
call fcn.01004e7f
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [ebp - 0x68]
push eax
call esi
test eax, eax
jne 0x1004f55
push edi
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x1004f58
lea eax, [ebp - 0x68]
push eax
call esi
test eax, eax
je 0x1004f58
xor edi, edi
inc edi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
call fcn.01005857
leave
ret 4

Function at 0x1004f7e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x100923c]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
mov dword [ebp - 4], eax
push 8
xor eax, eax
cmp esi, 0xffffffff
mov byte [ebp - 0x28], bl
pop ecx
lea edi, [ebp - 0x27]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x2c], ebx
stosw word es:[edi], ax
jne 0x1004fb1
xor eax, eax
jmp 0x1004fff
push ebx
lea eax, [ebp - 0x30]
push eax
push 0x21
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1004fea
cmp dword [ebp - 0x30], 0x21
jne 0x1004fea
push 0x1001ce0
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 6], bl
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x1004fea
mov dword [ebp - 0x2c], 1
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1004ffc
mov dword [ebp - 0x2c], ebx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01005857
leave
ret 4
Function at 0x100538d
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1074
call fcn.01005b40
mov eax, dword [0x100923c]
and dword [ebp - 0x1070], 0
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x100552c
push edi
push 0x1001cac
push ebx
call fcn.0100799d
mov edi, eax
test edi, edi
mov dword [ebp - 0x106c], edi
je 0x100552b
push esi
sub edi, ebx
mov esi, 0x800
cmp edi, esi
jle 0x10053e4
mov edi, 0x7ff
push ebx
push esi
lea eax, [ebp - 0x1068]
push eax
call fcn.01002385
push 0x1001ca8
push dword [ebp - 0x106c]
mov byte [ebp + edi - 0x1068], 0
call fcn.0100799d
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x100552a
push 0x1001ca0
inc edi
push edi
call fcn.0100799d
cmp eax, ebx
je 0x100552a
sub eax, edi
cmp eax, 0x7fffffff
ja 0x1005440
push eax
push edi
push 0x60
lea eax, [ebp - 0x68]
push eax
call fcn.01004c58
push 0x1001e2c
push 0x64
lea eax, [ebp - 0x68]
push eax
call fcn.01003474
lea eax, [ebp - 0x68]
push eax
call fcn.01004e7f
push ebx
push 0x80
xor edi, edi
inc edi
push edi
push ebx
push edi
push 0x40000000
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x106c], eax
je 0x100550f
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
lea eax, [ebp - 0x1074]
push eax
mov ebx, 0x1001e18
push ebx
call edi
push eax
push ebx
push dword [ebp - 0x106c]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
call ebx
push 0x1001e10
push esi
lea eax, [ebp - 0x868]
push eax
call fcn.01002385
lea eax, [ebp - 0x1068]
push eax
push esi
lea eax, [ebp - 0x868]
push eax
call fcn.01003474
push 0x1001e0c
push esi
lea eax, [ebp - 0x868]
push eax
call fcn.01003474
push 0
lea eax, [ebp - 0x1074]
push eax
lea eax, [ebp - 0x868]
push eax
call edi
push eax
lea eax, [ebp - 0x868]
push eax
push dword [ebp - 0x106c]
call ebx
mov dword [ebp - 0x1070], 1
jmp 0x1005515
mov dword [ebp - 0x1070], edi
cmp dword [ebp - 0x106c], 0
je 0x100552a
push dword [ebp - 0x106c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1070]
pop ebx
call fcn.01005857
leave
ret 4
Function at 0x10056d3
Capabilities:
Persist via run registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x100923c]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x218], eax
mov esi, 0x104
xor ebx, ebx
push esi
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x214], ebx
mov byte [ebp - 0x108], bl
mov byte [ebp - 0x20c], bl
call fcn.01005082
cmp eax, 1
jne 0x10057cb
lea eax, [ebp - 0x20c]
test eax, eax
je 0x10057cb
cmp byte [ebp - 0x20c], bl
je 0x10057cb
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x210], eax
je 0x10057cb
push dword [0x10091ac]
lea eax, [ebp - 0x108]
push dword [0x10091a8]
push 0x80000001
push esi
push eax
call fcn.01004e0d
cmp eax, 1
jne 0x10057bf
lea eax, [ebp - 0x108]
test eax, eax
je 0x10057bf
cmp byte [ebp - 0x108], bl
je 0x10057bf
push dword [ebp - 0x210]
call fcn.01004f7e
cmp eax, 1
jne 0x10057bf
push dword [ebp - 0x218]
lea eax, [ebp - 0x108]
push dword [ebp - 0x210]
push eax
call fcn.01005544
mov dword [ebp - 0x214], eax
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x214]
pop esi
pop ebx
call fcn.01005857
leave
ret 4