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

Disassembly:
sub esp, 0x114
push ebp
mov ebp, ecx
mov eax, dword [ebp + 4]
test eax, eax
je 0x405d18
push str.SoftwareMicrosoftWindows_NTCurrentVersionPorts
call fcn.00405dc0
lea eax, [esp + 4]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionPorts
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x405c13
cmp eax, 2
je 0x405d18
push 0
lea ecx, [esp + 0x10]
push 0
push ecx
push 0x400
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov eax, dword [0x43acf0]
test eax, eax
je 0x405c00
mov edx, dword [esp + 0xc]
push 0x40
push str.Registry_Error
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop ebp
add esp, 0x114
ret
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
xor esi, esi
push 0
lea ecx, [esp + 0x1c]
push 0
push ecx
lea edx, [esp + 0x1c]
push 0
lea ecx, [esp + 0x2c]
mov eax, esi
push edx
mov edx, dword [esp + 0x20]
push ecx
push eax
push edx
mov dword [esp + 0x30], 0x104
inc esi
call edi
test eax, eax
jne 0x405d0b
cmp dword [esp + 0x10], 4
jb 0x405c1d
push 3
lea eax, [esp + 0x20]
push 0x438904
push eax
call fcn.00410430
add esp, 0xc
test eax, eax
je 0x405c84
push 3
lea ecx, [esp + 0x20]
push 0x438900
push ecx
call fcn.00410430
add esp, 0xc
test eax, eax
jne 0x405c1d
push 3
lea edx, [esp + 0x20]
push 0x438904
push edx
call fcn.00410430
add esp, 0xc
test eax, eax
jne 0x405cf2
lea eax, [esp + 0x1f]
push eax
call fcn.00410668
add esp, 4
test eax, eax
jle 0x405c1d
cmp eax, 0x100
jg 0x405c1d
push eax
mov ecx, ebp
call fcn.00405fc0
test eax, eax
je 0x405c1d
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x405c1d
dec esi
jns 0x405c1d
xor esi, esi
jmp 0x405c1d
push 3
lea eax, [esp + 0x20]
push 0x438900
push eax
call fcn.00410430
add esp, 0xc
jmp 0x405c1d
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
add esp, 0x114
ret

Function at 0x405f20
Capabilities:
Delete registry key

Disassembly:
mov eax, dword [ecx + 4]
sub esp, 0x104
test eax, eax
push esi
push edi
mov edi, dword [esp + 0x114]
push edi
jne 0x405f47
mov eax, dword [esp + 0x114]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x405f54
mov edx, dword [esp + 0x114]
push edx
call fcn.00406300
mov esi, eax
cmp esi, 2
jne 0x405f6b
pop edi
mov eax, 1
pop esi
add esp, 0x104
ret 8
test esi, esi
je 0x405fa4
push edi
push str.Failed_to_delete
lea eax, [esp + 0x10]
push str._s_HKEY_LOCAL_MACHINE_Registry_Key_n_s.
push eax
call fcn.004103cb
mov eax, dword [0x43acf0]
add esp, 0x10
test eax, eax
je 0x405fa4
push 0x30
lea ecx, [esp + 0xc]
push str.RegDeleteKey_Failed
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
test esi, esi
sete al
pop esi
add esp, 0x104
ret 8
Function at 0x406300
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x108
lea eax, [esp]
push ebx
mov ebx, dword [esp + 0x114]
push ebp
push esi
push edi
mov ebp, ecx
mov ecx, dword [esp + 0x11c]
push eax
push 0xf003f
push 0
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4063d2
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea edx, [esp + 0x14]
push 0x104
push edx
push eax
mov eax, dword [esp + 0x1c]
push eax
call edi
mov esi, eax
test esi, esi
jne 0x406389
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push edx
mov ecx, ebp
call fcn.00406300
mov esi, eax
test esi, esi
jne 0x406403
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push 0x104
push eax
push esi
push ecx
call edi
mov esi, eax
test esi, esi
je 0x406356
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 0x103
mov dword [esp + 0x10], 0
jne 0x4063d2
mov ecx, dword [esp + 0x11c]
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
test esi, esi
je 0x4063d2
mov eax, dword [0x43acf0]
test eax, eax
je 0x4063d2
push 0x30
push str.MySHDeleteKey_Failed
push ebx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp esi, 2
je 0x4063f4
test esi, esi
je 0x4063f4
mov eax, dword [0x43acf0]
test eax, eax
je 0x4063f4
push 0x30
push str.MySHDeleteKey_Failed
push ebx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 8
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 8
Function at 0x406420
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x218
push ebp
mov ebp, ecx
mov eax, dword [ebp + 4]
test eax, eax
je 0x406529
push str.HARDWAREDEVICEMAPSERIALCOMM
call fcn.00405dc0
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push str.HARDWAREDEVICEMAPSERIALCOMM
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406529
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
push esi
push edi
xor esi, esi
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x20]
mov eax, 0x104
push edx
push ecx
lea edx, [esp + 0x24]
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], eax
push 0
lea ecx, [esp + 0x134]
mov eax, esi
push edx
mov edx, dword [esp + 0x28]
push ecx
push eax
push edx
inc esi
call ebx
test eax, eax
jne 0x40651b
cmp dword [esp + 0x10], 4
jb 0x40646d
mov edi, 0x438904
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x20]
push ecx
push 0x438904
push eax
call fcn.00410430
add esp, 0xc
test eax, eax
jne 0x40646d
mov edi, 0x438904
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ecx, [esp + ecx + 0x20]
push ecx
call fcn.00410668
add esp, 4
test eax, eax
jbe 0x40646d
cmp eax, 0x100
ja 0x40646d
dec eax
mov edx, eax
mov ecx, eax
shr edx, 3
and ecx, 7
mov al, 1
lea edx, [edx + ebp + 0x2c]
shl al, cl
or byte [edx], al
jmp 0x40646d
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x218
ret
Function at 0x406830
Capabilities:
Access peb ldr_data
Delete file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x42bffb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x128
push ebx
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x2d]
mov byte [esp + 0x2c], bl
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2d], bl
push ecx
lea ecx, [esp + 0xc]
call fcn.004207d1
push str.:MosUPPSP
lea ecx, [esp + 0xc]
mov dword [esp + 0x13c], ebx
call fcn.00420a57
push ebx
lea ecx, [esp + 0xc]
call fcn.00420a7e
call fcn.00421507
cmp eax, ebx
je 0x4068b6
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
jmp 0x4068b8
xor eax, eax
mov eax, dword [eax + 0x1c]
mov ecx, dword [esp + 8]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 3
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
mov word [esp + 0x1c], 0x410
mov dword [esp + 0x1e], ebx
mov dword [esp + 0x22], ebx
call fcn.00428be5
mov eax, dword [eax + 0x10]
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x2a], eax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
lea ecx, [esp + 8]
mov dword [esp + 0x138], 0xffffffff
call fcn.00420763
mov ecx, dword [esp + 0x130]
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x134
ret
Function at 0x406fa0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x30c
push ebx
push ebp
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.SETUPAPI
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
test ebp, ebp
jne 0x406ff9
push eax
push eax
push str.Error_in_loading_the_Setupapi.dll
call fcn.004278e1
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x30c
ret 4
push str.SetupUninstallOEMInfW
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
jne 0x40702c
push eax
push eax
push str.Error_in_getting_the_SetupCopyOEMInfA_function_adress
call fcn.004278e1
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x30c
ret 4
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
mov esi, dword [esp + 0x320]
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push 0
call edi
lea ecx, [esp + 0x114]
push eax
push ecx
push 0xffffffffffffffff
push esi
push 0
push 0
call edi
push 0
lea edx, [esp + 0x118]
push 0
push edx
call ebx
test eax, eax
pop esi
jne 0x407087
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x30c
ret 4
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop ebp
mov eax, 1
pop ebx
add esp, 0x30c
ret 4
Function at 0x41082b
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push 0x60
push 0x42f998
call fcn.004141d0
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 0x4109e2
mov dword [esi], ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push esi
push 0
test eax, eax
jne 0x410888
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4109e2
mov eax, dword [esi + 0x10]
mov dword [0x43cd30], eax
mov eax, dword [esi + 4]
mov dword [0x43cd3c], eax
mov eax, dword [esi + 8]
mov dword [0x43cd40], eax
mov eax, dword [esi + 0xc]
and eax, 0x7fff
mov dword [0x43cd34], eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [0x43cd30], 2
je 0x4108c6
or byte [0x43cd35], 0x80
mov eax, dword [0x43cd3c]
shl eax, 8
add eax, dword [0x43cd40]
mov dword [0x43cd38], eax
call fcn.004107cf
mov dword [ebp - 0x1c], eax
xor ebx, ebx
inc ebx
push ebx
call fcn.004159f7
pop ecx
test eax, eax
jne 0x4108f7
push 0x1c
call fcn.004107ab
pop ecx
call fcn.00413aee
test eax, eax
jne 0x410908
push 0x10
call fcn.004107ab
pop ecx
mov dword [ebp - 4], ebx
call fcn.004157c9
test eax, eax
jge 0x41091c
push 0x1b
call fcn.00410786
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x43e880], eax
call fcn.004156a3
mov dword [0x43cd14], eax
call fcn.00415602
test eax, eax
jge 0x410942
push 8
call fcn.00410786
pop ecx
call fcn.004153b8
test eax, eax
jge 0x410953
push 9
call fcn.00410786
pop ecx
call fcn.004120ad
mov dword [ebp - 0x28], eax
test eax, eax
je 0x410966
push eax
call fcn.00410786
pop ecx
call fcn.0041534f
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], bl
je 0x410979
movzx eax, word [ebp - 0x40]
jmp 0x41097c
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push 0
push 0x400000
call fcn.0041f387
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x1c], 0
jne 0x41099d
push esi
call fcn.004121c2
call fcn.004121e4
jmp 0x4109cf
or dword [ebp - 4], 0xffffffff
mov eax, esi
jmp 0x4109e7
mov eax, 0xff
call fcn.0041420b
ret
Function at 0x414f57
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00411b40
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x414ff2
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x43cd30]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x414ff2
cmp eax, 1
je 0x415013
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x414ff2
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x414fbf
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x414fee
xor eax, eax
inc eax
jmp 0x415032
cmp edi, eax
jae 0x414ff6
xor eax, eax
jmp 0x415032
cmp eax, esi
jae 0x414ffd
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x43cd30]
jmp 0x415016
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41503a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
xor eax, eax
cmp ecx, dword [eax*8 + 0x43a0c0]
je 0x415052
inc eax
cmp eax, 0x12
jb 0x415043
push esi
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x43a0c0]
mov dword [ebp + 8], esi
jne 0x415198
mov eax, dword [0x43cd1c]
cmp eax, 1
push ebx
je 0x415168
test eax, eax
jne 0x415087
cmp dword [0x439b74], 1
je 0x415168
cmp ecx, 0xfc
je 0x415197
push edi
push 6
pop ecx
mov esi, str.Runtime_Error__n_nProgram:
mov edi, 0x43cd98
rep movsd dword es:[edi], dword [esi]
push 0x104
mov ebx, 0x43cdb2
push ebx
movsw word es:[edi], word [esi]
push 0
mov byte [0x43ceb6], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4150d5
push 5
pop ecx
mov esi, str._program_name_unknown_
mov edi, 0x43cdb2
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 0x4150da
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x41510d
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4150ee
sub eax, edx
push 3
lea eax, [eax + 0x43cd77]
push 0x4302d4
push eax
call fcn.00418b50
add esp, 0xc
mov edx, 0x43cd98
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x415115
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x43a0c4]
mov esi, 0x4302d0
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 0x415130
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x41513c
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.00419849
add esp, 0xc
pop edi
jmp 0x415197
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x415197
mov esi, dword [esi + 0x43a0c4]
mov ecx, esi
lea edx, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x41517f
push 0
sub ecx, edx
lea edx, [ebp - 4]
push edx
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebx
pop esi
leave
ret

Function at 0x4170de
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x41710c
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x417111
cmp eax, 1
je 0x417111
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x417115
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
push esi
push edi
je 0x41717f
push ebx
call fcn.004170de
test eax, eax
pop ecx
jne 0x417150
call fcn.004123a2
mov dword [eax], 0xf
call fcn.0041238f
mov dword [eax], 0xd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x108]
push eax
mov esi, 0x104
push esi
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x417192
lea eax, [ebp - 0x108]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x417149
inc eax
cmp eax, esi
ja 0x417149
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x4171c4
cmp eax, dword [ebp + 0x10]
jg 0x4171aa
mov eax, dword [ebp + 0x10]
push eax
call fcn.00410fd6
mov edi, eax
test edi, edi
pop ecx
jne 0x4171d9
call fcn.0041238f
mov dword [eax], 0xc
jmp 0x417149
cmp eax, dword [ebp + 0x10]
jle 0x4171d9
call fcn.0041238f
mov dword [eax], 0x22
jmp 0x417149
lea ecx, [ebp - 0x108]
mov esi, edi
mov eax, ecx
sub esi, eax
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x4171e5
mov eax, edi
jmp 0x41714b
Function at 0x418d37
Capabilities:
Parse pe header

Disassembly:
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 0x418d65
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x418d6c
cmp ebx, dword [eax + 4]
jae 0x418d6c
xor eax, eax
jmp 0x418f5c
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x418d7d
xor eax, eax
inc eax
jmp 0x418f5b
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x418d93
cmp ecx, edx
jae 0x418ed8
cmp dword [eax + 4], 0
je 0x418d9c
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x418d84
cmp dword [ebp + 8], 0
je 0x418dbe
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x418ed8
cmp eax, esi
jae 0x418ed8
mov eax, dword [0x43d3f8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x418de3
cmp dword [esi*4 + 0x43d400], edi
je 0x418edc
inc esi
cmp esi, eax
jl 0x418dd1
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x418f58
cmp dword [ebp - 8], 0x1000000
jne 0x418f58
test byte [ebp - 0xc], 0xcc
je 0x418e61
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x418f58
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x418f58
cmp word [eax + 0x18], 0x10b
jne 0x418f58
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x418f58
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x418e61
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x418e61
test byte [ecx + 0x27], 0x80
jne 0x418ed8
push 1
push 0x43d440
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x418d75
mov ecx, dword [0x43d3f8]
test ecx, ecx
mov edx, ecx
jle 0x418e95
lea eax, [ecx*4 + 0x43d3fc]
cmp dword [eax], edi
je 0x418e95
dec edx
sub eax, 4
test edx, edx
jg 0x418e89
test edx, edx
jne 0x418ec6
push 0xf
pop ebx
cmp ecx, ebx
jg 0x418ea2
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x418eba
lea eax, [edx*4 + 0x43d400]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x418ea8
cmp ecx, 0x10
jge 0x418ec6
inc ecx
mov dword [0x43d3f8], ecx
push 0
push 0x43d440
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x418d75
xor eax, eax
jmp 0x418f5b
test esi, esi
jle 0x418d75
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x43d440
call ebx
test eax, eax
jne 0x418d75
cmp dword [esi*4 + 0x43d400], edi
je 0x418f32
mov eax, dword [0x43d3f8]
lea esi, [eax - 1]
test esi, esi
jl 0x418f20
cmp dword [esi*4 + 0x43d400], edi
je 0x418f1c
dec esi
jns 0x418f10
test esi, esi
jge 0x418f30
cmp eax, 0x10
jge 0x418f2b
inc eax
mov dword [0x43d3f8], eax
lea esi, [eax - 1]
jmp 0x418f32
je 0x418f4a
xor ecx, ecx
test esi, esi
jl 0x418f4a
lea eax, [ecx*4 + 0x43d400]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x418f38
push 0
push 0x43d440
call ebx
jmp 0x418d75
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41907f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
jne 0x41909d
xor eax, eax
jmp 0x41920b
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 + 0x43e540]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4190d0
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.0041a563
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4191a2
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], edi
jbe 0x4191da
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x41c]
mov dword [ebp - 8], edi
cmp ecx, dword [ebp + 0x10]
jae 0x41912b
mov edx, dword [ebp - 0xc]
inc dword [ebp - 0xc]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x41911c
inc dword [ebp - 0x14]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 8]
mov byte [eax], dl
inc eax
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x400
jl 0x4190ff
mov edi, eax
lea eax, [ebp - 0x41c]
sub edi, eax
push 0
lea eax, [ebp - 0x18]
push eax
push edi
lea eax, [ebp - 0x41c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41916b
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x10], eax
cmp eax, edi
jl 0x419174
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x4190f0
jmp 0x419176
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
xor edi, edi
mov eax, dword [ebp - 0x10]
cmp eax, edi
jne 0x419206
cmp dword [ebp - 4], edi
je 0x4191da
push 5
pop esi
cmp dword [ebp - 4], esi
jne 0x4191cf
call fcn.0041238f
mov dword [eax], 9
call fcn.004123a2
mov dword [eax], esi
jmp 0x419201
push edi
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4191c4
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], eax
jmp 0x419176
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x419176
push dword [ebp - 4]
call fcn.004123b5
pop ecx
jmp 0x419201
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4191ef
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x4191ef
xor eax, eax
jmp 0x419209
call fcn.0041238f
mov dword [eax], 0x1c
call fcn.004123a2
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x419209
sub eax, dword [ebp - 0x14]
pop esi
pop ebx
pop edi
leave
ret
Function at 0x419849
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x43d49c], ebx
push esi
push edi
jne 0x4198c9
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x419904
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x430da8
push edi
call esi
test eax, eax
mov dword [0x43d49c], eax
je 0x419904
push 0x430d98
push edi
call esi
push 0x430d84
push edi
mov dword [0x43d4a0], eax
call esi
cmp dword [0x43cd30], 2
mov dword [0x43d4a4], eax
jne 0x4198c9
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x43d4ac], eax
je 0x4198c9
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x43d4a8], eax
mov eax, dword [0x43d4a8]
test eax, eax
je 0x41990e
call eax
test eax, eax
je 0x4198f5
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x43d4ac]
test eax, eax
je 0x4198f5
test byte [ebp - 8], 1
jne 0x41990e
cmp dword [0x43cd3c], 4
jb 0x419908
or byte [ebp + 0x12], 0x20
jmp 0x41992d
xor eax, eax
jmp 0x41993d
or byte [ebp + 0x12], 4
jmp 0x41992d
mov eax, dword [0x43d4a0]
test eax, eax
je 0x41992d
call eax
mov ebx, eax
test ebx, ebx
je 0x41992d
mov eax, dword [0x43d4a4]
test eax, eax
je 0x41992d
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x43d49c]
pop edi
pop esi
pop ebx
leave
ret