joyce8/EMBER2024-capa huggingface dataset:
Function at 0x57d553
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x5fdfe8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x57d593
cmp byte [ebx], 0xa
jne 0x57d593
or byte [edi + eax + 0x28], 4
jmp 0x57d598
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x57d697
mov dl, byte [eax]
cmp dl, 0x1a
je 0x57d67a
inc eax
cmp dl, 0xd
je 0x57d5c4
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x57d5ea
cmp eax, ecx
jae 0x57d5f8
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x57d5ac
jmp 0x57d697
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x57d675
cmp dword [ebp - 0x10], 0
je 0x57d675
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x5fdfe8]
test byte [eax + edi + 0x28], 0x48
je 0x57d64f
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x57d63a
mov byte [esi], dl
jmp 0x57d64b
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x5fdfe8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x57d697
cmp byte [ebp - 1], 0xa
jne 0x57d65e
cmp esi, ebx
jne 0x57d65e
mov byte [esi], 0xa
jmp 0x57d696
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0057e0d9
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x57d697
mov byte [esi], 0xd
jmp 0x57d696
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x5fdfe8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x57d694
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x57d697
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x57d6a0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x5fdfe8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x57d6e6
cmp word [ebx], dx
jne 0x57d6e6
or byte [eax + edi + 0x28], 4
jmp 0x57d6eb
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x57d84e
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x57d82e
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x57d72c
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x57d762
cmp eax, edx
jae 0x57d770
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x57d707
jmp 0x57d84e
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x57d829
cmp dword [ebp - 0x18], 0
je 0x57d829
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x5fdfe8]
test byte [eax + edi + 0x28], 0x48
je 0x57d7ff
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x57d7c3
mov word [esi], cx
jmp 0x57d7fa
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x5fdfe8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x5fdfe8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x5fdfe8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x57d84e
pop eax
cmp word [ebp - 4], ax
jne 0x57d80f
cmp esi, ebx
jne 0x57d80f
mov word [esi], ax
jmp 0x57d84b
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0057e0d9
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x57d84e
push 0xd
pop eax
jmp 0x57d80a
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x5fdfe8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x57d848
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x57d84e
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x57fbc9
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5f3040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x57fc14
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0057fd64
test al, al
jne 0x57fc0e
sub edx, 2
cmp edx, edi
jne 0x57fbf4
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x57fc36
lea eax, [edi + 2]
cmp edx, eax
je 0x57fc36
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0057fb15
add esp, 0x10
jmp 0x57fd30
push esi
lea ecx, [ebp - 0x255]
call fcn.0057fd64
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x57fc79
push dword [ebp - 0x25c]
jmp 0x57fc26
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x57fcb6
cmp word [ebp - 0x226], 0
je 0x57fcd7
cmp word [ebp - 0x226], ax
jne 0x57fcb6
cmp word [ebp - 0x224], 0
je 0x57fcd7
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0057fb15
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x57fd23
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x57fc90
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x57fd0b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x57fd30
push 0x57f945
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00587280
add esp, 0x10
jmp 0x57fd00
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055d3df
leave
ret

Function at 0x58062d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x58063e
pop esi
ret
push ebx
push edi
push esi
call fcn.005805f6
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00578412
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x580666
push ebx
push esi
push edi
call fcn.0055fc40
add esp, 0xc
push 0
call fcn.005783d8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x580a36
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0058067b
Function at 0x582a85
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.005797c6
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x582af4
cmp esi, dword [ebp - 4]
je 0x582aef
cmp dword [ebp + 0xc], 0
je 0x582aef
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x582acc
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.005825d7
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x582af6
xor eax, eax
inc eax
jmp 0x582af6
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x582b5b
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5f3040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.005797c6
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.005797c6
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x582bd2
cmp word [ecx], dx
je 0x582bd2
mov eax, dword [0x5cdcf4]
push edi
dec eax
push eax
push 0x5cdbe0
call fcn.00582afa
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x582c45
cmp word [eax], dx
je 0x582c45
mov eax, dword [edi]
test eax, eax
je 0x582bf6
cmp word [eax], dx
je 0x582bf6
lea eax, [ebp - 0x10]
push eax
call fcn.005824dd
jmp 0x582bff
lea eax, [ebp - 0x10]
push eax
call fcn.00582578
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x582c6f
mov eax, dword [0x5cdbdc]
push dword [ebp - 0x14]
dec eax
push eax
push 0x5cd8d0
call fcn.00582afa
add esp, 0xc
test al, al
je 0x582c6f
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x582c3a
cmp word [eax], di
je 0x582c3a
lea eax, [ebp - 0x10]
push eax
call fcn.005824dd
pop ecx
jmp 0x582c71
lea eax, [ebp - 0x10]
push eax
call fcn.00582578
jmp 0x582c37
mov eax, dword [edi]
test eax, eax
je 0x582c5c
cmp word [eax], dx
je 0x582c5c
lea eax, [ebp - 0x10]
push eax
call fcn.00582492
pop ecx
jmp 0x582c6f
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x582d3a
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0058297f
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x582d3a
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x582d3a
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x582d3a
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x582cc7
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0057ce8f
test ebx, ebx
je 0x582d35
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0057ce8f
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x582d3a
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x582d3a
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0056b061
add esp, 0x10
xor eax, eax
inc eax
jmp 0x582d3c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055d3df
leave
ret
Function at 0x587ee5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00587e61
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x588054
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x588054
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x588009
jg 0x587f41
test eax, eax
je 0x587fff
push 1
push 0x1000
call fcn.00579ca3
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x587f64
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x587ff6
push 0x8000
push ebx
call fcn.005742dc
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x587f8d
jg 0x587f88
cmp ecx, 0x1000
jb 0x587f8d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0057c01c
add esp, 0x10
cmp eax, 0xffffffff
je 0x587fd2
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x587f88
jl 0x587fb9
test ecx, ecx
jne 0x587f7a
push dword [ebp - 0xc]
push ebx
call fcn.005742dc
push esi
call fcn.005783d8
add esp, 0xc
xor ebx, ebx
jmp 0x588062
cmp byte [edi + 0x24], 0
je 0x587fe9
cmp dword [edi + 0x20], 5
jne 0x587fe9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x587ff4
mov ebx, dword [edi + 0x18]
jmp 0x587ff6
xor ebx, ebx
push esi
call fcn.005783d8
pop ecx
jmp 0x588062
test ecx, ecx
jg 0x587fcb
jl 0x588009
test eax, eax
jae 0x587fcb
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0057e0d9
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x588029
cmp byte [edi + 0x1c], 0
je 0x587fcb
jmp 0x58805a
push ebx
call fcn.00573631
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x587fcb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x588062
cmp byte [edi + 0x1c], 0
je 0x58805f
mov ebx, dword [edi + 0x18]
jmp 0x588062
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0057e0d9
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x588840
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x58886d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x58886d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40e145
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x40e154
pop dword [ebp - 0xc]
mov eax, 0x40e154
sub dword [ebp - 0xc], eax
push 0x40
push 0x1000
push 0x3cd45
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0xc]
call dword [eax]
mov ecx, 0x43ef
xor ebx, ebx
add ebx, eax
mov edi, 0x51c3b46d
add edi, 0xae7f9f93
add edi, dword [ebp - 0xc]
mov edx, 0xd8fe2834
add edx, 0xb5f5de80
sub dword [ebp - 8], esi
mov esi, dword [edi]
sub dword [ebp - 8], ebx
xor esi, edx
add dword [ebp - 8], ecx
mov dword [ebx], esi
sub dword [ebp - 8], 0xcd3ba84f
add ebx, 4
add edi, 0x6e08c9a9
sub edi, 0x6e08c9a5
loop 0x40e1a5
add eax, 0xf345eb0f
add eax, 0xcbb1780
mov ebx, eax
add eax, 0xb7d35d72
sub eax, 0xb7d35d6d
mov ecx, 0xf044e0de
sub ecx, 0xf004e0de
add ecx, dword [ebp - 0xc]
call ebx
leave
ret

Function at 0x4066c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UriUvQCq
lea edi, [esi - 0x5000]
push edi
or ebp, 0xffffffff
jmp 0x4066e2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4066e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4066d8
mov eax, 1
add ebx, ebx
jne 0x4066fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4066f0
jne 0x40670c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4066f0
xor ecx, ecx
sub eax, 3
jb 0x406720
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x406792
mov ebp, eax
add ebx, ebx
jne 0x40672b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x406738
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40675c
inc ecx
add ebx, ebx
jne 0x406748
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40673d
jne 0x406759
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40673d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40677c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40676d
jmp 0x4066de
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40677c
add edi, ecx
jmp 0x4066de
pop esi
lea edi, [esi + 0x4000]
mov eax, dword [edi]
or eax, eax
je 0x4067db
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x6000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x6064]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x406799
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x606c]
or eax, eax
je 0x4067d5
mov dword [ebx], eax
add ebx, 4
jmp 0x4067b6
call dword [esi + 0x6068]
mov ebp, dword [esi + 0x6070]
lea edi, [esi - 0x1000]
mov ebx, pe_overlay
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ef]
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 0x40680f
sub esp, 0xffffff80
jmp section.DBsumPAo
Function at 0x1001c6a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 0x2d], 0
jne 0x1001c73b
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 4]
push esi
push 0
push eax
push ebx
push dword [ebp + 0xc]
push dword [edi + 0x30]
call dword [sym.imp.kernel32.dll_ReadFile]
mov esi, dword [ebp - 4]
cmp esi, ebx
je 0x1001c6f2
mov byte [edi + 0x2d], 0xff
test esi, esi
je 0x1001c6f2
cmp esi, ebx
jge 0x1001c6f2
mov eax, ebx
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [edi + 0x18], 0
je 0x1001c735
add dword [edi + 0x1c], ebx
cmp dword [edi + 0x1c], 0xffff
jle 0x1001c735
xor eax, eax
mov word [edi + 0x1e], ax
mov eax, dword [edi]
push edi
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x100252e4]
call esi
mov ecx, dword [edi + 0x18]
push 1
push dword [edi + 0x20]
mov esi, dword [ecx]
push eax
push ecx
mov ecx, dword [esi + 0xc]
call dword [0x100252e4]
call dword [esi + 0xc]
mov esi, dword [ebp - 4]
mov eax, esi
pop esi
pop ebx
jmp 0x1001c74d
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
pop edi
leave
ret 0xc

Function at 0x1001c970
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1002d6f4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1002da0c], 0
mov eax, dword [ebp + 8]
je 0x1001c998
push eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
jmp 0x1001c9b2
lea ecx, [ebp - 0x108]
push ecx
push eax
call sym.drvSOFT.x3d_struct_PIXWEIGHT____stdcall_PrepareRescale_int__int__int__
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
call fcn.10022650
leave
ret 4

Function at 0x1001cb80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x1002d6f4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1002da0c], 0
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
je 0x1001cbb6
push ebx
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
jmp 0x1001cc15
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x310]
push eax
push esi
call sym.drvSOFT.x3d_struct_PIXWEIGHT____stdcall_PrepareRescale_int__int__int__
lea eax, [ebp - 0x20c]
push eax
push edi
call sym.drvSOFT.x3d_struct_PIXWEIGHT____stdcall_PrepareRescale_int__int__int__
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
mov esi, eax
lea eax, [ebp - 0x108]
push ebx
push eax
call sym.drvSOFT.x3d_struct_PIXWEIGHT____stdcall_PrepareRescale_int__int__int__
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10022650
leave
ret 0x10
Function at 0x1001cc30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1002d6f4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1002da0c], 0
push esi
mov esi, dword [ebp + 0xc]
je 0x1001cc5c
push esi
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetTempPathW]
jmp 0x1001cc8d
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
test eax, eax
je 0x1001cc8b
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push esi
push eax
call sym.drvSOFT.x3d_struct_PIXWEIGHT____stdcall_PrepareRescale_int__int__int__
push esi
call dword [sym.imp.kernel32.dll_lstrlenW]
jmp 0x1001cc8d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10022650
leave
ret 8

Function at 0x10020400
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x1002040f
pop dword [ebp - 0x44]
mov eax, 0x2f4022f
sub eax, 0xf2f1fe20
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x446d5da1
sub dword [ebp - 0x54], 0xf61b1856
mov dword [ebp - 0x50], 0x1f0c48a3
sub dword [ebp - 0x50], 0xecd8fc5e
mov dword [ebp - 0x4c], 0xef89d011
add dword [ebp - 0x4c], 0x5cc2741d
mov dword [ebp - 0x48], 0xc0984e3d
sub dword [ebp - 0x48], 0xc0984e3d
lea eax, [ebp - 0x54]
push eax
mov eax, 0xe6d73214
add eax, 0x292b1e70
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0xb49c1e56
add dword [ebp - 0x54], 0xbfd64b00
mov dword [ebp - 0x50], 0x157613d0
sub dword [ebp - 0x50], 0xd409b25b
mov dword [ebp - 0x4c], 0x9ec0dd64
sub dword [ebp - 0x4c], 0x3b5170f8
mov dword [ebp - 0x48], 0x593b3ae4
add dword [ebp - 0x48], 0xa6c4c51c
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0xabd401e9
sub eax, 0x9bd1b16d
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x4491c
push 0
call eax
mov ecx, 0x6cba
mov ebx, eax
mov esi, 0x95dc916a
add esi, 0x7a267a96
add esi, dword [ebp - 0x44]
mov edi, 0x993c2a00
sub edi, 0x24696fc9
xor dword [ebp - 0x20], 0x23eae1e5
mov edx, dword [esi]
mov dword [ebp - 0x2c], 0xf4cd4118
sub edx, edi
sub dword [ebp - 0x1c], ebx
mov dword [ebx], edx
xor dword [ebp - 0x24], 0xf60ee5fb
add ebx, 0xcdc84b43
sub ebx, 0xcdc84b3f
add esi, 0x5f066c0c
add esi, 0xa0f993f8
loop 0x1002052b
add eax, 0x1a5bb
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x690da72f
add ecx, 0xa6f258d1
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x406500
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430c30
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x440100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.00412f7e
mov edi, eax
add esp, 4
test edi, edi
je 0x4065ab
push 1
mov dword [ebp - 4], 0
call fcn.00411b97
mov dword [edi + 4], eax
add esp, 4
mov dword [esi + 0x30], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x30], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret