joyce8/EMBER2024-capa huggingface dataset:
Function at 0x436ef0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4791e8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x436f29
inc eax
mov dword [esi + 0x10], eax
jmp 0x43703c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x436f3d
mov eax, 0xffffffc7
jmp 0x43703e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x436f4e
cmp dword [esi + 8], eax
jne 0x436f3d
cmp dword [esi + 8], eax
jne 0x436f67
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x436f67
mov eax, 0xffffffc7
jmp 0x43703e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x436f7b
push eax
mov ecx, ebx
call fcn.00436720
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.004037e0
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x436fac
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00403800
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00435e90
test eax, eax
mov dword [esp + 0x38], eax
je 0x436fdf
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x56bd98
call fcn.004039e0
mov eax, dword [esp + 0x38]
jmp 0x43703e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00436d50
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x437023
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00436d70
mov esi, eax
test esi, esi
jne 0x437053
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00436d50
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x436ff5
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x56bd98
call fcn.004039e0
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x56bd98
call fcn.004039e0
mov eax, esi
jmp 0x43703e

Function at 0x43a120
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x43a180
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x43a180
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x43a180
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x43a180
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x43a1c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x43f470
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x479888
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.0047206f
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043ee10
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00471f9d
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0046e85e
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0046e85e
push 1
push 0
push 0
mov ecx, esi
call fcn.0046e806
push 1
push 0
push 1
mov ecx, esi
call fcn.0046e806
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004720e1
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43f5f0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4798a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0047206f
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043ee10
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00471f9d
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x43f6b4
cmp dword [esp + 0x40], 1
jne 0x43f6b2
cmp ecx, eax
jge 0x43f6b4
mov eax, ecx
cmp eax, 0xc8
jge 0x43f6c0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043f470
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004720e1
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43fe30
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x479913
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0046cc7f
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00472317
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00473833
test eax, eax
je 0x43ff4c
mov ecx, dword [esp + 0x3c]
call fcn.00472344
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43ff10
push edi
mov ecx, esi
call fcn.0046f9a5
mov ecx, esi
call fcn.004400b0
cmp dword [esp + 0x38], 1
jne 0x43ff45
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0046fae0
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x442960
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x442993
push esi
call fcn.00445a60
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44298c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x442a19
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x442a02
mov eax, dword [esi + 8]
test eax, eax
je 0x4429b7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4429fe
cmp eax, 2
je 0x442a02
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4429aa
cmp eax, 3
je 0x4429dd
cmp eax, 1
jne 0x4429aa
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4429aa
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4429aa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00442a40
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x442a28
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00442a40
add esp, 4
pop esi
ret
Function at 0x454c80
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x13c]
push edi
test eax, eax
jle 0x454ccc
mov eax, dword [ebx + 0x140]
test eax, eax
jle 0x454ccc
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
lea edi, [ebx + 0x150]
mov eax, dword [edi]
test eax, eax
je 0x454cb6
push eax
call ebp
test ax, ax
jl 0x454cc4
inc esi
add edi, 4
cmp esi, 6
jb 0x454ca8
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
mov ecx, ebx
call fcn.00454980
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x458ac0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x458b20
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x458b20
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x458b20
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x458b20
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x458b30
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x46da74
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46daac
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0046bb2b
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046bb03
jmp 0x46dab8
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46f162
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x46f1a4
call fcn.00474da9
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46f1a4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46f19b
xor eax, eax
jmp 0x46f1ac
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046f1b2
pop edi
pop esi
pop ebx
ret 4

Function at 0x4752d9
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x475307
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x475325
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047523f
jmp 0x475325
mov eax, dword [esi + 0x14]
test eax, eax
je 0x475325
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047523f
test edi, edi
mov eax, edi
jne 0x47530f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x1001ad3
Capabilities:
Delete file
Delete registry key
Delete registry value
Move file
Persist via run registry key
Set registry value

Disassembly:
sub esp, 0x208
push ebx
push ebp
push esi
push edi
push 0x1001460
call fcn.010028f5
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, eax
test edi, edi
mov ebx, 0x1001450
je 0x1001b02
push ebx
push edi
call esi
push edi
call fcn.010029ef
push 0x10013e8
call fcn.010028f5
mov edi, eax
test edi, edi
je 0x1001b1c
push ebx
push edi
call esi
push edi
call fcn.010029ef
push 0x1001370
call fcn.010028f5
mov edi, eax
test edi, edi
mov ebx, 0x100134c
je 0x1001b43
push 0x100132c
push edi
call esi
push ebx
push edi
call esi
push edi
call fcn.010029ef
mov esi, 0x10012b0
push esi
call fcn.010028f5
mov edi, eax
test edi, edi
je 0x1001b66
push 0x10012a0
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push edi
call fcn.010029ef
push 0x104
lea eax, [esp + 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 4
push 0
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push esi
call fcn.010028f5
mov ebp, eax
test ebp, ebp
je 0x1001c06
push 0x1001370
call fcn.010028f5
mov esi, eax
test esi, esi
je 0x1001c00
push 0x100132c
push ebp
push esi
call fcn.01001a80
cmp word [0x10064e0], 0
je 0x1001bda
mov edi, 0x1006440
push edi
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x1001be2
push ebx
push ebp
push esi
call fcn.01001a80
push 0x1001280
push ebp
push esi
call fcn.01001a80
push 0x100125c
push ebp
push esi
call fcn.01001a80
push esi
call fcn.010029ef
push ebp
call fcn.010029ef
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x100232a
Capabilities:
Create process on windows
Get common file path
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x478
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
xor esi, esi
push eax
mov dword [ebp - 0x14], 8
mov dword [ebp - 0x10], esi
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ebx, dword [ebp + 8]
mov dword [0x10064c4], ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x7f00
push esi
mov dword [0x1006420], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
push esi
push 1
push ebx
mov dword [ebp - 0xc], eax
call fcn.01003109
push 0x11
pop ecx
xor eax, eax
lea edi, [ebp - 0x68]
rep stosd dword es:[edi], eax
mov edi, 0x104
push edi
lea eax, [ebp - 0x270]
push eax
mov dword [ebp - 0x68], 0x44
mov dword [ebp - 0x3c], 0x80
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x10023c2
lea eax, [ebp - 0x270]
push 0x10015d8
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
push 0x10015a0
lea eax, [ebp - 0x270]
push eax
push esi
call fcn.01002f20
push esi
push esi
push esi
push 0x1001590
push eax
push esi
mov dword [ebp + 8], eax
call fcn.01002aa2
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x68]
push ecx
push esi
push esi
push 0x4000000
push esi
push esi
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x100241d
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1002432
push dword [ebp - 4]
push 0x1001580
push 0x1001578
call fcn.01003ca6
add esp, 0xc
push dword [ebp + 8]
push esi
call fcn.01002b58
push dword [ebp - 4]
push esi
call fcn.01002a2e
call fcn.01001c6c
test eax, eax
push esi
push 0x1001d71
push esi
je 0x1002458
push 0x67
jmp 0x100245a
push 0x66
push ebx
call dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp eax, 1
jne 0x100247f
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x478]
push eax
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
call fcn.01001ad3
push esi
push esi
push ebx
call fcn.01003109
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_SetCursor]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10
Function at 0x1002499
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x10015f0
call fcn.01002684
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x10024d6
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10024d6
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x10024ee
cmp eax, 0x20b
je 0x10024db
mov dword [ebp - 0x1c], ebx
jmp 0x1002502
cmp dword [ecx + 0x84], 0xe
jbe 0x10024d6
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x10024fc
cmp dword [ecx + 0x74], 0xe
jbe 0x10024d6
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x10066e4], 0xffffffff
or dword [0x10066e8], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1006304]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1006300]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x10066ec], eax
call fcn.0100267e
cmp dword [section..data], ebx
jne 0x100255d
push fcn.0100267e
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0100266c
push 0x1001230
push 0x100122c
call sub.msvcrt.dll__initterm
mov eax, dword [0x10062fc]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x10062f8]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x1001228
push 0x1001224
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x34], esi
cmp byte [esi], 0x22
jne 0x10025f3
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x10025c7
cmp al, 0x22
jne 0x10025b9
cmp byte [esi], 0x22
jne 0x10025d0
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x10025da
cmp al, 0x20
jbe 0x10025cc
mov dword [ebp - 0x4c], ebx
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x4c], 1
je 0x10025fe
movzx eax, word [ebp - 0x48]
jmp 0x1002601
cmp byte [esi], 0x20
jbe 0x10025d0
inc esi
mov dword [ebp - 0x34], esi
jmp 0x10025f3
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x100261e
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1002653
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.010026bd
ret
Function at 0x100271d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
lea eax, [ebp - 8]
push eax
xor ebx, ebx
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
cmp eax, ebx
je 0x1002746
push eax
jmp 0x10027ac
mov eax, dword [ebp + 0x10]
cmp eax, ebx
jbe 0x1002776
cmp eax, 2
jbe 0x1002768
cmp eax, 3
jbe 0x1002776
cmp eax, 5
ja 0x1002776
cmp dword [ebp - 4], 4
je 0x100277b
cmp dword [ebp - 4], 5
jmp 0x1002772
cmp dword [ebp - 4], 1
je 0x100277b
cmp dword [ebp - 4], 2
je 0x100277b
jmp 0x10027b2
cmp dword [ebp - 4], eax
jne 0x10027b2
mov eax, dword [ebp - 8]
add eax, 2
push eax
call dword [ebp + 0x14]
mov edi, eax
lea eax, [ebp - 8]
push eax
push edi
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
mov esi, eax
cmp esi, ebx
jne 0x10027a7
mov eax, dword [ebp - 8]
mov word [edi + eax], bx
mov eax, edi
jmp 0x10027b4
push edi
call dword [ebp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x14

Function at 0x100391a
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4000
call fcn.01005130
push ebx
push edi
push dword [ebp + 8]
call fcn.010034cd
mov ebx, eax
xor edi, edi
cmp ebx, edi
je 0x1003a0e
test bl, 2
jne 0x1003a0e
test bl, 8
push esi
je 0x100399e
test bl, 4
je 0x1003995
mov esi, dword [ebp + 0xc]
cmp esi, edi
je 0x100399e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
je 0x100397b
push eax
push esi
push 0x4000
lea eax, [ebp - 0x4000]
push eax
call fcn.01003742
lea esi, [ebp - 0x4000]
push 0x1001940
push edi
call fcn.01003854
push esi
push 2
call fcn.01003854
push 0x1001934
jmp 0x1003998
push dword [ebp + 0x10]
push edi
call fcn.01003854
test bl, 0x10
je 0x10039ac
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test bl, 0x20
je 0x10039cb
push dword [ebp + 0x10]
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push 0x100192c
push eax
call dword [sym.imp.msvcrt.dll_fwprintf]
add esp, 0xc
test bh, 0x10
je 0x1003a0d
push edi
push 0x80
push 4
push edi
push 1
push 0x40000000
push 0x1007720
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1003a0d
push 2
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [ebp + 0x10]
push esi
call fcn.01004516
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
pop ebx
leave
ret 0xc
Function at 0x1003b5c
Capabilities:
Delete file
Get common file path
Set file attributes

Disassembly:
push 0x14
push 0x1001960
call fcn.01002684
or dword [ebp - 0x1c], 0xffffffff
xor edi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], edi
cmp dword [ebp + 0x10], edi
je 0x1003bd5
push edi
push 4
call fcn.01004f43
mov dword [0x100639c], eax
cmp eax, edi
je 0x1003c24
mov esi, 0x1006288
mov dword [ebp - 0x24], esi
mov eax, dword [esi]
cmp eax, edi
je 0x1003baa
push dword [esi + 4]
push eax
call fcn.01003538
add esi, 8
jmp 0x1003b93
push 0x20a
mov esi, 0x1007720
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x1003c24
push 0x1001954
push esi
call fcn.01002b2c
push eax
call dword [sym.imp.msvcrt.dll__mbscpy]
pop ecx
pop ecx
jmp 0x1003bda
mov esi, 0x1007720
cmp dword [0x10063a8], edi
je 0x1003bf5
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x1003c04
mov ecx, dword [0x1006390]
mov dword [eax], ecx
mov eax, dword [ebp + 8]
cmp eax, edi
je 0x1003c1d
mov eax, dword [eax]
mov dword [0x1006390], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x1006394], eax
mov dword [ebp - 0x20], 1
or dword [ebp - 4], 0xffffffff
call fcn.01003c3a
mov eax, dword [ebp - 0x20]
call fcn.010026bd
ret 0xc