joyce8/EMBER2024-capa huggingface dataset:
Function at 0x434eb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x434ef5
call fcn.0042c811
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x434ef5
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x434f11
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0043f775
mov ebx, eax
test edi, edi
je 0x434f0f
test esi, esi
je 0x434f0f
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4358fe
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x4359bc
cmp dword [esi + 0x20], 0
je 0x4359bc
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4359bc
cmp dword [ebp + 8], 0
je 0x4359bc
xor eax, eax
mov ebx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
mov edi, eax
call fcn.0042c811
push 0x58e860
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x43598d
mov edi, dword [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4359bc
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 8], eax
push dword [ebp - 4]
push ebx
push esi
call fcn.004403e6
add esp, 0xc
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x4359ad
test edi, edi
je 0x4359ad
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test ebx, ebx
je 0x4359b8
mov ecx, esi
call fcn.004356a1
mov eax, ebx
jmp 0x4359be
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x43c736
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebx + 0x84], edi
test edi, 0xffff0000
jne 0x43c761
cmp dword [ebx + 0x80], 0
jne 0x43c761
movzx eax, di
mov dword [ebx + 0x80], eax
call fcn.0042c811
push 5
push edi
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov edi, eax
mov ecx, ebx
push edi
call fcn.0043c9f4
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x43c79b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.0042c811
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x43c7d2
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.0043c7f3
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x441ec2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
je 0x441edc
mov edi, dword [esi + 0xc]
jmp 0x441f1c
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x441ef5
call fcn.0043b1b5
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x441f0a
call fcn.0043b1b5
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x441f1c
call fcn.0043b1b5
call fcn.0042c811
cmp dword [eax + 0x3c], 0
je 0x441f31
push edi
mov ecx, ebx
call fcn.00441556
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.0044210e
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x441f5a
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x441f66
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4638d3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
test esi, esi
jne 0x4638ec
call fcn.0042c811
mov esi, dword [eax + 0xc]
push 0x5955b0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x463942
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x463941
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x463922
xor esi, esi
jmp 0x463938
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.0046394a
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4f8a31
Capabilities:
Get file system object information

Disassembly:
push 0x4cc
mov eax, 0x5873d3
call fcn.0055b65c
mov ebx, ecx
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.004087f0
pop ecx
lea esi, [eax + 0x10]
mov dword [ebp - 0x4d0], esi
and dword [ebp - 4], 0
lea ecx, [ebp - 0x4d0]
push 0
push 0x5bcd64
call fcn.00431ab8
cmp eax, 0xffffffff
jne 0x4f8afc
push 0
push 0x5c7328
lea ecx, [ebp - 0x4d0]
call fcn.00431ab8
cmp eax, 0xffffffff
jne 0x4f8afc
push 0
push 0x58db6c
lea ecx, [ebp - 0x4d0]
call fcn.00431ab8
cmp eax, 0xffffffff
jne 0x4f8afc
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.004087f0
mov edi, eax
pop ecx
mov dword [ebp - 0x4d4], edi
lea ecx, [edi + 0x10]
mov dword [ebp - 0x4d8], ecx
xor edx, edx
mov byte [ebp - 4], 1
push edx
lea eax, [ebp - 0x218]
push eax
push 0x104
push edx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne 0x4f8ad9
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
mov ecx, edi
call fcn.0055b5eb
mov ecx, ebx
call edi
mov ecx, dword [ebp - 0x4d4]
mov edi, eax
call fcn.004053f0
jmp 0x4f8b34
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x4d0]
call fcn.004051b0
mov ecx, edi
mov byte [ebp - 4], 0
call fcn.004053f0
mov esi, dword [ebp - 0x4d0]
push 0x105
push 0x2b4
lea eax, [ebp - 0x4cc]
push eax
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x4f8b22
mov edi, dword [ebp - 0x4cc]
jmp 0x4f8b34
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
mov ecx, edi
call fcn.0055b5eb
mov ecx, ebx
call edi
mov edi, eax
lea ecx, [esi - 0x10]
call fcn.004053f0
mov eax, edi
call fcn.0055b606
ret

Function at 0x573b11
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00573990

Function at 0x578b92
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00578852

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40238f
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x208
mov eax, dword [0x42d040]
xor eax, esp
mov dword [esp + 0x204], eax
mov eax, dword [esp + 0x20c]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x220]
mov ebp, 0x100
push edi
xor edi, edi
mov dword [esp + 0x10], eax
mov ecx, edi
mov eax, ecx
mov byte [esp + ecx + 0x14], cl
cdq
idiv dword [esp + 0x228]
mov al, byte [edx + esi]
mov byte [esp + ecx + 0x114], al
inc ecx
cmp ecx, ebp
jl 0x4023c2
mov esi, edi
mov ebx, edi
mov dl, byte [esp + esi + 0x14]
movzx eax, byte [esp + esi + 0x114]
add eax, ebx
movzx ecx, dl
add ecx, eax
mov ebx, ecx
and ebx, 0x800000ff
jns 0x402408
dec ebx
or ebx, 0xffffff00
inc ebx
mov al, byte [esp + ebx + 0x14]
mov byte [esp + esi + 0x14], al
inc esi
mov byte [esp + ebx + 0x14], dl
cmp esi, ebp
jl 0x4023e3
mov ebx, edi
mov ebp, edi
cmp dword [esp + 0x220], ebx
jle 0x402494
inc edi
and edi, 0x800000ff
jns 0x402437
dec edi
or edi, 0xffffff00
inc edi
mov cl, byte [esp + edi + 0x14]
movzx esi, cl
add ebx, esi
and ebx, 0x800000ff
jns 0x402450
dec ebx
or ebx, 0xffffff00
inc ebx
mov al, byte [esp + ebx + 0x14]
mov byte [esp + edi + 0x14], al
push ecx
mov byte [esp + ebx + 0x18], cl
mov ecx, 0x42e098
mov dword [esp], 0x40495270
call fcn.00402081
push eax
call fcn.004019ae
movzx eax, byte [esp + edi + 0x18]
add eax, esi
pop ecx
mov ecx, dword [esp + 0x10]
movzx eax, al
mov al, byte [esp + eax + 0x14]
xor byte [ecx + ebp], al
inc ebp
cmp ebp, dword [esp + 0x220]
jl 0x402426
mov ecx, dword [esp + 0x214]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00405eff
add esp, 0x208
ret

Function at 0x403062
Capabilities:
Encode data using xor

Disassembly:
push esi
xor esi, esi
push edi
mov edi, dword [esp + 0xc]
cmp dword [esp + 0x10], esi
jbe 0x40309f
mov al, byte [edi + esi]
xor al, 0x73
sub al, 0x15
push 0
mov byte [edi + esi], al
call dword [sym.imp.USER32.dll_OpenIcon]
mov al, byte [edi + esi]
sub al, 0x57
xor al, 0x74
add al, 0x4e
xor al, 0x70
sub al, 0x65
xor al, 0x22
sub al, 0x73
xor al, 0x2a
mov byte [edi + esi], al
inc esi
cmp esi, dword [esp + 0x10]
jb 0x403070
pop edi
pop esi
ret

Function at 0x403d0a
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push edi
push eax
push 0x40
mov edi, 0x4ac
mov esi, 0x45ec40
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push edi
push esi
call fcn.00403062
pop ecx
pop ecx
call fcn.00403048
mov edx, 0x45ec40
add edx, 0x188
mov esi, 0x42f040
push esi
call edx
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x406b09
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x406b48
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x406b48
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x406b48
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x406b48
cmp dword [ecx + 0x74], 0xe
jbe 0x406b48
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x415459
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x427168
push 0x427160
push str.FlsAlloc
push 0x1e
call fcn.004152c6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41548d
push dword [ebp + 8]
mov ecx, esi
call dword [0x423140]
call esi
jmp 0x415493
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4154d7
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x427178
push 0x427170
push str.FlsGetValue
push 0x20
call fcn.004152c6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41550e
push dword [ebp + 8]
mov ecx, esi
call dword [0x423140]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4168de
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00416580

Function at 0x4168e9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041670f
Function at 0x417f54
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00406c70
mov eax, dword [0x42d040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00414ca2
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x417f96
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4180f2
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00421a30
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x42e950]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041837a
mov ecx, dword [esi*4 + 0x42e950]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4180eb
cmp eax, dword [edi + ecx + 0x24]
jne 0x4180eb
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4180eb
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041837a
add esp, 0x14
test edx, edx
jl 0x4180eb
jg 0x418061
test eax, eax
jb 0x4180eb
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4180eb
jl 0x41807b
cmp dword [ebp - 0x1008], eax
ja 0x4180eb
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x418099
test ebx, ebx
je 0x4180d2
cmp ecx, edi
jae 0x4180d2
mov al, byte [ecx]
cmp al, 0xd
jne 0x4180b3
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4180bf
cmp byte [ecx + 1], 0xa
jne 0x4180bf
inc ecx
jmp 0x4180bf
movzx eax, al
movsx eax, byte [eax + 0x42d9b8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x418099
cmp edx, ebx
jne 0x418099
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4180f0
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00405eff
leave
ret
Function at 0x419c09
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x419ca6
push ebx
push esi
call fcn.00419bd2
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00418857
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x419c53
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x419ca5
push edi
push eax
call fcn.00413d40
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x419c73
call fcn.00413d06
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x419ca4
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00418857
add esp, 0x20
test eax, eax
jne 0x419c92
push edi
call fcn.00413d06
jmp 0x419c9a
push ebx
call fcn.00413d06
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x41e823
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x42e950]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41e863
cmp byte [ebx], 0xa
jne 0x41e863
or byte [eax + edi + 0x28], 4
jmp 0x41e868
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41e966
mov al, byte [edx]
cmp al, 0x1a
je 0x41e948
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41e897
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41e8bc
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41e8c6
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41e879
jmp 0x41e966
push 0
lea eax, [ebp - 0xc]
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 0x41e943
cmp dword [ebp - 0xc], 0
je 0x41e943
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x42e950]
test byte [eax + edi + 0x28], 0x48
je 0x41e91d
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41e908
mov byte [esi], dl
jmp 0x41e919
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x42e950]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41e966
cmp byte [ebp - 1], 0xa
jne 0x41e92c
cmp esi, ebx
jne 0x41e92c
mov byte [esi], 0xa
jmp 0x41e965
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00418398
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41e966
mov byte [esi], 0xd
jmp 0x41e965
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x42e950]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41e962
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41e966
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41e96f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x42e950]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41e9b2
cmp word [esi], dx
jne 0x41e9b2
or byte [edi + eax + 0x28], 4
jmp 0x41e9b7
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41eb0a
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41eaea
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41e9f9
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41ea2f
cmp eax, edx
jae 0x41ea3b
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41e9d1
jmp 0x41eb0a
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41eae6
cmp dword [ebp - 0x14], 0
je 0x41eae6
mov eax, dword [ebx*4 + 0x42e950]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41eabe
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41ea87
mov word [esi], cx
jmp 0x41eaba
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x42e950]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x42e950]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x42e950]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41eb0a
pop ebx
cmp word [ebp - 4], bx
jne 0x41eacf
cmp esi, dword [ebp + 0xc]
jne 0x41eacf
mov word [esi], bx
jmp 0x41eb07
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00418398
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41eb0a
push 0xd
jmp 0x41eb03
mov ecx, dword [ebx*4 + 0x42e950]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41eb01
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41eb0a
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x421830
Capabilities:
Parse pe header

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

Disassembly:
push esi
mov esi, ecx
xor ecx, ecx
lea edx, [esi + 4]
mov eax, ecx
mov dword [esi], ecx
shr eax, 1
test cl, 1
je 0x9005578
xor eax, 0xedb88320
mov dword [esi], eax
test al, 1
je 0x9005587
shr eax, 1
xor eax, 0xedb88320
jmp 0x9005589
shr eax, 1
mov dword [esi], eax
test al, 1
je 0x9005598
shr eax, 1
xor eax, 0xedb88320
jmp 0x900559a
shr eax, 1
mov dword [esi], eax
test al, 1
je 0x90055a9
shr eax, 1
xor eax, 0xedb88320
jmp 0x90055ab
shr eax, 1
mov dword [esi], eax
test al, 1
je 0x90055ba
shr eax, 1
xor eax, 0xedb88320
jmp 0x90055bc
shr eax, 1
mov dword [esi], eax
test al, 1
je 0x90055cb
shr eax, 1
xor eax, 0xedb88320
jmp 0x90055cd
shr eax, 1
mov dword [esi], eax
test al, 1
je 0x90055dc
shr eax, 1
xor eax, 0xedb88320
jmp 0x90055de
shr eax, 1
mov dword [esi], eax
test al, 1
je 0x90055ed
shr eax, 1
xor eax, 0xedb88320
jmp 0x90055ef
shr eax, 1
mov dword [esi], eax
inc ecx
mov dword [edx], eax
add edx, 4
cmp ecx, 0x100
jb 0x9005568
mov ecx, esi
call fcn.09005650
mov eax, esi
pop esi
ret

Function at 0x900b9ba
Capabilities:
Get common file path

Disassembly:
push 0x224
mov eax, 0x90a0d65
call fcn.090070c5
cmp byte [ebp + 0x10], 0
mov edi, dword [ebp + 8]
push 0x2b
pop esi
push 0x1a
pop eax
cmovne esi, eax
xor ebx, ebx
push 0x208
lea eax, [ebp - 0x218]
push ebx
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
mov eax, esi
or eax, 0x8000
cmp byte [ebp + 0xc], bl
push ebx
push ebx
cmovne esi, eax
push esi
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x900ba16
xor al, al
jmp 0x900ba66
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.0900bde7
push dword [ebp + 0xc]
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], ebx
push str.Adobe
call fcn.0900d4f9
test al, al
je 0x900ba59
lea eax, [ebp - 0x230]
mov ecx, edi
push eax
call fcn.0906767e
mov ecx, edi
call fcn.0900e3c3
mov bl, al
lea ecx, [ebp - 0x230]
call fcn.0900e42b
mov al, bl
call fcn.09008ed9
ret
Function at 0x904d5db
Capabilities:
Get memory capacity

Disassembly:
push 0x28
mov eax, 0x90a35cc
call fcn.09005525
mov esi, ecx
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0x20
push eax
call dword [sym.imp.kernel32.dll_GlobalMemoryStatus]
mov eax, dword [ebp - 0x24]
xor ecx, ecx
sub eax, dword [ebp - 0x20]
sub eax, dword [esi + 8]
sbb ecx, dword [esi + 0xc]
js 0x904d646
jg 0x904d610
test eax, eax
jb 0x904d646
mov edx, dword [esi + 4]
imul edi, edx, 3
test ecx, ecx
jg 0x904d646
jl 0x904d620
cmp eax, edi
ja 0x904d646
cmp edx, eax
jae 0x904d63a
mov ecx, dword [esi]
sub eax, edx
and dword [ebp - 4], 0
push eax
call fcn.0906767e
jmp 0x904d646
jbe 0x904d646
mov ecx, dword [esi]
sub edx, eax
push edx
call fcn.0906767e
call fcn.09005ef4
ret