joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44f3a6
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x10], 8
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edx, 0xff
not eax
jb 0x44f487
mov edi, dword [ebp + 0x10]
push ebx
shr edi, 3
movzx ebx, byte [ecx]
mov esi, eax
sub dword [ebp + 0x10], 8
and esi, edx
xor esi, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [esi*4 + 0x480460]
xor eax, ebx
inc ecx
mov esi, eax
movzx ebx, byte [ecx]
and esi, edx
xor esi, ebx
shr eax, 8
mov esi, dword [esi*4 + 0x480460]
xor esi, eax
inc ecx
mov eax, esi
movzx ebx, byte [ecx]
and eax, edx
xor eax, ebx
shr esi, 8
mov eax, dword [eax*4 + 0x480460]
xor eax, esi
inc ecx
mov esi, eax
movzx ebx, byte [ecx]
and esi, edx
xor esi, ebx
shr eax, 8
mov esi, dword [esi*4 + 0x480460]
xor esi, eax
inc ecx
mov eax, esi
movzx ebx, byte [ecx]
and eax, edx
xor eax, ebx
shr esi, 8
mov eax, dword [eax*4 + 0x480460]
xor eax, esi
inc ecx
mov esi, eax
movzx ebx, byte [ecx]
and esi, edx
xor esi, ebx
shr eax, 8
mov esi, dword [esi*4 + 0x480460]
xor esi, eax
inc ecx
mov eax, esi
movzx ebx, byte [ecx]
and eax, edx
xor eax, ebx
shr esi, 8
mov eax, dword [eax*4 + 0x480460]
xor eax, esi
inc ecx
mov esi, eax
movzx ebx, byte [ecx]
and esi, edx
xor esi, ebx
shr eax, 8
mov esi, dword [esi*4 + 0x480460]
xor eax, esi
inc ecx
dec edi
jne 0x44f3c9
pop ebx
cmp dword [ebp + 0x10], 0
je 0x44f4a8
movzx edi, byte [ecx]
mov esi, eax
and esi, edx
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x480460]
xor eax, esi
inc ecx
dec dword [ebp + 0x10]
jne 0x44f48d
pop edi
pop esi
not eax
pop ebp
ret

Function at 0x44f4ae
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 4]
push esi
push edi
mov edx, 0xff
mov esi, dword [ecx]
movzx edi, byte [esp + 0x10]
mov eax, esi
and eax, edx
xor eax, edi
shr esi, 8
mov eax, dword [eax*4 + 0x480460]
xor eax, esi
mov dword [ecx], eax
and eax, edx
add eax, dword [ecx + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [ecx + 4], eax
mov eax, dword [ecx + 8]
movzx esi, byte [ecx + 7]
mov edi, eax
and edi, edx
xor esi, edi
pop edi
shr eax, 8
mov edx, dword [esi*4 + 0x480460]
pop esi
xor edx, eax
mov dword [ecx + 8], edx
ret

Function at 0x450cbe
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test byte [esi], 1
jne 0x450cf2
lea eax, [ebp + 0x10]
push 0
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x450ced
and dword [ebp + 0x10], eax
mov dword [esi + 8], 7
mov eax, dword [ebp + 0x10]
jmp 0x450d1f
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
push edi
mov edi, dword [ebp + 0x10]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x450d07
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 4]
push edi
add eax, ecx
push eax
push dword [ebp + 0xc]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add dword [esi + 0x14], edi
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x450d22
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
cmp byte [eax], bl
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 8], ebx
mov dword [ebp - 4], 1
mov dword [ebp + 8], eax
je 0x450d4f
cmp byte [eax + 1], 0x3a
jne 0x450d4f
inc eax
inc eax
cmp byte [eax], 0x5c
jne 0x450d9d
inc eax
jmp 0x450d9d
push 0x5c
push eax
call fcn.00450dae
mov esi, eax
pop ecx
cmp esi, ebx
pop ecx
jne 0x450d73
cmp dword [ebp + 0xc], ebx
jne 0x450d75
xor eax, eax
inc eax
pop esi
pop ebx
leave
ret
mov byte [esi], bl
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x450d93
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x450da3
cmp esi, ebx
je 0x450d6c
mov byte [esi], 0x5c
lea eax, [esi + 1]
cmp byte [eax], bl
jne 0x450d57
jmp 0x450d6c
cmp esi, ebx
je 0x450daa
mov byte [esi], 0x5c
xor eax, eax
jmp 0x450d6f

Function at 0x450dc4
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp word [eax], di
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 8], edi
mov dword [ebp - 4], 1
mov dword [ebp + 8], eax
je 0x450df4
cmp word [eax + 2], 0x3a
jne 0x450df4
add eax, 4
cmp word [eax], 0x5c
jne 0x450e47
inc eax
inc eax
jmp 0x450e47
push 0x5c
push eax
call fcn.00450e5b
mov esi, eax
pop ecx
cmp esi, edi
pop ecx
jne 0x450e1a
cmp dword [ebp + 0xc], edi
jne 0x450e1d
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
mov word [esi], di
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x450e3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x450e4e
cmp esi, edi
je 0x450e13
mov word [esi], 0x5c
lea eax, [esi + 2]
cmp word [eax], di
jne 0x450dfe
jmp 0x450e13
cmp esi, edi
je 0x450e57
mov word [esi], 0x5c
xor eax, eax
jmp 0x450e16
Function at 0x450e75
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x45102a
cmp dword [esi + 0x24], 0xffffffff
je 0x45102a
mov eax, dword [ebp + 0x14]
xor edi, edi
test al, 1
mov dword [esi + 8], edi
je 0x450ef4
cmp word [esi + 0x58], di
jne 0x450ec2
push esi
call fcn.004510bf
cmp dword [esi + 8], edi
pop ecx
jne 0x45101e
mov word [esi + 0x58], 1
mov ebx, dword [ebp + 0x10]
push dword [ebx + 0x20]
push dword [ebp + 0xc]
push esi
call fcn.0044f1c6
add esp, 0xc
mov dword [ebx + 0x20], eax
cmp dword [esi + 8], edi
jne 0x450eeb
cmp dword [esi + 0x8c], edi
je 0x450eeb
push 5
jmp 0x45102c
mov word [esi + 0x58], di
jmp 0x45101e
mov ebx, dword [ebp + 0x10]
test byte [ebx + 4], 0x10
je 0x450f23
test al, 2
je 0x450f1c
push 1
push dword [ebp + 0xc]
test eax, eax
jns 0x450f11
call fcn.00450dc4
jmp 0x450f16
call fcn.00450d22
pop ecx
cmp eax, edi
pop ecx
je 0x450f7a
xor eax, eax
jmp 0x45102d
cmp eax, 4
jne 0x450f2d
mov eax, dword [ebp + 0xc]
jmp 0x450f72
mov dword [ebp + 8], eax
push edi
and dword [ebp + 8], 0x80000000
push dword [ebp + 0xc]
je 0x450f44
call fcn.00450dc4
jmp 0x450f49
call fcn.00450d22
pop ecx
cmp eax, edi
pop ecx
je 0x450f7a
push edi
cmp dword [ebp + 8], edi
push dword [ebx + 4]
push 2
push edi
push edi
push 0x40000000
push dword [ebp + 0xc]
je 0x450f6c
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x450f72
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
jne 0x450f86
mov dword [esi + 8], 1
jmp 0x45101e
push esi
call fcn.004510bf
cmp dword [esi + 8], edi
pop ecx
jne 0x45100f
cmp dword [esi + 0x34], edi
mov ebx, 0x4000
jne 0x450fed
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, edi
mov dword [esi + 0x34], eax
jne 0x450fed
mov dword [esi + 8], 2
jmp 0x450fed
push ebx
push dword [esi + 0x34]
push esi
call fcn.0044f1c6
add esp, 0xc
cmp eax, edi
mov dword [ebp + 8], eax
je 0x450ff2
lea ecx, [ebp - 4]
push edi
push ecx
push eax
push dword [esi + 0x34]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x450fe6
mov eax, dword [ebp + 8]
cmp dword [ebp - 4], eax
je 0x450fed
mov dword [esi + 8], 3
cmp dword [esi + 8], edi
je 0x450fb4
cmp dword [esi + 8], edi
mov ebx, dword [ebp + 0x10]
jne 0x45100f
lea eax, [ebx + 0x18]
push eax
lea eax, [ebx + 8]
add ebx, 0x10
push eax
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp dword [ebp + 0x14], 4
je 0x45101e
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00451032
mov eax, dword [esi + 8]
pop ecx
jmp 0x45102d
push 9
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x452ce4
Capabilities:
Create thread
Resume thread

Disassembly:
mov eax, 0x47e8dc
call fcn.00478530
sub esp, 0x10
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 4]
mov ecx, ebx
mov dword [ebp - 0x1c], ebx
call fcn.004528c8
and dword [ebp - 4], 0
cmp dword [esi + 0x1c], 0
je 0x452d20
mov al, byte [ebp - 0xd]
push 0x48c4e0
mov byte [ebp - 0xd], al
lea eax, [ebp - 0xd]
push eax
call sub.MSVCRT.dll__CxxThrowException
lea eax, [ebp - 0x14]
push eax
push 4
push esi
push 0x452ab5
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov ecx, dword [ebp - 0x14]
add esp, 0x18
test eax, eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], ecx
jne 0x452d5d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push 0x48c41c
push eax
call sub.MSVCRT.dll__CxxThrowException
push dword [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x452d82
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push 0x48c41c
push eax
call sub.MSVCRT.dll__CxxThrowException
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x452da7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push 0x48c41c
push eax
call sub.MSVCRT.dll__CxxThrowException
mov ecx, ebx
mov dword [esi + 0x1c], 1
call fcn.004528d0
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x45345d
Capabilities:
Create thread

Disassembly:
mov eax, 0x47e954
call fcn.00478530
sub esp, 0x24
push ebx
mov ebx, ecx
push esi
push edi
lea eax, [ebx + 0x9c]
mov dword [ebp - 0x10], esp
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], ebx
call fcn.00425fd6
lea eax, [ebx + 0x8c]
mov esi, 0x4a77f8
mov edi, eax
and dword [ebp - 4], 0
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x10
push 0x49c528
push eax
movsd dword es:[edi], dword [esi]
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
je 0x45360c
mov esi, str.S:Ammyy_sourcesmain_soundAudioIn.cpp
push str.StartSound__1
push esi
mov edi, 0x4a7870
push 2
push edi
call fcn.0041a43a
add esp, 0x10
cmp dword [ebx + 0x80], 0
je 0x4534f3
lea eax, [ebp - 0x20]
push str.AudioIn::Start:_Sound_Capture_thread_is_already_active
push eax
call fcn.004253a6
pop ecx
lea eax, [ebp - 0x20]
pop ecx
push 0x483c5c
push eax
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp + 8]
cmp eax, 0x3e8
mov dword [ebx], eax
jb 0x453506
cmp eax, 0xbb80
jbe 0x453518
push 0x42
push esi
lea ecx, [ebp - 0x30]
call fcn.0042328b
mov ecx, eax
call fcn.00423397
mov ax, word [ebx + 4]
cmp ax, 8
je 0x45353a
cmp ax, 0x10
je 0x45353a
push 0x43
push esi
lea ecx, [ebp - 0x30]
call fcn.0042328b
mov ecx, eax
call fcn.00423397
mov ax, word [ebx + 6]
cmp ax, 1
je 0x45355c
cmp ax, 2
je 0x45355c
push 0x44
push esi
lea ecx, [ebp - 0x30]
call fcn.0042328b
mov ecx, eax
call fcn.00423397
movzx eax, word [ebx + 4]
movzx ecx, word [ebx + 6]
shr eax, 3
imul eax, ecx
imul eax, dword [ebx]
xor edx, edx
mov ecx, 0x3e8
lea eax, [eax + eax*4]
shl eax, 2
div ecx
mov ecx, ebx
mov dword [ebx + 8], eax
call fcn.00453731
push str.StartSound__2
push esi
push 2
push edi
call fcn.0041a43a
add esp, 0x10
mov ecx, ebx
mov byte [ebp - 4], 1
push 0x1f40
push 3
push 0
call fcn.00453f2d
push str.StartSound__3
push esi
push 2
push edi
call fcn.0041a43a
add esp, 0x10
xor esi, esi
mov dword [ebx + 0x84], esi
push esi
push esi
push ebx
push 0x453a94
push esi
push esi
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [ebx + 0x80], eax
cmp dword [ebx + 0x80], esi
jne 0x45360c
call dword [sym.imp.MSVCRT.dll__errno]
push dword [eax]
lea eax, [ebp - 0x28]
push str.Failed_to_start_Sound_Capture_thread__errno___d_
push eax
call fcn.004253a6
add esp, 0xc
lea eax, [ebp - 0x28]
push 0x483c5c
push eax
call sub.MSVCRT.dll__CxxThrowException
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00425fea
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x453e59
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
test edi, edi
je 0x453e83
movzx eax, word [esi + 4]
movzx ecx, word [esi + 6]
shr eax, 3
imul eax, ecx
imul eax, dword [esi + 0x78]
cmp ebx, eax
jbe 0x453e9c
push 0x1be
push str.S:Ammyy_sourcesmain_soundAudioIn.cpp
lea ecx, [ebp - 8]
call fcn.0042328b
mov ecx, eax
call fcn.00423397
mov ax, word [esi + 4]
cmp ax, 0x10
jne 0x453ee3
test bl, 1
je 0x453ec4
push 0x1c2
push str.S:Ammyy_sourcesmain_soundAudioIn.cpp
lea ecx, [ebp - 8]
call fcn.0042328b
mov ecx, eax
call fcn.00423397
shr ebx, 1
xor eax, eax
test ebx, ebx
jle 0x453f26
movsx ecx, word [edi + eax*2]
mov dword [ebp + 8], ecx
mov ecx, dword [esi + 0x7c]
fild dword [ebp + 8]
fstp dword [ecx + eax*4]
inc eax
cmp eax, ebx
jl 0x453ecc
jmp 0x453f26
cmp ax, 8
je 0x453f02
push 0x1ca
push str.S:Ammyy_sourcesmain_soundAudioIn.cpp
lea ecx, [ebp - 8]
call fcn.0042328b
mov ecx, eax
call fcn.00423397
xor eax, eax
test ebx, ebx
jbe 0x453f26
movsx ecx, byte [eax + edi]
xor ecx, 0x80
shl ecx, 8
mov dword [ebp + 8], ecx
mov ecx, dword [esi + 0x7c]
fild dword [ebp + 8]
fstp dword [ecx + eax*4]
inc eax
cmp eax, ebx
jb 0x453f08
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x45413e
Capabilities:
Create thread

Disassembly:
mov eax, 0x47e9f4
call fcn.00478530
sub esp, 0x1c
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x10], esp
cmp dword [esi + 0xb8], edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], edi
je 0x454181
lea eax, [ebp - 0x20]
push str.AudioOut::StartSound___Sound_Playback_thread_is_already_active
push eax
call fcn.004253a6
pop ecx
lea eax, [ebp - 0x20]
pop ecx
push 0x483c5c
push eax
call sub.MSVCRT.dll__CxxThrowException
mov ecx, esi
call fcn.00454483
push 1
push edi
mov ecx, esi
call fcn.004546a2
lea ecx, [esi + 0x84]
cmp dword [ecx], edi
jne 0x4541a3
push edi
push edi
call fcn.004251b0
push edi
push edi
push esi
push 0x4547aa
push edi
push edi
mov dword [esi + 0xbc], edi
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0xb8], eax
cmp dword [esi + 0xb8], edi
jne 0x4541f1
call dword [sym.imp.MSVCRT.dll__errno]
push dword [eax]
lea eax, [ebp - 0x28]
push str.Failed_to_start_Sound_Playback_thread__errno___d_
push eax
call fcn.004253a6
add esp, 0xc
lea eax, [ebp - 0x28]
push 0x483c5c
push eax
call sub.MSVCRT.dll__CxxThrowException
xor eax, eax
inc eax
jmp 0x45421a
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x455710
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x455740
push esi
call fcn.00459570
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x455739
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x4557c3
mov eax, dword [esi + 0x190]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x4557af
mov eax, dword [esi + 8]
test eax, eax
je 0x455764
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x190]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4557ab
cmp eax, 2
je 0x4557af
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x455757
cmp eax, 3
je 0x45578a
cmp eax, 1
jne 0x455757
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x455757
mov edx, dword [esi + 0x11c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x455757
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.004557f0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4557e3
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x14
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.004557f0
add esp, 4
pop esi
ret
Function at 0x458600
Capabilities:
Query environment variable

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
xor ebx, ebx
push edi
mov dword [edi + 4], ebx
call fcn.0045a450
push 0x54
push edi
mov dword [esp + 0x18], eax
call fcn.0045a410
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x458644
push edi
call fcn.0045a460
mov eax, dword [edi]
push edi
mov dword [eax + 0x14], 0x36
mov ecx, dword [edi]
mov dword [ecx + 0x18], ebx
mov edx, dword [edi]
call dword [edx]
add esp, 8
mov dword [esi], fcn.00458740
mov dword [esi + 4], fcn.00458890
mov dword [esi + 8], fcn.00458940
mov dword [esi + 0xc], fcn.004589f0
mov dword [esi + 0x10], 0x458aa0
mov dword [esi + 0x14], 0x458b10
mov dword [esi + 0x18], 0x458b80
mov dword [esi + 0x1c], 0x458d00
mov dword [esi + 0x20], 0x458ef0
mov dword [esi + 0x24], fcn.004590e0
mov dword [esi + 0x28], 0x4591e0
mov dword [esi + 0x30], 0x3b9aca00
mov eax, dword [esp + 0xc]
mov ecx, 2
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x40]
mov dword [eax - 8], ebx
mov dword [eax], ebx
sub eax, 4
dec ecx
jne 0x4586a6
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], 0x54
push str.JPEGMEM
mov dword [edi + 4], esi
call sub.MSVCRT.dll_getenv
add esp, 4
cmp eax, ebx
je 0x458736
lea ecx, [esp + 0x14]
lea edx, [esp + 0xc]
push ecx
push edx
push str._ld_c
push eax
mov byte [esp + 0x24], 0x78
call sub.MSVCRT.dll_sscanf
add esp, 0x10
test eax, eax
jle 0x458736
mov al, byte [esp + 0x14]
cmp al, 0x6d
je 0x4586ff
cmp al, 0x4d
jne 0x458723
mov eax, dword [esp + 0xc]
pop edi
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
mov dword [esi + 0x2c], eax
pop esi
pop ebx
pop ecx
ret
mov eax, dword [esp + 0xc]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
mov dword [esi + 0x2c], eax
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x478bca
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x478c20
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x48374c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x478c13
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x478c22
xor eax, eax
pop esi
leave
ret 4
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40915c
nop
mov ecx, 0x6cb01e43
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x431024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f3f8
mov ecx, 0x26a02638
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x431084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x1002dea0
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x1002e064
pushal
mov esi, section.UPX1
lea edi, [esi - 0x17000]
push edi
jmp 0x1002deca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1002ded1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1002dec0
mov eax, 1
add ebx, ebx
jne 0x1002dee3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1002ded8
jne 0x1002def4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1002ded8
xor ecx, ecx
sub eax, 3
jb 0x1002df08
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1002df7a
mov ebp, eax
add ebx, ebx
jne 0x1002df13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x1002df20
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x1002df44
inc ecx
add ebx, ebx
jne 0x1002df30
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1002df25
jne 0x1002df41
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1002df25
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1002df64
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1002df55
jmp 0x1002dec6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1002df64
add edi, ecx
jmp 0x1002dec6
pop esi
mov edi, esi
mov ecx, 0xa21
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1002df82
cmp byte [edi], 0x12
jne 0x1002df82
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x1002df87
lea edi, [esi + 0x2a000]
mov eax, dword [edi]
or eax, eax
je 0x1002dff6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2e0f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2e134]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1002dfb4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2e138]
or eax, eax
je 0x1002dff0
mov dword [ebx], eax
add ebx, 4
jmp 0x1002dfd1
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1002e027
cmp al, 0xef
ja 0x1002e01a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1002dffc
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x1002e009
mov ebp, dword [esi + 0x2e13c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x1002e05b
sub esp, 0xffffff80
jmp 0x100054ba
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
mov ecx, 0x5a7d077a
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
mov ecx, 0x4ff80e5c
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
popal
nop
nop
nop
nop
jmp 0x401219

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx