joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407580
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
xor ebx, ebx
cmp eax, ebx
je 0x4075c1
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [esi + 4], eax
je 0x4076ef
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtCreatePort
push eax
call edi
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
push str.NtAcceptConnectPort
push eax
call edi
mov ecx, dword [esi + 4]
push str.NtCompleteConnectPort
push ecx
mov dword [esi + 0xc], eax
call edi
mov edx, dword [esi + 4]
push str.NtConnectPort
push edx
mov dword [esi + 0x10], eax
call edi
mov dword [esi + 0x14], eax
mov eax, dword [esi + 4]
push str.NtRequestWaitReplyPort
push eax
call edi
mov ecx, dword [esi + 4]
push str.NtRequestPort
push ecx
mov dword [esi + 0x18], eax
call edi
mov edx, dword [esi + 4]
push str.NtReplyWaitReceivePort
push edx
mov dword [esi + 0x1c], eax
call edi
mov dword [esi + 0x20], eax
mov eax, dword [esi + 4]
push str.NtReplyWaitReceivePortEx
push eax
call edi
mov ecx, dword [esi + 4]
push str.NtReplyPort
push ecx
mov dword [esi + 0x24], eax
call edi
mov edx, dword [esi + 4]
push str.NtRegisterThreadTerminatePort
push edx
mov dword [esi + 0x28], eax
call edi
mov dword [esi + 0x2c], eax
mov eax, dword [esi + 4]
push str.NtReadRequestData
push eax
call edi
mov ecx, dword [esi + 4]
push str.NtWriteRequestData
push ecx
mov dword [esi + 0x30], eax
call edi
mov edx, dword [esi + 4]
push str.NtWaitForSingleObject
push edx
mov dword [esi + 0x34], eax
call edi
mov dword [esi + 0x38], eax
mov eax, dword [esi + 4]
push str.RtlInitUnicodeString
push eax
call edi
cmp dword [esi + 8], ebx
mov dword [esi + 0x3c], eax
pop edi
je 0x4076ea
cmp dword [esi + 0xc], ebx
je 0x4076ea
cmp dword [esi + 0x10], ebx
je 0x4076ea
cmp dword [esi + 0x14], ebx
je 0x4076ea
cmp dword [esi + 0x18], ebx
je 0x4076ea
cmp dword [esi + 0x1c], ebx
je 0x4076ea
cmp dword [esi + 0x20], ebx
je 0x4076ea
cmp dword [esi + 0x24], ebx
je 0x4076ea
cmp dword [esi + 0x28], ebx
je 0x4076ea
cmp dword [esi + 0x2c], ebx
je 0x4076ea
cmp dword [esi + 0x30], ebx
je 0x4076ea
cmp dword [esi + 0x34], ebx
je 0x4076ea
cmp dword [esi + 0x38], ebx
je 0x4076ea
cmp eax, ebx
je 0x4076ea
pop esi
mov al, 1
pop ebx
ret
pop esi
xor al, al
pop ebx
ret
pop esi
mov al, bl
pop ebx
ret
Function at 0x407b70
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
xor eax, eax
cmp byte [esi + 0x10], al
jne 0x407ba3
push edi
call fcn.00407730
mov edi, eax
test edi, edi
jne 0x407ba2
lea eax, [esi + 0x18]
push eax
push edi
push esi
push 0x407b20
push edi
push edi
mov byte [esi + 0x10], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x14], eax
mov eax, edi
pop edi
pop esi
ret

Function at 0x407c40
Capabilities:
Access the windows event log

Disassembly:
sub esp, 0x10c
mov eax, dword [0x42ac1c]
xor eax, esp
mov dword [esp + 0x108], eax
cmp dword [0x42c184], 0
push edi
mov edi, dword [esp + 0x114]
jne 0x407ccf
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x42c080
push 0
mov dword [0x42c180], eax
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
mov eax, dword [0x42c180]
push eax
push 0x42c080
lea ecx, [esp + 0x18]
push str._s_error:__d
push ecx
call fcn.0040ba74
add esp, 0x10
test esi, esi
lea edx, [esp + 0x10]
mov dword [esp + 8], edx
mov dword [esp + 0xc], edi
je 0x407cce
push 0
lea eax, [esp + 0xc]
push eax
push 0
push 2
push 0
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x10c]
pop edi
xor ecx, esp
call fcn.0040a1eb
add esp, 0x10c
ret

Function at 0x407cf0
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test eax, eax
mov dword [0x42c07c], eax
je 0x407e02
push ebx
push 0xf01ff
push 0x42c080
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
test eax, eax
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [0x42c05c], eax
je 0x407df8
push 0x42c060
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x407de3
push esi
push edi
push str.NTRSupport_Service_for_RC_in_Administrator_Mode
push str.Stopping__s.
call fcn.0040baef
push str.NTRSupport_Service_for_RC_in_Administrator_Mode
push str.Stopping__s.
call fcn.00409f90
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0x10
push 0x3e8
call esi
mov eax, dword [0x42c05c]
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0x42c060
push eax
call edi
test eax, eax
je 0x407dbf
mov edi, edi
cmp dword [0x42c064], 3
jne 0x407dbf
push 0x419780
call fcn.0040baef
add esp, 4
push 0x3e8
call esi
mov ecx, dword [0x42c05c]
push 0x42c060
push ecx
call edi
test eax, eax
jne 0x407d90
cmp dword [0x42c064], 1
pop edi
pop esi
push str.NTRSupport_Service_for_RC_in_Administrator_Mode
jne 0x407dd6
push str._n_s_stopped._n
jmp 0x407ddb
push str._n_s_failed_to_stop._n
call fcn.0040baef
add esp, 8
mov edx, dword [0x42c05c]
push edx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov eax, dword [0x42c05c]
push eax
call ebx
mov ecx, dword [0x42c07c]
push ecx
call ebx
pop ebx
ret
Function at 0x407e40
Capabilities:
Start service

Disassembly:
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test eax, eax
mov dword [0x42c07c], eax
je 0x407eb6
push esi
push 0xf01ff
push 0x42c080
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
test eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [0x42c05c], eax
je 0x407eac
push 1
push 0x407e10
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
mov eax, dword [0x42c05c]
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push str.RuntheService_StartService
call fcn.00409f90
mov ecx, dword [0x42c05c]
add esp, 4
push ecx
call esi
mov edx, dword [0x42c07c]
push edx
call esi
pop esi
ret

Function at 0x407f60
Capabilities:
Create service
Persist via windows service
Start service

Disassembly:
sub esp, 0x204
mov eax, dword [0x42ac1c]
xor eax, esp
mov dword [esp + 0x200], eax
push 0x200
lea eax, [esp + 4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x407fa0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.NTRSupport_Service_for_RC_in_Administrator_Mode
push str.Unable_to_install__s____ld
jmp 0x4080c3
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test eax, eax
mov dword [0x42c07c], eax
je 0x4080b2
push esi
push 0
push 0
push 0x41879a
push 0
push 0
lea ecx, [esp + 0x18]
push ecx
push 1
push 2
push 0x110
push 0xf01ff
push str.NTRSupport_Service_for_RC_in_Administrator_Mode
push 0x42c080
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [0x42c05c], eax
je 0x40807a
push str.NTRSupport_Service_for_RC_in_Administrator_Mode
push 0x42c080
push str._s_installed_as__s.
call fcn.00409f90
add esp, 0xc
cmp byte [esp + 0x20c], 0
je 0x408053
push str.NTRSupport_Service_for_RC_in_Administrator_Mode
push 0x42c080
push str._s_started_as__s.
call fcn.00409f90
add esp, 0xc
push 1
push 0x407e10
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
mov edx, dword [0x42c05c]
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov eax, dword [0x42c05c]
push eax
call esi
mov ecx, dword [0x42c07c]
push ecx
call esi
pop esi
mov ecx, dword [esp + 0x200]
xor ecx, esp
call fcn.0040a1eb
add esp, 0x204
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x42c080
push str.CreateService__s_failed____ld_n
call fcn.00409f90
mov ecx, dword [0x42c07c]
add esp, 0xc
push ecx
call esi
pop esi
mov ecx, dword [esp + 0x200]
xor ecx, esp
call fcn.0040a1eb
add esp, 0x204
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x42c080
push str.OpenSCManager__s_failed____ld_n
call fcn.00409f90
mov ecx, dword [esp + 0x20c]
add esp, 0xc
xor ecx, esp
call fcn.0040a1eb
add esp, 0x204
ret

Function at 0x4080e0
Capabilities:
Create thread

Disassembly:
push str.NTRSupport_Service_for_RC_in_Administrator_Mode
push str.Debugging__s._n
call fcn.0040baef
add esp, 8
push 1
push 0x407e10
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
jmp fcn.00406e50
Function at 0x408f70
Capabilities:
Get file version info

Disassembly:
sub esp, 0x924
mov eax, dword [0x42ac1c]
xor eax, esp
mov dword [esp + 0x920], eax
mov eax, dword [esp + 0x92c]
push ebx
push esi
mov esi, dword [esp + 0x938]
push edi
mov edi, dword [esp + 0x934]
test edi, edi
mov byte [esp + 0x1c], 0
mov byte [esi], 0
jne 0x408fc8
test eax, eax
jne 0x408fb3
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x104
lea ecx, [esp + 0x2c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edi, [esp + 0x28]
lea edx, [esp + 0x18]
push edx
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jne 0x408ff9
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x920]
xor ecx, esp
call fcn.0040a1eb
add esp, 0x924
ret
push ebp
push ebx
call fcn.0040b896
add esp, 4
mov ebp, eax
push ebp
push ebx
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40907b
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
push str.VarFileInfoTranslation
push ebp
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40907b
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
rol eax, 0x10
push eax
lea ecx, [esp + 0x24]
push str._08X
push ecx
call edi
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x140]
push str.StringFileInfo_sFileVersion
push eax
call edi
add esp, 0x18
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x138]
push eax
push ebp
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x40908b
push ebp
call fcn.0040a11b
add esp, 4
xor al, al
jmp 0x40913e
mov ecx, dword [esp + 0x18]
push 0x19
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp byte [esp + 0x944], 0
je 0x409133
xor edx, edx
xor eax, eax
jmp 0x4090b0
mov cl, byte [esi + edx]
test cl, cl
je 0x40912f
cmp cl, 0x30
jl 0x4090c7
cmp cl, 0x39
jg 0x4090c7
mov byte [esi + eax], cl
add eax, 1
mov cl, byte [esi + edx + 1]
test cl, cl
je 0x40912f
cmp cl, 0x30
jl 0x4090df
cmp cl, 0x39
jg 0x4090df
mov byte [esi + eax], cl
add eax, 1
mov cl, byte [esi + edx + 2]
test cl, cl
je 0x40912f
cmp cl, 0x30
jl 0x4090f7
cmp cl, 0x39
jg 0x4090f7
mov byte [esi + eax], cl
add eax, 1
mov cl, byte [esi + edx + 3]
test cl, cl
je 0x40912f
cmp cl, 0x30
jl 0x40910f
cmp cl, 0x39
jg 0x40910f
mov byte [esi + eax], cl
add eax, 1
mov cl, byte [esi + edx + 4]
test cl, cl
je 0x40912f
cmp cl, 0x30
jl 0x409127
cmp cl, 0x39
jg 0x409127
mov byte [esi + eax], cl
add eax, 1
add edx, 5
cmp edx, 0x19
jl 0x4090b0
mov byte [esi + eax], 0
push ebp
call fcn.0040a11b
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x930]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040a1eb
add esp, 0x924
ret
Function at 0x4092d0
Capabilities:
Check os version

Disassembly:
push esi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
movzx ecx, al
movzx edx, ah
jae 0x409335
mov eax, ecx
sub eax, 4
je 0x40932c
sub eax, 1
je 0x409300
sub eax, 1
jne 0x40936d
mov esi, 0x50
mov eax, esi
pop esi
ret
mov eax, edx
sub eax, 0
je 0x409323
sub eax, 1
je 0x40931a
sub eax, 1
jne 0x40936d
mov esi, 0x46
mov eax, esi
pop esi
ret
mov esi, 0x3c
mov eax, esi
pop esi
ret
mov esi, 0x32
mov eax, esi
pop esi
ret
mov esi, 0x29
mov eax, esi
pop esi
ret
sub ecx, 3
je 0x409368
sub ecx, 1
jne 0x40936d
test edx, edx
je 0x40935f
cmp edx, 0xa
je 0x409356
cmp edx, 0x5a
jne 0x40936d
mov esi, 0x1e
mov eax, esi
pop esi
ret
mov esi, 0x14
mov eax, esi
pop esi
ret
mov esi, 0xa
mov eax, esi
pop esi
ret
mov esi, 5
mov eax, esi
pop esi
ret

Function at 0x409380
Capabilities:
Get disk information

Disassembly:
sub esp, 0x164
mov eax, dword [0x42ac1c]
xor eax, esp
mov dword [esp + 0x160], eax
push esi
push 0x50
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push 0x104
lea ecx, [esp + 0x78]
push ecx
push 0x419dc0
mov esi, 0x55555555
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x4093d3
mov esi, dword [esp + 4]
xor esi, 0x55555555
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x164]
and eax, 0xffff0000
xor eax, esi
pop esi
xor ecx, esp
call fcn.0040a1eb
add esp, 0x164
ret

Function at 0x409ac0
Capabilities:
Delete file

Disassembly:
mov eax, dword [str.admin.log]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 4
push 0
push 1
push 0xc0000000
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x409b31
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0x5f5e100
jbe 0x409b2f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [str.admin.log]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [str.admin.log]
push 0
push 0x80
push 4
push 0
push 1
push 0xc0000000
push edx
call edi
pop edi
pop esi
ret
mov eax, esi
pop edi
pop esi
ret
Function at 0x409b60
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x128
mov eax, dword [0x42ac1c]
xor eax, esp
mov dword [esp + 0x124], eax
push ebx
push esi
mov esi, dword [esp + 0x134]
xor bl, bl
call fcn.004092d0
cmp eax, 0x29
mov eax, str.Global_
jg 0x409b93
mov eax, 0x41879a
mov ecx, dword [str.admin.log]
push ecx
push eax
lea edx, [esp + 0x10]
push str._s_s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 8]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
mov dword [esi], eax
je 0x409c00
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x409be9
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.0040a1eb
add esp, 0x128
ret
mov ecx, dword [esi]
push 0xfa
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
mov al, 1
jne 0x409c02
mov al, bl
mov ecx, dword [esp + 0x12c]
pop esi
pop ebx
xor ecx, esp
call fcn.0040a1eb
add esp, 0x128
ret

Function at 0x409f90
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x34
mov eax, dword [0x42ac1c]
xor eax, esp
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x38]
mov dword [esp], 0
cmp byte [eax], 0
mov dword [esp + 4], 0
je 0x40a033
lea ecx, [esp + 4]
push ecx
call fcn.00409b60
add esp, 4
test al, al
je 0x40a033
push edi
call fcn.00409ac0
mov edi, eax
cmp edi, 0xffffffff
je 0x40a025
push 0
lea edx, [esp + 8]
push edx
mov edx, dword [esp + 0x44]
lea eax, [esp + 0x18]
push eax
push 0
lea ecx, [esp + 0x50]
push ecx
push edx
call fcn.00409c40
add esp, 0x18
test al, al
je 0x40a01e
mov edx, dword [esp + 4]
mov eax, edx
push esi
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40a002
push 0
lea ecx, [esp + 0x14]
push ecx
sub eax, esi
push eax
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 8]
push edx
call fcn.00409c20
add esp, 4
pop edi
lea eax, [esp]
push eax
call fcn.004099d0
mov ecx, dword [esp + 0x34]
add esp, 4
xor ecx, esp
call fcn.0040a1eb
add esp, 0x34
ret

Function at 0x40a1eb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42ac1c]
jne 0x40a1f5
repz ret
jmp fcn.0040c178
Function at 0x412bf5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040d1cd
xor ebx, ebx
cmp dword [0x42cbe0], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x412cca
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x412c35
xor eax, eax
jmp 0x412d8e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x412c2e
push eax
call fcn.0040d16a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42cbe0], eax
call esi
push eax
call fcn.0040d16a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42cbe4], eax
call esi
push eax
call fcn.0040d16a
mov dword [0x42cbe8], eax
lea eax, [ebp - 8]
push eax
call fcn.0040e9f0
test eax, eax
pop ecx
pop ecx
je 0x412c98
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040e827
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x412cca
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040d16a
cmp eax, ebx
pop ecx
mov dword [0x42cbf0], eax
je 0x412cca
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040d16a
pop ecx
mov dword [0x42cbec], eax
mov eax, dword [0x42cbec]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x412d43
cmp dword [0x42cbf0], esi
je 0x412d43
push eax
call fcn.0040d1d6
pop ecx
call eax
cmp eax, ebx
je 0x412d10
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x42cbf0]
call fcn.0040d1d6
pop ecx
call eax
test eax, eax
je 0x412d10
test byte [ebp - 0x18], 1
jne 0x412d43
lea eax, [ebp - 0xc]
push eax
call fcn.0040ea27
test eax, eax
pop ecx
je 0x412d2b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040e827
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x412d3a
or dword [ebp + 0x10], 0x200000
jmp 0x412d74
or dword [ebp + 0x10], 0x40000
jmp 0x412d74
mov eax, dword [0x42cbe4]
cmp eax, esi
je 0x412d74
push eax
call fcn.0040d1d6
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x412d74
mov eax, dword [0x42cbe8]
cmp eax, esi
je 0x412d74
push dword [ebp - 4]
push eax
call fcn.0040d1d6
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x42cbe0]
call fcn.0040d1d6
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402251
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
mov eax, dword [0x4a561c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x78], 0
push ebx
push esi
lea edx, [ebp - 0x78]
push edx
push 0x40
mov dword [ebp - 0x88], ecx
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x74]
push edx
mov dword [ebp - 0x8c], ecx
mov ecx, dword [ebp + 0x10]
push edi
push eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x84], ecx
call ecx
cmp dword [ebp - 0x78], 0x40
jne 0x40234a
cmp word [ebp - 0x74], 0x5a4d
jne 0x40234a
mov eax, dword [ebp - 0x38]
and dword [ebp - 0x78], 0
lea ebx, [edi + eax]
lea eax, [ebp - 0x78]
push eax
mov esi, pe_nt_image_headers32
push esi
lea eax, [ebp - 0x184]
push eax
push ebx
push dword [ebp - 0x80]
call dword [ebp - 0x84]
cmp dword [ebp - 0x78], esi
jne 0x40234a
cmp dword [ebp - 0x184], 0x4550
jne 0x40234a
cmp word [ebp - 0x180], 0x14c
jne 0x40234a
cmp word [ebp - 0x16c], 0x10b
jne 0x40234a
and dword [ebp - 0x7c], 0
add ebx, esi
cmp word [ebp - 0x17e], 0
jbe 0x40234a
mov esi, 0x20000020
and dword [ebp - 0x78], 0
lea eax, [ebp - 0x78]
push eax
push 0x28
lea eax, [ebp - 0x30]
push eax
push ebx
push dword [ebp - 0x80]
call dword [ebp - 0x84]
cmp dword [ebp - 0x78], 0x28
jne 0x40234a
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x40234a
mov ecx, dword [ebp - 0xc]
and ecx, esi
cmp ecx, esi
je 0x40235a
movzx eax, word [ebp - 0x17e]
inc dword [ebp - 0x7c]
cmp dword [ebp - 0x7c], eax
jb 0x40230d
xor eax, eax
mov ecx, dword [ebp - 8]
pop esi
xor ecx, ebp
pop ebx
call fcn.00454684
leave
ret
mov ecx, dword [ebp - 0x88]
add eax, edi
mov dword [ecx], eax
mov ecx, dword [ebp - 0x20]
add eax, ecx
mov ecx, dword [ebp - 0x8c]
mov dword [ecx], eax
xor eax, eax
inc eax
jmp 0x40234c
Function at 0x40448d
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [0x484520]
push edi
mov ebx, eax
push dword [ebx]
call esi
push dword [ebx + 4]
mov edi, eax
call esi
and dword [ebp - 4], 0
mov ebx, eax
mov eax, dword [ebp - 4]
push dword [eax + 0x497518]
call esi
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 4
cmp dword [ebp - 4], 0x10
mov dword [ebp + ecx - 0x14], eax
jl 0x4044af
push 0x10
xor eax, eax
pop ecx
mov edx, ebx
shr edx, 5
add edx, dword [ebp - 0x10]
mov esi, ebx
shl esi, 4
add esi, dword [ebp - 0x14]
sub eax, 0x61c88647
xor edx, esi
lea esi, [eax + ebx]
xor edx, esi
add edi, edx
mov edx, edi
shr edx, 5
add edx, dword [ebp - 8]
mov esi, edi
shl esi, 4
add esi, dword [ebp - 0xc]
xor edx, esi
lea esi, [eax + edi]
xor edx, esi
add ebx, edx
dec ecx
jne 0x4044d0
mov esi, dword [0x484524]
push edi
call esi
mov edi, dword [ebp + 8]
push ebx
mov dword [edi], eax
call esi
mov dword [edi + 4], eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x404523
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [0x484520]
push edi
mov edi, eax
push dword [edi]
call esi
push dword [edi + 4]
mov ebx, eax
call esi
and dword [ebp - 4], 0
mov edi, eax
mov eax, dword [ebp - 4]
push dword [eax + 0x497518]
call esi
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 4
cmp dword [ebp - 4], 0x10
mov dword [ebp + ecx - 0x14], eax
jl 0x404545
push 0x10
mov eax, 0xe3779b90
pop ecx
mov edx, ebx
shr edx, 5
add edx, dword [ebp - 8]
mov esi, ebx
shl esi, 4
add esi, dword [ebp - 0xc]
xor edx, esi
lea esi, [eax + ebx]
xor edx, esi
sub edi, edx
mov edx, edi
shr edx, 5
add edx, dword [ebp - 0x10]
mov esi, edi
shl esi, 4
add esi, dword [ebp - 0x14]
xor edx, esi
lea esi, [eax + edi]
xor edx, esi
sub ebx, edx
add eax, 0x61c88647
dec ecx
jne 0x404569
mov esi, dword [0x484524]
push ebx
call esi
mov ebx, dword [ebp + 8]
push edi
mov dword [ebx], eax
call esi
pop edi
pop esi
mov dword [ebx + 4], eax
pop ebx
leave
ret