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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x563028
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x4945b9
inc eax
mov dword [esi + 0x10], eax
jmp 0x4946cc
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x4945cd
mov eax, 0xffffffc7
jmp 0x4946ce
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x4945de
cmp dword [esi + 8], eax
jne 0x4945cd
cmp dword [esi + 8], eax
jne 0x4945f7
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x4945f7
mov eax, 0xffffffc7
jmp 0x4946ce
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x49460b
push eax
mov ecx, ebx
call fcn.00493db0
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.0045b160
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x49463c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.0045b180
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00493520
test eax, eax
mov dword [esp + 0x38], eax
je 0x49466f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x60b1e0
call fcn.0045b360
mov eax, dword [esp + 0x38]
jmp 0x4946ce
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.004943e0
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x4946b3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00494400
mov esi, eax
test esi, esi
jne 0x4946e3
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.004943e0
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x494685
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x60b1e0
call fcn.0045b360
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x60b1e0
call fcn.0045b360
mov eax, esi
jmp 0x4946ce
Function at 0x49d6d0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x563658
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [0x5676dc]
push 0
lea ecx, [esp + 0x20]
call fcn.00559427
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0049d070
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00559355
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.00555b39
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.00555b39
push 1
push 0
push 0
mov ecx, esi
call fcn.00555ae1
push 1
push 0
push 1
mov ecx, esi
call fcn.00555ae1
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00559499
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x49d850
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x563678
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00559427
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0049d070
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00559355
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [0x5676dc]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x49d914
cmp dword [esp + 0x40], 1
jne 0x49d912
cmp ecx, eax
jge 0x49d914
mov eax, ecx
cmp eax, 0xc8
jge 0x49d920
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0049d6d0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [0x5676d8]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00559499
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x49e090
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5636e3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00553f56
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], 0x627450
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], 0x60ee50
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [0x56716c]
push eax
mov ecx, edi
call fcn.005596cf
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0055ac6a
test eax, eax
je 0x49e1ac
mov ecx, dword [esp + 0x3c]
call fcn.005596fc
mov ecx, dword [esi + 0x1c]
mov ebp, dword [0x5676fc]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x49e170
push edi
mov ecx, esi
call fcn.00556cb7
mov ecx, esi
call fcn.0049e310
cmp dword [esp + 0x38], 1
jne 0x49e1a5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00556e21
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28

Function at 0x4a0bc0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4a0bf3
push esi
call fcn.004a3c70
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4a0bec
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4a0c79
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4a0c62
mov eax, dword [esi + 8]
test eax, eax
je 0x4a0c17
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4a0c5e
cmp eax, 2
je 0x4a0c62
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4a0c0a
cmp eax, 3
je 0x4a0c3d
cmp eax, 1
jne 0x4a0c0a
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 0x4a0c0a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4a0c0a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004a0ca0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4a0c88
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004a0ca0
add esp, 4
pop esi
ret
Function at 0x4b6af0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x564428
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
call fcn.004b65e0
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0xc]
push eax
mov dword [esp + 0x28], 0
call fcn.004b6650
push 0
mov ecx, esi
call fcn.004b6a70
mov ebx, dword [esp + 0x2c]
cmp ebx, 1
jb 0x4b6c28
lea ecx, [esp + 0xc]
call fcn.004b6d70
cmp eax, 1
jae 0x4b6b77
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.004b6600
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
mov eax, dword [esp + 0x34]
lea edi, [esi + 0xc]
test eax, eax
jne 0x4b6bc4
push 0
lea ecx, [esp + 0x10]
call fcn.00496e10
push eax
push edi
mov ecx, 0x67b8cc
call fcn.004b6210
test eax, eax
jne 0x4b6bcc
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.004b6600
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
push eax
mov ecx, edi
call fcn.004b6650
push edi
mov ecx, 0x67b8cc
call fcn.004b6170
push 0
push 2
push 2
push 0
push 3
push 0xc0000000
mov ecx, edi
call fcn.004b69f0
push eax
call dword [0x5673ec]
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x4b6c28
push 0
push ebx
push 0
push 4
push 0
push eax
call dword [0x5671e0]
test eax, eax
mov dword [esi + 4], eax
je 0x4b6c28
push 0
push 0
push 0
push 2
push eax
call dword [0x5671dc]
test eax, eax
mov dword [esi + 8], eax
jne 0x4b6c58
push 1
mov ecx, esi
call fcn.004b6a70
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.004b6600
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
lea ecx, [esp + 0xc]
mov dword [esi + 0x1c], ebx
mov dword [esp + 0x24], 0xffffffff
call fcn.004b6600
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
Function at 0x4ba690
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5645c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov eax, dword [esp + 0x40]
push ebx
push esi
lea ecx, [esp + 8]
push eax
push ecx
mov ecx, dword [esp + 0x4c]
call fcn.004baa90
mov esi, eax
lea edx, [esp + 0x48]
xor ebx, ebx
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x4c], 0x687954
call fcn.0052fc28
mov ecx, dword [0x610174]
mov al, byte [esi]
push ecx
push ebx
push esi
lea ecx, [esp + 0x30]
mov byte [esp + 0x48], 1
mov byte [esp + 0x30], al
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call fcn.004b7e10
mov esi, 0x6101cc
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0xc]
mov byte [esp + 0x3c], 3
cmp eax, ebx
je 0x4ba737
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4ba72e
cmp al, 0xff
je 0x4ba72e
dec al
mov byte [ecx], al
jmp 0x4ba737
push ecx
call fcn.005525fc
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
call fcn.0054def0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x3c], 0xffffffff
cmp eax, ebx
mov dword [esp + 0x18], esi
je 0x4ba77d
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4ba774
cmp al, 0xff
je 0x4ba774
dec al
mov byte [ecx], al
jmp 0x4ba77d
push ecx
call fcn.005525fc
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.0052fcaf
mov ecx, dword [esp + 0x34]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret
Function at 0x4d4e90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x564910
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004d4a40
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004d4ac0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004d4ac0
lea ecx, [esi + 0xc]
call fcn.0055281d
lea ecx, [esi + 0x10]
call fcn.0055281d
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004d6050
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004d6050
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004d6050
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00552892
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00552892
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4d6a10
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x4d6a43
push esi
call fcn.004db8f0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4d6a3c
mov dword [esi + 0x14], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x4d6ac9
mov eax, dword [esi + 0x1b8]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4d6ab2
mov eax, dword [esi + 8]
test eax, eax
je 0x4d6a67
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b8]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4d6aae
cmp eax, 2
je 0x4d6ab2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4d6a5a
cmp eax, 3
je 0x4d6a8d
cmp eax, 1
jne 0x4d6a5a
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 0x4d6a5a
mov edx, dword [esi + 0x144]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4d6a5a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004d6b00
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4d6ae9
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x15
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.004d6b00
add esp, 4
pop esi
ret

Function at 0x5076c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x5076cb
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x5077ce
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x612258]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x612258]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x612258]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x612258]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x612258]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x612258]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x612258]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x612258]
xor eax, edx
inc ecx
dec edi
jne 0x5076e6
pop edi
test esi, esi
je 0x5077f0
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x612258]
xor eax, edx
inc ecx
dec esi
jne 0x5077d2
pop esi
pop ebx
not eax
ret
Function at 0x548520
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5661b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, byte [esp + 0x3c]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x44]
push ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x28], al
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
call fcn.0053d485
mov eax, dword [0x62ab50]
lea ecx, [esp + 0x10]
push eax
push ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.0053d3b7
lea edx, [esp + 0x20]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x44], 1
call fcn.00549010
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], ecx
je 0x5485c7
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x5485be
cmp al, 0xff
je 0x5485be
dec al
mov byte [ecx], al
jmp 0x5485c7
push ecx
call fcn.005525fc
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x5485f8
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x5485ef
cmp al, 0xff
je 0x5485ef
dec al
mov byte [ecx], al
jmp 0x5485f8
push ecx
call fcn.005525fc
add esp, 4
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x10287e9
Capabilities:
Get file size
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x50]
call fcn.010282ee
xor ebx, ebx
cmp dword [esi], ebx
je 0x1028966
mov eax, dword [ebp + 0x14]
test dword [esi + 0x24], eax
je 0x1028966
push edi
mov edi, dword [ebp + 8]
cmp edi, ebx
jne 0x1028824
mov dword [esi + 0x48], 0x100ba30
jmp 0x102885b
push edi
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [edi + eax*2 - 2]
xor ecx, ecx
cmp eax, edi
jbe 0x1028858
cmp ecx, 3
jge 0x102884c
dec eax
dec eax
cmp word [eax], 0x5c
je 0x1028847
cmp eax, edi
ja 0x102883b
inc ecx
cmp eax, edi
ja 0x1028836
cmp eax, edi
jbe 0x1028858
add eax, 2
mov dword [esi + 0x48], eax
jmp 0x102885b
mov dword [esi + 0x48], edi
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x4c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
mov dword [esi + 0x44], eax
mov eax, dword [ebp + 0x1c]
inc edi
cmp dword [esi + 0xc], ebx
mov dword [esi + 0x40], eax
je 0x1028962
mov eax, dword [esi + 8]
cmp eax, ebx
jne 0x1028885
mov eax, 0x10013ac
push ebx
push 0x80
push 4
push ebx
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x10288b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100b998
jmp 0x1028959
lea ecx, [ebp - 0x1c]
push ecx
push ebx
push edi
push ebx
push 2
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_LockFileEx]
test eax, eax
jne 0x10288f3
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100b8d0
jmp 0x1028959
lea eax, [ebp - 8]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1028928
mov eax, dword [ebp - 8]
or eax, dword [ebp - 4]
jne 0x1028928
push ebx
lea eax, [ebp + 8]
push eax
push 2
lea eax, [ebp + 0x16]
push eax
push dword [esi + 4]
mov byte [ebp + 0x16], 0xff
mov byte [ebp + 0x17], 0xfe
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 2
push ebx
push ebx
push ebx
push dword [esi + 4]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x1028962
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100b808
push esi
call fcn.01028652
add esp, 0xc
mov dword [esi + 0x3c], edi
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x18
Function at 0x48fac0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x62000]
push edi
or ebp, 0xffffffff
jmp 0x48fae2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x48fae9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48fad8
mov eax, 1
add ebx, ebx
jne 0x48fafb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x48fb0c
jne 0x48fb2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48fb2b
dec eax
add ebx, ebx
jne 0x48fb18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x48faf0
add ebx, ebx
jne 0x48fb27
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x48fb7d
xor ecx, ecx
sub eax, 3
jb 0x48fb43
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x48fbb2
sar eax, 1
mov ebp, eax
jmp 0x48fb4e
add ebx, ebx
jne 0x48fb4e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48fb1c
inc ecx
add ebx, ebx
jne 0x48fb5c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48fb1c
add ebx, ebx
jne 0x48fb69
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x48fb5e
jne 0x48fb7a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x48fb5e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x48fb9c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x48fb8e
jmp 0x48fade
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x48fb9c
add edi, ecx
jmp 0x48fade
pop esi
mov edi, esi
mov ecx, 0x1862
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x48fbba
cmp byte [edi], 0x14
jne 0x48fbba
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 0x48fbbf
lea edi, [esi + 0x8c000]
mov eax, dword [edi]
or eax, eax
je 0x48fc37
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x99a2c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x99b6c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x48fbec
mov ecx, edi
jns 0x48fc1b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x99b70]
or eax, eax
je 0x48fc31
mov dword [ebx], eax
add ebx, 4
jmp 0x48fc09
call dword [esi + 0x99b80]
mov ebp, dword [esi + 0x99b74]
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 0x48fc6b
sub esp, 0xffffff80
jmp 0x450ad0