joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4433c9
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x534014]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
push esi
push edi
cmp edx, ebx
je 0x443414
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0044352b
test al, al
jne 0x44340e
sub edx, 2
cmp edx, ebx
jne 0x4433f4
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x443436
lea eax, [ebx + 2]
cmp edx, eax
je 0x443436
push ecx
xor edi, edi
push edi
push edi
push ebx
call fcn.00443315
add esp, 0x10
jmp 0x44351c
push esi
lea ecx, [ebp - 0x255]
call fcn.0044352b
sub edx, ebx
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor edi, edi
push edi
push edi
and eax, edx
push edi
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
mov eax, dword [ebp - 0x25c]
cmp esi, 0xffffffff
jne 0x44347a
push eax
jmp 0x443426
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
sar ecx, 2
push 0x2e
mov dword [ebp - 0x264], ecx
pop ecx
cmp word [ebp - 0x228], cx
jne 0x4434af
cmp word [ebp - 0x226], di
je 0x4434ca
cmp word [ebp - 0x226], cx
jne 0x4434af
cmp word [ebp - 0x224], di
je 0x4434ca
push eax
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push ebx
push eax
call fcn.00443315
add esp, 0x10
test eax, eax
jne 0x443511
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
mov eax, dword [ebp - 0x25c]
pop ecx
jne 0x44348b
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov ecx, dword [ebp - 0x264]
sub eax, edx
sar eax, 2
cmp ecx, eax
je 0x443513
push 0x443011
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00448ef0
add esp, 0x10
jmp 0x443513
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00426f36
leave
ret

Function at 0x444107
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x444118
pop esi
ret
push ebx
push edi
push esi
call fcn.004440d0
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0043fd53
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x444140
push ebx
push esi
push edi
call fcn.0042fd00
add esp, 0xc
push 0
call fcn.0043fd19
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x444504
Capabilities:
Set environment variable

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x3f
sar ecx, 6
push ebx
imul ebx, eax, 0x38
push esi
mov eax, dword [ecx*4 + 0x536fb0]
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], 0xa
mov edx, dword [ebx + eax + 0x18]
mov dword [ebp - 0x20], edx
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x447f58
push 0xa
pop edi
cmp word [esi], di
jne 0x447f58
or byte [ebx + eax + 0x28], 4
jmp 0x447f5d
and byte [ebx + eax + 0x28], 0xfb
lea edx, [esi + edx*2]
mov eax, esi
mov dword [ebp - 0x14], edx
mov edi, esi
mov dword [ebp - 8], eax
cmp esi, edx
jae 0x4480c3
mov dword [ebp - 0x18], 0xd
movzx edx, word [eax]
mov ecx, edx
mov dword [ebp - 0x1c], ecx
push 0x1a
pop ecx
cmp dx, cx
mov ecx, dword [ebp - 0xc]
je 0x4480a3
add eax, 2
cmp dx, word [ebp - 0x18]
je 0x447fa7
mov word [edi], dx
add edi, 2
mov dword [ebp - 8], eax
jmp 0x448098
cmp eax, dword [ebp - 0x14]
jae 0x447fdd
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x10]
mov edx, eax
mov esi, dword [ebp + 0xc]
sete cl
xor eax, eax
push 0xa
lea ecx, [ecx*2 + 2]
add dword [ebp - 8], ecx
pop ecx
cmp dx, cx
sete al
dec eax
and eax, 3
add eax, ecx
jmp 0x44808f
push 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x24]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44808c
cmp dword [ebp - 0x24], 0
je 0x44808c
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x536fb0]
test byte [ebx + eax + 0x28], 0x48
je 0x448065
mov dx, word [ebp - 4]
lea eax, [edi + 2]
mov dword [ebp - 0x1c], eax
cmp dx, word [ebp - 0x10]
jne 0x448030
push 0xa
pop edx
mov word [edi], dx
jmp 0x448061
push 0xd
pop eax
mov word [edi], ax
mov eax, dword [ecx*4 + 0x536fb0]
push 0xa
mov byte [ebx + eax + 0x2a], dl
mov eax, dword [ecx*4 + 0x536fb0]
shr dx, 8
mov byte [ebx + eax + 0x2b], dl
mov eax, dword [ecx*4 + 0x536fb0]
pop edx
mov byte [ebx + eax + 0x2c], dl
mov eax, dword [ebp - 0x1c]
mov edi, eax
jmp 0x448095
push 0xa
pop eax
cmp word [ebp - 4], ax
jne 0x448072
cmp edi, esi
je 0x44808f
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00447d24
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x448095
push 0xd
pop eax
mov word [edi], ax
add edi, 2
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x14]
jb 0x447f79
jmp 0x4480c3
mov ecx, dword [ecx*4 + 0x536fb0]
mov al, byte [ecx + ebx + 0x28]
test al, 0x40
jne 0x4480ba
or al, 2
mov byte [ecx + ebx + 0x28], al
jmp 0x4480c3
push 0x1a
pop eax
mov word [edi], ax
add edi, 2
sub edi, esi
and edi, 0xfffffffe
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44876d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
test eax, eax
jne 0x448793
call fcn.0043fd06
mov dword [eax], 0x16
call fcn.0043fc08
or eax, 0xffffffff
jmp 0x4488f7
mov eax, dword [eax + 0xc]
push ebx
nop
xor ebx, ebx
shr eax, 0xd
inc ebx
test bl, al
je 0x4488f3
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
nop
shr eax, 0xc
test bl, al
jne 0x4488f3
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
nop
shr eax, 1
test bl, al
mov eax, dword [ebp + 8]
je 0x4487d6
push 0x10
pop ecx
add eax, 0xc
lock or dword [eax], ecx
jmp 0x4488f3
add eax, 0xc
lock or dword [eax], ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
nop
test eax, 0x4c0
jne 0x4487f3
push dword [ebp + 8]
call fcn.00448906
pop ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov dword [eax], ecx
mov eax, dword [ebp + 8]
push eax
mov esi, dword [eax + 0x18]
mov edi, dword [eax + 4]
call fcn.00440f83
push esi
push edi
push eax
call fcn.004482a1
mov ecx, dword [ebp + 8]
add esp, 0x10
mov dword [ecx + 8], eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 8]
test edx, edx
je 0x4488d8
cmp edx, 0xffffffff
je 0x4488d8
mov eax, dword [eax + 0xc]
nop
test al, 6
jne 0x448897
push dword [ebp + 8]
call fcn.00440f83
pop ecx
cmp eax, 0xffffffff
je 0x44887d
push dword [ebp + 8]
call fcn.00440f83
pop ecx
cmp eax, 0xfffffffe
je 0x44887d
mov esi, dword [ebp + 8]
push esi
call fcn.00440f83
mov edi, eax
push esi
sar edi, 6
call fcn.00440f83
pop ecx
and eax, 0x3f
pop ecx
imul ecx, eax, 0x38
mov eax, dword [edi*4 + 0x536fb0]
add eax, ecx
jmp 0x448882
mov eax, 0x5341c8
mov al, byte [eax + 0x28]
and al, 0x82
cmp al, 0x82
jne 0x448897
mov eax, dword [ebp + 8]
push 0x20
pop ecx
add eax, 0xc
lock or dword [eax], ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0x200
jne 0x4488c9
mov eax, dword [eax + 0xc]
nop
shr eax, 6
test bl, al
je 0x4488c6
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
nop
shr eax, 8
test bl, al
jne 0x4488c6
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 0x1000
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
dec dword [eax + 8]
mov dl, byte [ecx]
inc ecx
mov dword [eax], ecx
movzx eax, dl
jmp 0x4488f6
xor ecx, ecx
test edx, edx
setne cl
add eax, 0xc
lea ecx, [ecx*8 + 8]
lock or dword [eax], ecx
mov ecx, dword [ebp + 8]
and dword [ecx + 8], 0
or eax, 0xffffffff
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x4488fb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0044876d
Function at 0x4506a0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0
push 0
push 0x40760c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x4506c6
pop edi
mov eax, 0x80029c4a
pop esi
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x407624
push esi
call edi
mov dword [0x5372d8], eax
test eax, eax
jne 0x4506e8
pop edi
mov eax, 0x7f
pop esi
mov esp, ebp
pop ebp
ret
push 0x407640
push esi
call edi
mov dword [0x5372dc], eax
test eax, eax
je 0x4506dd
push 0x407660
push esi
call edi
mov dword [0x5372e0], eax
test eax, eax
je 0x4506dd
push 0x407674
push esi
call edi
mov dword [0x5372e4], eax
test eax, eax
je 0x4506dd
push 0x407688
push esi
call edi
mov dword [0x5372e8], eax
test eax, eax
je 0x4506dd
push 0x407698
push esi
call edi
mov dword [0x5372ec], eax
test eax, eax
je 0x4506dd
push 0x4076ac
push esi
call edi
mov dword [0x5372f0], eax
test eax, eax
je 0x4506dd
mov eax, dword [0x5372d8]
push 0
push 0
push 0x4076c0
push 0x5372d4
call eax
test eax, eax
jne 0x4507dc
mov eax, dword [0x5372e0]
lea ecx, [ebp - 4]
push 0
push ecx
push 4
push 0x5372f4
push 0x4076d0
push dword [0x5372d4]
call eax
test eax, eax
jne 0x4507dc
mov eax, dword [0x5372e0]
lea ecx, [ebp - 4]
push 0
push ecx
push 4
push 0x5372f8
push 0x4076f4
push dword [0x5372d4]
call eax
test eax, eax
jne 0x4507dc
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004537a0
add esp, 0x10
test eax, eax
jne 0x4507dc
mov eax, dword [0x5372d4]
test eax, eax
je 0x4507d7
push 0
push eax
call dword [0x5372dc]
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4586b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp dword [ecx + 0xac], 2
jne 0x458727
mov edx, dword [ebp + 0xc]
mov eax, 0xb170a1bf
push esi
mov esi, dword [ebp + 8]
cmp edx, 4
jb 0x4586f0
push edi
mov edi, edx
shr edi, 2
mov ecx, dword [esi]
sub edx, 4
add ecx, eax
add esi, 4
imul eax, ecx, 0x401
mov ecx, eax
shr ecx, 6
xor eax, ecx
sub edi, 1
jne 0x4586d3
pop edi
test edx, edx
je 0x45870e
movzx ecx, byte [esi]
lea esi, [esi + 1]
add ecx, eax
imul eax, ecx, 0x401
mov ecx, eax
shr ecx, 6
xor eax, ecx
sub edx, 1
jne 0x4586f4
imul eax, eax, 0x19660d
xor edx, edx
or ecx, 0xffffffff
pop esi
add eax, 0x3c6ef35f
div ecx
mov eax, edx
pop ebp
ret 8
push 0xffffffffffffffff
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00454a00
add esp, 0xc
pop ebp
ret 8
Function at 0x45ccb0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov ecx, 0x80000000
mov dword [eax], 0
mov dword [ebp - 4], 0
cmp edi, 1
je 0x45ccdd
test edi, edi
jns 0x45cceb
mov ecx, 0xc0000000
cmp edi, 1
jne 0x45cceb
xor eax, eax
jmp 0x45ccf5
mov eax, edi
or eax, 0xbfffffff
shr eax, 0x1d
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x80
push 3
push 0
push eax
push ecx
push dword [ebp + 8]
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x45cd3d
test edi, edi
je 0x45cd88
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push dword [ebp + 8]
call esi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x45cd88
mov dword [ebp - 4], 1
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x45cd81
push 0x4011f8
push 0x14
call fcn.00427917
mov esi, eax
add esp, 8
test esi, esi
je 0x45cd81
push esi
mov dword [esi + 4], edi
mov dword [esi + 0xc], 0
mov dword [esi], 0x407b4c
mov dword [esi + 8], 0x407b8c
mov dword [esi + 0x10], ebx
call dword [0x407b50]
jmp 0x45cd8a
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov ebx, dword [ebp - 8]
mov ecx, dword [ebx + 0x80c0]
test ecx, ecx
je 0x45cd9d
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebx + 0x80c0], esi
test esi, esi
jne 0x45cdc1
mov ecx, dword [ebp + 0x10]
xor eax, eax
test edi, edi
pop edi
setne al
add eax, 2
pop esi
mov dword [ecx], eax
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebp - 4], 0
je 0x45ce52
mov edx, dword [ebp + 0x14]
xor ecx, ecx
mov byte [ebx + 0x80b8], 1
mov eax, 0x407978
lea esp, [esp]
cmp edx, dword [eax]
je 0x45cdfc
add eax, 0x28
inc ecx
cmp eax, 0x407a90
jl 0x45cde0
mov eax, dword [ebp + 0x10]
xor esi, esi
mov dword [eax], 4
jmp 0x45ce24
lea eax, [ecx + ecx*4]
mov ecx, 0xa
lea esi, [eax*8 + 0x407978]
lea edi, [ebx + 0x807c]
push edx
push dword [ebp + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
call fcn.0045bbd0
mov esi, eax
test esi, esi
jne 0x45ce5e
mov ecx, dword [ebx + 0x80c0]
test ecx, ecx
je 0x45ce34
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push dword [ebp + 8]
mov dword [ebx + 0x80c0], 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push dword [ebp + 0x10]
mov ecx, ebx
call fcn.0045bf20
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4616f0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x534014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x58], eax
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0x10]
test ebx, ebx
je 0x4617f0
push 0x48
lea eax, [ebp - 0x4c]
mov dword [esi], 1
push 0
push eax
call fcn.00427ec0
mov eax, dword [ebx]
lea ecx, [ebp - 0x4c]
add esp, 0xc
push 0
push ecx
push ebx
call dword [eax + 0x30]
test eax, eax
js 0x4617d5
mov ecx, dword [ebp - 0x4c]
lea eax, [esi + 0x28]
test ecx, ecx
jne 0x461762
push 0x407e18
push 0x104
push eax
call fcn.0043d072
add esp, 0xc
jmp 0x46177d
push 0
push 0
push 0x104
push eax
push 0
push 0
push 0
push 0
push ecx
call fcn.0043596d
add esp, 0x24
mov eax, dword [ebp - 0x44]
xor ecx, ecx
mov dword [esi + 0xc], eax
cmp ecx, dword [ebp - 0x40]
jne 0x4617d5
push 0x4011f8
push eax
call fcn.00427398
add esp, 8
mov dword [esi + 8], eax
test eax, eax
je 0x461881
mov eax, dword [ebx]
push 0
push 0
push 0
push 0
push ebx
call dword [eax + 0x14]
test eax, eax
jne 0x4617d5
mov eax, dword [ebx]
lea ecx, [ebp - 0x50]
push ecx
push dword [esi + 0xc]
push dword [esi + 8]
push ebx
call dword [eax + 0xc]
test eax, eax
jne 0x4617d5
mov eax, dword [esi + 0xc]
cmp eax, dword [ebp - 0x50]
je 0x4618e5
mov dword [edi], 3
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00426f36
mov esp, ebp
pop ebp
ret 0xc
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x46182c
mov dword [edi], 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00426f36
mov esp, ebp
pop ebp
ret 0xc
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov eax, dword [esi + 4]
cmp ebx, 0xffffffff
jne 0x461861
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 3
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00426f36
mov esp, ebp
pop ebp
ret 0xc
push 0
push ebx
push 0
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x50], eax
test eax, eax
jne 0x46189c
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 2
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00426f36
mov esp, ebp
pop ebp
ret 0xc
push 0
push ebx
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
push dword [ebp - 0x50]
mov dword [ebp - 0x54], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x461878
push 0
push 0
push 0x104
mov dword [esi + 8], eax
lea eax, [esi + 0x28]
push eax
push 0
push 0
push 0
push 0
push dword [ebp - 0x58]
mov dword [esi + 0xc], ebx
call fcn.0043596d
add esp, 0x24
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00426f36
mov esp, ebp
pop ebp
ret 0xc
Function at 0x476ef0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
mov ebx, 0x630458e9
push esi
movzx eax, byte [edx]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edx + 1]
push edi
xor ecx, eax
movzx eax, byte [edx + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
xor eax, eax
mul ebx
imul ecx, ecx, 0x1000193
mov esi, eax
mov edi, edx
mov eax, ecx
mul ebx
mov dword [ebp + 8], eax
mov ebx, edx
mov eax, ecx
mov ecx, 0xde5fb9d2
mul ecx
add eax, esi
mov ecx, edx
mov edx, dword [ebp + 8]
adc ecx, edi
xor edi, edi
add edi, edx
adc eax, ebx
cmp eax, ebx
ja 0x476f6a
jb 0x476f63
cmp edi, edx
jae 0x476f6a
mov esi, 1
jmp 0x476f6c
xor esi, esi
xor eax, eax
mov edx, 0xde5fb9d2
mul edx
add eax, esi
add eax, ecx
add eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x48e1f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x534014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
mov ecx, dword [esi + 0x834]
test ecx, ecx
je 0x48e22a
push 0
lea eax, [esi + 0xc98]
push eax
push dword [esi + 0x804]
call ecx
add esp, 0xc
test eax, eax
js 0x48e26b
mov edi, dword [esi + 0xc98]
lea ebx, [esi + 0xc98]
test edi, edi
je 0x48e26b
cmp edi, 0x324
ja 0x48e374
mov eax, dword [esi + 0x834]
test eax, eax
je 0x48e28a
lea ecx, [ebp - 0x328]
push ecx
push ebx
push dword [esi + 0x804]
call eax
add esp, 0xc
test eax, eax
jns 0x48e33a
mov dword [esi], 0x13
xor eax, eax
pop edi
mov word [esi + 4], ax
xor al, al
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00426f36
mov esp, ebp
pop ebp
ret
cmp byte [esi + 0xc94], 0
je 0x48e29b
mov ebx, dword [esi + 0x86c]
jmp 0x48e2a1
mov ebx, dword [esi + 0xc8c]
mov ecx, dword [esi + 0xc9c]
mov edx, dword [esi + 0xca0]
test ebx, ebx
je 0x48e2db
push 0
push edx
push ebx
call fcn.00525413
add esp, 0xc
test eax, eax
jne 0x48e26b
push ebx
push edi
lea eax, [ebp - 0x328]
push 1
push eax
call fcn.0052507e
add esp, 0x10
cmp eax, edi
sete al
jmp 0x48e32c
mov eax, dword [esi + 0x82c]
test eax, eax
je 0x48e2fd
lea ecx, [ebp - 0x328]
push ecx
push edi
push 0
push edx
push dword [esi + 0x804]
call eax
add esp, 0x14
jmp 0x48e327
mov eax, dword [esi + 0x830]
test eax, eax
je 0x48e26b
test ecx, ecx
je 0x48e26b
lea edx, [ebp - 0x328]
push edx
push edi
push ecx
push dword [esi + 0x804]
call eax
add esp, 0x10
test eax, eax
setns al
test al, al
je 0x48e26b
lea ebx, [esi + 0xc98]
mov eax, dword [ebp - 0x328]
cmp eax, 0x3031424e
je 0x48e34e
cmp eax, 0x53445352
jne 0x48e374
push dword [ebx]
lea eax, [ebp - 0x328]
mov ecx, esi
push eax
call fcn.0048c610
mov ecx, dword [ebp - 4]
test al, al
pop edi
setne al
xor ecx, ebp
pop esi
pop ebx
call fcn.00426f36
mov esp, ebp
pop ebp
ret
mov dword [esi], 0x16
jmp 0x48e271
Function at 0x48e860
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push 0x537394
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [ebx + 4], 0
jne 0x48e9ff
lea eax, [ebp - 4]
mov byte [ebx + 4], 1
push eax
push 1
push 0
push 0x408918
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x48e9ff
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0x408964
push dword [ebp - 4]
call esi
test eax, eax
je 0x48e8db
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
push 0x537394
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
xor ecx, ecx
shr eax, 1
mov edx, 2
mov dword [ebp - 0xc], eax
inc eax
mul edx
push edi
push 0x4011f8
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00427398
mov edi, eax
add esp, 8
test edi, edi
jne 0x48e924
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
push 0x537394
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push 0
push 0x408964
push dword [ebp - 4]
call esi
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x48e9a9
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov word [edi + eax*2], cx
mov eax, dword [ebp - 0x10]
cmp eax, 1
jne 0x48e96e
mov dword [ebx + 8], edi
pop edi
pop esi
push 0x537394
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x48e9a9
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x48e9a9
xor ecx, ecx
mov edx, 2
mul edx
push 0x4011f8
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00427398
add esp, 8
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x48e9c4
push edi
call fcn.00426f44
add esp, 4
pop edi
pop esi
push 0x537394
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push edi
mov esi, eax
call fcn.00426f44
mov eax, dword [ebp - 0xc]
add esp, 4
test esi, esi
jne 0x48e9fa
push eax
call fcn.00426f44
add esp, 4
pop edi
pop esi
push 0x537394
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov dword [ebx + 8], eax
pop esi
push 0x537394
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48f4d0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x5399b8]
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 0x10]
cmp ecx, eax
jae 0x48f4e5
mov ecx, eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [edi + 4], eax
lea eax, [edi + 0x18]
push eax
push esi
mov dword [edi + 8], ecx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push 0
push 0
push 0
push 2
push 0
push esi
mov dword [edi + 4], 0
mov dword [edi + 0x10], esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [edi + 0x14], eax
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x48fef0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
cmp edi, 8
jb 0x48ff96
mov ecx, edi
shr ecx, 3
mov dword [ebp + 0xc], ecx
push ebx
mov ebx, dword [esi + 4]
sub edi, 8
mov ecx, dword [esi]
add esi, 8
xor ecx, eax
mov eax, ebx
shr eax, 0x10
movzx edx, al
mov eax, ebx
mov dword [ebp + 8], ecx
shr eax, 8
movzx ecx, al
mov eax, dword [edx*4 + 0x5377f8]
mov edx, dword [ebp + 8]
xor eax, dword [ecx*4 + 0x537bf8]
mov ecx, edx
shr ecx, 0x10
movzx ecx, cl
xor eax, dword [ecx*4 + 0x5387f8]
mov ecx, edx
shr ecx, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x538bf8]
mov ecx, ebx
shr ecx, 0x18
xor eax, dword [ecx*4 + 0x5373f8]
mov ecx, edx
shr ecx, 0x18
xor eax, dword [ecx*4 + 0x5383f8]
movzx ecx, bl
xor eax, dword [ecx*4 + 0x537ff8]
movzx ecx, dl
xor eax, dword [ecx*4 + 0x538ff8]
sub dword [ebp + 0xc], 1
jne 0x48ff10
pop ebx
test edi, edi
je 0x48ffba
lea ebx, [ebx]
movzx ecx, byte [esi]
lea esi, [esi + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x5373f8]
sub edi, 1
jne 0x48ffa0
pop edi
pop esi
pop ebp
ret
Function at 0x4a5f50
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004a5f60