joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40921d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
push eax
call fcn.00403c69
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
push esi
call dword [ebp + 0x10]
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x40929b
cmp dword [esi + 0xc], ebx
je 0x40925d
push ebx
push ebx
push dword [esi + 0xc]
lea eax, [ebp - 0x10]
push eax
call fcn.00403baa
add esp, 0x10
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x409282
push 4
pop edi
jmp 0x40929b
push ebx
lea eax, [ebp + 0x10]
push eax
push dword [ebp - 8]
push dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x10]
push eax
call fcn.00403caf
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40a83b
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40a86b
xor eax, eax
jmp 0x40a8f5
push ebx
push edi
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push 1
push ebx
call dword [sym.imp.msvcrt.dll_calloc]
pop ecx
pop ecx
push 0
mov edi, eax
lea eax, [ebp - 0xc]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push edi
call fcn.0040a762
pop ecx
pop ecx
test eax, eax
je 0x40a8c7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
push edi
call fcn.0040afa3
push edi
mov esi, eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 0x14
mov eax, esi
jmp 0x40a8f3
push edi
call dword [sym.imp.msvcrt.dll_free]
push dword [ebp + 0x1c]
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push dword [ebp + 0x18]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 0x14]
push eax
push dword [ebp + 8]
call fcn.0040ab38
mov eax, dword [ebp - 4]
add esp, 0x20
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x412691
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push 0x44339c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x443390]
xor ebx, ebx
mov esi, dword [0x44338c]
or edx, 0xffffffff
mov ecx, ebx
test eax, eax
jle 0x4126ca
push edi
mov edi, dword [ebp + 8]
cmp dword [esi + ecx*4], edi
je 0x4126c7
inc ecx
cmp ecx, eax
jl 0x4126bb
jmp 0x4126c9
mov edx, ecx
pop edi
sub eax, edx
lea ecx, [esi + edx*4]
dec eax
push eax
lea eax, [ecx + 4]
push eax
push ecx
call dword [sym.imp.msvcrt.dll_memmove]
add esp, 0xc
dec dword [0x443390]
jne 0x412713
push dword [0x44338c]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push ebx
push dword [0x443398]
mov dword [0x44338c], ebx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [0x443398], ebx
mov dword [0x443388], ebx
push 0x44339c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
pop ebp
ret
Function at 0x41394d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
mov ebx, 0x44339c
inc esi
cmp dword [0x443394], 0
push edi
jne 0x413972
push ebx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x443394], esi
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x443388], 0
mov edi, dword [ebp + 8]
jne 0x4139a5
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push edi
push 0x4139f6
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x443398], eax
mov dword [0x443388], esi
mov ecx, dword [0x44338c]
test ecx, ecx
jne 0x4139c2
push 4
push esi
call dword [sym.imp.msvcrt.dll_calloc]
inc dword [0x443390]
mov dword [eax], edi
jmp 0x4139e1
mov esi, dword [0x443390]
lea eax, [esi*4 + 4]
push eax
push ecx
call dword [sym.imp.msvcrt.dll_realloc]
mov dword [eax + esi*4], edi
inc esi
mov dword [0x443390], esi
pop ecx
pop ecx
push ebx
mov dword [0x44338c], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41d865
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push eax
push eax
push dword [ebp + 8]
push 0x41d698
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x41f115
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x41f127
pop ebp
ret
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetClipboardData]
push edi
push dword [0x4433b4]
call esi
push dword [0x4433b8]
mov edi, eax
call esi
push dword [0x4433bc]
mov ebx, eax
call esi
test edi, edi
jne 0x41f15c
test ebx, ebx
jne 0x41f15c
test eax, eax
jne 0x41f15c
xor esi, esi
jmp 0x41f15f
xor esi, esi
inc esi
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
Function at 0x42034a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, 0x9c77
cmp dword [ebp + 0x10], ebx
je 0x42037a
cmp dword [ebp + 0x10], 0x9c78
je 0x42037a
lea eax, [ebp + 0x10]
push eax
xor eax, eax
push eax
push dword [ebp + 0xc]
push 0x420133
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x4203cb
push esi
push edi
push dword [ebp + 0xc]
call fcn.0041f099
mov edi, eax
push 2
push edi
call dword [sym.imp.msvcrt.dll_calloc]
mov esi, eax
push esi
push dword [ebp + 0xc]
call fcn.004203d7
cmp dword [ebp + 0x10], ebx
mov eax, 0x42010c
mov ecx, 0x4200b5
cmove ecx, eax
push ecx
push 2
push edi
push esi
call dword [sym.imp.msvcrt.dll_qsort]
push edi
push esi
push dword [ebp + 0xc]
call fcn.0042185c
push esi
call dword [sym.imp.msvcrt.dll_free]
add esp, 0x34
pop edi
pop esi
push dword [ebp + 8]
call fcn.00420418
pop ecx
pop ebx
pop ebp
ret

Function at 0x421deb
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
call fcn.0041eb79
push dword [0x4433b4]
mov esi, dword [sym.imp.USER32.dll_GetClipboardData]
call esi
push dword [0x4433b8]
mov dword [ebp - 8], eax
call esi
push dword [0x4433bc]
mov ebx, eax
mov dword [ebp - 0x10], ebx
call esi
mov edi, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], edi
test eax, eax
je 0x421e3d
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, dword [eax + 4]
imul esi, dword [eax]
add eax, 8
jmp 0x421e66
test ebx, ebx
je 0x421e54
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, dword [eax + 0x1c]
imul esi, dword [eax + 0x18]
add eax, 0x20
jmp 0x421e66
test edi, edi
je 0x421eb1
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
movzx esi, word [eax + 2]
add eax, 4
cmp esi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
cmovg esi, dword [ebp + 0xc]
test esi, esi
jle 0x421e93
xor ebx, ebx
mov edi, eax
push dword [edi + ebx*4]
call fcn.004058bf
pop ecx
mov ecx, dword [ebp + 8]
mov word [ecx + ebx*2], ax
inc ebx
cmp ebx, esi
jl 0x421e78
mov edi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test eax, eax
je 0x421ea3
push eax
call esi
test ebx, ebx
je 0x421eaa
push ebx
call esi
test edi, edi
je 0x421eb1
push edi
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4248cb
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ecx, dword [ebp - 4]
mov edi, eax
cmp ecx, 1
jle 0x42492a
dec ecx
push esi
xor esi, esi
mov dword [ebp - 4], ecx
test ecx, ecx
jle 0x424929
mov eax, dword [edi + esi*4 + 4]
cmp word [eax], 0x2f
je 0x424919
cmp dword [ebp + 0xc], 0
push eax
push dword [ebp + 8]
jne 0x424912
call fcn.004240be
pop ecx
jmp 0x424922
call fcn.0042487a
jmp 0x42490f
add eax, 2
push eax
call fcn.004232e5
inc esi
pop ecx
cmp esi, dword [ebp - 4]
jl 0x4248f6
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x424bab
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, 0x43e9c4
cmp eax, 0xffffffff
jne 0x424c6d
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push edi
push 0x43c3b0
push str.UseDSColorPicker
push str.NclrViewer
call esi
test eax, eax
je 0x424c6d
push edi
push 0x43cd24
push 0x43f370
push str.NcgrViewer
call esi
test eax, eax
je 0x424c6d
push edi
push 0x43c3b0
push 0x43f370
push str.NscrViewer
call esi
test eax, eax
je 0x424c6d
push edi
push 0x43cd24
push str.FullPaths
push ebx
call esi
test eax, eax
je 0x424c6d
push edi
push 0x43c3b0
push str.PaletteAlgorithm
push ebx
call esi
test eax, eax
je 0x424c6d
push edi
push 0x43cd24
push str.RenderTransparent
push ebx
call esi
test eax, eax
je 0x424c6d
push edi
push 0x43cd24
push str.DPIAware
push ebx
call esi
test eax, eax
je 0x424c6d
push edi
push 0x43c3b0
push str.AllowMultiple
push ebx
call esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
xor ebx, ebx
push edi
push ebx
push str.UseDSColorPicker
push str.NclrViewer
call esi
push edi
push 1
push 0x43f370
push str.NcgrViewer
mov dword [0x44343c], eax
call esi
push edi
push ebx
push 0x43f370
push str.NscrViewer
mov dword [0x443440], eax
call esi
push edi
push 1
push str.FullPaths
push 0x43e9c4
mov dword [0x443444], eax
call esi
push edi
push 1
push str.RenderTransparent
push 0x43e9c4
mov dword [0x443424], eax
call esi
push 2
push 0x104
mov dword [0x443428], eax
call dword [sym.imp.msvcrt.dll_calloc]
pop ecx
pop ecx
push edi
push 1
push str.DPIAware
push 0x43e9c4
mov dword [0x443438], eax
call esi
push edi
push ebx
push str.AllowMultiple
push 0x43e9c4
mov dword [0x44342c], eax
call esi
push edi
push 0x104
push dword [0x443438]
mov dword [0x443430], eax
push 0x43c46c
push str.Background
push 0x43e9c4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [0x443438]
cmp word [eax], bx
je 0x424db5
lea ecx, [ebp - 4]
mov dword [ebp - 8], ebx
push ecx
lea ecx, [ebp - 8]
mov dword [ebp - 4], ebx
push ecx
push eax
call fcn.0040a820
mov esi, eax
add esp, 0xc
test esi, esi
je 0x424db5
mov edx, dword [ebp - 4]
mov ecx, edx
mov edi, dword [ebp - 8]
imul ecx, edi
test ecx, ecx
jle 0x424d94
mov edx, dword [esi + ebx*4]
movzx ecx, byte [esi + ebx*4 + 2]
movzx eax, dl
and edx, 0xff00ff00
shl eax, 0x10
or ecx, eax
or ecx, edx
mov dword [esi + ebx*4], ecx
inc ebx
mov edx, dword [ebp - 4]
mov eax, edx
mov edi, dword [ebp - 8]
imul eax, edi
cmp ebx, eax
jl 0x424d69
push esi
push 0x20
push 1
push edx
push edi
call dword [sym.imp.GDI32.dll_CreateBitmap]
push eax
call dword [sym.imp.GDI32.dll_CreatePatternBrush]
push esi
mov dword [0x443434], eax
call dword [sym.imp.msvcrt.dll_free]
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4266a2
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
push dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push 0x20
pop eax
push eax
xor eax, eax
inc eax
push eax
push ebx
push edi
call dword [sym.imp.GDI32.dll_CreateBitmap]
push eax
push 2
call dword [sym.imp.USER32.dll_SetClipboardData]
mov eax, edi
imul eax, ebx
lea eax, [eax*4 + 0x7c]
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
xor ecx, ecx
inc ecx
push 0x20
mov word [eax + 0xc], cx
pop ecx
mov dword [eax], 0x7c
mov dword [eax + 4], edi
mov dword [eax + 8], ebx
mov word [eax + 0xe], cx
mov dword [eax + 0x10], 3
mov dword [eax + 0x28], 0xff0000
mov dword [eax + 0x2c], 0xff00
mov dword [eax + 0x30], 0xff
mov dword [eax + 0x34], 0xff000000
mov dword [eax + 0x38], 0x73524742
mov dword [eax + 0x6c], 8
add eax, 0x7c
test ebx, ebx
jle 0x4267bb
lea esi, [ebx*4 - 4]
imul edx, edi, 0xfffffffc
imul esi, edi
mov ecx, edi
shl ecx, 2
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], edx
add esi, eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], esi
test edi, edi
jle 0x4267a8
mov dword [ebp - 8], esi
mov ebx, eax
mov esi, edi
mov edi, dword [ebp - 8]
mov ecx, dword [ebx]
mov edx, ecx
shr edx, 0x10
lea ebx, [ebx + 4]
movzx eax, cl
and edx, 0xff
shl eax, 0x10
and ecx, 0xff00ff00
or edx, eax
or edx, ecx
mov dword [edi], edx
lea edi, [edi + 4]
dec esi
jne 0x42676e
mov esi, dword [ebp - 4]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
add esi, edx
add eax, ecx
dec ebx
mov dword [ebp - 4], esi
mov dword [ebp + 8], eax
mov dword [ebp + 0x10], ebx
jne 0x426760
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0x11
call dword [sym.imp.USER32.dll_SetClipboardData]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x426ed1
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0x58
push 1
call dword [sym.imp.msvcrt.dll_calloc]
mov esi, dword [ebp + 0x1c]
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
lea edi, [eax + 0x14]
mov dword [eax], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebp + 0x14]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp + 0x18]
push 0x11
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp + 0xc]
mov dword [eax + 4], ecx
pop ecx
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
push ecx
push ecx
push eax
push 0x426f20
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
pop ebp
ret
Function at 0x4273e6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 4
mov esi, 0x20000
push esi
call dword [sym.imp.msvcrt.dll_calloc]
pop ecx
pop ecx
mov edi, eax
xor edx, edx
mov ecx, edx
sar ecx, 9
xor ecx, edx
sar ecx, 2
and ecx, 1
neg ecx
and ecx, 0x3f3f3f
add ecx, 0xc0c0c0
mov dword [edi + edx*4], ecx
inc edx
cmp edx, esi
jl 0x4273ff
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x427488
cmp dword [ebp + 0xc], 0
je 0x427488
cmp dword [ebp + 0x10], 0
je 0x427488
cmp dword [ebp + 0x14], 0
je 0x427488
cmp dword [ebp + 0x18], 0
je 0x427488
mov ecx, dword [ecx + 0x30]
mov eax, dword [ebp + 0x1c]
movzx esi, word [ecx + eax*8]
dec esi
mov edx, dword [ecx + eax*8 + 4]
js 0x427488
push ebx
lea ebx, [edx + 2]
lea ebx, [ebx + esi*8]
movsx eax, word [ebx + 2]
push eax
movsx eax, word [ebx]
push eax
movzx eax, word [ebx - 2]
push 0
push dword [ebp + 0x20]
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.004140ec
add esp, 0x28
lea ebx, [ebx - 8]
dec esi
jns 0x427459
pop ebx
push edi
push 0x20
push 1
push 0x100
push 0x200
call dword [sym.imp.GDI32.dll_CreateBitmap]
push edi
mov esi, eax
call dword [sym.imp.msvcrt.dll_free]
pop ecx
pop edi
mov eax, esi
pop esi
pop ebp
ret
Function at 0x42778c
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
cmp ebx, 0x3c
jb 0x4278fb
test bl, 3
jne 0x4278fb
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0x20
jge 0x4278fb
cmp dword [ecx + 8], 0x3c
mov esi, dword [ecx + 0x14]
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0x18]
mov edi, dword [ecx + 0xc]
mov dword [ebp + 0xc], esi
mov esi, dword [ecx + 0x24]
jb 0x4278fb
cmp eax, 0x3c
jb 0x4278fb
cmp edx, 0x3c
jb 0x4278fb
cmp dword [ecx + 0x20], 0x3c
jb 0x4278fb
cmp dword [ecx + 0x28], 0x3c
jb 0x4278fb
cmp dword [ecx + 8], ebx
ja 0x4278fb
cmp eax, ebx
ja 0x4278fb
cmp edx, ebx
ja 0x4278fb
cmp dword [ecx + 0x20], ebx
ja 0x4278fb
cmp dword [ecx + 0x28], ebx
ja 0x4278fb
test byte [ecx + 8], 3
jne 0x4278fb
test al, 3
jne 0x4278fb
test dl, 3
jne 0x4278fb
test byte [ecx + 0x20], 3
jne 0x4278fb
test byte [ecx + 0x28], 3
jne 0x4278fb
lea eax, [eax + edi*8]
cmp eax, ebx
ja 0x4278fb
imul eax, dword [ecx + 0x14], 0x14
add eax, edx
cmp eax, ebx
ja 0x4278fb
mov eax, dword [ecx + 0x1c]
shl eax, 4
add eax, dword [ecx + 0x20]
cmp eax, ebx
ja 0x4278fb
imul eax, esi, 0x30
add eax, dword [ecx + 0x28]
cmp eax, ebx
ja 0x4278fb
test edi, edi
jne 0x42788b
test esi, esi
je 0x4278fb
mov eax, dword [ecx + 0x14]
xor edi, edi
test eax, eax
je 0x4278f6
lea esi, [ecx + 8]
add esi, edx
cmp dword [esi - 8], 0x3c
jb 0x4278fb
cmp dword [esi - 4], 0x3c
jb 0x4278fb
cmp dword [esi - 8], ebx
jae 0x4278fb
cmp dword [esi - 4], ebx
jae 0x4278fb
mov ecx, dword [esi + 8]
movzx eax, word [esi + 4]
shr ecx, 0x14
push 8
and ecx, 7
pop edx
shl edx, cl
cmp eax, edx
jne 0x4278fb
mov ecx, dword [esi + 8]
movzx eax, word [esi + 6]
shr ecx, 0x17
push 8
and ecx, 7
pop edx
shl edx, cl
cmp eax, edx
jne 0x4278fb
test dword [esi + 8], 0x1c000000
je 0x4278fb
mov ecx, dword [esi]
lea eax, [ecx - 1]
test ecx, eax
jne 0x4278fb
inc edi
add esi, 0x14
cmp edi, dword [ebp + 0xc]
jb 0x427899
xor eax, eax
inc eax
jmp 0x4278fd
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x42bbc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
sub esp, 0x114
push ebx
push esi
push edi
test edx, edx
je 0x42bd8f
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x42bd8f
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x42bd8f
mov ecx, dword [edx + 0x2c]
shr ecx, 3
cmp dword [ebp + 0x18], ecx
jge 0x42bd78
mov eax, dword [edx + 0x30]
shr eax, 3
cmp dword [ebp + 0x1c], eax
jge 0x42bd78
imul ecx, dword [ebp + 0x1c]
mov eax, dword [edx + 0x38]
add ecx, dword [ebp + 0x18]
movzx ecx, word [eax + ecx*2]
mov eax, dword [ebp + 0x24]
mov ebx, ecx
mov edx, ecx
shr ebx, 0xa
and ebx, 3
shr ecx, 0xc
and edx, 0x3ff
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ecx
test eax, eax
je 0x42bc3b
mov dword [eax], edx
mov esi, dword [esi + 0x44]
mov eax, ecx
mov ecx, dword [edi + 0x40]
sub edx, dword [ebp + 0x14]
shl eax, cl
lea eax, [esi + eax*2]
mov dword [ebp - 4], eax
cmp edx, dword [edi + 0x2c]
jge 0x42bd3f
test edx, edx
js 0x42bd3f
mov eax, dword [edi + 0x4c]
xor esi, esi
mov ebx, dword [ebp + 0x10]
mov ecx, dword [eax + edx*4]
mov eax, esi
mov dword [ebp - 8], ecx
mov dword [ebp + 8], eax
mov cl, byte [eax + ecx]
test cl, cl
jne 0x42bc87
cmp dword [ebp + 0x28], esi
je 0x42bc87
mov dword [ebp + eax*4 - 0x114], esi
jmp 0x42bce9
movzx eax, cl
mov edx, esi
mov ecx, dword [edi + 0x40]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x14]
shl eax, cl
mov ecx, dword [ebp - 0xc]
add eax, ecx
cmp eax, dword [ebx + 0x30]
jge 0x42bca8
mov eax, dword [ebp - 4]
movzx edx, word [eax + ecx*2]
test ecx, ecx
jne 0x42bcb7
cmp dword [ebp + 0x28], esi
jne 0x42bcb7
mov eax, dword [ebx + 0x44]
movzx edx, word [eax]
mov ecx, edx
mov eax, edx
shr ecx, 0xa
and eax, 0x1f
and ecx, 0x1f
shl eax, 0xa
or ecx, eax
and edx, 0x83e0
or ecx, edx
push ecx
call fcn.00405882
pop ecx
mov ecx, dword [ebp + 8]
or eax, 0xff000000
mov dword [ebp + ecx*4 - 0x114], eax
mov eax, ecx
mov ecx, dword [ebp - 8]
inc eax
mov dword [ebp + 8], eax
cmp eax, 0x40
jl 0x42bc72
mov ebx, dword [ebp - 0x10]
test ebx, ebx
jne 0x42bd13
mov edi, dword [ebp + 0x20]
lea esi, [ebp - 0x114]
push 0x40
pop ecx
rep movsd dword es:[edi], dword [esi]
jmp 0x42bda1
test bl, 1
mov ecx, esi
push 7
pop eax
cmovne ecx, eax
test bl, 2
je 0x42bd26
xor ecx, 0x38
mov edx, dword [ebp + 0x20]
mov eax, esi
xor eax, ecx
mov eax, dword [ebp + eax*4 - 0x114]
mov dword [edx + esi*4], eax
inc esi
cmp esi, 0x40
jl 0x42bd29
jmp 0x42bda1
cmp dword [ebp + 0x28], 0
jne 0x42bd8f
movzx edx, word [esi]
mov ecx, edx
mov eax, edx
shr ecx, 0xa
and eax, 0x1f
and ecx, 0x1f
shl eax, 0xa
or ecx, eax
and edx, 0x83e0
or ecx, edx
push ecx
call fcn.00405882
mov edi, dword [ebp + 0x20]
or eax, 0xff000000
pop ecx
push 0x40
pop ecx
rep stosd dword es:[edi], eax
jmp 0x42bda1
push 0x100
push 0
push dword [ebp + 0x20]
call sub.msvcrt.dll_memset
xor eax, eax
add esp, 0xc
inc eax
jmp 0x42bda3
push 0x100
push 0
push dword [ebp + 0x20]
call sub.msvcrt.dll_memset
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42f08a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push eax
push eax
push dword [ebp + 8]
push 0x42f0a3
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x4301c7
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push esi
xor eax, eax
mov esi, 0x208
push esi
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.msvcrt.dll_memset
xor eax, eax
push esi
push eax
mov word [ebp - 0x418], ax
lea eax, [ebp - 0x416]
push eax
call sub.msvcrt.dll_memset
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push str.__NITROVIEWER_ROOT__lib_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x24
lea eax, [ebp - 0x418]
push 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor ecx, ecx
cmp eax, 0xffffffff
pop esi
cmove eax, ecx
mov esp, ebp
pop ebp
ret
Function at 0x430879
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x660
cmp dword [0x4433d4], 0
jne 0x430892
xor eax, eax
jmp 0x430a2d
push ebx
push esi
push 2
pop ebx
cmp dword [0x4433e0], ebx
je 0x4308aa
mov dword [0x4433e0], ebx
call fcn.00430394
push edi
lea eax, [ebp - 0x458]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x660]
push eax
push 1
push 0x440310
lea eax, [ebp - 0x458]
push eax
call esi
lea eax, [ebp - 0x250]
push eax
push ebx
push 0x440318
lea eax, [ebp - 0x458]
push eax
call esi
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x660]
push eax
push ebx
mov edi, dword [ebx + 8]
mov esi, dword [ebx + 0x30]
and dword [ebx + 0x30], 0
mov dword [ebx + 8], 1
call fcn.0041561b
mov eax, dword [ebx + 0x34]
mov dword [ebx + 8], edi
mov edi, dword [ebp + 0xc]
mov dword [ebx + 0x30], esi
xor ebx, ebx
pop ecx
inc ebx
mov dword [0x4433e4], eax
pop ecx
test edi, edi
jne 0x4309d8
lea eax, [ebp - 0x48]
push ebx
push eax
call fcn.00411dde
mov esi, dword [sym.imp.msvcrt.dll_calloc]
push 0x10
push ebx
mov dword [ebp - 0x1c], ebx
call esi
mov dword [ebp - 0x18], eax
xor ecx, ecx
push 2
pop edi
mov word [eax], bx
mov eax, dword [ebp - 0x18]
push 8
push ebx
mov dword [eax + 8], edi
mov eax, dword [ebp - 0x18]
mov dword [eax + 4], 0x10000
mov eax, dword [ebp - 0x18]
mov word [eax + 2], cx
call esi
mov ecx, dword [ebp - 0x18]
push 4
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 0x18]
pop ecx
push edi
push ebx
mov eax, dword [eax + 0xc]
mov word [eax + 4], cx
mov ecx, 0xbeef
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc]
mov word [eax + 6], cx
call esi
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx + 0xc]
mov dword [ecx], eax
xor ecx, ecx
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov word [eax], cx
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov ax, word [ebp + 0x10]
mov word [ecx], ax
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.004124cd
lea eax, [ebp - 0x48]
push eax
call fcn.00411d14
add esp, 0x2c
xor esi, esi
jmp 0x4309f3
mov esi, dword [edi + 8]
lea eax, [ebp - 0x250]
push eax
push edi
mov dword [edi + 8], ebx
call fcn.004124cd
pop ecx
mov dword [edi + 8], esi
mov esi, dword [ebp + 0x10]
pop ecx
push 0
push 0
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x660]
push eax
call fcn.0042ffa5
add esp, 0x10
pop edi
test eax, eax
je 0x430a27
push dword [0x4433e4]
push 0
push esi
call fcn.0043048e
add esp, 0xc
test eax, eax
jne 0x430a29
xor ebx, ebx
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret