joyce8/EMBER2024-capa huggingface dataset:
Function at 0x490090
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e7861
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
mov eax, dword [0x64a000]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov dword [esp + 8], 0
mov eax, dword [esp + 0x34]
mov dword [esp + 0x24], 1
mov eax, dword [eax]
test eax, eax
jne 0x4900ea
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x10], 0xffffffff
push eax
mov eax, dword [esp + 0x34]
push ecx
mov ecx, esp
mov dword [ecx], eax
inc dword [eax + 0xc]
lea eax, [esp + 0x3c]
push eax
call fcn.0048ff00
add esp, 0xc
lea ecx, [esp + 0x34]
call fcn.0042b250
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
mov dword [esi], ecx
inc dword [ecx + 0xc]
lea ecx, [esp + 0x30]
mov dword [esp + 8], 1
mov byte [esp + 0x24], 0
call fcn.0042b250
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x20
ret

Function at 0x491740
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e7a29
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x64a000]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov dword [esp + 0xc], 0
lea eax, [esp + 0x3c]
mov dword [esp + 0x30], 1
push eax
lea ecx, [esp + 0x14]
call fcn.0042b1c0
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x30], 2
mov eax, dword [ecx + 8]
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
mov eax, dword [ecx]
mov dword [esp + 0x24], eax
mov eax, dword [ecx + 4]
lea ecx, [esp + 0x40]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x44]
push str.QLine_
mov byte [eax + 0x14], 0
call fcn.004037f0
push ecx
mov ecx, esp
mov eax, dword [eax]
mov dword [ecx], eax
inc dword [eax + 0xc]
lea eax, [esp + 0x14]
push eax
call fcn.00488980
add esp, 0xc
mov esi, eax
mov ecx, dword [esi]
push 0x2c
mov byte [esp + 0x38], 3
call fcn.00426720
mov ecx, dword [esi]
cmp byte [ecx + 0x14], 0
je 0x4917fc
push 0x20
call fcn.00426720
push ecx
mov ecx, dword [esi]
mov eax, esp
mov dword [eax], ecx
lea eax, [esp + 0x48]
inc dword [ecx + 0xc]
push eax
call fcn.00488980
add esp, 0xc
mov esi, eax
mov ecx, dword [esi]
push 0x29
mov byte [esp + 0x34], 4
call fcn.00426720
mov ecx, dword [esi]
cmp byte [ecx + 0x14], 0
je 0x491832
push 0x20
call fcn.00426720
lea ecx, [esp + 0x40]
mov byte [esp + 0x30], 3
call fcn.0042b250
lea ecx, [esp + 8]
mov byte [esp + 0x30], 2
call fcn.0042b250
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
mov dword [esi], ecx
inc dword [ecx + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], 1
mov byte [esp + 0x30], 1
call fcn.0042b2f0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x30], 0
call fcn.0042b250
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret
Function at 0x4918a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e7a89
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push esi
mov eax, dword [0x64a000]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov dword [esp + 0xc], 0
lea eax, [esp + 0x4c]
mov dword [esp + 0x40], 1
push eax
lea ecx, [esp + 0x14]
call fcn.0042b1c0
mov eax, dword [esp + 0x50]
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x50]
mov byte [esp + 0x44], 2
movdqu xmm0, xmmword [eax + 0x10]
movdqu xmmword [esp + 0x1c], xmm0
movdqu xmm0, xmmword [eax]
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x54]
movdqu xmmword [esp + 0x30], xmm0
push str.QLineF_
mov byte [eax + 0x14], 0
call fcn.004037f0
push ecx
mov ecx, esp
mov eax, dword [eax]
mov dword [ecx], eax
inc dword [eax + 0xc]
lea eax, [esp + 0x14]
push eax
call fcn.00488ac0
add esp, 0xc
mov esi, eax
mov ecx, dword [esi]
push 0x2c
mov byte [esp + 0x48], 3
call fcn.00426720
mov ecx, dword [esi]
cmp byte [ecx + 0x14], 0
je 0x491956
push 0x20
call fcn.00426720
push ecx
mov ecx, dword [esi]
mov eax, esp
mov dword [eax], ecx
lea eax, [esp + 0x58]
inc dword [ecx + 0xc]
push eax
call fcn.00488ac0
add esp, 0xc
mov esi, eax
mov ecx, dword [esi]
push 0x29
mov byte [esp + 0x44], 4
call fcn.00426720
mov ecx, dword [esi]
cmp byte [ecx + 0x14], 0
je 0x49198c
push 0x20
call fcn.00426720
lea ecx, [esp + 0x50]
mov byte [esp + 0x40], 3
call fcn.0042b250
lea ecx, [esp + 8]
mov byte [esp + 0x40], 2
call fcn.0042b250
mov ecx, dword [esp + 0x4c]
mov esi, dword [esp + 0x48]
mov dword [esi], ecx
inc dword [ecx + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], 1
mov byte [esp + 0x40], 1
call fcn.0042b2f0
lea ecx, [esp + 0x4c]
mov byte [esp + 0x40], 0
call fcn.0042b250
mov eax, esi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x3c
ret

Function at 0x491a30
Capabilities:
Get geographical location

Disassembly:
push 0xffffffffffffffff
push 0x4e7ab8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x64a000]
xor eax, esp
mov dword [esp + 0x28], eax
push esi
mov eax, dword [0x64a000]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov esi, dword [esp + 0x44]
lea eax, [esp + 0x10]
push 0xf
push eax
push 0x28
push dword [ecx]
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x491ad4
push 0xffffffffffffffff
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x10]
push eax
call fcn.00407d20
add esp, 0xc
push eax
mov ecx, esi
mov dword [esp + 0x40], 0
call fcn.00453270
mov eax, dword [esp + 8]
mov ecx, dword [eax]
test ecx, ecx
je 0x491ac5
cmp ecx, 0xffffffff
je 0x491ae1
or ecx, 0xffffffff
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x491ae1
mov eax, dword [esp + 8]
push 4
push 2
push eax
call fcn.00413640
add esp, 0xc
jmp 0x491ae1
mov dword [esi + 8], 0x80000000
mov dword [esi], 0
mov eax, esi
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004c17c4
add esp, 0x38
ret 4
Function at 0x492370
Capabilities:
Get geographical location

Disassembly:
push 0xffffffffffffffff
push 0x4e7c28
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x64a000]
xor eax, esp
mov dword [esp + 0x10], eax
push esi
mov eax, dword [0x64a000]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0x10]
push 4
push eax
push 0x100c
push dword [ecx]
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x492423
push 0xffffffffffffffff
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x10]
push eax
call fcn.00407d20
add esp, 0xc
push 0xa
push 0
mov ecx, eax
mov dword [esp + 0x2c], 0
call fcn.0041d850
inc eax
mov ecx, esi
push eax
call fcn.00453340
mov eax, dword [esp + 8]
mov ecx, dword [eax]
test ecx, ecx
je 0x492414
cmp ecx, 0xffffffff
je 0x49242c
or ecx, 0xffffffff
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x49242c
mov eax, dword [esp + 8]
push 4
push 2
push eax
call fcn.00413640
add esp, 0xc
jmp 0x49242c
push 1
mov ecx, esi
call fcn.00453320
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.004c17c4
add esp, 0x20
ret 4

Function at 0x492450
Capabilities:
Get geographical location

Disassembly:
push 0xffffffffffffffff
push 0x4e7c5b
mov eax, dword fs:[0]
push eax
sub esp, 0x98
push ebx
push esi
push edi
mov eax, dword [0x64a000]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [esp + 0xc0]
mov esi, 0x40
test eax, eax
mov dword [esp + 0x14], 0
cmovne esi, eax
mov dword [esp + 0x1c], esi
cmp esi, 0x40
jle 0x4924c7
lea eax, [esi + esi]
push eax
call fcn.004c2808
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jne 0x4924c1
call fcn.004103f0
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x18], esi
jmp 0x4924d7
lea eax, [esp + 0x28]
mov dword [esp + 0x18], 0x40
mov dword [esp + 0x20], eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push esi
mov esi, dword [esp + 0xc0]
push eax
push esi
push dword [edi]
mov dword [esp + 0xc0], 0
call ebx
test eax, eax
jne 0x492509
mov esi, dword [esp + 0xb8]
mov dword [esi], 0x4ed20c
jmp 0x492587
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x492571
push 0
push 0
push esi
push dword [edi]
call ebx
mov ecx, eax
test ecx, ecx
jne 0x492532
mov esi, dword [esp + 0xb8]
mov dword [esi], 0x4ed20c
jmp 0x492587
cmp ecx, dword [esp + 0x18]
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
mov dword [esp + 0x10], ecx
cmovge eax, edx
push dword [eax]
push ecx
lea ecx, [esp + 0x20]
call fcn.00481080
push dword [esp + 0x1c]
push dword [esp + 0x24]
push esi
push dword [edi]
call ebx
test eax, eax
jne 0x492571
mov esi, dword [esp + 0xb8]
mov dword [esi], 0x4ed20c
jmp 0x492587
mov esi, dword [esp + 0xb8]
push 0xffffffffffffffff
push dword [esp + 0x24]
push esi
call fcn.00407d20
add esp, 0xc
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x28]
cmp ecx, eax
je 0x49259c
push ecx
call fcn.004c27d0
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0xa4
ret 0xc
Function at 0x492ca0
Capabilities:
Get geographical location

Disassembly:
push 0xffffffffffffffff
push 0x4e76f8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x64a000]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
push 2
lea eax, [esp + 0x10]
mov dword [esp + 0x14], 0
push eax
push 0xd
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x492d9b
push 0xffffffffffffffff
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x10]
push eax
call fcn.00407d20
add esp, 0xc
push 0x5c61b4
push 1
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0
call fcn.00417c30
test al, al
je 0x492d65
mov esi, dword [esp + 0x24]
mov ecx, esi
push 1
call fcn.00453320
mov eax, dword [esp + 8]
mov ecx, dword [eax]
test ecx, ecx
je 0x492d43
cmp ecx, 0xffffffff
je 0x492d50
or ecx, 0xffffffff
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x492d50
mov eax, dword [esp + 8]
push 4
push 2
push eax
call fcn.00413640
add esp, 0xc
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x18
ret 4
mov eax, dword [esp + 8]
mov dword [esp + 0x1c], 0xffffffff
mov ecx, dword [eax]
test ecx, ecx
je 0x492d8e
cmp ecx, 0xffffffff
je 0x492d9b
or ecx, 0xffffffff
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x492d9b
mov eax, dword [esp + 8]
push 4
push 2
push eax
call fcn.00413640
add esp, 0xc
mov ecx, dword [esp + 0x24]
push 0
call fcn.00453320
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x18
ret 4

Function at 0x4931d0
Capabilities:
Get geographical location

Disassembly:
push 0xffffffffffffffff
push 0x4e7ab8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x64a000]
xor eax, esp
mov dword [esp + 0x28], eax
push esi
mov eax, dword [0x64a000]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov esi, dword [esp + 0x44]
lea eax, [esp + 0x10]
push 0xf
push eax
push 0x29
push dword [ecx]
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x493274
push 0xffffffffffffffff
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x10]
push eax
call fcn.00407d20
add esp, 0xc
push eax
mov ecx, esi
mov dword [esp + 0x40], 0
call fcn.00453270
mov eax, dword [esp + 8]
mov ecx, dword [eax]
test ecx, ecx
je 0x493265
cmp ecx, 0xffffffff
je 0x493281
or ecx, 0xffffffff
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x493281
mov eax, dword [esp + 8]
push 4
push 2
push eax
call fcn.00413640
add esp, 0xc
jmp 0x493281
mov dword [esi + 8], 0x80000000
mov dword [esi], 0
mov eax, esi
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004c17c4
add esp, 0x38
ret 4
Function at 0x493880
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x2c
mov eax, dword [0x64a000]
xor eax, esp
mov dword [esp + 0x28], eax
push esi
mov esi, ecx
cmp dword [esi + 4], 0
jne 0x493967
push 8
lea eax, [esp + 8]
push eax
push 0x1014
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x4938cf
mov dword [esi + 4], 3
mov eax, 3
pop esi
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004c17c4
add esp, 0x2c
ret
mov ax, word [esp + 4]
cmp ax, 0x31
jne 0x4938f4
mov dword [esi + 4], 3
mov eax, dword [esi + 4]
pop esi
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004c17c4
add esp, 0x2c
ret
cmp ax, 0x30
jne 0x493914
mov dword [esi + 4], 1
mov eax, dword [esi + 4]
pop esi
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004c17c4
add esp, 0x2c
ret
cmp ax, 0x32
jne 0x493934
mov dword [esi + 4], 2
mov eax, dword [esi + 4]
pop esi
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004c17c4
add esp, 0x2c
ret
push 0xb
lea eax, [esp + 0x18]
push eax
push 0x13
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4938b3
movzx ecx, word [esp + 0x14]
xor edx, edx
movzx eax, word [esp + 4]
add ecx, 2
cmp eax, ecx
setne dl
add edx, 2
mov dword [esi + 4], edx
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x2c]
pop esi
xor ecx, esp
call fcn.004c17c4
add esp, 0x2c
ret
Function at 0x494b80
Capabilities:
Get geographical location

Disassembly:
push 0xffffffffffffffff
push 0x4e8042
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x64a000]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
mov eax, dword [0x64a000]
xor eax, esp
push eax
lea eax, [esp + 0x218]
mov dword fs:[0], eax
mov esi, dword [esp + 0x228]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], esi
mov dword [esi], 0x4ed20c
push 0xff
lea eax, [esp + 0x18]
mov dword [esp + 0x224], 0
push eax
push 0x5a
push dword [esp + 0x238]
mov dword [esp + 0x1c], 1
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x494c4d
push 0xffffffffffffffff
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x10]
push eax
call fcn.00407d20
mov ecx, dword [esi]
mov edx, eax
add esp, 0xc
mov eax, dword [edx]
mov dword [esi], eax
mov dword [edx], ecx
mov eax, dword [esp + 8]
mov ecx, dword [eax]
test ecx, ecx
je 0x494c40
cmp ecx, 0xffffffff
je 0x494c4d
or ecx, 0xffffffff
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x494c4d
mov eax, dword [esp + 8]
push 4
push 2
push eax
call fcn.00413640
add esp, 0xc
mov eax, esi
mov ecx, dword [esp + 0x218]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.004c17c4
add esp, 0x21c
ret
Function at 0x496020
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, dword [edi + 0x2c]
jmp 0x496030
mov eax, dword [edi + 0x2c]
mov edx, dword [edi + 0x3c]
add eax, 0xfffffefa
sub edx, dword [edi + 0x74]
add eax, esi
sub edx, dword [edi + 0x6c]
mov dword [esp + 0x14], edx
cmp dword [edi + 0x6c], eax
jb 0x4960ad
mov ecx, dword [edi + 0x38]
push esi
lea eax, [ecx + esi]
push eax
push ecx
call fcn.004c1c30
mov edx, dword [edi + 0x4c]
add esp, 0xc
mov eax, dword [edi + 0x44]
sub dword [edi + 0x70], esi
sub dword [edi + 0x6c], esi
sub dword [edi + 0x5c], esi
lea ecx, [eax + edx*2]
nop
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, esi
jb 0x49607f
sub eax, esi
jmp 0x496081
xor eax, eax
mov word [ecx], ax
dec edx
jne 0x496070
mov eax, dword [edi + 0x40]
mov edx, esi
lea ecx, [eax + esi*2]
nop
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, esi
jb 0x49609f
sub eax, esi
jmp 0x4960a1
xor eax, eax
mov word [ecx], ax
dec edx
jne 0x496090
mov edx, dword [esp + 0x14]
add edx, esi
mov ebx, dword [edi]
cmp dword [ebx + 4], 0
je 0x4961c8
mov eax, dword [edi + 0x74]
add eax, dword [edi + 0x6c]
add eax, dword [edi + 0x38]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 4]
cmp eax, edx
mov ebp, eax
cmova ebp, edx
test ebp, ebp
je 0x49611b
sub eax, ebp
mov dword [ebx + 4], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x4960f1
push ebp
push dword [ebx]
push dword [ebx + 0x30]
call sym.ESystemService.exe_z_adler32
jmp 0x496101
cmp eax, 2
jne 0x496107
push ebp
push dword [ebx]
push dword [ebx + 0x30]
call sym.ESystemService.exe_z_crc32
mov dword [ebx + 0x30], eax
add esp, 0xc
push ebp
push dword [ebx]
push dword [esp + 0x1c]
call fcn.004c1c30
add dword [ebx], ebp
add esp, 0xc
add dword [ebx + 8], ebp
add dword [edi + 0x74], ebp
mov ebx, dword [edi + 0x74]
cmp ebx, 3
jb 0x496143
mov eax, dword [edi + 0x38]
add eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x58]
movzx edx, byte [eax]
mov dword [edi + 0x48], edx
movzx eax, byte [eax + 1]
shl edx, cl
xor edx, eax
and edx, dword [edi + 0x54]
mov dword [edi + 0x48], edx
cmp ebx, 0x106
jae 0x496157
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x496030
mov ecx, dword [edi + 0x16c0]
mov ebp, dword [edi + 0x3c]
cmp ecx, ebp
jae 0x4961c8
mov esi, dword [edi + 0x6c]
add esi, ebx
cmp ecx, esi
jae 0x496198
mov eax, 0x102
sub ebp, esi
cmp ebp, eax
cmova ebp, eax
mov eax, dword [edi + 0x38]
push ebp
add eax, esi
push 0
push eax
call fcn.004c2280
add esp, 0xc
lea eax, [esi + ebp]
mov dword [edi + 0x16c0], eax
pop edi
pop esi
pop ebp
pop ebx
ret
lea eax, [esi + 0x102]
cmp ecx, eax
jae 0x4961c8
mov eax, dword [edi + 0x38]
sub esi, ecx
sub ebp, ecx
add esi, 0x102
cmp esi, ebp
cmova esi, ebp
add eax, ecx
push esi
push 0
push eax
call fcn.004c2280
add esp, 0xc
add dword [edi + 0x16c0], esi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x497460
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0x1c]
test ebp, ebp
je 0x497541
mov esi, dword [ebp + 0x1c]
test esi, esi
je 0x497541
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x497541
mov eax, dword [esi + 0x18]
cmp eax, 2
je 0x497541
cmp eax, 1
jne 0x4974a6
cmp dword [esi + 4], 0x2a
jne 0x497541
test eax, eax
je 0x4974ba
push edi
push ebx
push dword [ebp + 0x30]
call sym.ESystemService.exe_z_adler32
add esp, 0xc
mov dword [ebp + 0x30], eax
cmp edi, 3
jb 0x49753a
mov ebp, dword [esi + 0x2c]
cmp edi, ebp
jbe 0x4974cc
sub edi, ebp
add ebx, edi
jmp 0x4974ce
mov ebp, edi
push ebp
push ebx
push dword [esi + 0x38]
call fcn.004c1c30
mov eax, dword [esi + 0x38]
add esp, 0xc
mov ecx, dword [esi + 0x58]
xor ebx, ebx
mov dword [esi + 0x6c], ebp
mov dword [esi + 0x5c], ebp
movzx edx, byte [eax]
mov dword [esi + 0x48], edx
movzx eax, byte [eax + 1]
shl edx, cl
xor edx, eax
and edx, dword [esi + 0x54]
add ebp, 0xfffffffd
mov dword [esi + 0x48], edx
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x58]
mov edx, dword [esi + 0x34]
and edx, ebx
movzx edi, byte [eax + ebx + 2]
mov eax, dword [esi + 0x48]
shl eax, cl
mov ecx, dword [esi + 0x40]
xor edi, eax
and edi, dword [esi + 0x54]
mov eax, dword [esi + 0x44]
mov dword [esi + 0x48], edi
mov ax, word [eax + edi*2]
mov word [ecx + edx*2], ax
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x44]
mov word [eax + ecx*2], bx
inc ebx
cmp ebx, ebp
jbe 0x497500
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
ret

Function at 0x497720
Capabilities:
Compress data via zlib inflate or deflate

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x34
push edi
test ecx, ecx
je 0x498d38
mov edi, dword [ecx + 0x1c]
mov dword [esp + 0x14], edi
test edi, edi
je 0x498d38
cmp dword [ecx + 0xc], 0
je 0x498d38
cmp dword [ecx], 0
jne 0x497758
cmp dword [ecx + 4], 0
jne 0x498d38
cmp dword [edi], 0xb
jne 0x497763
mov dword [edi], 0xc
mov eax, dword [ecx + 0xc]
mov edx, dword [edi + 0x38]
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 0x10]
push ebx
mov ebx, dword [ecx]
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], eax
xor eax, eax
push ebp
mov ebp, dword [ecx + 4]
mov dword [esp + 0x28], eax
mov eax, dword [edi]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], edx
mov dword [esp + 0x38], ebp
push esi
mov esi, dword [edi + 0x3c]
cmp eax, 0x1e
ja 0x4980a8
lea ebx, [edi + 0x54]
mov dword [esp + 0x40], ebx
mov ebx, dword [esp + 0x14]
jmp 0x4977b0
jmp dword [eax*4 + 0x498d44]
pop esi
pop ebp
pop ebx
mov eax, 0xfffffffe
pop edi
add esp, 0x34
ret
mov eax, 0xfffffffe
pop edi
add esp, 0x34
ret
Function at 0x499900
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4e8130
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x64a000]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
push dword [esp + 0x38]
mov esi, dword [edi + 4]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.0047c410
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0
push ecx
push eax
lea eax, [esi + 0x10]
push eax
call fcn.0047e960
mov ecx, dword [esp + 0x28]
mov bl, al
add esp, 0xc
mov dword [esp + 0x30], 0xffffffff
or esi, 0xffffffff
mov eax, dword [ecx]
test eax, eax
je 0x49998e
cmp eax, esi
je 0x49999b
mov eax, esi
lock xadd dword [ecx], eax
setne al
test al, al
jne 0x49999b
mov ecx, dword [esp + 0x1c]
push 4
push 2
push ecx
call fcn.00413640
add esp, 0xc
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
test eax, eax
je 0x4999bb
cmp eax, 0xffffffff
je 0x4999c8
mov eax, esi
lock xadd dword [ecx], eax
setne al
test al, al
jne 0x4999c8
mov ecx, dword [esp + 0x18]
push 4
push 2
push ecx
call fcn.00413640
add esp, 0xc
test bl, bl
jne 0x499a18
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x14]
call fcn.004a6a00
push eax
push 0xe
mov ecx, edi
mov dword [esp + 0x38], 1
call fcn.0047c300
mov eax, dword [esp + 0x38]
mov ecx, dword [eax]
test ecx, ecx
je 0x499a0b
cmp ecx, 0xffffffff
je 0x499a18
lock xadd dword [eax], esi
dec esi
setne al
test al, al
jne 0x499a18
mov eax, dword [esp + 0x38]
push 4
push 2
push eax
call fcn.00413640
add esp, 0xc
mov al, bl
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x24
ret 4
Function at 0x49aee0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4e8420
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x64a000]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x58]
mov ebx, dword [edi + 0xc]
mov dword [esp + 0x20], ebx
test eax, eax
jne 0x49b000
cmp dword [edi + 0x70], 0xffffffff
jne 0x49affc
cmp dword [edi + 0x5c], 0xffffffff
je 0x49b047
mov ebx, dword [esp + 0x40]
xorps xmm0, xmm0
mov ebp, dword [esp + 0x44]
movlpd qword [esp + 0x18], xmm0
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x14], eax
test ebp, ebp
jg 0x49af68
jl 0x49af62
cmp ebx, 0x2000000
jae 0x49af68
lea eax, [esp + 0x24]
jmp 0x49af6d
mov eax, 0x5c6e88
push 0
lea ecx, [esp + 0x1c]
push ecx
push dword [eax]
mov eax, dword [esp + 0x48]
add eax, esi
push eax
push dword [edi + 0x5c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x14]
test eax, eax
je 0x49afc3
mov eax, dword [esp + 0x18]
test eax, eax
je 0x49afba
add esi, eax
adc ecx, 0
sub ebx, eax
mov dword [esp + 0x14], ecx
sbb ebp, 0
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebp
cmp ecx, dword [esp + 0x44]
jg 0x49afba
jl 0x49af54
cmp esi, dword [esp + 0x40]
jb 0x49af54
mov eax, esi
mov edx, ecx
jmp 0x49b061
mov eax, esi
or eax, ecx
jne 0x49afba
lea eax, [esp + 0x3c]
push 0xffffffffffffffff
push eax
call fcn.00410680
add esp, 8
mov ecx, dword [esp + 0x20]
push eax
push 1
mov dword [esp + 0x3c], 1
call fcn.0047c300
lea ecx, [esp + 0x3c]
call fcn.00467a00
or eax, 0xffffffff
or edx, eax
jmp 0x49b061
test eax, eax
je 0x49b04e
call fcn.0049ac50
test al, al
je 0x49b04e
push dword [edi + 0x58]
call fcn.004c5f8d
add esp, 4
test eax, eax
je 0x49b04e
call fcn.004c3658
push dword [eax]
lea eax, [esp + 0x44]
push eax
call fcn.00410680
add esp, 8
push eax
push 1
mov ecx, ebx
mov dword [esp + 0x3c], 0
call fcn.0047c300
lea ecx, [esp + 0x40]
call fcn.00467a00
or eax, 0xffffffff
or edx, eax
jmp 0x49b061
push dword [esp + 0x44]
mov ecx, edi
push dword [esp + 0x44]
push dword [esp + 0x44]
call fcn.0047da40
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0xc