joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d6e0
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
sub esp, 0x874
mov eax, dword [0x47b038]
xor eax, esp
mov dword [esp + 0x870], eax
mov eax, dword [esp + 0x87c]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x888]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
test edi, edi
je 0x40d729
cmp word [edi], 0
je 0x40d729
push eax
push edi
push str.CopyInfFileToSystem_____s___s__n
call fcn.0043e2c0
add esp, 0xc
jmp 0x40d737
push eax
push str.CopyInfFileToSystem_____s__n
call fcn.0043e2c0
add esp, 8
mov ebp, dword [sym.imp.USER32.dll_wsprintfW]
test edi, edi
je 0x40d75c
cmp word [edi], 0
je 0x40d75c
push edi
lea eax, [esp + 0x26c]
push str._s_admin_
push eax
call ebp
add esp, 0xc
jmp 0x40d76f
push 0x104
lea ecx, [esp + 0x26c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea edx, [esp + 0x268]
push edx
lea eax, [esp + 0x67c]
push str._sinfoem.inf
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x67c]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
xor bl, bl
cmp esi, 0xffffffff
je 0x40d80d
jmp 0x40d7b0
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x26c]
push ecx
lea edx, [esp + 0x680]
push str._sinf_s
push edx
call ebp
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
add esp, 0x10
push eax
lea ecx, [esp + 0x67c]
push ecx
mov ecx, dword [edx + 4]
call fcn.00443f00
test eax, eax
je 0x40d7ee
mov bl, 1
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40d7b0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
test bl, bl
jne 0x40d89c
xor esi, esi
mov bl, 1
test edi, edi
je 0x40d82c
cmp word [edi], 0
je 0x40d82c
push esi
push edi
push str._s_admin_Infoem_d.inf
lea ecx, [esp + 0x47c]
push ecx
jmp 0x40d842
push esi
lea edx, [esp + 0x26c]
push edx
push str._sInfoem_d.inf
lea eax, [esp + 0x47c]
push eax
call ebp
add esp, 0x10
lea ecx, [esp + 0x470]
push ecx
push str.wszOemInfFile__s_n
call fcn.0043e2c0
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 4]
add esp, 8
push 0
lea edx, [esp + 0x474]
push edx
call fcn.004421d0
test al, al
jne 0x40d893
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x474]
push ecx
mov ecx, dword [eax + 4]
push edx
call fcn.004449d0
xor bl, bl
inc esi
test bl, bl
jne 0x40d811
mov ecx, dword [esp + 0x880]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0044ac80
add esp, 0x874
ret 8

Function at 0x40e4c0
Capabilities:
Persist via run registry key

Disassembly:
sub esp, 0x414
mov eax, dword [0x47b038]
xor eax, esp
mov dword [esp + 0x410], eax
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
xor esi, esi
mov edi, edi
inc esi
push esi
lea eax, [esp + 0xc]
push str.SetPrnt_d
push eax
call edi
push 0x20019
lea ecx, [esp + 0x220]
push ecx
lea edx, [esp + 0x1c]
push edx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0044a470
add esp, 0x20
test eax, eax
jne 0x40e4e0
mov ecx, dword [esp + 0x418]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.0044ac80
add esp, 0x414
ret
Function at 0x40e530
Capabilities:
Persist via run registry key

Disassembly:
sub esp, 0xc40
mov eax, dword [0x47b038]
xor eax, esp
mov dword [esp + 0xc3c], eax
push ebx
push ebp
mov ebp, dword [esp + 0xc4c]
push esi
push edi
push ebp
push str.RemoveUserDevMode_____s__n
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], 0
mov byte [esp + 0x1b], 0
call fcn.0043e2c0
push 0x20019
push 0
push str.delDM
push str.SOFTWAREKyocera_MitaRemoteInstall
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0044a3b0
add esp, 0x1c
cmp eax, 1
jne 0x40e5b4
push 0x20006
push 0
push str.delDM
push str.SOFTWAREKyocera_MitaRemoteInstall
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0044a380
add esp, 0x14
mov dword [esp + 0x14], 0x64
push 0x20019
push 0x4626e4
push SysStringLen
call fcn.0044a4f0
mov esi, eax
imul eax, eax, 0x104
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044b473
push 0x20019
push esi
mov edi, eax
push edi
push 0x4626e4
push SysStringLen
call fcn.0044a510
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x24
test eax, eax
jbe 0x40e685
jle 0x40e669
mov esi, eax
nop
push edi
lea eax, [esp + 0x20]
push str._sPrintersDevModePerUser
push eax
call ebx
mov eax, edi
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e625
sub eax, edx
sar eax, 1
cmp eax, 0x14
jbe 0x40e63e
mov byte [esp + 0x13], 1
push 0xf003f
push ebp
lea ecx, [esp + 0x24]
push ecx
push SysStringLen
call fcn.0044a540
add esp, 0x10
test eax, eax
je 0x40e65e
inc dword [esp + 0x14]
add edi, 0x208
sub esi, 1
jne 0x40e610
push 0
push 0
push 0x1a
push 0xffff
call dword [sym.imp.USER32.dll_SendNotifyMessageW]
cmp byte [esp + 0x13], 0
jne 0x40e726
push 0x30c
lea edx, [esp + 0x638]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ebp
lea eax, [esp + 0x430]
push str._delDM___s_
push eax
call ebx
lea eax, [esp + 0x438]
add esp, 0xc
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e6b6
lea edi, [esp + 0x634]
sub eax, edx
add edi, 0xfffffffe
lea ecx, [ecx]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40e6d0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
call fcn.0040e4c0
push eax
lea ecx, [esp + 0x20]
push str.SetPrnt_d
push ecx
call ebx
push 0x20006
lea edx, [esp + 0x644]
push edx
lea eax, [esp + 0x30]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0044a440
add esp, 0x20
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
test eax, eax
jg 0x40e735
or eax, 0xffffffff
mov ecx, dword [esp + 0xc3c]
xor ecx, esp
call fcn.0044ac80
add esp, 0xc40
ret 4
Function at 0x40ee20
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x874
mov eax, dword [0x47b038]
xor eax, esp
mov dword [esp + 0x870], eax
mov eax, dword [esp + 0x878]
push ebx
push ebp
mov ebp, dword [esp + 0x884]
lea edx, [esp + 0x468]
push esi
mov dword [esp + 0x10], ebp
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40ee52
xor eax, eax
jmp 0x40ee70
movzx ecx, word [esp + eax + 0x46c]
mov word [esp + eax + 0x674], cx
add eax, 2
test cx, cx
jne 0x40ee70
lea eax, [esp + 0x674]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x40ee92
mov ecx, dword [0x465de4]
mov edx, dword [0x465de8]
mov dword [eax], ecx
mov ecx, dword [0x465dec]
mov dword [eax + 4], edx
mov dx, word [0x465df0]
mov dword [eax + 8], ecx
mov word [eax + 0xc], dx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x678]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
xor ebx, ebx
mov dword [esp + 0xc], esi
cmp esi, 0xffffffff
je 0x40f047
lea edx, [esp + 0x264]
sub ebp, edx
push edi
push 0x104
lea eax, [esp + 0x26c]
push 0
push eax
call fcn.0044ac90
add esp, 0xc
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [esp + eax + 0x470]
mov word [esp + eax + 0x268], cx
add eax, 2
test cx, cx
jne 0x40ef10
lea edi, [esp + 0x268]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40ef32
mov ecx, dword [0x461a8c]
lea eax, [esp + 0x44]
mov dword [edi], ecx
mov edx, eax
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ef50
lea edi, [esp + 0x268]
sub eax, edx
add edi, 0xfffffffe
jmp 0x40ef70
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40ef70
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x461aa4
lea eax, [esp + 0x44]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40efbb
test dx, dx
je 0x40efb7
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40efbb
add eax, 4
add ecx, 4
test dx, dx
jne 0x40ef95
xor eax, eax
jmp 0x40efc0
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40f026
mov ecx, 0x461a9c
lea eax, [esp + 0x44]
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40eff6
test dx, dx
je 0x40eff2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40eff6
add eax, 4
add ecx, 4
test dx, dx
jne 0x40efd0
xor eax, eax
jmp 0x40effb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40f026
test byte [esp + 0x18], 0x10
jne 0x40f026
lea eax, [esp + 0x268]
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [eax + ebp], cx
add eax, 2
test cx, cx
jne 0x40f010
inc ebx
add ebp, 0x208
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40eef1
mov esi, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
pop edi
push 0x40ec90
push 0x208
push ebx
push ebp
call fcn.0044c4a0
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push str.End_get_cab_files_n
call fcn.0043e2c0
mov ecx, dword [esp + 0x880]
add esp, 4
pop esi
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0044ac80
add esp, 0x874
ret 8
Function at 0x416eb0
Capabilities:
Create directory

Disassembly:
mov eax, 0x120c
call fcn.0044bf30
mov eax, dword [0x47b038]
xor eax, esp
mov dword [esp + 0x1208], eax
push ebx
mov ebx, dword [esp + 0x1214]
push esi
push edi
push ebx
push str.ProcessSectionAddDirs_____s__n
mov esi, ecx
call fcn.0043e2c0
mov ecx, dword [esi + 4]
add esp, 8
xor edi, edi
push edi
lea eax, [esp + 0x218]
push eax
push edi
push ebx
call fcn.004090a0
test al, al
je 0x416fca
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [esp + 0x218]
push ecx
push edi
push ebx
push str.__s___d____s__n
call fcn.0043e2c0
mov edx, dword [esi + 8]
add esp, 0x10
cmp byte [edx + 0x1e89], 0
je 0x416f32
mov ecx, esi
call fcn.0040b1b0
jmp 0x416fac
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x1a]
push ecx
mov word [esp + 0x1c], ax
call fcn.0044ac90
add esp, 0xc
xor eax, eax
mov edi, edi
movzx ecx, word [esp + eax + 0x218]
mov word [esp + eax + 0x10], cx
add eax, 2
test cx, cx
jne 0x416f50
mov ecx, dword [esi + 0xc]
push 0x463fc4
lea edx, [esp + 0x14]
push edx
call fcn.00441ee0
lea eax, [esp + 0x10]
push eax
push 0xffffffffffffffff
push 0xe
mov ecx, esi
call fcn.00415ea0
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.004160e0
push 0
lea edx, [esp + 0x14]
push edx
call ebp
lea eax, [esp + 0x10]
push eax
push 0
push 0xe
mov ecx, esi
call fcn.00415ea0
push 0
lea ecx, [esp + 0x21c]
push ecx
mov ecx, dword [esi + 4]
inc edi
push edi
push ebx
call fcn.004090a0
test al, al
jne 0x416f06
pop ebp
mov ecx, dword [esp + 0x1214]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0044ac80
add esp, 0x120c
ret 4
Function at 0x41cd30
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
sub esp, 0x664
mov eax, dword [0x47b038]
xor eax, esp
mov dword [esp + 0x660], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x678]
push edi
push str.RemoveSameInfFileFromSystem_____s__n
mov esi, ecx
call fcn.0043e2c0
add esp, 8
push 0x104
lea eax, [esp + 0x46c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [esp + 0x468]
push ecx
lea edx, [esp + 0x264]
push str._sinfoem.inf
push edx
call ebx
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x264]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x41ce3d
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x46c]
push eax
lea ecx, [esp + 0x268]
push str._sinf_s
push ecx
call ebx
lea edx, [esp + 0x270]
push edx
push str._____s__n
call fcn.0043e2c0
mov ecx, dword [esi + 0xc]
add esp, 0x18
push edi
lea eax, [esp + 0x264]
push eax
call fcn.00443f00
test eax, eax
je 0x41ce15
push str.______same_file_exist._remove_it_n
call fcn.0043e2c0
add esp, 4
lea ecx, [esp + 0x260]
push ecx
mov ecx, dword [esi + 0xc]
call fcn.00442ba0
jmp 0x41ce22
push str.______this_is_not_same._n
call fcn.0043e2c0
add esp, 4
lea edx, [esp + 0x10]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41cdb0
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x670]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0044ac80
add esp, 0x664
ret 4
Function at 0x42d1b0
Capabilities:
Create pipe
Read file on windows
Write file on windows
Write pipe

Disassembly:
mov eax, 0x2a14
call fcn.0044bf30
mov eax, dword [0x47b038]
xor eax, esp
mov dword [esp + 0x2a10], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp byte [esi + 0x10], bl
je 0x42d1db
mov eax, dword [esi + 0x25c]
jmp 0x42d248
push 0x206
lea edx, [esp + 0x16]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x1c], cx
call fcn.0044ac90
lea eax, [esi + 0x270]
push eax
lea ecx, [esp + 0x20]
push str..pipe_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
lea edx, [esp + 0x28]
push edx
push str.wszPipePath___s__n
call fcn.0043e2c0
add esp, 0x20
push ebx
push 0x3e8
push 0x400
push 0x400
push 2
push 6
push 3
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi + 0x25c], eax
mov dword [esi + 0x260], eax
mov dword [esi + 0x258], eax
cmp byte [esi + 0x268], bl
je 0x42d3af
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x42d270
cmp dword [esi + 0x258], 0xffffffff
je 0x42d3ad
push 0x800
lea ecx, [esp + 0x224]
push ebx
push ecx
call fcn.0044ac90
mov ecx, dword [esi + 0x25c]
add esp, 0xc
push ebx
lea edx, [esp + 0x14]
push edx
push 0x800
lea eax, [esp + 0x22c]
push eax
push ecx
mov dword [esp + 0x24], ebx
call ebp
test eax, eax
jne 0x42d2d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReadFile_2_Error__d__n
call fcn.0043e2c0
add esp, 8
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x10]
cmp eax, ebx
jbe 0x42d3a1
lea edx, [esp + 0x220]
push edx
push eax
push str.DATA__d____s__n
call fcn.0043e2c0
mov eax, dword [esp + 0x1c]
add esp, 0xc
push eax
lea ecx, [esp + 0x224]
push ecx
mov ecx, esi
call fcn.0042e590
cmp byte [esi + 0x269], bl
jne 0x42d39b
push 0x1ffe
lea eax, [esp + 0xa26]
xor edx, edx
push ebx
push eax
mov word [esp + 0xa2c], dx
call fcn.0044ac90
mov edx, dword [esi + 0x47c]
mov eax, dword [esi + 0x480]
lea ecx, [esi + 0x484]
push ecx
push edx
push eax
push str._d__d___s_
lea ecx, [esp + 0xa3c]
push 0x1000
push ecx
call fcn.0044d16c
lea eax, [esp + 0xa44]
add esp, 0x24
mov dword [esp + 0x14], ebx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x42d370
sub eax, edx
push ebx
sar eax, 1
lea edx, [esp + 0x18]
push edx
mov edx, dword [esi + 0x260]
lea eax, [eax + eax + 2]
push eax
lea ecx, [esp + 0xa2c]
push ecx
push edx
call edi
mov byte [esi + 0x269], bl
cmp byte [esi + 0x268], bl
jne 0x42d270
pop edi
pop ebp
mov ecx, dword [esp + 0x2a18]
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0044ac80
add esp, 0x2a14
ret
Function at 0x42d3d0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x674
mov eax, dword [0x47b038]
xor eax, esp
mov dword [esp + 0x670], eax
push ebx
push esi
mov esi, dword [esp + 0x684]
push edi
push str.PKGMAIN::CommandPrintTestPage___n
mov edi, ecx
call fcn.0043e2c0
xor ebx, ebx
add esp, 4
cmp word [esi], bx
je 0x42d511
push esi
lea eax, [esp + 0x68]
push str.rundll32_printui.dll_PrintUIEntry__k__n___s_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [esp + 0x70]
push ecx
push str.cmd___s__n
call fcn.0043e2c0
xor eax, eax
push 0x44
lea edx, [esp + 0x38]
push ebx
push edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
call fcn.0044ac90
add esp, 0x20
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x24]
push edx
push ebx
push ebx
push ebx
push ebx
mov eax, 1
push ebx
mov word [esp + 0x6c], ax
mov dword [esp + 0x68], eax
push ebx
lea eax, [esp + 0x84]
push eax
push ebx
mov dword [esp + 0x48], 0x44
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x42d4cd
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dword [esp + 0x10], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call ebx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
push edx
call ebp
mov eax, dword [esp + 0x10]
inc esi
cmp esi, 5
jg 0x42d4ba
cmp eax, 0x103
je 0x42d496
push eax
push str.dwExitCode___d__n
call fcn.0043e2c0
add esp, 8
xor ebx, ebx
pop ebp
jmp 0x42d4e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateProcess_failure____ld_n
call fcn.0043e2c0
add esp, 8
mov eax, str.PRINTTESTPAGE_Success
lea edx, [edi + 0x484]
mov dword [edi + 0x480], 1
mov dword [edi + 0x47c], ebx
sub edx, eax
mov edi, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x42d500
jmp 0x42d53f
mov eax, str.PRINTTESTPAGE_failed
lea edx, [edi + 0x484]
mov dword [edi + 0x480], ebx
mov dword [edi + 0x47c], ebx
sub edx, eax
lea ebx, [ebx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x42d530
mov ecx, dword [esp + 0x67c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0044ac80
add esp, 0x674
ret 8
Function at 0x42dd40
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x28
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push 0x7f00
xor ebx, ebx
push eax
mov dword [esp + 0x10], 3
mov dword [esp + 0x14], 0x42d050
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], eax
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x7f00
push ebx
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push 1
mov dword [esp + 0x24], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x34]
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], eax
call dword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
jne 0x42ddc7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x582
je 0x42ddc7
pop esi
xor eax, eax
pop ebx
add esp, 0x28
ret 0x14
mov eax, dword [esi + 0x240]
mov edx, dword [esi + 0x23c]
mov ecx, dword [esi + 0x244]
push ebp
lea ebp, [esi + 0x238]
push edi
mov edi, dword [ebp]
sub eax, edi
sub ecx, edx
cmp eax, ebx
jne 0x42ddf3
mov edi, SysReAllocString
mov eax, edi
cmp ecx, ebx
jne 0x42ddfe
mov edx, SysReAllocString
mov ecx, edx
mov ebx, dword [esi + 4]
push esi
push ebx
mov ebx, dword [esp + 0x4c]
push 0
push ebx
push ecx
mov ecx, dword [esp + 0x50]
push eax
push edx
mov edx, dword [esp + 0x5c]
push edi
push edx
mov edx, dword [esp + 0x6c]
lea eax, [esi + 0x12]
push eax
push ecx
or edx, 0x100
push edx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [esi + 8], eax
test eax, eax
jne 0x42de54
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.PKGMAIN::CreateWin32___CreateWindowEx_failed___ld__n
call fcn.0043e2c0
add esp, 8
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
add esp, 0x28
ret 0x14
push esi
push 0xffffffffffffffeb
push eax
mov dword [esi + 0xc], ebx
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [esi + 8]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov edx, dword [esi + 8]
push ebp
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esi + 8]
lea eax, [esi + 0x248]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
pop edi
pop ebp
pop esi
mov eax, 1
pop ebx
add esp, 0x28
ret 0x14

Function at 0x42df00
Capabilities:
Create thread

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
push eax
push 0
mov esi, ecx
push esi
push 0x42deb0
push 0
push 0
mov byte [esi + 0x268], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x264], eax
mov al, 1
pop esi
pop ecx
ret
Function at 0x438220
Capabilities:
Check os version
Link many functions at runtime

Disassembly:
sub esp, 0x118
mov eax, dword [0x47b038]
xor eax, esp
mov dword [esp + 0x114], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x114
mov esi, ecx
lea eax, [esp + 0x10]
push ebx
push eax
mov byte [esi + 4], bl
mov dword [esi], 0x13
call fcn.0044ac90
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x10], 0x114
call edi
test eax, eax
jne 0x438287
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x10], 0x114
call edi
test eax, eax
je 0x4383f7
mov eax, dword [esp + 0x1c]
sub eax, 1
je 0x4382d7
sub eax, 1
jne 0x438326
mov eax, dword [esp + 0x10]
cmp eax, 4
ja 0x4382a8
mov dword [esi], 0x11
cmp eax, 5
jne 0x438326
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x4382bd
mov dword [esi], 0x12
jmp 0x438326
cmp eax, 1
jne 0x4382ca
mov dword [esi], 0x13
jmp 0x438326
cmp eax, 2
jne 0x438326
mov dword [esi], 0x14
jmp 0x438326
cmp dword [esp + 0x10], 4
mov dword [esi], 3
jne 0x43830c
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x4382f4
mov dword [esi], 1
jmp 0x43830c
cmp eax, 0xa
jne 0x438301
mov dword [esi], 2
jmp 0x43830c
cmp eax, 0x5a
jne 0x43830c
mov dword [esi], 3
mov eax, dword [esp + 0x18]
and eax, 0xffff0000
cmp eax, 0x45a0000
jne 0x438322
mov dword [esi], 3
mov byte [esi + 4], 1
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
cmp byte [esi + 4], bl
je 0x4383aa
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 8], eax
cmp eax, ebx
je 0x4383f7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateToolhelp32Snapshot
push eax
call edi
mov ecx, dword [esi + 8]
push str.Process32First
push ecx
mov dword [esi + 0x1c], eax
call edi
mov edx, dword [esi + 8]
push str.Process32Next
push edx
mov dword [esi + 0x20], eax
call edi
mov dword [esi + 0x24], eax
mov eax, dword [esi + 8]
push str.Module32First
push eax
call edi
mov ecx, dword [esi + 8]
push str.Module32Next
push ecx
mov dword [esi + 0x28], eax
call edi
mov dword [esi + 0x2c], eax
jmp 0x4383f7
push str.psapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 8], eax
cmp eax, ebx
je 0x4383f7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EnumProcesses
push eax
call edi
mov edx, dword [esi + 8]
push str.EnumProcessModules
push edx
mov dword [esi + 0xc], eax
call edi
mov dword [esi + 0x10], eax
mov eax, dword [esi + 8]
push str.GetModuleFileNameExA
push eax
call edi
mov ecx, dword [esi + 8]
push str.GetModuleFileNameExW
push ecx
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0x18], eax
mov ecx, dword [esp + 0x120]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0044ac80
add esp, 0x118
ret