joyce8/EMBER2024-capa huggingface dataset:
Function at 0x447400
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x31c
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
xor eax, eax
mov dword [ecx], eax
mov dword [ecx + 4], eax
push 2
push eax
push eax
push 0x4953f4
mov dword [ecx + 8], eax
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4475f1
lea edx, [esp + 0x140]
push edx
push ebx
mov dword [esp + 0x148], 0x11f
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInfoListDetailA]
test eax, eax
je 0x4475ea
lea eax, [esp + 0x24]
push eax
push 0
push ebx
mov dword [esp + 0x30], 0x1c
mov dword [esp + 0x18], 0
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x4475ea
mov edi, edi
mov edx, dword [esp + 0x38]
push 0
push 0
push 0xc8
lea ecx, [esp + 0x26c]
push ecx
push edx
call dword [sym.imp.SETUPAPI.dll_CM_Get_Device_ID_ExA]
test eax, eax
jne 0x447532
push 0x20019
push 1
push eax
push 1
lea eax, [esp + 0x34]
push eax
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov esi, eax
cmp esi, 0xffffffff
je 0x447525
xor eax, eax
mov byte [esp + 0x40], 0
mov ecx, 0x3f
lea edi, [esp + 0x41]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x44]
push edx
stosb byte es:[edi], al
lea eax, [esp + 0x28]
push eax
push 0
push 0x47e124
push esi
mov dword [esp + 0x38], 1
mov dword [esp + 0x34], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x44751c
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x40]
push ecx
push edx
call fcn.0045f0d0
add esp, 8
test eax, eax
jne 0x44755e
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x447532
push str.GetBDFNumberFromDeviceKey:_SetupDiOpenDevRegKey_function_fails_n
call fcn.0040aab0
add esp, 4
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x24]
inc eax
push ecx
push eax
push ebx
mov dword [esp + 0x18], eax
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x447480
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x10]
push edx
push 4
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0x15
lea edx, [esp + 0x38]
push edx
push ebx
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 4
mov dword [esp + 0x28], 0
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
mov eax, dword [esp + 0x14]
mov edi, dword [ebp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push 4
mov dword [edi], eax
xor eax, eax
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push 0x1c
lea ecx, [esp + 0x38]
push ecx
push ebx
mov dword [esp + 0x2c], 4
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
mov eax, dword [esp + 0x18]
mov edx, eax
shr edx, 0x10
and eax, 0xffff
push esi
mov dword [edi + 4], edx
mov dword [edi + 8], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4497c0
Capabilities:
Delete registry value

Disassembly:
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp]
push eax
push 0x2001f
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x449812
mov edx, dword [esp]
push str.DALCurrentObjectData
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x449808
push str.RemoveLassoLastSelectedSettings:_Success_deleted__DALCurrentObjectData
call fcn.0040aab0
add esp, 4
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ecx
ret
Function at 0x44a9f0
Capabilities:
Set registry value

Disassembly:
mov eax, dword [0x491164]
sub esp, 0xc
push edi
push 0
push eax
call fcn.00424f40
mov edi, eax
add esp, 8
test edi, edi
je 0x44aad9
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x44aad5
lea ecx, [esp + 0xc]
push ecx
push 0x2001f
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
test eax, eax
jne 0x44aacf
lea edx, [esp + 8]
push edx
push 0x2001f
push eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
push str.SoftwareATI_Technologies_Inc._
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x44aa9a
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0xc]
push edx
push 0
push 0x2001f
push 0
push 0
push 0
push str.SoftwareATI_Technologies_Inc._
push eax
mov dword [esp + 0x34], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x44aac8
mov edx, dword [esp + 8]
push 4
lea ecx, [esp + 0x14]
push ecx
push 4
push 0
push str.VistaMobileInternalActionInprocess
push edx
mov dword [esp + 0x28], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0xc]
push ecx
call ebx
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
push edi
call ebx
pop ebx
pop edi
add esp, 0xc
ret

Function at 0x44aae0
Capabilities:
Set registry value

Disassembly:
mov eax, dword [0x491164]
sub esp, 0xc
push esi
push 0
push eax
call fcn.00424f40
mov esi, eax
add esp, 8
test esi, esi
je 0x44ab89
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x44ab85
lea ecx, [esp + 0xc]
push ecx
push 0x2001f
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
test eax, eax
jne 0x44ab7f
lea edx, [esp + 8]
push edx
push 0x2001f
push eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
push str.SoftwareATI_Technologies_Inc._
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x44ab78
mov edx, dword [esp + 8]
push 4
lea ecx, [esp + 0x14]
push ecx
push 4
push eax
push str.VistaMobileInternalActionInprocess
push edx
mov dword [esp + 0x28], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0xc]
push ecx
call ebx
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
push esi
call ebx
pop ebx
pop esi
add esp, 0xc
ret
Function at 0x44b0a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x44
mov eax, dword [0x491164]
push ebx
push ebp
xor ebx, ebx
push ebx
push eax
mov dword [esp + 0x10], ebx
call fcn.00424f40
mov ebp, eax
add esp, 8
cmp ebp, ebx
je 0x44b1ad
push ebp
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x44b1a6
mov eax, dword [0x489484]
mov edx, dword [0x489480]
push esi
push edi
mov ecx, 7
mov esi, str.SoftwareATIACESettingsEEU
lea edi, [esp + 0x34]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [str.XDNotification]
mov dword [esp + 0x2c], eax
mov eax, 4
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x24], ecx
mov cx, word [0x489488]
mov dword [esp + 0x28], edx
mov dl, byte [0x48948a]
push eax
push 0x2001f
movsw word es:[edi], word [esi]
mov word [esp + 0x38], cx
mov byte [esp + 0x3a], dl
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
test eax, eax
jne 0x44b19e
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push ebx
lea edx, [esp + 0x40]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x44b197
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x28]
push eax
push ebx
lea ecx, [esp + 0x34]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x44b190
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x14]
push eax
call esi
mov ecx, dword [esp + 0x18]
push ecx
call esi
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
pop edi
pop esi
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 8]
pop ebp
pop ebx
add esp, 0x44
ret

Function at 0x44b680
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 4]
push eax
call fcn.0044b290
push 0
call fcn.0044bfb0
add esp, 8
jmp fcn.0044aae0

Function at 0x44bfb0
Capabilities:
Enumerate gui resources

Disassembly:
push esi
movzx esi, byte [esp + 8]
push esi
call fcn.0044bee0
add esp, 4
push esi
push 0x44be80
call dword [sym.imp.USER32.dll_EnumWindows]
pop esi
ret
Function at 0x44e280
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov dword [ebp - 0x9c], 0
push 0x94
push 0
lea eax, [ebp - 0x98]
push eax
call fcn.00460240
add esp, 0xc
mov dword [ebp - 0x98], 0x94
lea ecx, [ebp - 0x98]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x44e3b1
mov edx, dword [ebp - 0x88]
mov dword [ebp - 0xa0], edx
cmp dword [ebp - 0xa0], 0
je 0x44e3a7
cmp dword [ebp - 0xa0], 1
je 0x44e368
cmp dword [ebp - 0xa0], 2
je 0x44e2f8
jmp 0x44e3b1
cmp dword [ebp - 0x94], 5
jae 0x44e30d
mov dword [ebp - 0x9c], 4
jmp 0x44e366
cmp dword [ebp - 0x94], 5
jne 0x44e335
mov dword [ebp - 0x9c], 7
cmp dword [ebp - 0x90], 0
jne 0x44e333
mov dword [ebp - 0x9c], 6
jmp 0x44e366
cmp dword [ebp - 0x94], 6
jne 0x44e347
cmp dword [ebp - 0x90], 1
je 0x44e350
cmp dword [ebp - 0x94], 6
jbe 0x44e35c
mov dword [ebp - 0x9c], 9
jmp 0x44e366
mov dword [ebp - 0x9c], 8
jmp 0x44e3b1
cmp dword [ebp - 0x94], 4
jne 0x44e3a5
cmp dword [ebp - 0x90], 0xa
jne 0x44e386
mov dword [ebp - 0x9c], 3
jmp 0x44e3a5
cmp dword [ebp - 0x90], 0x5a
jne 0x44e39b
mov dword [ebp - 0x9c], 5
jmp 0x44e3a5
mov dword [ebp - 0x9c], 2
jmp 0x44e3b1
mov dword [ebp - 0x9c], 1
mov eax, dword [ebp - 0x9c]
mov esp, ebp
pop ebp
ret
Function at 0x4520d0
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
cmp dword [ebp + 8], 0
je 0x4520f1
cmp dword [ebp + 0xc], 0
je 0x4520f1
cmp dword [ebp + 0x14], 0
je 0x4520f1
cmp dword [ebp + 0x18], 0
jne 0x4520f8
xor eax, eax
jmp 0x452247
cmp dword [ebp + 0x1c], 0
je 0x452111
cmp dword [ebp + 0x1c], 1
je 0x452111
cmp dword [ebp + 0x1c], 2
je 0x452111
xor eax, eax
jmp 0x452247
mov dword [ebp - 0xcc], 0
push 0xc8
push 0
lea eax, [ebp - 0xc8]
push eax
call fcn.00460240
add esp, 0xc
push 0xc8
lea ecx, [ebp - 0xc8]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00451e00
test eax, eax
je 0x452241
mov dword [ebp - 0xd4], 0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xd8], eax
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
mov dword [ebp - 0xd0], edx
lea eax, [ebp - 0xd4]
push eax
push 0x2001f
push 0
lea ecx, [ebp - 0xc8]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x452241
cmp dword [ebp + 0x1c], 0
jne 0x4521da
lea edx, [ebp - 0xd0]
push edx
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0xd8]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0xd4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4521d8
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 0xd0]
mov dword [ecx], edx
mov dword [ebp - 0xcc], 1
jmp 0x452234
cmp dword [ebp + 0x1c], 1
jne 0x452215
mov eax, dword [ebp - 0xd0]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0xd8]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0xd4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x452213
mov dword [ebp - 0xcc], 1
jmp 0x452234
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0xd4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x452234
mov dword [ebp - 0xcc], 1
mov ecx, dword [ebp - 0xd4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xcc]
mov esp, ebp
pop ebp
ret 0x18
Function at 0x45d800
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x45d817
cmp dword [ebp + 0x14], 0
jne 0x45d81b
xor eax, eax
jmp 0x45d87d
push 0
lea eax, [ebp - 4]
push eax
push 0
push 2
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x45d842
xor eax, eax
jmp 0x45d87d
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 1
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x45d86e
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x45d87d
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x45d890
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
mov dword [ebp - 4], 1
cmp dword [ebp + 8], 0
jne 0x45d8ae
xor eax, eax
jmp 0x45d90a
lea eax, [ebp - 8]
push eax
push 1
push 0
mov ecx, dword [ebp + 8]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x45d8cd
xor eax, eax
jmp 0x45d90a
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x45d8fb
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x45d90a
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x45d910
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x45d927
cmp dword [ebp + 0x14], 0
jne 0x45d92b
xor eax, eax
jmp 0x45d98d
push 0
lea eax, [ebp - 4]
push eax
push 0
push 2
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x45d952
xor eax, eax
jmp 0x45d98d
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 3
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x45d97e
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x45d98d
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x46006e
Capabilities:
Accept command line arguments

Disassembly:
push 0x60
push 0x48b058
call fcn.00463acc
and dword [ebp - 4], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or dword [ebp - 4], 0xffffffff
mov ebx, 0x94
push ebx
push 0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x46022f
mov dword [esi], ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push esi
test eax, eax
jne 0x4600ca
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x46022f
mov eax, dword [esi + 0x10]
mov dword [0x4963e4], eax
mov eax, dword [esi + 4]
mov dword [0x4963f0], eax
mov eax, dword [esi + 8]
mov dword [0x4963f4], eax
mov eax, dword [esi + 0xc]
and eax, 0x7fff
mov dword [0x4963e8], eax
xor ebx, ebx
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [0x4963e4], 2
je 0x46010b
or byte [0x4963e9], 0x80
mov eax, dword [0x4963f0]
shl eax, 8
add eax, dword [0x4963f4]
mov dword [0x4963ec], eax
call fcn.00460012
mov dword [ebp - 0x1c], eax
push ebx
call fcn.00463b9b
pop ecx
test eax, eax
jne 0x460152
cmp dword [0x4963b8], 1
jne 0x46013f
call fcn.00465058
push 0x1c
call fcn.00464ecc
push 0xff
call fcn.0046358d
pop ecx
pop ecx
mov dword [ebp - 4], 1
call fcn.004656d3
test eax, eax
jge 0x46016a
push 0x1b
call fcn.0045ffbf
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x497fdc], eax
call fcn.004655ab
mov dword [0x4963b0], eax
call fcn.00465508
test eax, eax
jge 0x460190
push 8
call fcn.0045ffbf
pop ecx
call fcn.004652ba
test eax, eax
jge 0x4601a1
push 9
call fcn.0045ffbf
pop ecx
call fcn.00463600
mov dword [ebp - 0x28], eax
cmp eax, ebx
je 0x4601b4
push eax
call fcn.0045ffbf
pop ecx
call fcn.0046525b
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4601c8
movzx eax, word [ebp - 0x40]
jmp 0x4601cb
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push ebx
push 0x400000
call fcn.00410530
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x4601ea
push esi
call fcn.004636d6
call fcn.00463704
jmp 0x46021c
or dword [ebp - 4], 0xffffffff
mov eax, esi
jmp 0x460234
mov eax, 0xff
call fcn.00463b07
ret
Function at 0x46389e
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x4638cf
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0x4638d6
cmp ebx, dword [ebp + 8]
jae 0x4638d6
xor eax, eax
jmp 0x463ac6
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4638e7
xor eax, eax
inc eax
jmp 0x463ac5
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4638fd
cmp ecx, edx
jae 0x463a42
cmp dword [eax + 4], 0
je 0x463906
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4638ee
cmp dword [ebp + 8], 0
je 0x463928
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x463a42
cmp eax, esi
jae 0x463a42
mov eax, dword [0x496448]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x46394d
cmp dword [esi*4 + 0x496450], edi
je 0x463a46
inc esi
cmp esi, eax
jl 0x46393b
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x463ac2
cmp dword [ebp - 8], 0x1000000
jne 0x463ac2
test byte [ebp - 0xc], 0xcc
je 0x4639cb
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x463ac2
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x463ac2
cmp word [eax + 0x18], 0x10b
jne 0x463ac2
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x463ac2
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4639cb
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4639cb
test byte [ecx + 0x27], 0x80
jne 0x463a42
push 1
push 0x496490
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4638df
mov ecx, dword [0x496448]
test ecx, ecx
mov edx, ecx
jle 0x4639ff
lea eax, [ecx*4 + 0x49644c]
cmp dword [eax], edi
je 0x4639ff
dec edx
sub eax, 4
test edx, edx
jg 0x4639f3
test edx, edx
jne 0x463a30
push 0xf
pop ebx
cmp ecx, ebx
jg 0x463a0c
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x463a24
lea eax, [edx*4 + 0x496450]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x463a12
cmp ecx, 0x10
jge 0x463a30
inc ecx
mov dword [0x496448], ecx
push 0
push 0x496490
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4638df
xor eax, eax
jmp 0x463ac5
test esi, esi
jle 0x4638df
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x496490
call ebx
test eax, eax
jne 0x4638df
cmp dword [esi*4 + 0x496450], edi
je 0x463a9c
mov eax, dword [0x496448]
lea esi, [eax - 1]
test esi, esi
jl 0x463a8a
cmp dword [esi*4 + 0x496450], edi
je 0x463a86
dec esi
jns 0x463a7a
test esi, esi
jge 0x463a9a
cmp eax, 0x10
jge 0x463a95
inc eax
mov dword [0x496448], eax
lea esi, [eax - 1]
jmp 0x463a9c
je 0x463ab4
xor ecx, ecx
test esi, esi
jl 0x463ab4
lea eax, [ecx*4 + 0x496450]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x463aa2
push 0
push 0x496490
call ebx
jmp 0x4638df
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x464ecc
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 + 0x490a18]
je 0x464eee
inc esi
cmp esi, 0x13
mov dword [ebp - 4], esi
jb 0x464edc
cmp esi, 0x13
je 0x46502a
mov eax, dword [0x4963b8]
cmp eax, 1
push ebx
je 0x464ff9
test eax, eax
jne 0x464f17
cmp dword [0x4909a0], 1
je 0x464ff9
cmp ecx, 0xfc
je 0x465029
push edi
push 6
pop ecx
mov esi, str.Runtime_Error__n_nProgram:
mov edi, 0x496498
rep movsd dword es:[edi], dword [esi]
push 0x104
mov ebx, 0x4964b2
push ebx
movsw word es:[edi], word [esi]
push 0
mov byte [0x4965b6], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x464f65
push 5
pop ecx
mov esi, str._program_name_unknown_
mov edi, 0x4964b2
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 0x464f6a
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x464f9d
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x464f7e
sub eax, edx
push 3
lea eax, [eax + 0x496477]
push 0x46fad0
push eax
call fcn.0045e030
add esp, 0xc
mov edx, 0x496498
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x464fa5
mov eax, dword [ebp - 4]
mov eax, dword [eax*8 + 0x490a1c]
mov esi, 0x488bd0
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 0x464fc1
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x464fcd
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.00466b57
add esp, 0xc
pop edi
jmp 0x465029
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x465029
mov edx, dword [esi*8 + 0x490a1c]
mov ecx, edx
lea esi, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x465011
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 0x4655ab
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4968c0]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push edi
xor ebx, ebx
xor edi, edi
cmp eax, ebx
jne 0x4655f7
call esi
mov edi, eax
cmp edi, ebx
je 0x4655dd
mov dword [0x4968c0], 1
jmp 0x4655fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4655f2
push 2
pop eax
mov dword [0x4968c0], eax
jmp 0x4655f7
mov eax, dword [0x4968c0]
cmp eax, 1
jne 0x465674
cmp edi, ebx
jne 0x465608
call esi
mov edi, eax
cmp edi, ebx
je 0x46567d
cmp word [edi], bx
mov eax, edi
je 0x46561d
inc eax
inc eax
cmp word [eax], bx
jne 0x46560f
inc eax
inc eax
cmp word [eax], bx
jne 0x46560f
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 0x46566b
call fcn.004634c3
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x46566b
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 0x465668
push dword [ebp - 4]
call fcn.0045f918
pop ecx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x4656cc
cmp eax, 2
je 0x465681
cmp eax, ebx
je 0x465681
xor eax, eax
jmp 0x4656ce
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x46567d
cmp byte [esi], bl
je 0x46569e
inc eax
cmp byte [eax], bl
jne 0x465694
inc eax
cmp byte [eax], bl
jne 0x465694
sub eax, esi
inc eax
mov edi, eax
mov ecx, edi
call fcn.004634c3
cmp eax, ebx
je 0x4656c5
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