joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4414c0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46e478
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.00467612
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00440e60
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.00467540
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.00463e04
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.00463e04
push 1
push 0
push 0
mov ecx, esi
call fcn.00463dac
push 1
push 0
push 1
mov ecx, esi
call fcn.00463dac
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00467684
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x441640
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46e498
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.00467612
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00440e60
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.00467540
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 0x441704
cmp dword [esp + 0x40], 1
jne 0x441702
cmp ecx, eax
jge 0x441704
mov eax, ecx
cmp eax, 0xc8
jge 0x441710
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.004414c0
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.00467684
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x441e90
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46e503
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.00462224
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.004678ba
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00468dd6
test eax, eax
je 0x441fac
mov ecx, dword [esp + 0x3c]
call fcn.004678e7
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 0x441f70
push edi
mov ecx, esi
call fcn.00464f4b
mov ecx, esi
call fcn.00442110
cmp dword [esp + 0x38], 1
jne 0x441fa5
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.00465086
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 0x4449d0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x444a03
push esi
call fcn.00447ac0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4449fc
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 0x444a89
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x444a72
mov eax, dword [esi + 8]
test eax, eax
je 0x444a27
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 0x444a6e
cmp eax, 2
je 0x444a72
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x444a1a
cmp eax, 3
je 0x444a4d
cmp eax, 1
jne 0x444a1a
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 0x444a1a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x444a1a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00444ab0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x444a98
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00444ab0
add esp, 4
pop esi
ret

Function at 0x46301a
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x463052
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.004610ce
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004610a6
jmp 0x46305e
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x464708
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 0x46474a
call fcn.0046a1c1
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46474a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x464741
xor eax, eax
jmp 0x464752
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00464758
pop edi
pop esi
pop ebx
ret 4

Function at 0x46a6f1
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 0x46a71f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46a73d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046a657
jmp 0x46a73d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46a73d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046a657
test edi, edi
mov eax, edi
jne 0x46a727
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40171c
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28c
mov dword [ebp - 0x288], 1
lea eax, [ebp - 0x284]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
call fcn.004016bb
add esp, 8
mov dword [ebp - 0x28c], 0
jmp 0x40175d
mov edx, dword [ebp - 0x28c]
add edx, 1
mov dword [ebp - 0x28c], edx
mov eax, dword [ebp - 0x28c]
cmp eax, dword [ebp + 0x10]
jge 0x401846
mov ecx, dword [ebp - 0x28c]
mov edx, dword [ebp + 0xc]
cmp dword [edx + ecx*8], 0
je 0x4017a5
push pe_nt_image_headers32
lea eax, [ebp - 0x100]
push eax
mov ecx, dword [ebp - 0x28c]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + ecx*8]
push eax
mov ecx, dword [ebp + 0x14]
call fcn.00564186
mov ecx, eax
call fcn.00564356
jmp 0x4017b9
push 0x5bdc28
lea ecx, [ebp - 0x100]
push ecx
call fcn.0054bec0
add esp, 8
lea edx, [ebp - 0x284]
push edx
push 0x80
lea eax, [ebp - 0x180]
push eax
lea ecx, [ebp - 0x100]
push ecx
mov edx, dword [ebp - 0x28c]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*8 + 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [ebp - 0x28c]
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + eax*8], 0
jne 0x40180b
lea edx, [ebp - 0x180]
push edx
mov ecx, dword [ebp + 0x14]
call fcn.0056432f
jmp 0x401841
lea eax, [ebp - 0x180]
push eax
call fcn.0054c3e0
add esp, 4
test eax, eax
je 0x401841
lea ecx, [ebp - 0x180]
push ecx
mov edx, dword [ebp - 0x28c]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*8]
push ecx
mov ecx, dword [ebp + 0x14]
call fcn.00564186
mov ecx, eax
call fcn.0056432f
jmp 0x40174e
mov eax, dword [ebp - 0x288]
mov esp, ebp
pop ebp
ret

Function at 0x401850
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
lea eax, [ebp - 0x184]
push eax
mov ecx, dword [ebp + 0x20]
push ecx
call fcn.004016bb
add esp, 8
mov dword [ebp - 0x208], 0
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x20c], edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x1c]
call fcn.00564186
mov ecx, eax
call fcn.00406ac0
cmp dword [ebp - 0x208], 0
jl 0x401938
mov ecx, dword [ebp - 0x20c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0x58a1d0
lea eax, [ebp - 0x204]
push eax
call fcn.0054c45b
add esp, 0x10
lea ecx, [ebp - 0x184]
push ecx
push 0x80
lea edx, [ebp - 0x80]
push edx
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x204]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [ebp - 0x208], eax
cmp dword [ebp - 0x208], 0
jle 0x40191a
lea eax, [ebp - 0x80]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov ecx, dword [ebp + 0x1c]
call fcn.00564186
mov ecx, eax
call fcn.00406a90
mov edx, dword [ebp - 0x20c]
add edx, 1
mov dword [ebp - 0x20c], edx
jmp 0x40191c
jmp 0x401938
cmp dword [ebp + 0x24], 0
jle 0x401933
mov eax, dword [ebp + 0x24]
sub eax, 1
mov dword [ebp + 0x24], eax
cmp dword [ebp + 0x24], 0
jne 0x401933
jmp 0x401938
jmp 0x401892
mov eax, dword [ebp - 0x20c]
sub eax, dword [ebp + 0x14]
mov esp, ebp
pop ebp
ret
Function at 0x404382
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x90], 5
je 0x4043ba
cmp dword [ebp - 0x90], 6
jne 0x4043d5
call fcn.00404356
mov dword [ebp - 0x9c], eax
cmp dword [ebp - 0x9c], 0
je 0x4043d5
mov eax, 3
jmp 0x404420
cmp dword [ebp - 0x90], 5
je 0x4043e7
cmp dword [ebp - 0x90], 6
jne 0x40440e
cmp dword [ebp - 0x8c], 0
jne 0x4043f7
mov eax, 1
jmp 0x404420
cmp dword [ebp - 0x8c], 1
jne 0x404407
mov eax, 2
jmp 0x404420
mov eax, 2
jmp 0x404420
cmp dword [ebp - 0x90], 6
jne 0x40441e
mov eax, 2
jmp 0x404420
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x404815
Capabilities:
Check if file exists
Get common file path
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push 0x200
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4048b1
lea edx, [ebp - 0x104]
push edx
call fcn.0053534c
add esp, 4
push 0x58a764
lea eax, [ebp - 0x104]
push eax
call fcn.0054bed0
add esp, 8
lea ecx, [ebp - 0x104]
push ecx
push 0x104
mov edx, dword [ebp + 8]
push edx
push 0x5bdc44
push str.SYSTEMFOLDER
push str.INFUPDATE
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4048b1
push 0
push 0x5bdc48
push str.Cant_Get_System_Folder
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp + 8]
mov byte [ecx], 0
xor eax, eax
jmp 0x4048b6
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4048ba
Capabilities:
Delete file
Enumerate files on windows
Get common file path
Get file attributes
Set current directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54c
mov dword [ebp - 4], 0x200
mov eax, dword [ebp - 4]
push eax
lea ecx, [ebp - 0x204]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.INF_
lea edx, [ebp - 0x204]
push edx
call fcn.0054bed0
add esp, 8
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [ebp - 0x54c]
push ecx
push 0x58a7b4
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x40c], eax
cmp dword [ebp - 0x40c], 0xffffffff
jne 0x404922
jmp 0x404b31
mov edx, 1
test edx, edx
je 0x404b24
movsx eax, byte [ebp - 0x520]
cmp eax, 0x2e
je 0x404afa
lea ecx, [ebp - 0x204]
push ecx
lea edx, [ebp - 0x404]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x520]
push eax
lea ecx, [ebp - 0x404]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [ebp - 0x404]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x408], eax
mov eax, dword [ebp - 0x408]
and eax, 0x10
test eax, eax
jne 0x404afa
lea ecx, [ebp - 0x520]
push ecx
call fcn.0054c3e0
add esp, 4
cmp eax, 7
jb 0x404afa
movsx edx, byte [ebp - 0x520]
cmp edx, 0x6f
je 0x4049bf
movsx eax, byte [ebp - 0x520]
cmp eax, 0x4f
jne 0x404afa
movsx ecx, byte [ebp - 0x51f]
cmp ecx, 0x65
je 0x4049db
movsx edx, byte [ebp - 0x51f]
cmp edx, 0x45
jne 0x404afa
movsx eax, byte [ebp - 0x51e]
cmp eax, 0x6d
je 0x4049f7
movsx ecx, byte [ebp - 0x51e]
cmp ecx, 0x4d
jne 0x404afa
lea edx, [ebp - 0x520]
push edx
call fcn.0054c3e0
add esp, 4
movsx eax, byte [ebp + eax - 0x523]
cmp eax, 0x69
je 0x404a6b
lea ecx, [ebp - 0x520]
push ecx
call fcn.0054c3e0
add esp, 4
movsx edx, byte [ebp + eax - 0x523]
cmp edx, 0x49
je 0x404a6b
lea eax, [ebp - 0x520]
push eax
call fcn.0054c3e0
add esp, 4
movsx ecx, byte [ebp + eax - 0x523]
cmp ecx, 0x70
je 0x404a6b
lea edx, [ebp - 0x520]
push edx
call fcn.0054c3e0
add esp, 4
movsx eax, byte [ebp + eax - 0x523]
cmp eax, 0x50
jne 0x404afa
lea ecx, [ebp - 0x520]
push ecx
call fcn.0054c3e0
add esp, 4
movsx edx, byte [ebp + eax - 0x522]
cmp edx, 0x6e
je 0x404aa3
lea eax, [ebp - 0x520]
push eax
call fcn.0054c3e0
add esp, 4
movsx ecx, byte [ebp + eax - 0x522]
cmp ecx, 0x4e
jne 0x404afa
lea edx, [ebp - 0x520]
push edx
call fcn.0054c3e0
add esp, 4
movsx eax, byte [ebp + eax - 0x521]
cmp eax, 0x66
je 0x404adb
lea ecx, [ebp - 0x520]
push ecx
call fcn.0054c3e0
add esp, 4
movsx edx, byte [ebp + eax - 0x521]
cmp edx, 0x46
jne 0x404afa
push 0x80
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp - 0x404]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [ebp - 0x54c]
push edx
mov eax, dword [ebp - 0x40c]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x404b1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x404b1f
jmp 0x404b24
jmp 0x404922
mov ecx, dword [ebp - 0x40c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esp, ebp
pop ebp
ret
Function at 0x404cff
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56f1ee
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push edi
mov dword [ebp - 4], 1
call fcn.00406d60
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x50], 0
mov ecx, 0xe
xor eax, eax
lea edi, [ebp - 0x4c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x50], 0x3c
mov dword [ebp - 0x4c], 0x40
mov dword [ebp - 0x48], 0
cmp dword [ebp - 0x10], 0
je 0x404d61
mov dword [ebp - 0x44], str.runas
jmp 0x404d68
mov dword [ebp - 0x44], 0x5bdc4c
lea ecx, [ebp + 8]
call fcn.00401440
mov dword [ebp - 0x40], eax
lea ecx, [ebp + 0xc]
call fcn.00401440
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], 0
cmp dword [ebp + 0x10], 0
je 0x404d94
mov dword [ebp - 0x34], 5
jmp 0x404d9b
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
cmp dword [ebp + 0x14], 0
je 0x404dc1
push 0xfa0
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov dword [ebp - 0x14], 0xffffffff
push 0xffffffffffffffff
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x404de6
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00560ea1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00560ea1
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x406d60
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x406d9d
cmp dword [ebp - 0x84], 2
jne 0x406d9d
cmp dword [ebp - 0x90], 6
jb 0x406d9d
mov eax, 1
jmp 0x406d9f
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x415437
Capabilities:
Print debug messages
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 0x3c], 0
je 0x415463
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 0x3c], 0xffffffff
jne 0x41546a
xor eax, eax
jmp 0x415544
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.0054c640
add esp, 8
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
cmp dword [0x5bdf20], 0
je 0x4154b7
cmp dword [ebp - 4], 0x2710
jle 0x4154a4
xor eax, eax
jmp 0x415544
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
jmp 0x41548b
mov dword [0x5bdf20], 1
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4154ea
mov eax, dword [ebp - 0x18]
jmp 0x415544
cmp dword [ebp + 0xc], 0
je 0x415537
mov dword [ebp - 0x10], 0
jmp 0x415502
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 3
jge 0x415537
push 0
lea eax, [ebp - 8]
push eax
push 0x7d
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 8], 0
je 0x415535
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 8]
mov byte [ecx], 0
jmp 0x415537
jmp 0x4154f9
mov dword [0x5bdf20], 0
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret 8

Function at 0x41554a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
push pe_nt_image_headers32
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x44], eax
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov edx, dword [ebp - 8]
mov dword [edx + 0x48], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov dword [eax + 0x4c], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov dword [edx + 0x50], eax
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp - 8]
add edx, 0x44
push edx
push 0x41562d
push 0x800
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x40], eax
push 0xf
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov esp, ebp
pop ebp
ret 4
Function at 0x41604e
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x388
mov dword [ebp - 0x388], ecx
push str.PortMapSetupOpt
lea eax, [ebp - 0x280]
push eax
call fcn.0054c45b
add esp, 8
lea ecx, [ebp - 0x384]
push ecx
mov edx, dword [ebp - 0x388]
mov eax, dword [edx + 0xc0]
push eax
call fcn.004016bb
add esp, 8
push 0x200
push 0
lea ecx, [ebp - 0x200]
push ecx
call fcn.0054bfb0
add esp, 0xc
lea edx, [ebp - 0x384]
push edx
push 0x200
lea eax, [ebp - 0x200]
push eax
push 0x5bdf34
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x280]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x200]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0054bec0
add esp, 8
mov esp, ebp
pop ebp
ret 8

Function at 0x4191b3
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov dword [ebp - 0x60], ecx
mov eax, dword [ebp - 0x60]
add eax, 0x134
push eax
push 0x10
lea ecx, [ebp - 0x10]
push ecx
push 0x590e0c
push 0x590e10
push 0x590e20
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [ebp - 0x10]
push edx
call fcn.0054c538
add esp, 4
test eax, eax
je 0x419282
push 0x590e2c
lea eax, [ebp - 0x10]
push eax
call fcn.0054c45b
add esp, 8
push 0xc36
mov ecx, dword [ebp - 0x60]
call fcn.00564186
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x38]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.004113b0
mov ecx, dword [ebp - 0x14]
call fcn.00401670
mov dword [ebp - 0x18], eax
lea edx, [ebp - 0x38]
push edx
mov ecx, dword [ebp - 0x18]
call fcn.00567b99
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.004113b0
push 1
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x30]
add edx, 0xa
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.005643a0
push 0x590e30
push 0x524
mov ecx, dword [ebp - 0x60]
call fcn.00564186
mov ecx, eax
call fcn.0056432f
jmp 0x41930b
push 0x65a
mov ecx, dword [ebp - 0x60]
call fcn.00564186
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x5c]
push edx
mov ecx, dword [ebp - 0x14]
call fcn.004113b0
mov ecx, dword [ebp - 0x14]
call fcn.00401670
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0x3c]
call fcn.00567b99
lea ecx, [ebp - 0x4c]
push ecx
mov ecx, dword [ebp - 0x3c]
call fcn.004113b0
push 1
mov edx, dword [ebp - 0x40]
sub edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x54]
add eax, 0xa
push eax
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
mov ecx, dword [ebp - 0x3c]
call fcn.005643a0
push 0x590e34
push 0x524
mov ecx, dword [ebp - 0x60]
call fcn.00564186
mov ecx, eax
call fcn.0056432f
push 0x590e38
lea eax, [ebp - 0x10]
push eax
call fcn.0054c45b
add esp, 8
cmp dword [ebp + 8], 0
jne 0x41932f
mov ecx, dword [ebp - 0x60]
add ecx, 0x134
push ecx
lea edx, [ebp - 0x10]
push edx
push str.EXTENDWINDOW
push str.UISETTING
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov esp, ebp
pop ebp
ret 4