joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100017e0
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x560
push ebx
mov dword [eax], 0
push esi
push edi
push ebp
call fcn.10001000
mov dword [esp + 0x18], eax
test eax, eax
je 0x10001a05
lea eax, [esp + 0x248]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edi, [esp + 0x248]
mov ecx, 0xffffffff
sub eax, eax
push 0
repne scasb al, byte es:[edi]
not ecx
mov dword [esp + 0x124], 0x128
lea ebx, [ecx - 1]
push 2
call dword [0x1000b444]
mov dword [esp + 0x14], eax
test eax, eax
je 0x100019fa
lea eax, [esp + 0x120]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call dword [0x1000b440]
test eax, eax
je 0x100019fa
mov ebp, dword [esp + 0x574]
mov dword [esp + 0x34c], 0x224
mov eax, dword [esp + 0x128]
push eax
push 8
call dword [0x1000b444]
mov dword [esp + 0x10], eax
test eax, eax
je 0x100019d4
lea eax, [esp + 0x34c]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call dword [0x1000b43c]
test eax, eax
je 0x100019d4
lea eax, [esp + 0x248]
push ebx
lea ecx, [esp + 0x470]
push eax
push ecx
call fcn.10008580
add esp, 0xc
test eax, eax
jne 0x10001919
mov dx, word [0x1000a104]
mov eax, 0x1000a104
lea ecx, [esp + 0x1c]
lea edi, [esp + ebx + 0x46d]
mov word [ecx], dx
mov al, byte [eax + 2]
mov byte [ecx + 2], al
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x1c]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
jmp 0x1000193c
lea edi, [esp + 0x46c]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x1c]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
mov edi, 0x1000a3f8
sub eax, eax
lea edx, [ecx - 1]
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
test ebp, ebp
lea esi, [ecx + edx - 1]
je 0x100019a5
cmp dword [esp + 0x578], esi
jbe 0x100019a5
lea eax, [esp + 0x1c]
push eax
push ebp
call fcn.10001780
add esp, 8
test eax, eax
jne 0x100019a5
lea eax, [esp + 0x1c]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x1000a3f8
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcatA]
sub dword [esp + 0x578], esi
mov eax, dword [esp + 0x57c]
lea ecx, [esp + 0x34c]
mov edx, dword [esp + 0x10]
push ecx
push edx
add dword [eax], esi
call dword [0x1000b448]
test eax, eax
jne 0x100018b2
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x120]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call dword [0x1000b438]
test eax, eax
jne 0x10001870
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [esp + 0x18], 1
sbb eax, eax
pop ebp
inc eax
pop edi
pop esi
pop ebx
add esp, 0x560
ret
Function at 0x10001bc0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x464
lea eax, [esp + 0x54]
push ebx
mov ebx, dword [esp + 0x46c]
push esi
push edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebp
push ebx
push eax
call esi
lea ecx, [esp + 0x26c]
push ebx
push ecx
call esi
push eax
call fcn.10004c50
mov edx, dword [esp + 0x480]
add esp, 4
test edx, edx
je 0x10001c43
cmp byte [edx], 0
je 0x10001c43
mov edi, 0x1000a108
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x64]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x10001c45
xor ebx, ebx
lea edi, [esp + 0x20]
xor eax, eax
mov ecx, 0x11
rep stosd dword es:[edi], eax
mov word [esp + 0x50], 5
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
lea edx, [esp + 0x26c]
push eax
mov dword [esp + 0x24], 0x44
mov dword [esp + 0x50], 1
push ecx
push edx
lea eax, [esp + 0x70]
push 0
push 0x20
push 0
push 0
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x10001ca2
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x464
ret
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x14]
push ecx
call esi
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x464
ret
Function at 0x10002820
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x18
lea eax, [esp + 0xc]
push ebx
push esi
push edi
push ebp
push eax
push 0x20019
push 0
push str.softwaremicrosoftwindows_ntcurrentversionperflib
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10002851
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x18
ret
mov ebx, 4
lea eax, [esp + 0x10]
lea ecx, [esp + 0x24]
push eax
lea edx, [esp + 0x1c]
push ecx
mov eax, dword [esp + 0x24]
push edx
push 0
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [esp + 0x20], ebx
push str.Last_Counter
push eax
call edi
mov esi, eax
test esi, esi
jne 0x10002982
lea eax, [esp + 0x20]
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], ebx
lea ebx, [esp + 0x10]
mov edx, dword [esp + 0x1c]
push ebx
push eax
push ecx
push 0
push str.Version
push edx
call edi
mov esi, eax
test esi, esi
jne 0x10002982
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push 0
push ecx
push 0
push str.Counter_009
push 0x80000004
call edi
mov esi, eax
test esi, esi
jne 0x10002982
mov eax, dword [esp + 0x10]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esp + 0x14], eax
test eax, eax
je 0x10002982
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
lea ecx, [esp + 0x18]
lea eax, [esp + 0x10]
push eax
push ebx
push ecx
push 0
push str.Counter_009
push 0x80000004
call edi
mov esi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
test ebp, ebp
je 0x1000296c
push ebx
call fcn.10005fe0
add esp, 4
mov edi, eax
lea ebx, [ebp + ebx + 1]
push str.Process
push ebx
call fcn.10008650
add esp, 8
test eax, eax
jne 0x10002947
mov eax, dword [esp + 0x2c]
jmp 0x1000295d
push str.Thread
push ebx
call fcn.10008650
add esp, 8
test eax, eax
jne 0x1000295f
mov eax, dword [esp + 0x30]
mov dword [eax], edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebx, [eax + ebx + 1]
jmp 0x10002913
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
cmp esi, 1
sbb eax, eax
pop edi
neg eax
pop esi
pop ebx
add esp, 0x18
ret
Function at 0x100029a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x11c
xor eax, eax
mov dword [esp], eax
push ebx
mov dword [esp + 0xc], eax
push esi
mov esi, dword [esp + 0x128]
push edi
push ebp
cmp esi, eax
je 0x100029c1
mov byte [esi], al
cmp dword [esp + 0x138], 0
je 0x100029d8
mov eax, dword [esp + 0x138]
mov dword [eax], 1
cmp dword [0x1000a030], 0
jne 0x10002a04
push 0x1000a034
push 0x1000a030
call fcn.10002820
add esp, 8
test eax, eax
jne 0x10002a04
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x11c
ret
mov eax, dword [0x1000a034]
mov ecx, dword [0x1000a030]
lea edx, [esp + 0x28]
push eax
mov dword [esp + 0x14], 0xc800
push ecx
push str._ld__ld
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, dword [esp + 0x144]
add esp, 0x10
mov eax, dword [esp + 0x10]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esp + 0x14], eax
test eax, eax
je 0x10002b73
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
lea ecx, [esp + 0x24]
lea eax, [esp + 0x10]
lea edx, [esp + 0x28]
push eax
push edi
push ecx
push 0
push edx
push 0x80000004
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [esp + 0x20], eax
test eax, eax
jne 0x10002b46
mov eax, dword [0x1000a030]
push eax
push edi
call fcn.10002790
mov dword [esp + 0x24], eax
add esp, 8
push eax
call fcn.100027d0
add esp, 4
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x18], 0
je 0x10002b46
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
cmp dword [ecx + 0x28], eax
jle 0x10002b46
push ebp
call fcn.10002800
lea ecx, [esp + 0x2c]
add esp, 4
push 0
push 0
push 0x104
push ecx
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea edi, [esp + 0x28]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
mov dword [esp + 0x10], ecx
test esi, esi
je 0x10002b18
cmp ecx, ebx
jae 0x10002b18
lea eax, [esp + 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x1000a3f8
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
sub ebx, dword [esp + 0x10]
cmp dword [esp + 0x138], 0
je 0x10002b2f
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x138]
add dword [eax], ecx
push ebp
call fcn.100027f0
inc dword [esp + 0x1c]
add esp, 4
mov ebp, eax
test ebp, ebp
jne 0x10002aac
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [esp + 0x20], 0xea
jne 0x10002b73
add dword [esp + 0x10], 0xc800
jmp 0x10002a33
mov eax, dword [esp + 0x18]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x11c
ret
Function at 0x100044c0
Capabilities:
Copy file
Get common file path

Disassembly:
sub esp, 0x330
mov eax, dword [esp + 0x334]
push ebx
mov dword [esp + 0x108], 0x128
push esi
push edi
push ebp
push str.SetupDiGetDeviceInstallParamsA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000459f
lea ecx, [esp + 0x114]
mov edx, dword [esp + 0x348]
push ecx
push 0
push edx
call eax
test eax, eax
je 0x1000459f
cmp byte [esp + 0x138], 0
jne 0x10004526
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x330
ret
lea eax, [esp + 0x23c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x1000459f
xor ebx, ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, dword [sym.imp.USER32.dll_CharLowerA]
lea eax, [esp + 0x23c]
push ebx
lea ecx, [esp + 0x14]
push eax
push str._sINFOEM_d.INF
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x20]
add esp, 0x10
push ecx
call ebp
lea ecx, [esp + 0x10]
push 0
push pe_nt_image_headers32
push 1
push 0
push 3
push 0
push ecx
call edi
cmp eax, 0xffffffff
jne 0x100045ac
call esi
cmp eax, 0x50
jne 0x100045fe
inc ebx
cmp ebx, 0x2710
jl 0x10004551
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x330
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x10]
push 0
mov ecx, dword [esp + 0x350]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x100045f1
lea eax, [esp + 0x10]
mov ecx, dword [esp + 0x344]
push eax
push ecx
call fcn.10004470
add esp, 8
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x330
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x330
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x330
ret
Function at 0x10004850
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x140
push ebx
push esi
mov esi, dword [esp + 0x14c]
push edi
push ebp
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetupDiClassGuidsFromNameA
push esi
call ebx
mov ebp, eax
push str.SetupDiCreateDeviceInfoList
push esi
call ebx
mov edi, eax
push str.SetupDiGetDeviceInstallParamsA
push esi
call ebx
mov dword [esp + 0x10], eax
push str.SetupDiSetDeviceInstallParamsA
push esi
call ebx
mov dword [esp + 0x14], eax
push str.SetupDiBuildDriverInfoList
push esi
call ebx
mov ebx, eax
test ebp, ebp
je 0x10004981
test edi, edi
je 0x10004981
cmp dword [esp + 0x10], 0
je 0x10004981
cmp dword [esp + 0x14], 0
je 0x10004981
test ebx, ebx
je 0x10004981
lea eax, [esp + 0x18]
push 0
push 1
push eax
push str.printer
call ebp
lea eax, [esp + 0x18]
push 0
push eax
call edi
mov edi, eax
test edi, edi
je 0x10004974
mov dword [esp + 0x28], 0x128
lea eax, [esp + 0x28]
push eax
push 0
push edi
call dword [esp + 0x1c]
test eax, eax
je 0x10004974
mov eax, dword [esp + 0x160]
mov ecx, dword [esp + 0x158]
or eax, 0x8000
push ecx
lea edx, [esp + 0x50]
mov dword [esp + 0x30], eax
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x28]
push ecx
push 0
push edi
call dword [esp + 0x20]
push 1
push 0
push edi
call ebx
test eax, eax
je 0x10004974
mov eax, dword [esp + 0x170]
mov ecx, dword [esp + 0x16c]
mov edx, dword [esp + 0x168]
push eax
mov eax, dword [esp + 0x168]
push ecx
mov ecx, dword [esp + 0x164]
push edx
push eax
push ecx
push 0
push edi
push esi
call fcn.10004610
add esp, 0x20
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x140
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x140
ret
Function at 0x10006350
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
call fcn.100063e0
mov dword [0x1000a6dc], 1
cmp dword [esp + 0x10], 0
mov ebx, dword [esp + 0x14]
mov byte [0x1000a6d8], bl
jne 0x100063b1
cmp dword [0x1000c57c], 0
je 0x1000639f
mov esi, dword [0x1000c574]
sub esi, 4
cmp esi, dword [0x1000c57c]
jb 0x1000639f
mov eax, dword [esi]
test eax, eax
je 0x10006394
call eax
sub esi, 4
cmp esi, dword [0x1000c57c]
jae 0x1000638c
push 0x1000a01c
push 0x1000a014
call fcn.10006400
add esp, 8
push 0x1000a024
push 0x1000a020
call fcn.10006400
add esp, 8
test ebx, ebx
je 0x100063cf
call fcn.100063f0
pop esi
pop ebx
ret
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x100064d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x1000a6e0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x10006533
push 0x74
push 1
call fcn.10007600
add esp, 8
mov edi, eax
test edi, edi
je 0x10006529
push edi
mov eax, dword [0x1000a6e0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x10006529
push edi
call fcn.100064b0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [edi], eax
mov dword [edi + 4], 0xffffffff
jmp 0x10006533
push 0x10
call fcn.10006210
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
ret
Function at 0x100070d0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor eax, eax
mov ecx, 0x1000ab90
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [ecx], edx
je 0x100070f8
add ecx, 8
inc eax
cmp ecx, 0x1000ac18
jb 0x100070e8
cmp dword [eax*8 + 0x1000ab90], edx
lea ebx, [eax*8]
jne 0x100072b3
cmp dword [0x1000a478], 1
je 0x10007278
cmp dword [0x1000a478], 0
jne 0x1000712f
cmp dword [0x1000a47c], 1
je 0x10007278
cmp edx, 0xfc
je 0x100072b3
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x1000716c
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x100071b0
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x1000ac64
push ebp
call fcn.100077a0
add esp, 0xc
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x1000ac44
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x1000ab94]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.10007700
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x1000c470]
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x1000728f
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x1000ab94]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x10007e40
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x418
push ebx
push esi
push edi
push ebp
xor edi, edi
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x20], edi
cmp ebp, edi
jne 0x10007e68
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov edx, dword [esp + 0x42c]
mov eax, edx
and eax, 0xffffffe7
sar eax, 3
add eax, 0x1000c470
mov dword [esp + 0x18], eax
mov eax, edx
and eax, 0x1f
mov ebx, dword [esp + 0x18]
shl eax, 2
lea ecx, [eax + eax*8]
mov eax, dword [ebx]
mov dword [esp + 0x1c], ecx
test byte [eax + ecx + 4], 0x20
je 0x10007ea9
push 2
push 0
push edx
call fcn.100083f0
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add ecx, dword [eax]
test byte [ecx + 4], 0x80
je 0x10007f45
mov dword [esp + 0x10], 0
mov ebx, dword [esp + 0x430]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x10007f7e
lea esi, [esp + 0x24]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x10007f0c
mov al, byte [ebx]
inc ebx
cmp al, 0xa
jne 0x10007efa
mov byte [esi], 0xd
inc edi
inc esi
mov byte [esi], al
inc esi
mov eax, esi
lea ecx, [esp + 0x24]
sub eax, ecx
cmp eax, 0x400
jl 0x10007ee1
lea eax, [esp + 0x24]
push 0
sub esi, eax
lea ecx, [esp + 0x28]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x1c]
push eax
push esi
push ecx
mov eax, dword [edx]
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax + ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10007f74
mov eax, dword [esp + 0x14]
add dword [esp + 0x20], eax
cmp eax, esi
jge 0x10007ecc
jmp 0x10007f7e
lea eax, [esp + 0x14]
push 0
mov edx, dword [esp + 0x434]
push eax
push ebp
mov ecx, dword [ecx]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10007f74
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jmp 0x10007f7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x20], 0
jne 0x1000802a
cmp dword [esp + 0x10], 0
je 0x10007fda
cmp dword [esp + 0x10], 5
jne 0x10007fbd
call fcn.10008240
mov dword [eax], 9
call fcn.10008250
mov ecx, dword [esp + 0x10]
pop ebp
pop edi
mov dword [eax], ecx
mov eax, 0xffffffff
pop esi
pop ebx
add esp, 0x418
ret
mov ecx, dword [esp + 0x10]
push ecx
call fcn.100081c0
add esp, 4
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax]
test byte [edx + ecx + 4], 0x40
je 0x10008004
mov eax, dword [esp + 0x430]
cmp byte [eax], 0x1a
jne 0x10008004
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
call fcn.10008240
mov dword [eax], 0x1c
call fcn.10008250
pop ebp
mov dword [eax], 0
mov eax, 0xffffffff
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x20]
pop ebp
sub eax, edi
pop edi
pop esi
pop ebx
add esp, 0x418
ret
Function at 0x1002a2f0
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push esi
call dword [sym.imp.MSDART.DLL_MpGetHeapHandle]
push 0x11
mov dword [0x1007e050], eax
call dword [sym.imp.MSDART.DLL_FXMemAttach]
push 0x1007e040
push dword [0x1007e044]
push 0x1000b1a0
push 0x1000b2c8
call dword [sym.imp.MSDATL3.dll_long_int___cdecl_LoadResourceDLL_unsigned_short_int___unsigned_short_int___void___void___]
mov esi, eax
add esp, 0x14
test esi, esi
jns 0x1002a370
test byte [0x1007e220], 2
je 0x1002a4c4
cmp dword [0x10082300], 0
je 0x1002a4c4
push 0x49
mov eax, dword [0x10082300]
push esi
push 0x1000b2e4
push eax
mov eax, dword [0x100820e0]
push 0x16fc00
push eax
call fcn.1002b380
add esp, 0x18
jmp 0x1002a4c4
push 0x1007e02c
push 1
call dword [sym.imp.ole32.dll_CoGetMalloc]
mov esi, eax
test esi, esi
jns 0x1002a3a1
test byte [0x1007e220], 2
je 0x1002a4c4
cmp dword [0x10082300], 0
je 0x1002a4c4
push 0x52
jmp 0x1002a34c
cmp dword [0x1007e03c], 0
jne 0x1002a3e7
push 0
push 0x1007e03c
call dword [sym.imp.MSDART.DLL_MPInitializeCriticalSectionAndSpinCount]
add esp, 8
test eax, eax
jne 0x1002a3e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1002a3d3
movzx esi, si
or esi, 0x80070000
test byte [0x1007e220], 2
je 0x1002a4c4
push 0x5e
jmp 0x1002a4b5
cmp dword [0x1007e024], 0
jne 0x1002a495
push 0x48
push 0x1100000
push dword [0x1007e050]
call dword [sym.imp.MSDART.DLL_MpHeapAlloc]
add esp, 0xc
mov dword [ebp - 4], eax
test eax, eax
je 0x1002a41a
mov ecx, eax
call fcn.10027990
jmp 0x1002a41c
xor eax, eax
mov dword [0x1007e024], eax
test eax, eax
jne 0x1002a454
test byte [0x1007e220], 2
mov esi, 0x8007000e
je 0x1002a4c8
push 0x69
mov edx, 0x1000b2e4
mov ecx, esi
call fcn.10017890
add esp, 4
call fcn.1002a510
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.10027ba0
mov esi, eax
test esi, esi
jns 0x1002a495
test byte [0x1007e220], 2
je 0x1002a479
push 0x6e
mov edx, 0x1000b2e4
mov ecx, esi
call fcn.10017890
add esp, 4
mov ecx, dword [0x1007e024]
test ecx, ecx
je 0x1002a489
push ecx
call fcn.1002a4e0
mov dword [0x1007e024], 0
jmp 0x1002a4c4
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
call fcn.100223e0
mov esi, eax
test esi, esi
jns 0x1002a4cd
test byte [0x1007e220], 2
je 0x1002a4c4
push 0x7d
mov edx, 0x1000b2e4
mov ecx, esi
call fcn.10017890
add esp, 4
test esi, esi
jns 0x1002a4cd
call fcn.1002a510
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1002ba60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x10]
mov edi, dword [esi + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
push 0
push 2
mov dword [esi + 0x14], 0
mov byte [edi], 0
push dword [esi + 8]
push 0
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegGetValueA]
mov edx, eax
test edx, edx
jne 0x1002baaa
cmp dword [ebp - 4], 1
jbe 0x1002baaa
xor ecx, ecx
cmp byte [edi], 0x3a
setne cl
mov dword [esi + 0x14], ecx
xor eax, eax
test edx, edx
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret