joyce8/EMBER2024-capa huggingface dataset:
Function at 0x493290
Capabilities:
Hash data with crc32

Disassembly:
push esi
push edi
mov dword [eax + 4], 0
mov edi, 8
mov edi, edi
mov esi, dword [eax + 4]
xor edx, edx
mov dword [eax], esi
mov dword [eax + 8], edx
lea ebx, [ebx]
mov ecx, dword [eax]
test cl, 1
je 0x4932c1
shr ecx, 1
xor ecx, 0xedb88320
jmp 0x4932c3
shr ecx, 1
inc edx
mov dword [eax], ecx
mov dword [eax + 8], edx
cmp edx, edi
jb 0x4932b0
mov dword [eax + esi*4 + 0xc], ecx
inc dword [eax + 4]
cmp dword [eax + 4], 0x100
jb 0x4932a0
pop edi
mov dword [eax], 0xffffffff
pop esi
ret

Function at 0x4932f0
Capabilities:
Encode data using xor

Disassembly:
test ecx, ecx
je 0x49331f
cmp eax, 1
jl 0x49331f
push esi
lea esi, [ecx + eax]
cmp ecx, esi
jae 0x49331e
push edi
movzx edi, byte [ecx]
mov eax, dword [edx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edx + edi*4 + 0xc]
inc ecx
mov dword [edx], eax
cmp ecx, esi
jb 0x493302
pop edi
pop esi
ret

Function at 0x493320
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.005965e0
mov eax, dword [0x601018]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x1014], eax
push 0x400
lea eax, [ebp - 0xc0c]
call fcn.00508eb0
add esp, 4
call dword [sym.imp.MSVCR100.dll__getpid]
mov esi, dword [ebx + 0x434]
mov edi, eax
mov eax, dword [esi + 0x105c]
test eax, eax
je 0x493374
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [esi + 0x1060]
jns 0x493386
mov dword [esi + 0x1060], 0
mov ecx, dword [esi + 0x1060]
mov esi, dword [esi + 0x105c]
mov dword [ebp - 0x1010], ecx
test esi, esi
je 0x4933a3
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea edx, [ebp - 0x101c]
push edx
call dword [sym.imp.MSVCR100.dll__time64]
lea eax, [ebp - 0x101c]
add esp, 4
push eax
call dword [sym.imp.MSVCR100.dll__localtime64]
mov ecx, dword [ebp - 0x1010]
mov edx, dword [eax]
add esp, 4
push ecx
mov ecx, dword [eax + 4]
push edi
push edx
mov edx, dword [eax + 8]
push ecx
mov ecx, dword [eax + 0xc]
push edx
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
push ecx
inc edx
push edx
add eax, 0x76c
push eax
push 0x5cc7f4
lea ecx, [ebp - 0xc0c]
push ecx
push str._stemp_sps2text._04d_02d_02d._02d_02d_02d._d._d
mov esi, 0x400
lea edi, [ebp - 0x100c]
call fcn.004f9520
mov edx, edi
add esp, 0x2c
push edx
push str._s.tmp.ps
lea edi, [ebp - 0x40c]
call fcn.004f9520
lea eax, [ebp - 0x100c]
push eax
push str._s.tmp.err
lea edi, [ebp - 0x80c]
call fcn.004f9520
mov esi, dword [ebp - 0x1014]
lea ecx, [ebp - 0x40c]
push ecx
mov edx, ebx
mov ecx, esi
call fcn.004934b0
add esp, 0x14
test eax, eax
jne 0x49349a
mov edx, edi
push edx
lea eax, [ebp - 0xc0c]
push eax
push esi
lea edx, [ebp - 0x40c]
mov ecx, ebx
call fcn.004937d0
add esp, 0xc
test eax, eax
jne 0x49349a
mov ecx, edi
push ecx
push ebx
mov ecx, esi
call fcn.00493c50
add esp, 8
test eax, eax
jne 0x49349a
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [ebp - 0x40c]
push edx
call esi
mov eax, edi
push eax
call esi
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.00596083
mov esp, ebp
pop ebp
ret
Function at 0x494700
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59d47e
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x601018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea esi, [ebx + 0xc]
xor eax, eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], eax
mov byte [esi], al
mov dword [ebp - 4], eax
mov dword [ebx + 8], eax
xor edi, edi
mov eax, 0x5bc564
mov dword [ebx], 0xffffffff
mov dword [ebx + 4], 0xffffffff
call fcn.00402fe0
lea esi, [ebx + 0x38]
mov dword [ebp - 4], 1
xor eax, eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], eax
mov byte [esi], al
mov byte [ebp - 4], 2
or ecx, 0xffffffff
mov dword [ebx + 0x34], eax
mov dword [ebx + 0x30], eax
mov eax, 0x5bc564
mov dword [ebx + 0x28], ecx
mov dword [ebx + 0x2c], ecx
call fcn.00402fe0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x494940
Capabilities:
Delete file

Disassembly:
push ebx
push esi
push edi
mov edi, eax
lea esi, [edi + 8]
call fcn.00550b00
cmp dword [esi + 4], 1
jne 0x494971
mov eax, dword [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x494969
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
xor eax, eax
mov dword [esi + 0x18], eax
mov dword [esi + 4], eax
mov dword [esi], 0
mov eax, dword [edi + 0x38]
mov dword [edi + 0x40], eax
mov dword [edi + 0x44], eax
cmp dword [edi + 0x48], 0
je 0x49499f
mov ecx, dword [edi + 0x54]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [edi + 0x50]
push edx
call esi
mov dword [edi + 0x48], 0
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [edi + 0x15c0]
mov dword [edi + 0x4c], 0
cmp byte [eax], 0
je 0x4949ba
push eax
call esi
cmp byte [edi + 0x19c0], 0
lea eax, [edi + 0x19c0]
je 0x4949cc
push eax
call esi
cmp byte [edi + 0x1dc0], 0
lea eax, [edi + 0x1dc0]
je 0x4949de
push eax
call esi
cmp byte [edi + 0x21c0], 0
lea eax, [edi + 0x21c0]
je 0x4949f0
push eax
call esi
lea ecx, [edi + 0x70]
mov dword [edi + 0x70], vtable.WindowsFile.0
call fcn.005096c0
mov dword [edi + 0x70], vtable.BaseFile.0
mov eax, dword [edi + 0x60]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp dword [edi + 0x48], 0
je 0x494a32
mov ecx, dword [edi + 0x54]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [edi + 0x50]
push edx
call esi
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
lea edi, [edi + 4]
call fcn.005502d0
pop edi
pop esi
pop ebx
ret
Function at 0x495900
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59d443
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x601018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea esi, [ebx + 0xc]
mov dword [ebx], vtable.PDFBaseType.0
xor eax, eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], eax
mov byte [esi], al
mov dword [ebp - 4], eax
mov dword [ebx + 8], eax
lea edi, [eax + 0xb]
mov eax, str.PDFBaseType
call fcn.00402fe0
mov dword [ebx + 4], 0
mov dword [ebp - 4], 1
mov edi, 8
mov eax, str.PDFRectF
mov dword [ebx], vtable.PDFRectF.0
mov dword [ebx + 8], 0x34
call fcn.00402fe0
fld dword [ebp + 0xc]
fstp dword [ebx + 0x28]
mov eax, ebx
fld dword [ebp + 0x10]
fstp dword [ebx + 0x2c]
fld dword [ebp + 0x14]
fstp dword [ebx + 0x30]
fld dword [ebp + 0x18]
fstp dword [ebx + 0x34]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14

Function at 0x4959f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59c07c
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x601018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x38
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x495a63
fld dword [esi + 0x34]
sub esp, 0x10
fstp dword [esp + 0xc]
fld dword [esi + 0x30]
fstp dword [esp + 8]
fld dword [esi + 0x2c]
fstp dword [esp + 4]
fld dword [esi + 0x28]
fstp dword [esp]
push eax
call fcn.00495900
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x495eb0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59bdf6
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x601018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea esi, [ebx + 0xc]
mov dword [ebx], vtable.PDFObjStream.0
xor eax, eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], eax
mov byte [esi], al
mov dword [ebp - 4], eax
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x34], eax
mov dword [ebx + 0x38], eax
mov byte [ebp - 4], 1
mov dword [ebx + 4], eax
xor edi, edi
mov eax, 0x5bc564
mov dword [ebx + 8], 0xffffffff
call fcn.00402fe0
xor eax, eax
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4a3120
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, eax
dec dword [esi + 0x19de10]
mov eax, 1
shl eax, cl
mov dword [esi + 0x30a7c0], ecx
mov dword [esi + 0x30a7cc], ecx
dec ecx
dec eax
mov dword [esi + 0x30a7c8], eax
mov eax, 1
shl eax, cl
xor edx, edx
mov dword [esi + 0x30a7b4], edx
mov dword [esi + 0x30a7e8], edx
lea ecx, [eax + 1]
mov dword [esi + 0x30a7d0], eax
add eax, 2
mov dword [esi + 0x30a7b0], eax
mov dword [esi + 0x30a7bc], edx
mov dword [esi + 0x30a7d8], 0x138b
mov dword [esi + 0x30a7dc], 0xc
mov dword [esi + 0x30a7e0], 0x1000
mov dword [esi + 0x30a7c4], edx
mov dword [esi + 0x30a7b8], edx
mov dword [esi + 0x30a7d4], ecx
mov dword [esi + 0x30a7e4], edx
movzx eax, byte [ebx]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
inc ebx
mov eax, 0x138b
add eax, eax
inc edx
cmp eax, 0x10000
jl 0x4a31c1
mov eax, 8
sub eax, edx
push 0x4e2c
mov dword [ebp - 8], eax
lea eax, [esi + 0x30cf04]
push 0xffffffffffffffff
push eax
call sub.MSVCR100.dll_memset
mov ecx, dword [esi + 0x30a7d0]
push ecx
call fcn.004a2f00
add esp, 0x10
cmp dword [esi + 0x19de10], 0
je 0x4a332e
jmp 0x4a3213
mov ebx, dword [ebp + 0xc]
dec dword [esi + 0x19de10]
movzx edx, byte [ebx]
mov ecx, dword [esi + 0x30a7dc]
inc ebx
mov eax, edx
shl eax, cl
mov ecx, dword [ebp - 8]
mov dword [ebp + 0xc], ebx
mov ebx, edx
add eax, dword [ebp - 4]
shl ebx, cl
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], eax
xor ebx, dword [ebp - 4]
mov edx, dword [esi + ebx*4 + 0x30cf04]
lea ecx, [esi + ebx*4 + 0x30cf04]
cmp edx, eax
jne 0x4a325f
movzx edx, word [esi + ebx*2 + 0x30a7ec]
mov dword [ebp - 4], edx
jmp 0x4a3321
test edx, edx
js 0x4a3299
mov edx, 0x138b
sub edx, ebx
test ebx, ebx
jne 0x4a3273
mov edx, 1
lea edi, [edx*4]
sub ecx, edi
sub ebx, edx
jns 0x4a328c
add ebx, 0x138b
add ecx, 0x4e2c
mov edi, dword [ecx]
cmp edi, eax
je 0x4a32d6
test edi, edi
jg 0x4a3273
mov edi, dword [ebp + 8]
mov ecx, dword [ebp - 4]
push ecx
call fcn.004a2f00
mov eax, dword [esi + 0x30a7b0]
mov edx, dword [ebp - 0xc]
add esp, 4
mov dword [ebp - 4], edx
cmp eax, dword [esi + 0x30a7e0]
jge 0x4a32e6
mov edx, dword [ebp - 0x10]
mov cx, ax
mov word [esi + ebx*2 + 0x30a7ec], cx
inc dword [esi + 0x30a7b0]
mov dword [esi + ebx*4 + 0x30cf04], edx
jmp 0x4a3321
movzx eax, word [esi + ebx*2 + 0x30a7ec]
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
jmp 0x4a3321
mov eax, dword [esi + 0x30a7d8]
add eax, eax
add eax, eax
push eax
lea eax, [esi + 0x30cf04]
push 0xffffffffffffffff
push eax
call sub.MSVCR100.dll_memset
mov eax, dword [esi + 0x30a7d0]
lea ecx, [eax + 2]
push eax
mov dword [esi + 0x30a7b0], ecx
mov dword [esi + 0x30a7b8], 1
call fcn.004a2f00
add esp, 0x10
cmp dword [esi + 0x19de10], 0
jne 0x4a3210
mov edx, dword [ebp - 4]
dec dword [esi + 0x19de10]
push edx
call fcn.004a2f00
mov eax, dword [esi + 0x30a7d4]
push eax
call fcn.004a2f00
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a4bb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
cmp dword [esi + 0x20], 0
jne 0x4a4bc2
mov eax, esi
call fcn.004a4870
xor eax, eax
pop ecx
ret
cmp dword [esi + 0x3c], 0
je 0x4a4bb7
mov dword [esi + 0xc], ecx
test ecx, ecx
je 0x4a4bf9
movzx eax, byte [ecx]
movzx edx, byte [ecx + 1]
shl ax, 8
movzx eax, ax
or eax, edx
mov dword [esi + 0x18], eax
cmp eax, 0x14
jl 0x4a4bf9
jg 0x4a4bf9
mov edx, dword [esi + 0x18]
lea eax, [ecx + 8]
add edx, ecx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
jmp 0x4a4c07
xor eax, eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
cmp dword [esi + 0xc], 0
je 0x4a4bb7
cmp dword [esi + 0x64], 0
je 0x4a4c1a
mov eax, esi
call fcn.004a4d30
mov eax, dword [esi + 0x10]
mov dword [esi + 0x64], 1
movzx ecx, byte [eax]
shl cx, 8
movzx edx, cx
movzx ecx, byte [eax + 1]
or edx, ecx
mov dword [esi + 0x68], edx
movzx edx, byte [eax + 2]
shl dx, 8
movzx ecx, dx
movzx edx, byte [eax + 3]
or ecx, edx
mov dword [esi + 0x6c], ecx
movzx ecx, byte [eax + 4]
shl cx, 8
movzx edx, cx
movzx ecx, byte [eax + 5]
or edx, ecx
mov dword [esi + 0x70], edx
movzx edx, byte [eax + 6]
shl dx, 8
movzx ecx, dx
movzx edx, byte [eax + 7]
or ecx, edx
mov dword [esi + 0x74], ecx
movzx ecx, byte [eax + 8]
shl cx, 8
movzx edx, cx
movzx ecx, byte [eax + 9]
or edx, ecx
mov dword [esi + 0x78], edx
movzx edx, byte [eax + 0xa]
shl dx, 8
movzx ecx, dx
movzx edx, byte [eax + 0xb]
or ecx, edx
mov dword [esi + 0x7c], ecx
mov eax, 1
pop ecx
ret
Function at 0x4c4220
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x601018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, ecx
mov ebx, edx
test esi, esi
jne 0x4c426e
cmp dword [ebp + 0xc], esi
jbe 0x4c426e
push str.PNGChunk:_parameter_error
mov edi, 0x57e5
mov esi, eax
call fcn.004526c0
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00596083
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_htonl]
mov edx, dword [edi]
mov edx, dword [edx + 0x2c]
mov dword [ebp - 0x414], eax
push 4
lea eax, [ebp - 0x414]
push eax
mov ecx, edi
call edx
mov eax, dword [edi]
mov edx, dword [eax + 0x2c]
push 4
push ebx
mov ecx, edi
call edx
mov ecx, dword [ebp + 0xc]
mov eax, dword [edi]
mov edx, dword [eax + 0x2c]
push ecx
push esi
mov ecx, edi
call edx
lea eax, [ebp - 0x410]
call fcn.00493290
mov eax, dword [ebp - 0x410]
lea edx, [ebx + 4]
mov ecx, ebx
cmp ebx, edx
jae 0x4c42e4
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, 0xff
shr eax, 8
xor eax, dword [ebp + ebx*4 - 0x404]
inc ecx
mov dword [ebp - 0x410], eax
cmp ecx, edx
jb 0x4c42c4
test esi, esi
je 0x4c4320
mov ecx, dword [ebp + 0xc]
cmp ecx, 1
jl 0x4c4320
add ecx, esi
cmp esi, ecx
jae 0x4c4320
jmp 0x4c4300
movzx edx, byte [esi]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [ebp + edx*4 - 0x404]
inc esi
mov dword [ebp - 0x410], eax
cmp esi, ecx
jb 0x4c4300
not eax
push eax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x414], eax
mov eax, dword [edi]
mov edx, dword [eax + 0x2c]
push 4
lea ecx, [ebp - 0x414]
push ecx
mov ecx, edi
call edx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00596083
mov esp, ebp
pop ebp
ret
Function at 0x4c4360
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x601018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edx, ecx
shr edx, 0x18
mov byte [ebp - 0x14], dl
mov edx, ecx
shr edx, 0x10
mov byte [ebp - 0x13], dl
mov edx, ecx
mov byte [ebp - 0x11], cl
mov ecx, eax
shr edx, 8
shr ecx, 0x18
mov byte [ebp - 0x12], dl
mov byte [ebp - 0x10], cl
mov edx, eax
mov ecx, eax
push edi
mov edi, dword [sym.imp.WS2_32.dll_htonl]
mov byte [ebp - 0xd], al
shr edx, 0x10
shr ecx, 8
xor al, al
push 0xd
mov byte [ebp - 0xf], dl
mov byte [ebp - 0xe], cl
mov dword [ebp - 0xc], 0x308
mov byte [ebp - 8], al
call edi
mov edx, dword [esi]
mov edx, dword [edx + 0x2c]
mov dword [ebp - 0x424], eax
push 4
lea eax, [ebp - 0x424]
push eax
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x2c]
push 4
push str.IHDR
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x2c]
push 0xd
lea ecx, [ebp - 0x14]
push ecx
mov ecx, esi
call edx
lea eax, [ebp - 0x420]
call fcn.00493290
mov ecx, dword [ebp - 0x420]
mov eax, str.IHDR
movzx edx, byte [eax]
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [ebp + edx*4 - 0x414]
inc eax
mov dword [ebp - 0x420], ecx
cmp eax, 0x5e3ffc
jb 0x4c4410
mov eax, 0xd
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x420]
call fcn.004932f0
mov eax, dword [ebp - 0x420]
not eax
push eax
call edi
mov edx, dword [esi]
mov edx, dword [edx + 0x2c]
mov dword [ebp - 0x424], eax
push 4
lea eax, [ebp - 0x424]
push eax
mov ecx, esi
call edx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00596083
mov esp, ebp
pop ebp
ret
Function at 0x4c4480
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x601018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edx, ecx
shr edx, 0x18
mov byte [ebp - 0x14], dl
mov edx, ecx
shr edx, 0x10
mov byte [ebp - 0x13], dl
mov edx, ecx
mov byte [ebp - 0x11], cl
mov ecx, eax
shr edx, 8
shr ecx, 0x18
mov byte [ebp - 0x12], dl
mov byte [ebp - 0x10], cl
mov edx, eax
mov ecx, eax
push edi
mov edi, dword [sym.imp.WS2_32.dll_htonl]
mov byte [ebp - 0xd], al
shr edx, 0x10
shr ecx, 8
xor al, al
push 0xd
mov byte [ebp - 0xf], dl
mov byte [ebp - 0xe], cl
mov dword [ebp - 0xc], 0x208
mov byte [ebp - 8], al
call edi
mov edx, dword [esi]
mov edx, dword [edx + 0x2c]
mov dword [ebp - 0x424], eax
push 4
lea eax, [ebp - 0x424]
push eax
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x2c]
push 4
push str.IHDR
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x2c]
push 0xd
lea ecx, [ebp - 0x14]
push ecx
mov ecx, esi
call edx
lea eax, [ebp - 0x420]
call fcn.00493290
mov ecx, dword [ebp - 0x420]
mov eax, str.IHDR
movzx edx, byte [eax]
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [ebp + edx*4 - 0x414]
inc eax
mov dword [ebp - 0x420], ecx
cmp eax, 0x5e3ffc
jb 0x4c4530
mov eax, 0xd
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x420]
call fcn.004932f0
mov eax, dword [ebp - 0x420]
not eax
push eax
call edi
mov edx, dword [esi]
mov edx, dword [edx + 0x2c]
mov dword [ebp - 0x424], eax
push 4
lea eax, [ebp - 0x424]
push eax
mov ecx, esi
call edx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00596083
mov esp, ebp
pop ebp
ret
Function at 0x4cfe30
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x597d38
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x601018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
xor ebx, ebx
mov dword [ebp - 4], ebx
push fcn.0044afb0
mov dword [esi], vtable.JPEGImage.0
push 0x44afa0
push 4
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
push 0xc
lea eax, [esi + 0x34]
push eax
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
call fcn.00596513
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x20]
mov byte [esi + 0x64], bl
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xa8], ebx
mov dword [esi + 0xac], ebx
mov dword [esi + 0x24], ecx
mov ecx, dword [ebp + 0x24]
mov dword [esi + 0x28], edx
mov edx, dword [ebp + 0x1c]
mov dword [esi + 0x30], ecx
mov ecx, dword [ebp + 0x18]
mov dword [esi + 0x2c], eax
sub edx, ecx
lea eax, [esi + 0x3c]
mov dword [ebp + 0xc], ecx
mov dword [ebp + 8], ebx
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x24], edx
mov ecx, ebx
cmp ecx, dword [ebp + 0x20]
jge 0x4cff25
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov dword [ebp + 0x10], edx
mov edx, dword [ebp + 0x24]
mov ecx, dword [edx + ecx]
sub ecx, dword [ebp + 0x10]
mov dword [ebp + 0x18], ecx
cmp dword [eax - 8], ebx
je 0x4cff17
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x18]
add esp, 4
mov edx, dword [ebp + 0x10]
mov dword [eax - 4], ecx
mov ecx, dword [ebp + 8]
mov dword [eax - 8], ebx
mov dword [eax], edx
add dword [ebp + 0xc], 4
inc ecx
add eax, 0xc
mov dword [ebp + 8], ecx
mov dword [ebp + 0x14], eax
cmp ecx, 4
jl 0x4cfee7
cmp dword [esi + 0x14], ebx
jne 0x4cff48
lea eax, [esi + 0x24]
lea edi, [esi + 0x10]
call fcn.0044b330
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
Function at 0x4d0660
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, eax
cmp dword [esi + 0x14], 0xca
jne 0x4d06b1
mov eax, dword [esi + 4]
mov ecx, dword [eax]
push 0x1c
push 1
push esi
call ecx
mov dword [esi + 0x198], eax
mov dword [eax], 0x4d42c0
mov dword [eax + 4], 0x4d4420
mov byte [eax + 8], 0
add esp, 0xc
mov eax, esi
call fcn.004d4110
cmp byte [esi + 0x40], 0
je 0x4d06aa
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 0x4d072b
mov edx, dword [esi + 0x1a8]
cmp byte [edx + 0x10], 0
je 0x4d071b
mov eax, dword [esi + 8]
test eax, eax
je 0x4d06d6
mov eax, dword [eax]
push esi
call eax
add esp, 4
mov ecx, dword [esi + 0x1a8]
mov edx, dword [ecx]
push esi
call edx
add esp, 4
test eax, eax
je 0x4d0717
cmp eax, 2
je 0x4d071b
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4d06c7
cmp eax, 3
je 0x4d06fe
cmp eax, 1
jne 0x4d06c7
inc dword [ecx + 4]
mov ecx, dword [ecx + 4]
mov eax, dword [esi + 8]
cmp ecx, dword [eax + 8]
jl 0x4d06c7
mov ecx, dword [esi + 0x128]
add dword [eax + 8], ecx
jmp 0x4d06c7
xor al, al
pop esi
ret
mov edx, dword [esi + 0x7c]
mov dword [esi + 0x84], edx
call fcn.004d0760
pop esi
ret
cmp eax, 0xcc
je 0x4d074d
mov eax, dword [esi]
mov dword [eax + 0x14], 0x15
mov ecx, dword [esi]
mov edx, dword [esi + 0x14]
mov dword [ecx + 0x18], edx
mov eax, dword [esi]
mov ecx, dword [eax]
push esi
call ecx
add esp, 4
call fcn.004d0760
pop esi
ret

Function at 0x4d5c80
Capabilities:
Query environment variable

Disassembly:
sub esp, 8
push esi
push edi
xor edi, edi
push 0x54
mov dword [ebx + 4], edi
mov dword [esp + 0x10], edi
call dword [sym.imp.MSVCR100.dll_malloc]
mov esi, eax
add esp, 4
cmp esi, edi
jne 0x4d5cb7
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x38
mov ecx, dword [ebx]
mov dword [ecx + 0x18], edi
mov edx, dword [ebx]
mov eax, dword [edx]
push ebx
call eax
add esp, 4
mov dword [esi], fcn.004d50c0
mov dword [esi + 4], fcn.004d5210
mov dword [esi + 8], fcn.004d52d0
mov dword [esi + 0xc], fcn.004d5380
mov dword [esi + 0x10], 0x4d5430
mov dword [esi + 0x14], 0x4d54a0
mov dword [esi + 0x18], 0x4d5510
mov dword [esi + 0x1c], 0x4d57d0
mov dword [esi + 0x20], 0x4d5910
mov dword [esi + 0x24], 0x4d5a60
mov dword [esi + 0x28], 0x4d5b60
mov dword [esi + 0x30], 0x3b9aca00
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x38], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], 0x54
push str.JPEGMEM
mov dword [ebx + 4], esi
call dword [sym.imp.MSVCR100.dll_getenv]
add esp, 4
cmp eax, edi
je 0x4d5d93
lea edx, [esp + 0xb]
push edx
lea ecx, [esp + 0x10]
push ecx
push str._ld_c
push eax
mov byte [esp + 0x1b], 0x78
call dword [sym.imp.MSVCR100.dll_sscanf]
add esp, 0x10
test eax, eax
jle 0x4d5d93
mov al, byte [esp + 0xb]
cmp al, 0x6d
je 0x4d5d6d
cmp al, 0x4d
jne 0x4d5d86
mov eax, dword [esp + 0xc]
imul eax, eax, 0x3e8
imul eax, eax, 0x3e8
pop edi
mov dword [esi + 0x2c], eax
pop esi
add esp, 8
ret
mov eax, dword [esp + 0xc]
imul eax, eax, 0x3e8
mov dword [esi + 0x2c], eax
pop edi
pop esi
add esp, 8
ret