joyce8/EMBER2024-capa huggingface dataset:
Function at 0x59a4b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x59a5d0
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
call fcn.005e5a00
lea edx, [ebp - 0xc]
xor ecx, ecx
mov eax, ebx
call fcn.00599d6c
test al, al
je 0x59a59b
mov edx, esi
mov eax, 0x59a5e8
call fcn.0047db48
test al, al
je 0x59a54f
cmp dword [ebp - 8], 0
je 0x59a533
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x59a516
cmp dword [ebx + 0x310], 0
jne 0x59a51f
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_BringWindowToTop
push 0
push 0
push 0x10
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_SendMessageA
jmp 0x59a5b5
mov ebx, dword [0x5fde74]
mov ebx, dword [ebx]
lea edx, [ebp - 0x10]
mov eax, 0x14b
call ebx
mov eax, dword [ebp - 0x10]
call fcn.005e5a00
jmp 0x59a5b5
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x59a575
mov byte [ebx + 0x304], 1
lea edx, [ebp - 0x14]
mov eax, dword [ebx + 0x300]
call fcn.0040a7f4
mov eax, dword [ebp - 0x14]
call fcn.00599c5c
jmp 0x59a5b5
mov eax, dword [ebp - 4]
push eax
push 0
push 0x400
call sub.kernel32.dll_OpenProcess
mov ebx, eax
test ebx, ebx
je 0x59a5b5
push 0
push ebx
call sub.kernel32.dll_TerminateProcess
push ebx
call sub.kernel32.dll_CloseHandle_1
jmp 0x59a5b5
mov ebx, dword [0x5fde74]
mov ebx, dword [ebx]
lea edx, [ebp - 0x18]
mov eax, 0x14c
call ebx
mov eax, dword [ebp - 0x18]
call fcn.005e5a00
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59a5d7
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00405070
ret
Function at 0x59d0c8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x114], eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x59d1dc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x5fe374]
cmp dword [eax], 2
je 0x59d1bb
xor edx, edx
push ebp
push 0x59d1b1
push dword fs:[edx]
mov dword fs:[edx], esp
push 0xff
lea eax, [ebp - 0x10d]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea edx, [ebp - 0x114]
lea eax, [ebp - 0x10d]
call fcn.0040b9d8
mov eax, dword [ebp - 0x114]
lea ecx, [ebp - 8]
mov edx, 0x59d1f4
call fcn.00445dd0
mov eax, dword [ebp - 8]
call fcn.00405538
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x59d1a7
xor edx, edx
push ebp
push 0x59d1a0
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x59d1fc
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetProcAddress_1
test eax, eax
je 0x59d189
push 0
push 0
mov edx, dword [0x5fe158]
mov edx, dword [edx]
push edx
push 0x59d210
call eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59d1a7
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x59d1bb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59d1e3
lea eax, [ebp - 0x114]
call fcn.0040504c
lea eax, [ebp - 8]
call fcn.0040504c
ret
Function at 0x59d218
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x59d3e5
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 1
mov eax, dword [0x5fe374]
cmp dword [eax], 2
je 0x59d3c4
xor eax, eax
push ebp
push 0x59d3ba
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x444c24]
call fcn.00444d90
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x59d3a9
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000001
mov eax, dword [ebp - 0xc]
call fcn.00444e30
xor ecx, ecx
mov edx, 0x59d400
mov eax, dword [ebp - 0xc]
call fcn.00444e98
test al, al
je 0x59d393
mov edx, 0x59d420
mov eax, dword [ebp - 0xc]
call fcn.004454bc
test eax, eax
je 0x59d393
push 0xff
lea eax, [ebp - 0x115]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea edx, [ebp - 0x11c]
lea eax, [ebp - 0x115]
call fcn.0040b9d8
mov eax, dword [ebp - 0x11c]
lea ecx, [ebp - 0x10]
mov edx, 0x59d440
call fcn.00445dd0
mov eax, dword [ebp - 0x10]
call fcn.00405538
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x59d393
xor eax, eax
push ebp
push 0x59d38c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x59d450
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov ebx, eax
mov eax, dword [0x5fdeb8]
cmp byte [eax], 3
jne 0x59d342
mov eax, dword [0x5fddc0]
mov eax, dword [eax]
cmp byte [eax + 0x484], 0
je 0x59d342
push 0xffffffffffffffff
call sub.user32.dll_ShowCursor
mov eax, dword [0x5fddc0]
mov eax, dword [eax]
call fcn.00457974
push eax
call ebx
mov byte [ebp - 1], al
mov eax, dword [0x5fdeb8]
cmp byte [eax], 3
jne 0x59d375
mov eax, dword [0x5fddc0]
mov eax, dword [eax]
cmp byte [eax + 0x484], 0
je 0x59d375
push 0
call sub.user32.dll_ShowCursor
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59d393
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59d3b0
mov eax, dword [ebp - 0xc]
call fcn.0040411c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59d3ec
lea eax, [ebp - 0x11c]
call fcn.0040504c
lea eax, [ebp - 0x10]
call fcn.0040504c
ret
Function at 0x5be318
Capabilities:
Create process on windows

Disassembly:
push ebx
mov ebx, eax
push 1
push 0x5be368
push 0x5be368
mov eax, ebx
call fcn.00405538
push eax
push 0x5be36c
mov eax, dword [0x5fe0a0]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_ShellExecuteA
cmp eax, 0x20
jbe 0x5be352
xor eax, eax
call fcn.005e5a00
pop ebx
ret
mov eax, dword [0x5fddc0]
mov eax, dword [eax]
mov eax, dword [eax + 0x400]
call fcn.005e5a00
pop ebx
ret

Function at 0x5e259c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040504c
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x5e2630
push 0x80000000
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x5e262b
xor eax, eax
push ebp
push 0x5e2624
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x104
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10d]
push eax
push 0
push 0
push 0x5e266c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x5e260d
mov edx, ebx
lea eax, [ebp - 0x10d]
call fcn.0040b9d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5e262b
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5e2670
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffc0
mov edi, edx
mov esi, eax
xor ebx, ebx
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 0x3c
call fcn.004038a8
mov dword [esp + 4], 0x3c
mov dword [esp + 8], 0x40
mov eax, dword [0x5fe0a0]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
mov dword [esp + 0xc], eax
mov eax, esi
call fcn.00405538
mov dword [esp + 0x14], eax
mov eax, edi
call fcn.00405538
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x20], eax
lea eax, [esp + 4]
push eax
call sub.shell32.dll_ShellExecuteExA
test eax, eax
je 0x5e270b
mov eax, dword [0x5fe0a0]
mov eax, dword [eax]
call fcn.00470d04
push esp
mov eax, dword [esp + 0x40]
push eax
call sub.kernel32.dll_GetExitCodeProcess
cmp dword [esp], 0x103
jne 0x5e2704
mov eax, dword [0x5fe0a0]
mov eax, dword [eax]
cmp byte [eax + 0x9c], 0
je 0x5e26d4
cmp dword [esp], 0
sete bl
mov eax, ebx
add esp, 0x40
pop edi
pop esi
pop ebx
ret
Function at 0x5e2cac
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov edi, eax
xor eax, eax
push ebp
push 0x5e2d7c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, 0x5e2d94
call fcn.004050a0
xor ebx, ebx
lea eax, [ebp - 4]
xor edx, edx
mov dl, bl
add edx, 0x41
call fcn.00405234
lea eax, [ebp - 4]
mov edx, 0x5e2da4
call fcn.00405340
mov eax, dword [ebp - 4]
call fcn.00405538
push eax
call sub.kernel32.dll_GetDriveTypeA
xor edx, edx
push edx
push eax
mov eax, edi
cdq
cmp edx, dword [esp + 4]
jne 0x5e2d14
cmp eax, dword [esp]
pop edx
pop eax
jne 0x5e2d4e
lea eax, [ebp - 8]
xor edx, edx
mov dl, bl
add edx, 0x41
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 8]
lea eax, [ebp - 0xc]
call fcn.0040371c
mov edx, 0x5e2da8
lea eax, [ebp - 0xc]
mov cl, 2
call fcn.004036ec
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.004052c0
jmp 0x5e2d4f
inc ebx
cmp bl, 0x19
ja 0x5e2d66
mov eax, dword [esi]
mov edx, 0x5e2d94
call fcn.00405484
je 0x5e2cda
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5e2d83
lea eax, [ebp - 4]
call fcn.0040504c
ret

Function at 0x5e2dac
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.0040504c
push 1
call sub.user32.dll_IsClipboardFormatAvailable
test eax, eax
je 0x5e2eb0
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x5e2eb0
xor eax, eax
push ebp
push 0x5e2ea9
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.user32.dll_GetClipboardData
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x5e2e96
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x5e2e8f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalSize
mov edx, 0x7fffffff
call fcn.00445b64
mov esi, eax
mov eax, esi
call fcn.00402ca8
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5e2e71
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
mov ecx, esi
call fcn.00402f58
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0040b9d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5e2e78
mov eax, dword [ebp - 4]
call fcn.00402cd8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5e2eb0
call sub.user32.dll_CloseClipboard
ret
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5e2fe4
Capabilities:
Get session user name

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, eax
mov dword [esp], 0x104
push esp
lea eax, [esp + 8]
push eax
call sub.advapi32.dll_GetUserNameA
test eax, eax
je 0x5e3011
mov edx, ebx
lea eax, [esp + 4]
call fcn.0040b9d8
jmp 0x5e3022
mov esi, dword [0x5fde74]
mov esi, dword [esi]
mov edx, ebx
mov eax, 0xe4
call esi
add esp, 0x10c
pop esi
pop ebx
ret
Function at 0x5e302c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x114], ecx
mov dword [ebp - 0x110], ecx
mov dword [ebp - 0x10c], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x5e3167
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.0040504c
mov eax, dword [0x5fe17c]
cmp dword [eax], 0
je 0x5e30b0
lea eax, [ebp - 0x105]
push eax
push 0
push 0
push esi
push 0
mov eax, dword [0x5fe17c]
mov eax, dword [eax]
call eax
test eax, eax
jne 0x5e3149
lea edx, [ebp - 0x10c]
lea eax, [ebp - 0x105]
call fcn.0040b9d8
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.0040fd60
jmp 0x5e3149
sub esi, 5
je 0x5e30c5
sub esi, 0x1f
je 0x5e30d3
dec esi
je 0x5e3108
dec esi
je 0x5e313d
jmp 0x5e3149
mov eax, ebx
mov edx, 0x5e317c
call fcn.004050a0
jmp 0x5e3149
push 0x104
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
test eax, eax
jbe 0x5e3149
lea edx, [ebp - 0x110]
lea eax, [ebp - 0x105]
call fcn.0040b9d8
mov eax, dword [ebp - 0x110]
mov edx, ebx
call fcn.0040fd60
jmp 0x5e3149
push 0x104
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
test eax, eax
jbe 0x5e3149
lea edx, [ebp - 0x114]
lea eax, [ebp - 0x105]
call fcn.0040b9d8
mov eax, dword [ebp - 0x114]
mov edx, ebx
call fcn.0040fd60
jmp 0x5e3149
mov eax, ebx
mov edx, 0x5e3198
call fcn.004050a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5e316e
lea eax, [ebp - 0x114]
mov edx, 3
call fcn.00405070
ret

Function at 0x5e31c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5e3237
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x105]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA_1
test eax, eax
jbe 0x5e3217
lea edx, [ebp - 0x10c]
lea eax, [ebp - 0x105]
call fcn.0040b9d8
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.0040fd4c
jmp 0x5e321e
mov eax, ebx
call fcn.0040504c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5e323e
lea eax, [ebp - 0x10c]
call fcn.0040504c
ret

Function at 0x5e3244
Capabilities:
Get disk information

Disassembly:
add esp, 0xfffffff4
push 0
push 0
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x5e3278
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x5e3271
mov eax, dword [esp]
jmp 0x5e3273
xor eax, eax
add esp, 0xc
ret
Function at 0x5e5ad4
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0xc], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5e5c07
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x5fe0a0]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x5e5bf1
xor eax, eax
push ebp
push 0x5e5bea
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.user32.dll_EmptyClipboard
test ebx, ebx
jbe 0x5e5bd7
lea eax, [ebp - 0xc]
mov ecx, 0x5e5c20
mov edx, ebx
call fcn.00405384
mov eax, dword [ebp - 0xc]
call fcn.00405338
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5e5bbf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GlobalLock
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x5e5bae
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
call fcn.00405338
push eax
lea eax, [ebp - 0xc]
call fcn.00405590
mov edx, dword [ebp - 8]
pop ecx
call fcn.00402f58
mov eax, dword [ebp - 4]
push eax
push 1
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5e5bb5
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5e5bf1
call sub.user32.dll_CloseClipboard
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5e5c0e
lea eax, [ebp - 0xc]
call fcn.0040504c
ret
Function at 0x10001850
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x1003bfdf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
xor ebx, ebx
push ebp
push esi
mov dword [esp + 0xc], ebx
mov edx, dword [esp + 0x40]
mov eax, dword [0x1003d370]
mov ebp, 1
cmp edx, eax
mov dword [esp + 0x20], ebp
jne 0x100018cc
call fcn.10035b00
mov esi, dword [esp + 0x28]
mov word [esp + 0x14], bx
push ebx
mov ecx, esi
mov dword [esi], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 4], eax
call fcn.10002ae0
mov dword [esp + 0xc], ebp
push ebp
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], bl
call fcn.10002ae0
mov eax, esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
push edi
mov edi, 0x1004703c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
mov ecx, dword [esp + 0x3c]
cmp edx, ecx
jae 0x1000191e
mov eax, dword [esp + 0x38]
add ecx, eax
lea esi, [eax + edx]
mov dword [esp + 0x44], ecx
cmp esi, ecx
jae 0x1000191e
mov ebp, dword [sym.imp.MSVCRT.dll_memchr]
movsx ecx, byte [esi]
push edi
push ecx
push 0x1004703c
call ebp
add esp, 0xc
cmp eax, ebx
je 0x10001982
mov eax, dword [esp + 0x44]
inc esi
cmp esi, eax
jb 0x100018fd
mov ebp, 1
mov esi, dword [0x1003d370]
mov eax, dword [0x1003d370]
pop edi
cmp esi, eax
jne 0x1000198f
call fcn.10035b00
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x34]
mov word [esp + 0x14], bx
mov edx, dword [esp + 0x14]
mov dword [esi], eax
cmp ecx, ebx
mov dword [esi + 4], edx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esp + 0xc], ebp
mov byte [esp + 0x20], bl
je 0x100019ed
mov al, byte [ecx - 1]
cmp al, bl
je 0x100019e2
dec al
mov byte [ecx - 1], al
mov eax, esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov eax, dword [esp + 0x38]
mov ebp, 1
sub esi, eax
jmp 0x10001924
lea eax, [esp + 0x2c]
push eax
call fcn.100012d0
mov ecx, dword [0x1003d370]
add esp, 4
push ecx
push esi
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x34]
push esi
call fcn.100023c0
mov ecx, dword [esp + 0x34]
mov dword [esp + 0xc], ebp
cmp ecx, ebx
mov byte [esp + 0x20], bl
je 0x100019ed
mov al, byte [ecx - 1]
cmp al, bl
je 0x100019e2
dec al
mov byte [ecx - 1], al
mov eax, esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
dec ecx
push ecx
mov ecx, dword [esp + 0x30]
call fcn.100359a0
mov ecx, dword [esp + 0x18]
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x10003a10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1003c15f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x2c]
push ebx
push ebp
push esi
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x10], ecx
mov ecx, dword [0x1003d370]
push edi
xor edi, edi
push ecx
push edi
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call fcn.10002670
mov esi, dword [esp + 0x40]
or ebp, 0xffffffff
mov dword [esp + 0x30], 1
mov eax, dword [esi + 0xc]
cmp eax, 0xffffffff
jae 0x10003a7a
mov ebp, eax
mov ecx, dword [esp + 0x20]
or edx, 0xffffffff
sub edx, ecx
cmp edx, ebp
ja 0x10003a8d
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
cmp ebp, edi
jbe 0x10003adc
mov eax, dword [esp + 0x20]
push edi
lea ecx, [esp + 0x18]
lea ebx, [eax + ebp]
push ebx
call fcn.100029c0
test al, al
je 0x10003adc
mov esi, dword [esi + 8]
cmp esi, edi
jne 0x10003ab3
mov esi, 0x1003d36c
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
lea edi, [edx + ecx]
mov ecx, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x20], ebx
xor edi, edi
mov byte [ebx + ecx], 0
mov esi, dword [esp + 0x38]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [esi], edx
mov dword [esi + 4], eax
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov ecx, dword [0x1003d370]
push ecx
lea edx, [esp + 0x18]
push edi
push edx
mov ecx, esi
call fcn.10002670
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x30], 0
cmp eax, edi
je 0x10003b39
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x10003b2f
dec al
mov byte [ecx], al
jmp 0x10003b39
push ecx
mov ecx, dword [esp + 0x18]
call fcn.100359a0
mov ecx, dword [esp + 0x28]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret

Function at 0x10003ea0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
lea eax, [esp]
push eax
push 1
push 0
push str.SOFTWAREFirebird_ProjectFirebird_ServerInstances
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10003eec
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 4]
lea eax, [esp + 8]
push edx
push eax
push 0
push str.DefaultInstance
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 8
ret
Function at 0x1000ac50
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x10
push esi
push 0
push 0x8000
push eax
call dword [sym.imp.MSVCRT.dll__open]
mov esi, eax
add esp, 0xc
test esi, esi
jge 0x1000ac7b
mov eax, 0xfffffffe
pop esi
add esp, 0x10
ret 8
lea ecx, [esp + 4]
push 0x10
push ecx
push esi
call dword [sym.imp.MSVCRT.dll__read]
add esp, 0xc
test eax, eax
jge 0x1000aca6
push esi
call dword [sym.imp.MSVCRT.dll__close]
add esp, 4
mov eax, 0xfffffffd
pop esi
add esp, 0x10
ret 8
cmp byte [esp + 4], 1
jne 0x1000ad04
mov edx, dword [esp + 6]
and edx, 0xffff
add edx, 0xf
push edx
call sym.fbclient.dll_gds__alloc
test eax, eax
jne 0x1000acda
push esi
call dword [sym.imp.MSVCRT.dll__close]
add esp, 4
mov eax, 0xfffffffb
pop esi
add esp, 0x10
ret 8
mov dword [eax + 4], esi
mov cx, word [esp + 6]
mov word [eax + 8], cx
mov dx, word [esp + 0x10]
mov word [eax + 0xa], dx
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x18]
mov dword [eax], ecx
pop esi
mov dword [edx], eax
xor eax, eax
add esp, 0x10
ret 8
push esi
call dword [sym.imp.MSVCRT.dll__close]
add esp, 4
mov eax, 0xfffffffc
pop esi
add esp, 0x10
ret 8
Function at 0x1000b750
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x410
push ebx
push ebp
push esi
push edi
push eax
call dword [sym.imp.MSVCRT.dll_getenv]
mov esi, eax
add esp, 4
test esi, esi
jne 0x1000b79e
mov ecx, dword [esp + 0x430]
mov edx, dword [esp + 0x424]
mov eax, dword [esp + 0x42c]
push ecx
push edx
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x410
ret 0x10
mov ecx, dword [esp + 0x424]
push 0x104
lea edx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__fullpath]
add esp, 0xc
test eax, eax
je 0x1000b8d3
mov al, byte [esp + 0x10]
xor edx, edx
test al, al
lea ecx, [esp + 0x10]
je 0x1000b7e1
cmp al, 0x5c
je 0x1000b7d7
cmp al, 0x2f
jne 0x1000b7d9
mov edx, ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x1000b7cf
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x218]
mov ebx, dword [sym.imp.MSVCRT.dll_strncpy]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x10]
sub edx, eax
push edx
lea edx, [esp + 0x21c]
push ecx
push edx
call ebx
mov ebp, dword [sym.imp.MSVCRT.dll_strtok]
push 0x1004f7e8
push esi
call ebp
add esp, 0x14
test eax, eax
je 0x1000b8d3
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x114]
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
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x114]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + ecx + 0x114]
lea ecx, [esp + 0x114]
cmp eax, ecx
je 0x1000b880
mov cl, byte [eax - 1]
cmp cl, 0x2f
je 0x1000b87c
cmp cl, 0x5c
jne 0x1000b880
mov byte [eax - 1], 0
lea edx, [esp + 0x114]
push 0x104
lea eax, [esp + 0x320]
push edx
push eax
call dword [sym.imp.MSVCRT.dll__fullpath]
add esp, 0xc
test eax, eax
je 0x1000b8bf
lea ecx, [esp + 0x218]
lea edx, [esp + 0x31c]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
je 0x1000b8e2
push 0x1004f7ec
push 0
call ebp
add esp, 8
test eax, eax
jne 0x1000b826
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x410
ret 0x10
mov eax, dword [esp + 0x430]
mov edx, dword [esp + 0x42c]
lea ecx, [esp + 0x10]
push eax
push ecx
push edx
call ebx
add esp, 0xc
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x410
ret 0x10

Function at 0x1000c950
Capabilities:
Get common file path
Query environment variable

Disassembly:
mov ecx, 0x10055298
jmp fcn.1000c980