joyce8/EMBER2024-capa huggingface dataset:
Function at 0x452e0a
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 0x452eeb
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 + 0x48ac08]
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 + 0x48ac08]
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 + 0x48ac08]
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 + 0x48ac08]
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 + 0x48ac08]
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 + 0x48ac08]
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 + 0x48ac08]
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 + 0x48ac08]
xor eax, esi
inc ecx
dec edi
jne 0x452e2d
pop ebx
cmp dword [ebp + 0x10], 0
je 0x452f0c
movzx edi, byte [ecx]
mov esi, eax
and esi, edx
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x48ac08]
xor eax, esi
inc ecx
dec dword [ebp + 0x10]
jne 0x452ef1
pop edi
pop esi
not eax
pop ebp
ret

Function at 0x452f12
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 + 0x48ac08]
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 + 0x48ac08]
pop esi
xor edx, eax
mov dword [ecx + 8], edx
ret

Function at 0x454722
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test byte [esi], 1
jne 0x454756
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 0x454751
and dword [ebp + 0x10], eax
mov dword [esi + 8], 7
mov eax, dword [ebp + 0x10]
jmp 0x454783
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 0x45476b
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 0x454786
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 0x4547b3
cmp byte [eax + 1], 0x3a
jne 0x4547b3
inc eax
inc eax
cmp byte [eax], 0x5c
jne 0x454801
inc eax
jmp 0x454801
push 0x5c
push eax
call fcn.00454812
mov esi, eax
pop ecx
cmp esi, ebx
pop ecx
jne 0x4547d7
cmp dword [ebp + 0xc], ebx
jne 0x4547d9
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 0x4547f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x454807
cmp esi, ebx
je 0x4547d0
mov byte [esi], 0x5c
lea eax, [esi + 1]
cmp byte [eax], bl
jne 0x4547bb
jmp 0x4547d0
cmp esi, ebx
je 0x45480e
mov byte [esi], 0x5c
xor eax, eax
jmp 0x4547d3

Function at 0x454828
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 0x454858
cmp word [eax + 2], 0x3a
jne 0x454858
add eax, 4
cmp word [eax], 0x5c
jne 0x4548ab
inc eax
inc eax
jmp 0x4548ab
push 0x5c
push eax
call fcn.004548bf
mov esi, eax
pop ecx
cmp esi, edi
pop ecx
jne 0x45487e
cmp dword [ebp + 0xc], edi
jne 0x454881
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 0x45489f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4548b2
cmp esi, edi
je 0x454877
mov word [esi], 0x5c
lea eax, [esi + 2]
cmp word [eax], di
jne 0x454862
jmp 0x454877
cmp esi, edi
je 0x4548bb
mov word [esi], 0x5c
xor eax, eax
jmp 0x45487a
Function at 0x4548d9
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 0x454a8e
cmp dword [esi + 0x24], 0xffffffff
je 0x454a8e
mov eax, dword [ebp + 0x14]
xor edi, edi
test al, 1
mov dword [esi + 8], edi
je 0x454958
cmp word [esi + 0x58], di
jne 0x454926
push esi
call fcn.00454b23
cmp dword [esi + 8], edi
pop ecx
jne 0x454a82
mov word [esi + 0x58], 1
mov ebx, dword [ebp + 0x10]
push dword [ebx + 0x20]
push dword [ebp + 0xc]
push esi
call fcn.00452c2a
add esp, 0xc
mov dword [ebx + 0x20], eax
cmp dword [esi + 8], edi
jne 0x45494f
cmp dword [esi + 0x8c], edi
je 0x45494f
push 5
jmp 0x454a90
mov word [esi + 0x58], di
jmp 0x454a82
mov ebx, dword [ebp + 0x10]
test byte [ebx + 4], 0x10
je 0x454987
test al, 2
je 0x454980
push 1
push dword [ebp + 0xc]
test eax, eax
jns 0x454975
call fcn.00454828
jmp 0x45497a
call fcn.00454786
pop ecx
cmp eax, edi
pop ecx
je 0x4549de
xor eax, eax
jmp 0x454a91
cmp eax, 4
jne 0x454991
mov eax, dword [ebp + 0xc]
jmp 0x4549d6
mov dword [ebp + 8], eax
push edi
and dword [ebp + 8], 0x80000000
push dword [ebp + 0xc]
je 0x4549a8
call fcn.00454828
jmp 0x4549ad
call fcn.00454786
pop ecx
cmp eax, edi
pop ecx
je 0x4549de
push edi
cmp dword [ebp + 8], edi
push dword [ebx + 4]
push 2
push edi
push edi
push 0x40000000
push dword [ebp + 0xc]
je 0x4549d0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x4549d6
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
jne 0x4549ea
mov dword [esi + 8], 1
jmp 0x454a82
push esi
call fcn.00454b23
cmp dword [esi + 8], edi
pop ecx
jne 0x454a73
cmp dword [esi + 0x34], edi
mov ebx, 0x4000
jne 0x454a51
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, edi
mov dword [esi + 0x34], eax
jne 0x454a51
mov dword [esi + 8], 2
jmp 0x454a51
push ebx
push dword [esi + 0x34]
push esi
call fcn.00452c2a
add esp, 0xc
cmp eax, edi
mov dword [ebp + 8], eax
je 0x454a56
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 0x454a4a
mov eax, dword [ebp + 8]
cmp dword [ebp - 4], eax
je 0x454a51
mov dword [esi + 8], 3
cmp dword [esi + 8], edi
je 0x454a18
cmp dword [esi + 8], edi
mov ebx, dword [ebp + 0x10]
jne 0x454a73
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 0x454a82
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00454a96
mov eax, dword [esi + 8]
pop ecx
jmp 0x454a91
push 9
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x456740
Capabilities:
Create thread
Resume thread

Disassembly:
mov eax, 0x482dfc
call fcn.0047bf90
sub esp, 0x10
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 4]
mov ecx, ebx
mov dword [ebp - 0x1c], ebx
call fcn.0045632c
and dword [ebp - 4], 0
cmp dword [esi + 0x1c], 0
je 0x45677c
mov al, byte [ebp - 0xd]
push 0x497868
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 0x456511
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 0x4567b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push 0x4977a4
push eax
call sub.MSVCRT.dll__CxxThrowException
push dword [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x4567de
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push 0x4977a4
push eax
call sub.MSVCRT.dll__CxxThrowException
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x456803
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push 0x4977a4
push eax
call sub.MSVCRT.dll__CxxThrowException
mov ecx, ebx
mov dword [esi + 0x1c], 1
call fcn.0042845c
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x456eb9
Capabilities:
Create thread

Disassembly:
mov eax, 0x482e74
call fcn.0047bf90
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.00428472
lea eax, [ebx + 0x8c]
mov esi, 0x4aea10
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 0x4a3524
push eax
movsd dword es:[edi], dword [esi]
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
je 0x457068
mov esi, str.S:Ammyy_sourcesmain_soundAudioIn.cpp
push str.StartSound__1
push esi
mov edi, 0x4aea90
push 2
push edi
call fcn.0041c87e
add esp, 0x10
cmp dword [ebx + 0x80], 0
je 0x456f4f
lea eax, [ebp - 0x20]
push str.AudioIn::Start:_Sound_Capture_thread_is_already_active
push eax
call fcn.0042783a
pop ecx
lea eax, [ebp - 0x20]
pop ecx
push 0x48e404
push eax
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp + 8]
cmp eax, 0x3e8
mov dword [ebx], eax
jb 0x456f62
cmp eax, 0xbb80
jbe 0x456f74
push 0x42
push esi
lea ecx, [ebp - 0x30]
call fcn.00425726
mov ecx, eax
call fcn.00425832
mov ax, word [ebx + 4]
cmp ax, 8
je 0x456f96
cmp ax, 0x10
je 0x456f96
push 0x43
push esi
lea ecx, [ebp - 0x30]
call fcn.00425726
mov ecx, eax
call fcn.00425832
mov ax, word [ebx + 6]
cmp ax, 1
je 0x456fb8
cmp ax, 2
je 0x456fb8
push 0x44
push esi
lea ecx, [ebp - 0x30]
call fcn.00425726
mov ecx, eax
call fcn.00425832
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.0045718d
push str.StartSound__2
push esi
push 2
push edi
call fcn.0041c87e
add esp, 0x10
mov ecx, ebx
mov byte [ebp - 4], 1
push 0x1f40
push 3
push 0
call fcn.00457989
push str.StartSound__3
push esi
push 2
push edi
call fcn.0041c87e
add esp, 0x10
xor esi, esi
mov dword [ebx + 0x84], esi
push esi
push esi
push ebx
push 0x4574f0
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 0x457068
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.0042783a
add esp, 0xc
lea eax, [ebp - 0x28]
push 0x48e404
push eax
call sub.MSVCRT.dll__CxxThrowException
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00428486
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x4578b5
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 0x4578df
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 0x4578f8
push 0x1be
push str.S:Ammyy_sourcesmain_soundAudioIn.cpp
lea ecx, [ebp - 8]
call fcn.00425726
mov ecx, eax
call fcn.00425832
mov ax, word [esi + 4]
cmp ax, 0x10
jne 0x45793f
test bl, 1
je 0x457920
push 0x1c2
push str.S:Ammyy_sourcesmain_soundAudioIn.cpp
lea ecx, [ebp - 8]
call fcn.00425726
mov ecx, eax
call fcn.00425832
shr ebx, 1
xor eax, eax
test ebx, ebx
jle 0x457982
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 0x457928
jmp 0x457982
cmp ax, 8
je 0x45795e
push 0x1ca
push str.S:Ammyy_sourcesmain_soundAudioIn.cpp
lea ecx, [ebp - 8]
call fcn.00425726
mov ecx, eax
call fcn.00425832
xor eax, eax
test ebx, ebx
jbe 0x457982
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 0x457964
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x457b9a
Capabilities:
Create thread

Disassembly:
mov eax, 0x482f14
call fcn.0047bf90
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 0x457bdd
lea eax, [ebp - 0x20]
push str.AudioOut::StartSound___Sound_Playback_thread_is_already_active
push eax
call fcn.0042783a
pop ecx
lea eax, [ebp - 0x20]
pop ecx
push 0x48e404
push eax
call sub.MSVCRT.dll__CxxThrowException
mov ecx, esi
call fcn.00457edf
push 1
push edi
mov ecx, esi
call fcn.004580fe
lea ecx, [esi + 0x84]
cmp dword [ecx], edi
jne 0x457bff
push edi
push edi
call fcn.00427644
push edi
push edi
push esi
push 0x458206
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 0x457c4d
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.0042783a
add esp, 0xc
lea eax, [ebp - 0x28]
push 0x48e404
push eax
call sub.MSVCRT.dll__CxxThrowException
xor eax, eax
inc eax
jmp 0x457c76
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x459170
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x4591a0
push esi
call fcn.0045cfd0
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x459199
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 0x459223
mov eax, dword [esi + 0x190]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x45920f
mov eax, dword [esi + 8]
test eax, eax
je 0x4591c4
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 0x45920b
cmp eax, 2
je 0x45920f
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4591b7
cmp eax, 3
je 0x4591ea
cmp eax, 1
jne 0x4591b7
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 0x4591b7
mov edx, dword [esi + 0x11c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4591b7
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.00459250
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x459243
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.00459250
add esp, 4
pop esi
ret
Function at 0x45c060
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.0045dec0
push 0x54
push edi
mov dword [esp + 0x18], eax
call fcn.0045de80
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x45c0a4
push edi
call fcn.0045ded0
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.0045c1a0
mov dword [esi + 4], fcn.0045c2f0
mov dword [esi + 8], fcn.0045c3a0
mov dword [esi + 0xc], fcn.0045c450
mov dword [esi + 0x10], 0x45c500
mov dword [esi + 0x14], 0x45c570
mov dword [esi + 0x18], 0x45c5e0
mov dword [esi + 0x1c], 0x45c760
mov dword [esi + 0x20], 0x45c950
mov dword [esi + 0x24], fcn.0045cb40
mov dword [esi + 0x28], 0x45cc40
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 0x45c106
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 0x45c196
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 0x45c196
mov al, byte [esp + 0x14]
cmp al, 0x6d
je 0x45c15f
cmp al, 0x4d
jne 0x45c183
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 0x47c62a
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 accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x47c680
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x48def4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x47c673
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x47c682
xor eax, eax
pop esi
leave
ret 4
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x430072
mov ebx, 0x408ecc
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x3252430e
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..rdata
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x68273c1e
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219

Function at 0x431000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
nop
mov ecx, 0x7c545e8a
nop
nop
test eax, eax
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x431024
nop
nop
nop
nop
mov eax, section..reloc
mov ebx, 0x42f3f8
nop
mov ecx, 0x2da175b0
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x431084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x401af0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407044
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x40703c]
sub esp, 4
test ebx, ebx
je 0x401b3b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x401b34
test esi, esi
je 0x401b34
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401b10
mov dword [esp], 0x407044
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401d20
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
lea esi, [esp + 0x24]
lea ebx, [eax + 0x40]
mov dword [esp + 4], 1
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x401d70
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, edx
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0x3c
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x401e44
mov eax, dword [esp + 0x28]
cmp eax, 0x40
je 0x401dae
cmp eax, 4
jne 0x401dd0
test esi, esi
je 0x401dc2
xor eax, eax
movzx ecx, byte [edi + eax]
mov byte [ebx + eax], cl
add eax, 1
cmp eax, esi
jb 0x401db4
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x20]
lea ebp, [esp + 0x10]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov ecx, dword [esp + 0x28]
test esi, esi
je 0x401e0f
xor edx, edx
movzx eax, byte [edi + edx]
mov byte [ebx + edx], al
add edx, 1
cmp edx, esi
jb 0x401e01
cmp ecx, 0x40
je 0x401dc2
cmp ecx, 4
je 0x401dc2
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401d20
lea esi, [esi]
Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x40915c
nop
mov ecx, 0x1e7f6572
test eax, eax
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x431024
nop
mov eax, section..reloc
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x57ed2ea9
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x431084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219