joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10025cd0
Capabilities:
Delete registry key

Disassembly:
sub esp, 0x310
mov ecx, 0x41
xor eax, eax
push ebx
push ebp
mov ebp, dword [esp + 0x31c]
push esi
push edi
lea edi, [esp + 0x14]
lea ebx, [esp + 0x14]
rep stosd dword es:[edi], eax
mov eax, ebp
sub ebx, ebp
mov cl, byte [eax]
mov byte [ebx + eax], cl
inc eax
test cl, cl
jne 0x10025cf6
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x118]
push 0x104
rep stosd dword es:[edi], eax
lea eax, [esp + 0x11c]
lea ecx, [esp + 0x18]
push eax
push 0
push ecx
call fcn.10025140
add esp, 0x10
test eax, eax
jne 0x10025ddb
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
mov dx, word [0x1003d090]
repne scasb al, byte es:[edi]
or ecx, 0xffffffff
mov word [edi - 1], dx
lea edi, [esp + 0x118]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.10025cd0
add esp, 4
test eax, eax
jne 0x10025eb3
mov ecx, 0x41
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov eax, ebp
mov cl, byte [eax]
mov byte [ebx + eax], cl
inc eax
test cl, cl
jne 0x10025d9e
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x118]
push 0x104
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x11c]
lea edx, [esp + 0x18]
push ecx
push eax
push edx
call fcn.10025140
add esp, 0x10
test eax, eax
je 0x10025d34
push ebp
call fcn.10024b60
mov esi, eax
add esp, 4
test esi, esi
jne 0x10025dfa
pop edi
pop esi
pop ebp
mov eax, 8
pop ebx
add esp, 0x310
ret
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x118]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x21c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x21c]
lea ecx, [esp + 0x118]
push eax
push ecx
push ebp
call fcn.10024c50
add esp, 0xc
test eax, eax
jne 0x10025eb3
push eax
push ebp
call fcn.100255e0
add esp, 8
test eax, eax
jne 0x10025eb3
lea edx, [esp + 0x10]
push eax
push edx
push eax
push 2
push eax
push eax
push eax
lea eax, [esp + 0x134]
push eax
push esi
call fcn.10023b80
add esp, 0x24
test eax, eax
je 0x10025e74
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x310
ret
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x21c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x10025ea6
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x310
ret
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x310
ret
Function at 0x10025ec0
Capabilities:
Get file version info

Disassembly:
sub esp, 0x58
push ebx
push ebp
mov ebp, dword [esp + 0x64]
lea eax, [esp + 0xc]
push esi
xor ebx, ebx
push eax
push ebp
mov dword [esp + 0x18], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
cmp eax, ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x68], ebx
je 0x10025f99
push edi
mov ecx, 9
mov esi, str.StringFileInfo040904E4FileVersion
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 9
mov esi, str.StringFileInfo040904B0FileVersion
lea edi, [esp + 0x40]
push eax
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
call fcn.1002789c
add esp, 4
mov esi, eax
cmp esi, ebx
pop edi
je 0x10025f99
mov ecx, dword [esp + 0xc]
push esi
push ecx
push ebx
push ebp
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x10025f90
lea edx, [esp + 0xc]
lea eax, [esp + 0x68]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x10025f5e
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x10025f52
jmp 0x10025f8b
lea edx, [esp + 0xc]
lea eax, [esp + 0x68]
push edx
lea ecx, [esp + 0x40]
push eax
push ecx
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x10025f90
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x10025f81
mov ebx, 1
push esi
call fcn.10027891
add esp, 4
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x58
ret
Function at 0x10026800
Capabilities:
Get common file path

Disassembly:
sub esp, 0x338
push ebx
mov ebx, dword [esp + 0x344]
push ebp
mov ebp, dword [esp + 0x344]
mov edx, ebx
push esi
push edi
mov eax, ebp
sub edx, ebp
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x1002681e
lea eax, [esp + 0x12c]
push eax
push ebx
call fcn.10029273
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
je 0x10026891
mov edx, ebx
lea ecx, [esp + 0x140]
lea eax, [esp + 0x140]
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10026852
cmp byte [ebx], 0
je 0x1002686a
push ebx
call fcn.1002943c
add esp, 4
cmp esi, 0xffffffff
je 0x10026878
push esi
call fcn.100291e7
add esp, 4
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
pop edi
dec ecx
pop esi
pop ebp
mov eax, ecx
pop ebx
add esp, 0x338
ret
mov eax, dword [0x100382d0]
mov ecx, dword [0x100382d4]
mov edx, dword [0x100382cc]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
lea eax, [esp + 0x10]
mov dword [esp + 0x18], edx
mov edx, dword [0x100382d8]
lea ecx, [esp + 0x18]
push eax
push ecx
mov dword [esp + 0x2c], edx
call dword [sym.imp.RPCRT4.dll_UuidToStringA]
xor eax, eax
mov cl, byte [eax + str.CLSID]
mov byte [esp + eax + 0x244], cl
inc eax
test cl, cl
jne 0x100268ca
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x244]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [0x1003d1d0]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x244]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [str.InProcServer32]
mov ecx, dword [0x1003d1cc]
dec edi
mov dword [edi], eax
mov eax, dword [0x1003d1d4]
mov dword [edi + 4], ecx
mov cl, byte [0x1003d1d8]
mov dword [edi + 8], edx
lea edx, [esp + 0x10]
push edx
mov dword [edi + 0xc], eax
mov byte [edi + 0x10], cl
call dword [sym.imp.RPCRT4.dll_RpcStringFreeA]
lea eax, [esp + 0x28]
push 0x104
push eax
lea ecx, [esp + 0x24c]
push 0
push ecx
push 0x80000000
call fcn.10024100
add esp, 0x14
test eax, eax
jne 0x10026982
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x338
ret
lea edx, [esp + 0x28]
push 0x5c
push edx
call fcn.10028a60
mov edi, eax
add esp, 8
test edi, edi
jne 0x100269a9
lea eax, [esp + 0x28]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x100269c8
mov eax, edi
lea ecx, [esp + 0x28]
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x28]
push ebp
push eax
push str._s_s
push ebx
call edi
lea ecx, [esp + 0x13c]
push ecx
push ebx
call fcn.10029273
mov esi, eax
add esp, 0x18
cmp esi, 0xffffffff
je 0x10026a11
lea edx, [esp + 0x140]
lea eax, [esp + 0x28]
push edx
push eax
push str._s_s
push ebx
call edi
add esp, 0x10
jmp 0x1002685c
mov byte [ebx], 0
jmp 0x1002686a
Function at 0x10026ef0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc4
push ebx
push ebp
push esi
lea eax, [esp + 0x3c]
push edi
push eax
xor edi, edi
mov dword [esp + 0x18], 0x20
mov dword [esp + 0x44], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x10026f29
pop edi
pop esi
pop ebp
xor ax, ax
pop ebx
add esp, 0xc4
ret
cmp dword [esp + 0x50], 2
je 0x10026fa7
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push 0
push str..DefaultControl_PaneldesktopResourceLocale
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10026f5e
pop edi
pop esi
pop ebp
xor ax, ax
pop ebx
add esp, 0xc4
ret
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
lea eax, [esp + 0x20]
push edx
push eax
push 0
push 0
push 0x1003e3e0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x10026f8e
pop edi
pop esi
pop ebp
xor ax, ax
pop ebx
add esp, 0xc4
ret
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x10
lea eax, [esp + 0x24]
push 0
push eax
jmp 0x100270f1
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], ecx
fild qword [esp + 0x18]
fcomp qword [0x100393d0]
fnstsw ax
and eax, 0x100
jne 0x1002707f
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.GetUserDefaultUILanguage
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10026fed
call eax
mov edi, eax
lea edx, [esp + 0x10]
push edx
push 0x20019
push 0
push str..DEFAULTControl_PanelInternational
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x20]
push eax
push ecx
push 0
push 0
push str.Locale
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x10
lea ecx, [esp + 0x24]
push 0
push ecx
call fcn.10029725
mov ebx, eax
push ebx
call fcn.10027110
push edi
mov ebp, eax
call fcn.10027110
add esp, 0x14
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetACP]
test esi, esi
je 0x1002706f
cmp esi, eax
je 0x100270fb
cmp esi, ebp
je 0x100270fb
mov edi, ebx
mov ax, di
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc4
ret
lea edx, [esp + 0x10]
push edx
push 0x20019
push 0
push str..DEFAULTControl_PanelInternational
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x100270ad
pop edi
pop esi
pop ebp
xor ax, ax
pop ebx
add esp, 0xc4
ret
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x20]
push eax
push ecx
push 0
push 0
push str.Locale
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x100270dd
pop edi
pop esi
pop ebp
xor ax, ax
pop ebx
add esp, 0xc4
ret
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x10
lea ecx, [esp + 0x24]
push 0
push ecx
call fcn.10029725
add esp, 0xc
mov edi, eax
mov ax, di
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc4
ret
Function at 0x10028ef9
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor ecx, ecx
inc ecx
cmp eax, ecx
push esi
push edi
jne 0x10029014
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x94
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x1002908c
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
push esi
push 0
jne 0x10028f50
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1002908c
mov eax, dword [esi + 0x10]
mov dword [0x1003e5e0], eax
mov eax, dword [esi + 4]
mov dword [0x1003e5ec], eax
mov eax, dword [esi + 8]
mov dword [0x1003e5f0], eax
mov eax, dword [esi + 0xc]
and eax, 0x7fff
mov dword [0x1003e5e4], eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [0x1003e5e0], 2
je 0x10028f8e
or byte [0x1003e5e5], 0x80
mov eax, dword [0x1003e5ec]
shl eax, 8
add eax, dword [0x1003e5f0]
push 1
mov dword [0x1003e5e8], eax
call fcn.10029a4a
test eax, eax
pop ecx
je 0x1002908c
call fcn.1002be51
test eax, eax
jne 0x10028fc4
call fcn.10029aa1
jmp 0x1002908c
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x100402c0], eax
call fcn.1002e389
mov dword [0x1003e3fc], eax
call fcn.1002de36
test eax, eax
jl 0x1002900d
call fcn.1002e2e6
test eax, eax
jl 0x10029008
call fcn.1002e098
test eax, eax
jl 0x10029008
call fcn.1002dbf6
test eax, eax
jne 0x10029008
inc dword [0x1003e3f8]
jmp 0x1002909c
call fcn.1002e04a
call fcn.1002bc15
jmp 0x10028fba
xor edi, edi
cmp eax, edi
jne 0x1002904b
cmp dword [0x1003e3f8], edi
jle 0x1002908c
dec dword [0x1003e3f8]
cmp dword [0x1003e61c], edi
jne 0x10029035
call fcn.1002dd28
cmp dword [ebp + 0x10], edi
jne 0x1002909c
call fcn.1002e04a
call fcn.1002bc15
call fcn.10029aa1
jmp 0x1002909c
cmp eax, 2
jne 0x10029090
mov edx, 0x8c
call fcn.1002dda6
mov esi, eax
cmp esi, edi
je 0x1002908c
push esi
push dword [0x1003d450]
call dword [0x1003e5c4]
test eax, eax
push esi
je 0x10029086
call fcn.1002bc32
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x1002909c
call fcn.100278fb
pop ecx
xor eax, eax
jmp 0x1002909f
cmp eax, 3
jne 0x1002909c
push edi
call fcn.1002be0e
pop ecx
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x1002e389
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1003e730]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push edi
xor ebx, ebx
xor edi, edi
cmp eax, ebx
jne 0x1002e3d5
call esi
mov edi, eax
cmp edi, ebx
je 0x1002e3bb
mov dword [0x1003e730], 1
jmp 0x1002e3da
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1002e3d0
push 2
pop eax
mov dword [0x1003e730], eax
jmp 0x1002e3d5
mov eax, dword [0x1003e730]
cmp eax, 1
jne 0x1002e452
cmp edi, ebx
jne 0x1002e3e6
call esi
mov edi, eax
cmp edi, ebx
je 0x1002e45b
cmp word [edi], bx
mov eax, edi
je 0x1002e3fb
inc eax
inc eax
cmp word [eax], bx
jne 0x1002e3ed
inc eax
inc eax
cmp word [eax], bx
jne 0x1002e3ed
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
sub eax, edi
push ebx
sar eax, 1
inc eax
push eax
push edi
push ebx
push ebx
mov dword [ebp - 0xc], eax
call esi
mov ecx, eax
cmp ecx, ebx
mov dword [ebp - 8], ecx
je 0x1002e449
call fcn.1002dd6c
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1002e449
push ebx
push ebx
push dword [ebp - 8]
push eax
push dword [ebp - 0xc]
push edi
push ebx
push ebx
call esi
test eax, eax
jne 0x1002e446
push dword [ebp - 4]
call fcn.100278fb
pop ecx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1002e4aa
cmp eax, 2
je 0x1002e45f
cmp eax, ebx
je 0x1002e45f
xor eax, eax
jmp 0x1002e4ac
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x1002e45b
cmp byte [esi], bl
je 0x1002e47c
inc eax
cmp byte [eax], bl
jne 0x1002e472
inc eax
cmp byte [eax], bl
jne 0x1002e472
sub eax, esi
inc eax
mov edi, eax
mov ecx, edi
call fcn.1002dd6c
cmp eax, ebx
je 0x1002e4a3
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 4]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1002e4b1
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 4], esi
cmp ecx, dword [esi*8 + 0x1003d7f8]
je 0x1002e4d3
inc esi
cmp esi, 0x13
mov dword [ebp - 4], esi
jb 0x1002e4c1
cmp esi, 0x13
je 0x1002e60f
mov eax, dword [0x1003e404]
cmp eax, 1
push ebx
je 0x1002e5de
test eax, eax
jne 0x1002e4fc
cmp dword [0x1003e408], 1
je 0x1002e5de
cmp ecx, 0xfc
je 0x1002e60e
push edi
push 6
pop ecx
mov esi, str.Runtime_Error__n_nProgram:
mov edi, 0x1003e738
rep movsd dword es:[edi], dword [esi]
push 0x104
mov ebx, 0x1003e752
push ebx
movsw word es:[edi], word [esi]
push 0
mov byte [0x1003e856], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1002e54a
push 5
pop ecx
mov esi, str._program_name_unknown_
mov edi, 0x1003e752
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002e54f
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x1002e582
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002e563
sub eax, edx
push 3
lea eax, [eax + 0x1003e717]
push 0x10039ddc
push eax
call fcn.100284a0
add esp, 0xc
mov edx, 0x1003e738
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1002e58a
mov eax, dword [ebp - 4]
mov eax, dword [eax*8 + 0x1003d7fc]
mov esi, 0x10039dd8
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002e5a6
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1002e5b2
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.10032b6e
add esp, 0xc
pop edi
jmp 0x1002e60e
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x1002e60e
mov edx, dword [esi*8 + 0x1003d7fc]
mov ecx, edx
lea esi, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x1002e5f6
push 0
sub ecx, esi
lea esi, [ebp - 8]
push esi
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebx
pop esi
leave
ret
Function at 0x1002e7de
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
push 4
pop eax
call fcn.10027a90
mov dword [ebp - 8], esp
push 0x1c
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1002e8da
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [ebp - 0x4c]
xor esi, esi
cmp dword [0x1003e5e0], 2
jne 0x1002e85f
push 0x100397b4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, esi
je 0x1002e85f
push str.SetThreadStackGuarantee
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x1002e85f
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 4], esi
call eax
cmp eax, 1
pop ecx
jne 0x1002e85f
cmp dword [ebp - 4], esi
jbe 0x1002e85f
mov esi, dword [ebp - 4]
mov edx, dword [0x1003e5e0]
mov ebx, edx
dec ebx
neg ebx
sbb ebx, ebx
and ebx, 0x103
lea ecx, [edi - 1]
lea eax, [esi + edi - 1]
not ecx
inc ebx
and eax, ecx
mov dword [ebp - 4], eax
je 0x1002e888
add eax, edi
mov dword [ebp - 4], eax
lea ecx, [edi + edi]
cmp eax, ecx
jae 0x1002e894
mov dword [ebp - 4], ecx
mov eax, ecx
lea esi, [edi - 1]
not esi
and esi, dword [ebp - 8]
sub esi, eax
cmp edx, 1
jne 0x1002e8a6
push 0x11
pop edi
mov ecx, dword [ebp - 0xc]
add edi, ecx
cmp esi, edi
jb 0x1002e8da
push 4
push 0x1000
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x1002e8da
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1002e8da
xor eax, eax
inc eax
jmp 0x1002e8dc
xor eax, eax
lea esp, [ebp - 0x5c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100322f2
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x1003d44c]
xor ecx, ecx
cmp dword [ebp + 0x10], ecx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 0x420], edi
mov dword [ebp - 0x418], ecx
mov dword [ebp - 0x41c], ecx
jne 0x10032329
xor eax, eax
jmp 0x100324dc
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x10040180]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x1003235e
push 2
push ecx
push ecx
push dword [ebp + 8]
call fcn.10034d0d
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x1003242c
cmp dword [ebp + 0x10], ecx
mov dword [ebp - 0x414], edi
mov dword [ebp - 0x40c], ecx
jbe 0x100324aa
jmp 0x10032385
xor ecx, ecx
mov dword [ebp - 0x410], ecx
mov ecx, dword [ebp - 0x414]
sub ecx, dword [ebp - 0x420]
lea eax, [ebp - 0x408]
cmp ecx, dword [ebp + 0x10]
jae 0x100323db
mov edx, dword [ebp - 0x414]
inc dword [ebp - 0x414]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x100323c6
inc dword [ebp - 0x41c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x410]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x410]
cmp dword [ebp - 0x410], 0x400
jl 0x1003239d
mov edi, eax
lea eax, [ebp - 0x408]
sub edi, eax
push 0
lea eax, [ebp - 0x424]
push eax
push edi
lea eax, [ebp - 0x408]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10032459
mov eax, dword [ebp - 0x424]
add dword [ebp - 0x418], eax
cmp eax, edi
jl 0x10032465
mov eax, dword [ebp - 0x414]
sub eax, dword [ebp - 0x420]
cmp eax, dword [ebp + 0x10]
jb 0x10032383
jmp 0x10032465
push ecx
lea ecx, [ebp - 0x424]
push ecx
push dword [ebp + 0x10]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10032459
mov eax, dword [ebp - 0x424]
and dword [ebp - 0x40c], 0
mov dword [ebp - 0x418], eax
jmp 0x10032465
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp - 0x418]
test eax, eax
jne 0x100324d4
cmp dword [ebp - 0x40c], eax
je 0x100324a4
push 5
pop esi
cmp dword [ebp - 0x40c], esi
jne 0x10032496
call fcn.1002d972
mov dword [eax], 9
call fcn.1002d985
mov dword [eax], esi
jmp 0x100324cf
push dword [ebp - 0x40c]
call fcn.1002d998
pop ecx
jmp 0x100324cf
mov edi, dword [ebp - 0x420]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x100324bc
cmp byte [edi], 0x1a
jne 0x100324bc
xor eax, eax
jmp 0x100324da
call fcn.1002d972
mov dword [eax], 0x1c
call fcn.1002d985
and dword [eax], 0
or eax, 0xffffffff
jmp 0x100324da
sub eax, dword [ebp - 0x41c]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
call fcn.10036e2c
leave
ret
Function at 0x10032b6e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x1003ead8], ebx
push esi
push edi
jne 0x10032bf0
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10032c2b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1003b6fc
push edi
call esi
test eax, eax
mov dword [0x1003ead8], eax
je 0x10032c2b
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x1003eadc], eax
call esi
cmp dword [0x1003e5e0], 2
mov dword [0x1003eae0], eax
jne 0x10032bf0
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x1003eae8], eax
je 0x10032bf0
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x1003eae4], eax
mov eax, dword [0x1003eae4]
test eax, eax
je 0x10032c35
call eax
test eax, eax
je 0x10032c1c
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x1003eae8]
test eax, eax
je 0x10032c1c
test byte [ebp - 8], 1
jne 0x10032c35
cmp dword [0x1003e5ec], 4
jb 0x10032c2f
or byte [ebp + 0x12], 0x20
jmp 0x10032c54
xor eax, eax
jmp 0x10032c64
or byte [ebp + 0x12], 4
jmp 0x10032c54
mov eax, dword [0x1003eadc]
test eax, eax
je 0x10032c54
call eax
mov ebx, eax
test ebx, ebx
je 0x10032c54
mov eax, dword [0x1003eae0]
test eax, eax
je 0x10032c54
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x1003ead8]
pop edi
pop esi
pop ebx
leave
ret