joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100138e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x20
mov eax, dword [ecx]
mov esi, dword [ecx + 4]
test eax, eax
jne 0x10013ac8
mov eax, dword [0x1002900c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x10013930
lock add dword [eax + 0x1c], 1
mov dword [esi], eax
xor eax, eax
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
mov dword [esp + 4], 0xa0
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll_calloc]
mov ebx, eax
test eax, eax
je 0x10013ad2
mov eax, 0x1001adf0
mov dword [ebx + 0x10], 0x1001ade0
movd xmm0, eax
mov eax, 0x1001ae20
mov dword [ebx + 0x24], 0x1001adc0
movd xmm1, eax
mov eax, 0x1001ae64
mov dword [ebx + 0x14], 0x1001ada0
movd xmm2, eax
mov eax, 0x1001ae80
punpckldq xmm1, xmm0
mov dword [ebx + 0x18], 0x1001ad80
movd xmm0, eax
mov eax, dword [0x1002900c]
mov dword [ebx + 0x1c], 1
punpckldq xmm0, xmm2
mov dword [esp + 4], ebx
punpcklqdq xmm0, xmm1
mov dword [esp], eax
movups xmmword [ebx], xmm0
call dword [sym.imp.kernel32.dll_TlsSetValue]
lea eax, [ebx + 0x20]
sub esp, 8
mov dword [esp + 8], eax
mov dword [esp + 4], 0x10021738
mov dword [esp], ebx
call sym._CompartmentMgr_Constructor
lea eax, [ebx + 0x44]
mov dword [ebx + 0x48], eax
mov dword [ebx + 0x44], eax
lea eax, [ebx + 0x4c]
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x4c], eax
lea eax, [ebx + 0x54]
mov dword [ebx + 0x58], eax
mov dword [ebx + 0x54], eax
lea eax, [ebx + 0x98]
movd xmm4, eax
lea eax, [ebx + 0x90]
movd xmm0, eax
lea eax, [ebx + 0x88]
punpckldq xmm4, xmm4
movd xmm5, eax
lea eax, [ebx + 0x80]
punpckldq xmm0, xmm0
movd xmm1, eax
lea eax, [ebx + 0x78]
punpckldq xmm5, xmm5
movd xmm7, eax
lea eax, [ebx + 0x70]
punpckldq xmm1, xmm1
movd xmm2, eax
lea eax, [ebx + 0x68]
punpckldq xmm7, xmm7
movd xmm6, eax
lea eax, [ebx + 0x60]
punpckldq xmm2, xmm2
movd xmm3, eax
punpckldq xmm6, xmm6
punpcklqdq xmm2, xmm7
punpckldq xmm3, xmm3
punpcklqdq xmm1, xmm5
punpcklqdq xmm0, xmm4
movups xmmword [ebx + 0x70], xmm2
punpcklqdq xmm3, xmm6
movups xmmword [ebx + 0x80], xmm1
movups xmmword [ebx + 0x60], xmm3
movups xmmword [ebx + 0x90], xmm0
test byte [0x100150d4], 8
jne 0x10013a98
mov dword [esi], ebx
lea esp, [ebp - 0xc]
xor eax, eax
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.returning__p_n
mov dword [esp + 8], str.ThreadMgr_Constructor
mov dword [esp + 4], 0x100150d4
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_9
jmp 0x10013a83
mov eax, 0x80040110
jmp 0x1001391e
mov eax, 0x8007000e
jmp 0x1001391e
Function at 0x10013bf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x10013c48
cmp byte [esi + ebx - 1], 0xa
je 0x10013c1c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x100290a4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x10014270
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp], eax
call sym.___wine_dbg_get_channel_flags
movzx eax, al
bt eax, esi
jae 0x10014448
mov edi, dword [0x100290a4]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], edi
je 0x10014357
test byte [0x100150ec], 8
jne 0x100143f0
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x100150fc], 8
jne 0x100143b0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x100142f9
cmp esi, 3
jbe 0x10014368
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov ecx, ebx
mov edi, eax
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
and edx, 0x80808080
je 0x1001430a
mov esi, edx
mov dword [esp + 0xc], edi
shr esi, 0x10
test edx, 0x8080
mov dword [esp + 4], 1
cmove edx, esi
lea esi, [ecx + 2]
mov dword [esp], ebx
cmove ecx, esi
mov eax, edx
add al, dl
sbb ecx, 3
sub ecx, ebx
mov dword [esp + 8], ecx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x10021800]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x100142f9
mov dword [esp], 0x100150fc
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x100142d0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call sym._sprintf
add edi, eax
jmp 0x100142d0
mov dword [esp], 0x100150ec
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x100142bb
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea edi, [ebx + eax]
jmp 0x100142c3
mov eax, 0xffffffff
jmp 0x10014357
Function at 0x100144e0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x214
mov eax, dword [0x100290c0]
test eax, eax
je 0x10014598
mov dword [esp], ebx
call eax
mov dword [ebx + 8], eax
sub esp, 4
test eax, eax
jns 0x10014520
mov eax, dword [ebx]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [ebp - 0x214]
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
mov eax, dword [ebx]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], str.MODULE
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], str.SystemRoot
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov eax, dword [ebx]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], str.SystemRoot
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
jmp 0x1001450c
mov dword [esp], str.atl100.dll
call dword [sym.imp.kernel32.dll_LoadLibraryW]
sub esp, 4
test eax, eax
je 0x100145cd
mov dword [esp + 4], str.AtlCreateRegistrar
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x100290c0], eax
sub esp, 8
test eax, eax
jne 0x100144fd
mov dword [ebx + 8], 0x80004002
xor eax, eax
jmp 0x1001450e
Function at 0x100145e0
Capabilities:
Access peb ldr_data
Extract resource via kernel32 functions
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x28
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_FindResourceW]
sub esp, 0xc
mov dword [ebp - 0x10], eax
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov edx, dword [ebp - 0x10]
sub esp, 8
mov ebx, eax
mov dword [esp + 4], edx
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov dword [ebp - 0x10], eax
sub esp, 8
test ebx, ebx
je 0x10014770
mov eax, dword [esi]
test eax, eax
je 0x10014758
mov edx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], ebx
mov dword [esp + 0x14], 0
mov dword [ebp - 0x1c], edx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call edx
lea ecx, [eax + 1]
sub esp, 0x18
lea eax, [ecx + ecx]
mov dword [ebp - 0x18], ecx
mov ecx, eax
mov dword [esp + 4], 0
mov dword [esp + 8], ecx
mov dword [ebp - 0x14], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
sub esp, 0xc
test eax, eax
mov edi, eax
je 0x1001477c
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [esi + 4]
xor edx, edx
sub esp, 0x18
mov word [edi + eax - 2], dx
mov eax, dword [esi]
test ecx, ecx
mov edx, dword [eax]
mov dword [esp + 4], edi
mov dword [esp], eax
jne 0x10014748
call dword [edx + 0x28]
mov dword [esi + 8], eax
sub esp, 8
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esi + 8]
sub esp, 0xc
lea esp, [ebp - 0xc]
not eax
pop ebx
pop esi
shr eax, 0x1f
pop edi
pop ebp
ret 0x10
call dword [edx + 0x24]
mov dword [esi + 8], eax
sub esp, 8
jmp 0x1001470c
mov edx, esi
mov eax, edi
call sym._create_registrar
test eax, eax
jne 0x10014646
lea esi, [esi]
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov dword [esi + 8], 0x8007000e
xor eax, eax
jmp 0x10014772
Function at 0xae4058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00ae41a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xae407e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xae406a
add dl, dl
jne 0xae4089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xae40dc
xor eax, eax
add dl, dl
jne 0xae4096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xae417d
add dl, dl
jne 0xae40a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xae40b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xae40bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xae40c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xae40d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xae4075
mov eax, 1
add dl, dl
jne 0xae40ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xae40f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xae40e1
sub eax, ebx
mov ebx, 1
jne 0xae4128
mov ecx, 1
add dl, dl
jne 0xae410e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xae4119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xae4105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xae4075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xae413f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xae414a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xae4136
cmp eax, 0x7d00
jae 0xae416d
cmp eax, 0x500
jb 0xae4168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xae4075
cmp eax, 0x7f
ja 0xae4170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xae4075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xae419e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xae4075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x402960
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [ecx + 4]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x402993
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x402993
mov ecx, 0xe0
cmp word [eax + 0x14], cx
jne 0x402993
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x402993
mov al, 1
ret
xor al, al
ret

Function at 0x46fa50
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x24], 0
jne 0x46faea
push str.dwmapi.dll
call main
add esp, 4
mov dword [esi + 0x20], eax
test eax, eax
je 0x46fae6
push str.DwmInvalidateIconicBitmaps
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.DwmSetIconicThumbnail
push dword [esi + 0x20]
mov dword [esi + 4], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.DwmSetIconicLivePreviewBitmap
push dword [esi + 0x20]
mov dword [esi + 8], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.DwmSetWindowAttribute
push dword [esi + 0x20]
mov dword [esi + 0xc], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.DwmGetWindowAttribute
push dword [esi + 0x20]
mov dword [esi + 0x10], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.DwmExtendFrameIntoClientArea
push dword [esi + 0x20]
mov dword [esi + 0x14], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.DwmDefWindowProc
push dword [esi + 0x20]
mov dword [esi + 0x18], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [esi + 0x1c], eax
mov byte [esi + 0x24], 1
pop esi
ret
Function at 0x4c0360
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a4f6b
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x62cf50]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
call fcn.00401a00
mov edi, eax
mov ecx, dword [edi]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x5b1854]
mov ecx, edi
call esi
mov ecx, eax
call fcn.00401c60
test al, al
je 0x4c0587
call main
mov esi, eax
test esi, esi
je 0x4c0587
test ebx, ebx
je 0x4c0587
cmp word [ebx], 0
je 0x4c0587
push ebx
lea ecx, [ebp - 0x240]
call main
push ebx
mov dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x4c0452
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
dec eax
cmp eax, 0x102
ja 0x4c0452
push ebx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x4c0452
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c0430
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x240]
call main
mov ebx, dword [ebp + 0x10]
lea ecx, [ebp - 0x224]
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x21c], 0
push esi
movq qword [ebp - 0x224], xmm0
call main
push 0x34
lea eax, [ebp - 0x274]
push 0
push eax
call fcn.0056aed0
add esp, 0xc
lea edi, [ebp - 0x240]
cmp dword [ebp - 0x22c], 8
lea ecx, [ebp - 0x224]
cmovae edi, dword [ebp - 0x240]
call fcn.004c94b0
mov esi, eax
test esi, esi
je 0x4c057c
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x228]
push 4
push 0
push 4
mov dword [esi], 0x110
mov dword [esi + 4], 0
mov dword [esi + 0x3c], 3
mov dword [esi + 0x44], 0x70
push eax
mov dword [ebp - 0x228], ecx
mov ecx, esi
push 0
call main
test al, al
je 0x4c057c
push 1
push 0
lea ecx, [ebp - 0x278]
mov dword [ebp - 0x278], edi
call main
push eax
push edi
push 1
mov ecx, esi
call main
test al, al
je 0x4c057c
push 6
push 1
push 0x208
push ebx
push 2
mov ecx, esi
mov dword [ebp - 0x27c], 0x208
mov dword [ebp - 0x278], ebx
call main
test al, al
je 0x4c057c
lea eax, [ebp - 0x274]
push eax
push esi
lea ecx, [ebp - 0x224]
call main
mov edi, eax
cmp edi, 0xa
je 0x4c05ac
mov ecx, dword [esi + 0x5c]
add ecx, esi
push ecx
lea ecx, [ebp - 0x27c]
call main
lea ecx, [ebp - 0x224]
push esi
test al, al
jne 0x4c05a7
call main
lea ecx, [ebp - 0x240]
call main
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004016cd
mov esp, ebp
pop ebp
ret 0xc
call main
test edi, edi
jne 0x4c057c
lea ecx, [ebp - 0x240]
call main
lea eax, [edi + 1]
jmp 0x4c0589
Function at 0x4c3d20
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x4c3d3b
push eax
call dword [sym.imp.GDI32.dll_CloseEnhMetaFile]
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov eax, dword [esi + 8]
test eax, eax
je 0x4c3d50
push eax
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
mov dword [esi + 8], 0
cmp dword [esi + 0x1c], 0
je 0x4c3d87
cmp dword [esi + 0x20], 8
push edi
lea edi, [esi + 0xc]
mov eax, edi
jb 0x4c3d64
mov eax, dword [edi]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
mov dword [edi + 0x10], 0
cmp dword [edi + 0x14], 8
jb 0x4c3d7a
mov edi, dword [edi]
xor eax, eax
mov word [edi], ax
pop edi
mov dword [esi + 0x24], eax
mov dword [esi], eax
pop esi
ret
mov dword [esi + 0x24], 0
mov dword [esi], 0
pop esi
ret

Function at 0x4eb950
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
lea eax, [esi + 4]
mov dword [eax], 0
push eax
push 0
push esi
push 0x4eba00
push 0
push 0
mov dword [esi], 0
call dword [sym.imp.kernel32.dll_CreateThread]
push 0
push 0
push 1
push 0
mov dword [esi], eax
call dword [sym.imp.kernel32.dll_CreateEventW]
mov dword [0x6352f8], eax
mov eax, esi
pop esi
ret

Function at 0x50dd20
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x78], 0
je 0x50dd4b
cmp dword [esi + 0x7c], 0
je 0x50dd4b
cmp dword [esi + 0x80], 0
je 0x50dd4b
cmp dword [esi + 0x84], 0
je 0x50dd4b
cmp dword [esi + 0x88], 0
jne 0x50ddc6
push str.prntvpt.dll
call main
mov edi, eax
add esp, 4
test edi, edi
je 0x50ddcb
push str.PTOpenProvider
push edi
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [esi + 0x78], eax
test eax, eax
je 0x50ddcb
push str.PTConvertDevModeToPrintTicket
push edi
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [esi + 0x7c], eax
test eax, eax
je 0x50ddcb
push str.PTCloseProvider
push edi
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [esi + 0x80], eax
test eax, eax
je 0x50ddcb
push str.PTConvertPrintTicketToDevMode
push edi
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [esi + 0x84], eax
test eax, eax
je 0x50ddcb
push str.PTReleaseMemory
push edi
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [esi + 0x88], eax
test eax, eax
je 0x50ddcb
pop edi
mov al, 1
pop esi
ret
pop edi
xor al, al
pop esi
ret
Function at 0x516950
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x51695f
pop dword [ebp - 0x3c]
mov eax, 0x51695f
sub dword [ebp - 0x3c], eax
push 0x40
push 0x1000
push 0xaf746
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x3c]
call dword [eax]
mov ecx, 0x4ffb
mov ebx, eax
mov esi, 0xb9bd8a45
add esi, 0x46b2d5bb
add esi, dword [ebp - 0x3c]
mov edx, 0x3324e265
add edx, 0xe2e263ba
xor dword [ebp - 0x10], ecx
mov edi, dword [esi]
sub dword [ebp - 0x20], esi
add edi, edx
add dword [ebp - 0x1c], 0x8da6c846
mov dword [ebx], edi
xor dword [ebp - 0x10], ecx
add ebx, 0x5e7aa672
add ebx, 0xa1855992
add esi, 4
loop 0x5169ae
add eax, 0xd35a9cca
sub eax, 0xd3596a0b
mov ebx, eax
add eax, 0xe697d138
add eax, 0x19682ecd
mov ecx, 0x8c51afd3
sub ecx, 0x8c11afd3
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x538c90
Capabilities:
Check for time delay via gettickcount
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x62cf50]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0x24], eax
push edi
cmp byte [esi + 0x140], al
je 0x538ce4
push 0x7f02
push eax
call dword [sym.imp.USER32.dll_LoadCursorW]
mov ebx, eax
test ebx, ebx
je 0x538ccf
push ebx
call dword [sym.imp.USER32.dll_SetCursor]
jmp 0x538cd1
xor eax, eax
push 0
push dword [esi + 0xe8]
mov dword [ebp - 0x24], eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x538d18
mov edi, dword [esi + 0xe8]
test edi, edi
je 0x538d18
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push 0
push 5
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 7
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
call dword [sym.imp.kernel32.dll_GetTickCount]
cmp byte [esi + 0xde], 0
mov edi, eax
je 0x538d86
nop dword [eax]
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x538d86
call dword [sym.imp.kernel32.dll_GetTickCount]
call dword [sym.imp.kernel32.dll_GetTickCount]
sub eax, edi
cmp eax, 0x493e0
ja 0x538d86
cmp byte [esi + 0x140], 0
je 0x538d69
push ebx
call dword [sym.imp.USER32.dll_SetCursor]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp byte [esi + 0xde], 0
jne 0x538d30
cmp byte [esi + 0x140], 0
je 0x538d9d
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x538d9d
push eax
call dword [sym.imp.USER32.dll_SetCursor]
cmp dword [esi + 0xc0], 1
mov ecx, dword [ebp - 4]
pop edi
sete al
xor ecx, ebp
pop esi
pop ebx
call fcn.004016cd
mov esp, ebp
pop ebp
ret
Function at 0x53fb90
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x53fbc1
lfence
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x53fbb0
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x54ca60
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, 0
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x811c9dc5
sub edx, edi
sar edx, 1
add edx, edx
je 0x54ca91
lfence
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x54ca80
pop edi
mov eax, esi
pop esi
pop ebp
ret 8