joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4040b0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
sub esp, 0xc
lea eax, [esp + 8]
push eax
lea ecx, [esp + 4]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push str.SYSTEMCurrentControlSetServicesUSBSTOR
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40410e
push 4
lea edx, [esp + 8]
push edx
push 4
push eax
mov eax, dword [esp + 0x10]
push str.massfilter
push eax
mov dword [esp + 0x1c], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x404114
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
add esp, 0xc
ret
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
add esp, 0xc
ret

Function at 0x404130
Capabilities:
Enumerate processes
Terminate process

Disassembly:
sub esp, 0x12c
mov eax, dword [0x431d18]
xor eax, esp
mov dword [esp + 0x128], eax
push esi
push 0
push 2
mov dword [esp + 0xc], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [esp + 4]
push eax
push esi
call sub.KERNEL32.dll_Process32First
lea ecx, [esp + 0x28]
push str.TelRun
push ecx
call fcn.004148f0
add esp, 8
test eax, eax
jne 0x40418a
lea edx, [esp + 4]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x404163
jmp 0x4041a2
mov eax, dword [esp + 0xc]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x12c]
pop esi
xor ecx, esp
call int.00413235
add esp, 0x12c
ret

Function at 0x404250
Capabilities:
Enumerate processes
Terminate process

Disassembly:
sub esp, 0x12c
mov eax, dword [0x431d18]
xor eax, esp
mov dword [esp + 0x128], eax
push esi
push 0
push 2
mov dword [esp + 0xc], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [esp + 4]
push eax
push esi
call sub.KERNEL32.dll_Process32First
lea ecx, [esp + 0x28]
push 0x427e68
push ecx
call fcn.004148f0
add esp, 8
test eax, eax
jne 0x40421a
lea edx, [esp + 4]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4041f3
jmp 0x404232
mov eax, dword [esp + 0xc]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x12c]
pop esi
xor ecx, esp
call int.00413235
add esp, 0x12c
ret
push esi
mov esi, ecx
call fcn.00404130
mov ecx, esi
pop esi
jmp 0x4041c0
Function at 0x404260
Capabilities:
Create directory
Get common file path
Get program files directory

Disassembly:
sub esp, 0x108
mov eax, dword [0x431d18]
xor eax, esp
mov dword [esp + 0x104], eax
push 0x104
lea eax, [esp + 4]
push 0
push eax
call fcn.00413c40
add esp, 0xc
push 0x433168
push 0
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
xor eax, eax
lea ecx, [ecx]
mov cl, byte [eax + 0x433168]
mov byte [esp + eax], cl
inc eax
test cl, cl
jne 0x4042a0
lea eax, [esp]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4042b2
mov ecx, dword [str.ZTE_CDMA_Log]
mov edx, dword [0x427eec]
mov dword [eax], ecx
mov ecx, dword [0x427ef0]
mov dword [eax + 4], edx
mov dx, word [0x427ef4]
mov dword [eax + 8], ecx
mov word [eax + 0xc], dx
push 0
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [esp]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4042f0
mov ecx, dword [str.ZTEDriverSetUp.log]
mov edx, dword [0x427ed8]
mov dword [eax], ecx
mov ecx, dword [0x427edc]
mov dword [eax + 4], edx
mov edx, dword [0x427ee0]
mov dword [eax + 8], ecx
mov ecx, dword [0x427ee4]
mov dword [eax + 0xc], edx
lea edx, [esp]
push esi
push edx
mov dword [eax + 0x10], ecx
call fcn.004022b0
mov esi, eax
add esp, 4
cmp esi, 1
jne 0x404347
push str.DriverSetUp__Begin....................
call fcn.00402190
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call int.00413235
add esp, 0x108
ret

Function at 0x4043e0
Capabilities:
Copy file

Disassembly:
sub esp, 0x20
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov dword [esp + 8], eax
lea eax, [esp]
mov edx, 0x2014
push eax
mov dword [esp + 8], 2
mov dword [esp + 0x10], ecx
mov word [esp + 0x14], dx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
add esp, 0x20
ret 8

Function at 0x404420
Capabilities:
Get common file path
Get program files directory

Disassembly:
push esi
push edi
mov esi, ecx
push 0x104
lea edi, [esi + 0x30c]
push edi
call fcn.00404360
lea edx, [esi + 0x104]
mov eax, edi
sub edx, edi
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x404440
push esi
push 0
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
dec esi
lea ebx, [ebx]
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x404460
mov eax, dword [str.CMUpdater]
mov dword [esi], eax
mov ecx, dword [0x427f14]
mov dword [esi + 4], ecx
mov dx, word [0x427f18]
mov word [esi + 8], dx
mov al, byte [0x427f1a]
pop edi
mov byte [esi + 0xa], al
pop esi
ret
Function at 0x404550
Capabilities:
Identify system language via api

Disassembly:
sub esp, 0x108
mov eax, dword [0x431d18]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
push esi
push edi
push 0x104
lea eax, [esp + 0x10]
push 0
push eax
mov ebx, ecx
call fcn.00413c40
lea edx, [esp + 0x18]
add esp, 0xc
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x404585
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, 0x804
cmp ax, cx
jne 0x4045d1
lea edi, [esp + 0xc]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4045a7
mov ecx, 5
mov esi, str.Languagelan_CN_S.ini
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edx, [esp + 0xc]
push edx
mov ecx, ebx
movsb byte es:[edi], byte [esi]
call fcn.00404490
push str._OS_Language:_CHINESE_SIMPLIFIED__n
jmp 0x40460f
mov ecx, 0x404
cmp ax, cx
jne 0x40460a
lea edi, [esp + 0xc]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4045e0
mov ecx, 5
mov esi, str.Languagelan_CN_T.ini
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edx, [esp + 0xc]
push edx
mov ecx, ebx
movsb byte es:[edi], byte [esi]
call fcn.00404490
push str._OS_Language:_CHINESE_TRADITIONAL__n
jmp 0x40460f
push str._OS_Language:_English__n
call fcn.00402190
add esp, 4
lea eax, [esp + 0xc]
push eax
push str.lan_path__s_n
call fcn.00402190
add esp, 8
push 0x190
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x110]
pop edi
pop esi
pop ebx
xor ecx, esp
call int.00413235
add esp, 0x108
ret
Function at 0x404650
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x260
mov eax, dword [0x431d18]
xor eax, esp
mov dword [esp + 0x25c], eax
push ebx
push esi
push 0x40
lea eax, [esp + 0x20]
push 0
push eax
mov ebx, ecx
call fcn.00413c40
xor eax, eax
push 0x104
push eax
lea ecx, [esp + 0x174]
push ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 0x44
call fcn.00413c40
push 0x104
lea edx, [esp + 0x78]
push 0
push edx
call fcn.00413c40
lea eax, [ebx + 0x30c]
lea edx, [esp + 0x80]
add esp, 0x24
sub edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4046d0
push edi
mov ecx, ebx
call fcn.00404550
lea edi, [esp + 0x60]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4046e7
mov ecx, 7
mov esi, str.USBDriverInstaller_x64.exe
lea eax, [esp + 0x60]
rep movsd dword es:[edi], dword [esi]
dec eax
pop edi
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x404701
mov ecx, dword [str._Preinstall]
mov edx, dword [0x4280e8]
mov dword [eax], ecx
mov ecx, dword [0x4280ec]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x7c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x404757
push str.CreateProcess_USBDriverInstaller_x64_failed._n
call fcn.00402190
add esp, 4
push str.Waiting_for_USBDriverInstaller_x64_exit_..._n
call fcn.00402190
mov edx, dword [esp + 0xc]
add esp, 4
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push str.USBDriverInstaller_x64_exited__n
call fcn.00402190
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
push eax
call esi
mov ecx, dword [esp + 0xc]
push ecx
call esi
lea edx, [esp + 0x160]
pop esi
mov eax, ebx
sub edx, ebx
pop ebx
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4047a0
lea eax, [esp + 0x158]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4047b2
mov edx, dword [str.TelRun64.exe]
mov ecx, dword [0x428058]
mov dword [eax], edx
mov edx, dword [0x42805c]
mov dword [eax + 4], ecx
mov cx, word [0x428060]
mov dword [eax + 8], edx
lea edx, [esp + 0x158]
push edx
push str.the_console_exe_is__s_n
mov word [eax + 0xc], cx
call fcn.00402190
add esp, 8
push 0
lea eax, [esp + 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call int.00413235
add esp, 0x260
ret
Function at 0x404820
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x260
mov eax, dword [0x431d18]
xor eax, esp
mov dword [esp + 0x25c], eax
push ebx
push ebp
push esi
push 0x40
lea eax, [esp + 0x24]
push 0
push eax
mov ebx, ecx
call fcn.00413c40
xor eax, eax
push 0x104
push eax
lea ecx, [esp + 0x178]
push ecx
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], 0x44
call fcn.00413c40
push 0x104
lea edx, [esp + 0x7c]
push 0
push edx
call fcn.00413c40
lea ebp, [ebx + 0x30c]
lea edx, [esp + 0x84]
add esp, 0x24
mov eax, ebp
sub edx, ebp
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4048a0
push edi
mov ecx, ebx
call fcn.00404550
lea edi, [esp + 0x64]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4048b7
mov ecx, 7
mov esi, str.USBDriverInstaller_x86.exe
lea eax, [esp + 0x64]
rep movsd dword es:[edi], dword [esi]
dec eax
pop edi
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4048d1
mov ecx, dword [str._Preinstall]
mov edx, dword [0x4280e8]
mov dword [eax], ecx
mov ecx, dword [0x4280ec]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x20]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x80]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40492a
push str.CreateProcess_USBDriverInstaller_x86_failed._n
call fcn.00402190
add esp, 4
push str.Waiting_for_USBDriverInstaller_x86_exit_..._n
call fcn.00402190
mov edx, dword [esp + 0x10]
add esp, 4
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push str.USBDriverInstaller_x86_exited__n
call fcn.00402190
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
lea edx, [esp + 0x164]
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x404970
lea eax, [esp + 0x164]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x404982
mov edx, dword [str.TelRun.exe]
mov ecx, dword [0x428128]
mov dword [eax], edx
mov edx, dword [0x42812c]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
lea eax, [esp + 0x164]
push eax
push str.the_console_exe_is__s_n
call fcn.00402190
push ebp
push str.the_current_exe_is__s_n
call fcn.00402190
add esp, 0x10
push 0
lea ecx, [esp + 0x168]
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov ecx, dword [esp + 0x268]
pop esi
pop ebp
pop ebx
xor ecx, esp
call int.00413235
add esp, 0x260
ret

Function at 0x405f49
Capabilities:
Encode data using xor

Disassembly:
bound eax, qword [esi]
sub eax, 0x135b0a
call 0xc05ef891
and eax, 0x7bb57009
invalid
Function at 0x409978
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409a4b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409a64
push ebx
push 0x409a70
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.00403388
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00402750
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004033e8
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x4099f8
mov al, 0x69
call fcn.0040961c
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.0040994c
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x409a01
call fcn.0040994c
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409a52
lea eax, [ebp - 4]
call fcn.0040316c
ret

Function at 0x409b04
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409bb8
jmp 0x409bad
cmp dword [esi + 0x10], 0x1000
jne 0x409b99
test byte [esi + 0x15], 1
jne 0x409b99
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409b58
cmp eax, 2
je 0x409b58
cmp eax, 0x10
je 0x409b58
cmp eax, 0x20
jne 0x409b6d
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409b6d
mov bl, 1
xor ebp, ebp
jmp 0x409b7e
mov eax, dword [esi]
add eax, ebp
call fcn.00409afc
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409b71
test bl, bl
je 0x409b99
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409bb8
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409b30
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x54f8ff
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x810dd4
push eax
push dword fs:[0]
mov dword fs:[0], esp
xor eax, eax
mov dword [eax], ecx
push eax
inc ebp
inc ebx
outsd dx, dword [esi]
insd dword es:[edi], dx
jo 0x54f97f
arpl word [edx + esi], si
ret
add byte [esi - 0x4d], bh
lcall 0x3339, 0x9ab0dc2d
sbb eax, 0x42d6c1c5
salc
inc edx
dec edi
push ebp
xor byte [ebx - 0xfcfea80], 0x6d
mov cl, 0x64
dec ecx
push 0x8ab439c7
loopne 0x54f972
hlt
Function at 0x4027d1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
push esi
push edi
xor esi, esi
xor edi, edi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
cmp edi, 0x5c9f243
jg 0x402801
inc edi
cmp edi, 0x1e70dee2
jl 0x4027e0
cmp dword [0x4340fc], 0x400
jne 0x402853
push 0x429bfc
push str.jumopudigazipaham
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push esi
push esi
lea eax, [ebp - 0x400]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasA]
push esi
call fcn.00402a99
push esi
push esi
call fcn.00402ad3
pop ecx
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00402970
fstp st(0)
push esi
call fcn.00402c63
add esp, 0xc
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, 0x58bc6e
jg 0x402872
inc edi
cmp edi, 0xe52f
jl 0x402855
mov eax, dword [0x42c0c4]
mov dword [0x4340fc], eax
call fcn.0040252b
mov edi, 0x3078f
cmp dword [0x4340fc], 0x51f
jne 0x4028a0
push esi
lea eax, [ebp - 0x800]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec edi
jne 0x402886
pop edi
xor eax, eax
pop esi
leave
ret 0x10

Function at 0x406671
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42b340]
jne 0x40667b
repz ret
jmp fcn.004088bc
Function at 0x407163
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42b340]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00404053
and dword [ebp - 0x14], 0
cmp dword [0x42dd0c], 0
mov dword [ebp - 0x18], eax
jne 0x407216
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4072be
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4072be
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x42dd0c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x42dd10], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42dd14], eax
call edi
push eax
call esi
mov dword [0x42dd1c], eax
test eax, eax
je 0x407216
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42dd18], eax
mov eax, dword [0x42dd18]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40726f
cmp dword [0x42dd1c], ecx
je 0x40726f
push eax
call esi
push dword [0x42dd1c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40726f
test ebx, ebx
je 0x40726f
call edi
test eax, eax
je 0x407266
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x407266
test byte [ebp - 8], 1
jne 0x40726f
or dword [ebp + 0x10], 0x200000
jmp 0x4072a2
mov eax, dword [0x42dd10]
cmp eax, dword [ebp - 0x18]
je 0x4072a2
push eax
call esi
test eax, eax
je 0x4072a2
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4072a2
mov eax, dword [0x42dd14]
cmp eax, dword [ebp - 0x18]
je 0x4072a2
push eax
call esi
test eax, eax
je 0x4072a2
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42dd0c]
call esi
test eax, eax
je 0x4072be
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4072c0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406671
leave
ret

Function at 0x43b62d
Capabilities:
Encode data using xor

Disassembly:
push 0x43b3c1
mov ecx, dword [esp]
add esp, 4
add esi, ebx
mov esi, 0x52060132
or ebx, esi
call fcn.0043b66c
and esi, ebx
mov esi, ebx
add ebx, ebx
xor dword [edx], ecx
and ebx, esi
inc edx
inc esi
inc ebx
mov esi, 0x7fe3daec
cmp edx, eax
jne fcn.0043b62d
sub ebx, 0x5b0dab6e
sub esi, ebx
ret
Function at 0x401210
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
call fcn.004013f0
mov ebx, eax
xor ebp, ebp
cmp ebx, ebp
je 0x4013d7
mov esi, dword [esp + 0x1c]
mov eax, esi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x10], ebp
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401240
sub eax, edx
push edi
mov dword [esp + 0x10], eax
cmp eax, 0x8000
jae 0x401283
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401260
push ebp
lea ecx, [esp + 0x20]
push ecx
sub eax, edx
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebp, dword [esp + 0x1c]
mov edi, eax
jmp 0x401363
cmp eax, ebp
jbe 0x4013d6
jmp 0x401294
mov esi, dword [esp + 0x20]
lea edx, [esi + ebp]
mov eax, edx
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4012a0
sub eax, esi
cmp eax, 0x8000
jbe 0x4012b7
mov eax, 0x8000
jmp 0x4012c9
mov eax, edx
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4012c0
sub eax, esi
push 0
lea ecx, [esp + 0x20]
push ecx
push eax
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
mov eax, dword [esp + 0x1c]
add ebp, eax
cmp edi, 1
jne 0x401363
cmp eax, 0x8000
jne 0x401367
push eax
call fcn.00412395
push 0x8000
mov esi, eax
push 0
push esi
call fcn.00414280
add esp, 0x10
push 0
lea edx, [esp + 0x18]
push edx
push 0x8000
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
test edi, edi
je 0x4013d6
mov edx, esi
mov ecx, str.need_more_data
lea ebx, [ebx]
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x401350
test al, al
je 0x40134c
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x401350
add ecx, 2
add edx, 2
test al, al
jne 0x401330
xor eax, eax
jmp 0x401355
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4013d6
cmp ebp, dword [esp + 0x10]
jb 0x401290
test edi, edi
je 0x4013d6
cmp dword [esp + 0x10], ebp
jne 0x4013d6
push 0x8000
call fcn.00412395
push 0x8000
mov esi, eax
push 0
push esi
call fcn.00414280
add esp, 0x10
push 0
lea eax, [esp + 0x18]
push eax
push 0x8000
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4013d6
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4013a6
sub eax, edx
inc eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, dword [esp + 0x24]
mov dword [ecx], eax
mov ecx, esi
mov edx, eax
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x4013c3
push esi
call fcn.0041245f
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 0xc
Function at 0x406750
Capabilities:
Get file size
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x484
mov eax, dword [0x431300]
xor eax, esp
mov dword [esp + 0x480], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
lea edx, [esp + 0x18]
push esi
push edi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x10], ebx
test edx, edx
je 0x4068ee
lea ecx, [esp + 0x1c]
test ecx, ecx
je 0x4068ee
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x20], esi
cmp esi, 0xffffffff
je 0x4068ee
push ebx
push ebx
push ebx
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
mov dword [esp + 0x1c], edi
cmp edi, 0xffffffff
je 0x4068e7
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov dword [esp + 0x2c], ebx
test ebx, ebx
jbe 0x4068dc
push ebx
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esp + 0x24], eax
test eax, eax
je 0x4068dc
mov ecx, 0x10
mov esi, eax
lea edi, [esp + 0x128]
mov edx, 0x5a4d
rep movsd dword es:[edi], dword [esi]
cmp dx, word [esp + 0x128]
jne 0x4068cd
mov edx, dword [esp + 0x164]
lea esi, [edx + eax]
mov ecx, 0x3e
lea edi, [esp + 0x30]
rep movsd dword es:[edi], dword [esi]
cmp dword [esp + 0x30], 0x4550
jne 0x4068cd
mov ecx, dword [esp + 0x34]
shr ecx, 0x10
mov dword [esp + 0x14], 0
test ecx, ecx
jle 0x4068b8
lea edx, [edx + eax + 0xf8]
lea ebx, [esp + 0x178]
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], ecx
mov esi, dword [esp + 0x18]
lea edi, [ebx - 0x10]
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x6c]
mov eax, dword [ebx]
lea eax, [ecx + eax - 1]
xor edx, edx
div ecx
imul eax, ecx
mov ecx, dword [ebx + 4]
add eax, ecx
cmp eax, dword [esp + 0x14]
jbe 0x4068a1
mov dword [esp + 0x14], eax
add dword [esp + 0x18], 0x28
add ebx, 0x28
sub dword [esp + 0x10], 1
jne 0x406873
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
mov dword [ecx], ebx
mov dword [ecx + 4], edx
mov dword [esp + 0x10], 1
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x48c]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.004122ac
mov esp, ebp
pop ebp
ret