joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4704b0
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x24
mov eax, dword [0x7be9b8]
xor eax, esp
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
cmp eax, 0x3e9
jg 0x4705ca
je 0x4705b3
cmp eax, 0x69
ja case.0x4705d4.1006
movzx eax, byte [eax + 0x470678]
jmp dword [eax*4 + 0x470658]
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov ecx, dword [esp + 0xc]
shr ecx, 0xa
mov eax, ecx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004daa4c
add esp, 0x24
ret
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
or ecx, 0xffffffff
cmp dword [esp + 0xc], 0xffffffff
cmovb ecx, dword [esp + 0xc]
shr ecx, 0xa
mov eax, ecx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004daa4c
add esp, 0x24
ret
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov ecx, dword [esp + 0x1c]
shr ecx, 0xa
mov eax, ecx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004daa4c
add esp, 0x24
ret
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov ecx, dword [esp + 8]
shr ecx, 0xa
mov eax, ecx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004daa4c
add esp, 0x24
ret
mov ecx, 1
mov eax, ecx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004daa4c
add esp, 0x24
ret
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov ecx, dword [esp + 0x14]
shr ecx, 0xa
mov eax, ecx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004daa4c
add esp, 0x24
ret
mov ecx, dword [0x7ee610]
mov eax, ecx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004daa4c
add esp, 0x24
ret
add eax, 0xfffffc16
cmp eax, 7
ja case.0x4705d4.1006
jmp dword [eax*4 + 0x4706e4]
mov ecx, dword [0x7ee614]
mov eax, ecx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004daa4c
add esp, 0x24
ret
mov ecx, dword [0x7ee238]
mov eax, ecx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004daa4c
add esp, 0x24
ret
mov eax, dword [0x7ee238]
lea ecx, [eax + eax*2]
shl ecx, 3
mov eax, ecx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004daa4c
add esp, 0x24
ret
mov ecx, dword [0x7ee210]
sub ecx, dword [0x7ee218]
sar ecx, 2
mov eax, ecx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004daa4c
add esp, 0x24
ret
xor ecx, ecx
mov eax, ecx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004daa4c
add esp, 0x24
ret

Function at 0x472310
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
cmp dword [0x7ee448], 0
jne 0x472386
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [esp + 0x1c]
lea eax, [edx - 1]
test edx, eax
jne 0x47238f
mov ecx, dword [esp + 4]
lea eax, [ecx - 1]
test ecx, eax
jne 0x47238f
mov dword [0x7ee450], edx
mov dword [0x7ee44c], ecx
mov dword [0x7ee454], 0x40000
mov dword [0x7ee458], 0x200000
mov dword [0x7ee45c], 5
mov dword [0x7ee61c], 5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor eax, 0x55555550
and eax, 0xfffffff8
or eax, 8
mov dword [0x7ee448], eax
mov eax, 1
add esp, 0x24
ret
call fcn.004e737b
int3
Function at 0x4c80a0
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
inc eax
push eax
call fcn.00470460
push dword [edi]
mov esi, eax
push dword [esp + 0x18]
push esi
call fcn.004dbc20
mov ecx, dword [edi]
add esp, 0x10
cmp dword [esp + 0xc], 1
mov byte [esi + ecx], 0
jne 0x4c80dc
xor eax, eax
cmp dword [edi], eax
jbe 0x4c80dc
xor byte [eax + esi], 0xf3
inc eax
cmp eax, dword [edi]
jb 0x4c80d3
pop edi
mov eax, esi
pop esi
ret

Function at 0x4ccb00
Capabilities:
Query environment variable

Disassembly:
push ebx
push ebp
push edi
push dword [esp + 0x10]
xor ebx, ebx
call fcn.00460670
add esp, 4
mov edi, eax
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebp, eax
test ebp, ebp
je 0x4ccb50
lea eax, [ebp*2]
push esi
push eax
call fcn.00470460
add esp, 4
mov esi, eax
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push esi
call fcn.00460590
push esi
mov ebx, eax
call fcn.00470430
add esp, 8
pop esi
push edi
call fcn.00470430
add esp, 4
mov eax, ebx
pop edi
pop ebp
pop ebx
ret
Function at 0x4cdb60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x4cdba0
push esi
push edi
push eax
call fcn.00443a20
add esp, 4
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4cdb8c
test al, 0x10
je 0x4cdb8c
mov esi, 1
jmp 0x4cdb8e
xor esi, esi
test edi, edi
je 0x4cdb9b
push edi
call fcn.00470430
add esp, 4
pop edi
mov eax, esi
pop esi
ret
xor eax, eax
ret

Function at 0x4cde20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x4cde60
push esi
push edi
push eax
call fcn.00443a20
add esp, 4
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4cde4c
test al, 0x50
jne 0x4cde4c
mov esi, 1
jmp 0x4cde4e
xor esi, esi
test edi, edi
je 0x4cde5b
push edi
call fcn.00470430
add esp, 4
pop edi
mov eax, esi
pop esi
ret
xor eax, eax
ret

Function at 0x4da700
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edi, dword [esp + 0x10]
mov esi, eax
test esi, esi
je 0x4da761
test edi, edi
je 0x4da72d
xor ecx, ecx
cmp word [edi], cx
je 0x4da72a
inc ecx
cmp word [edi + ecx*2], 0
jne 0x4da722
inc esi
add esi, ecx
lea eax, [esi + esi]
push eax
call fcn.00470460
add esp, 4
mov ebx, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test edi, edi
je 0x4da78a
dec esi
push esi
push 0x6f1c54
push ebx
call fcn.004da7b0
push esi
push edi
push ebx
call fcn.004da7b0
add esp, 0x18
jmp 0x4da78a
xor esi, esi
cmp word [edi], si
je 0x4da770
inc esi
cmp word [edi + esi*2], 0
jne 0x4da768
lea esi, [esi*2 + 2]
push esi
call fcn.00470460
push esi
mov ebx, eax
push edi
push ebx
call fcn.004dbc20
add esp, 0x10
push 8
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push ebx
mov esi, eax
call fcn.00470430
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
ret

Function at 0x4db8c1
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4db900
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4db900
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4db900
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4db900
cmp dword [ecx + 0x74], 0xe
jbe 0x4db900
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4e6b3d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004daa60
mov eax, dword [0x7be9b8]
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.004eb291
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4e6b7f
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4e6cdb
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004dafb0
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 + 0x7ef2e0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004ef0db
mov ecx, dword [esi*4 + 0x7ef2e0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x4e6cd4
cmp eax, dword [ecx + edi + 0x24]
jne 0x4e6cd4
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4e6cd4
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004ef0db
add esp, 0x14
test edx, edx
jl 0x4e6cd4
jg 0x4e6c4a
test eax, eax
jb 0x4e6cd4
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4e6cd4
jl 0x4e6c64
cmp dword [ebp - 0x1008], eax
ja 0x4e6cd4
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4e6c82
test ebx, ebx
je 0x4e6cbb
cmp ecx, edi
jae 0x4e6cbb
mov al, byte [ecx]
cmp al, 0xd
jne 0x4e6c9c
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4e6ca8
cmp byte [ecx + 1], 0xa
jne 0x4e6ca8
inc ecx
jmp 0x4e6ca8
movzx eax, al
movsx eax, byte [eax + 0x7bebd0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4e6c82
cmp edx, ebx
jne 0x4e6c82
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4e6cd9
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004daa4c
leave
ret

Function at 0x4ebffe
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x6f4528
push 0x6f4520
push str.FlsAlloc
push 0x1f
call fcn.004ebf1a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4ec032
push dword [ebp + 8]
mov ecx, esi
call dword [0x55181c]
call esi
jmp 0x4ec038
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4ec07c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x6f4538
push 0x6f4530
push str.FlsGetValue
push 0x21
call fcn.004ebf1a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4ec0b3
push dword [ebp + 8]
mov ecx, esi
call dword [0x55181c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4ec0bb
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x6f4540
push 0x6f4538
push str.FlsSetValue
push 0x22
call fcn.004ebf1a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4ec0f5
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x55181c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4ee371
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 + 0x7ef2e0]
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 0x4ee3b1
cmp byte [ebx], 0xa
jne 0x4ee3b1
or byte [edi + eax + 0x28], 4
jmp 0x4ee3b6
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 0x4ee4b5
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4ee498
inc eax
cmp dl, 0xd
je 0x4ee3e2
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4ee408
cmp eax, ecx
jae 0x4ee416
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 0x4ee3ca
jmp 0x4ee4b5
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 0x4ee493
cmp dword [ebp - 0x10], 0
je 0x4ee493
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x7ef2e0]
test byte [eax + edi + 0x28], 0x48
je 0x4ee46d
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4ee458
mov byte [esi], dl
jmp 0x4ee469
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x7ef2e0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4ee4b5
cmp byte [ebp - 1], 0xa
jne 0x4ee47c
cmp esi, ebx
jne 0x4ee47c
mov byte [esi], 0xa
jmp 0x4ee4b4
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004ef0f9
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4ee4b5
mov byte [esi], 0xd
jmp 0x4ee4b4
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x7ef2e0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4ee4b2
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4ee4b5
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4ee4be
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 + 0x7ef2e0]
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 0x4ee504
cmp word [ebx], dx
jne 0x4ee504
or byte [eax + edi + 0x28], 4
jmp 0x4ee509
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 0x4ee66c
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 0x4ee64c
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4ee54a
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4ee580
cmp eax, edx
jae 0x4ee58e
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 0x4ee525
jmp 0x4ee66c
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 0x4ee647
cmp dword [ebp - 0x18], 0
je 0x4ee647
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x7ef2e0]
test byte [eax + edi + 0x28], 0x48
je 0x4ee61d
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 0x4ee5e1
mov word [esi], cx
jmp 0x4ee618
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x7ef2e0]
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 + 0x7ef2e0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x7ef2e0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4ee66c
pop eax
cmp word [ebp - 4], ax
jne 0x4ee62d
cmp esi, ebx
jne 0x4ee62d
mov word [esi], ax
jmp 0x4ee669
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004ef0f9
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4ee66c
push 0xd
pop eax
jmp 0x4ee628
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x7ef2e0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4ee666
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4ee66c
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 0x4f16cc
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 0x4f1769
push ebx
push esi
call fcn.004f1695
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.004f1629
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4f1716
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4f1768
push edi
push eax
call fcn.004ea087
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4f1736
call fcn.004ea04d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4f1767
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004f1629
add esp, 0x20
test eax, eax
jne 0x4f1755
push edi
call fcn.004ea04d
jmp 0x4f175d
push ebx
call fcn.004ea04d
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 0x4f7ca5
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.004f7c21
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4f7e14
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4f7e14
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4f7dc9
jg 0x4f7d01
test eax, eax
je 0x4f7dbf
push 1
push 0x1000
call fcn.004ebda4
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4f7d24
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4f7db6
push 0x8000
push ebx
call fcn.004e8e07
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4f7d4d
jg 0x4f7d48
cmp ecx, 0x1000
jb 0x4f7d4d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004ed987
add esp, 0x10
cmp eax, 0xffffffff
je 0x4f7d92
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 0x4f7d48
jl 0x4f7d79
test ecx, ecx
jne 0x4f7d3a
push dword [ebp - 0xc]
push ebx
call fcn.004e8e07
push esi
call fcn.004ea04d
add esp, 0xc
xor ebx, ebx
jmp 0x4f7e22
cmp byte [edi + 0x24], 0
je 0x4f7da9
cmp dword [edi + 0x20], 5
jne 0x4f7da9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4f7db4
mov ebx, dword [edi + 0x18]
jmp 0x4f7db6
xor ebx, ebx
push esi
call fcn.004ea04d
pop ecx
jmp 0x4f7e22
test ecx, ecx
jg 0x4f7d8b
jl 0x4f7dc9
test eax, eax
jae 0x4f7d8b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004ef0f9
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4f7de9
cmp byte [edi + 0x1c], 0
je 0x4f7d8b
jmp 0x4f7e1a
push ebx
call fcn.004f1b36
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4f7d8b
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 0x4f7e22
cmp byte [edi + 0x1c], 0
je 0x4f7e1f
mov ebx, dword [edi + 0x18]
jmp 0x4f7e22
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004ef0f9
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x502cc0
Capabilities:
Compute adler32 checksum

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
movzx ecx, si
shr esi, 0x10
test edi, edi
je 0x502ddb
push ebp
mov ebp, dword [esp + 0x18]
test ebp, ebp
je 0x502dda
push ebx
mov edx, 0x15b0
cmp ebp, edx
cmovb edx, ebp
sub ebp, edx
cmp edx, 0x10
jl 0x502d9b
mov ebx, edx
shr ebx, 4
mov eax, ebx
neg eax
shl eax, 4
add edx, eax
nop dword [eax]
movzx eax, byte [edi]
add ecx, eax
movzx eax, byte [edi + 1]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 2]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 3]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 4]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 5]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 6]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 7]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 8]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 9]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xa]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xb]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xc]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xd]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xe]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xf]
add esi, ecx
add edi, 0x10
add ecx, eax
add esi, ecx
sub ebx, 1
jne 0x502d10
test edx, edx
je 0x502dad
nop
movzx eax, byte [edi]
inc edi
add ecx, eax
add esi, ecx
sub edx, 1
jne 0x502da0
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
add ecx, eax
mov eax, 0x80078071
mul esi
shr edx, 0xf
imul edx, edx, 0xffff000f
add esi, edx
test ebp, ebp
jne 0x502ce6
pop ebx
pop ebp
shl esi, 0x10
or esi, ecx
pop edi
mov eax, esi
pop esi
ret

Function at 0x50ff40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
push 0xffffffffffffffff
push dword [esp + 0x18]
push ebx
call fcn.00517fa0
mov esi, eax
add esp, 0xc
mov ecx, dword [esi + 0x7c]
or byte [esi + 0x1b], 0x80
mov edi, dword [ecx + 0xc]
mov eax, dword [edi + 0x88]
test eax, eax
je 0x50ffa1
test byte [eax + 0x24], 8
jne 0x50ffa1
cmp dword [edi + 0x170], 0
jne 0x50ffa1
cmp dword [edi + 0x168], 0
jne 0x50ffa1
push eax
call fcn.00440830
add esp, 4
mov dword [edi + 0x168], eax
test eax, eax
jne 0x50ffa1
mov dword [edi + 0x170], 1
mov dword [esi + 0xc], 0
mov eax, 0x38e38e39
mov dword [esi + 0x10], 0
mov dword [esi + 0x38], 1
mov dword [esi + 0x1c], 1
mov dword [esi + 0x20], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x14], 0xa0043
mov byte [esi + 0x1a], 0x20
movzx ecx, word [ebx + 0x2e]
sub ecx, 0xc
mov dword [esi + 0x44], 1
imul ecx
push 0
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push esi
mov word [esi + 0x78], ax
call fcn.005163b0
add esp, 8
mov dword [ebx + 0x14], esi
pop edi
pop esi
pop ebx
ret
Function at 0x510040
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push 0xffffffffffffffff
push dword [esp + 0x1c]
push ebp
call fcn.00517fa0
add esp, 0xc
mov esi, eax
cmp dword [esp + 0x10], 0
je 0x510063
or byte [esi + 0x1b], 0x80
mov bl, byte [esp + 0x24]
cmp bl, 0x43
jne 0x5100b3
mov eax, dword [esi + 0x7c]
push edi
mov edi, dword [eax + 0xc]
mov eax, dword [edi + 0x88]
test eax, eax
je 0x5100b2
test byte [eax + 0x24], 8
jne 0x5100b2
cmp dword [edi + 0x170], 0
jne 0x5100b2
cmp dword [edi + 0x168], 0
jne 0x5100b2
push eax
call fcn.00440830
add esp, 4
mov dword [edi + 0x168], eax
test eax, eax
jne 0x5100b2
mov dword [edi + 0x170], 1
pop edi
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x5100d7
push eax
call fcn.004c8e50
mov dword [esi + 4], eax
push eax
mov eax, dword [esi + 0x7c]
push dword [eax + 0xc]
call fcn.0049e0a0
add esp, 0xc
mov word [esi + 0x18], ax
mov eax, dword [esp + 0x20]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x5100f2
push eax
call fcn.004c8e50
add esp, 4
mov dword [esi + 8], eax
cmp dword [esp + 0x3c], 0
mov eax, dword [esp + 0x30]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x34]
mov dword [esi + 0x38], eax
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x38]
mov dword [esi + 0x20], eax
mov dword [esi + 0x3c], 0
je 0x510124
cmp bl, 0x43
jne 0x510124
mov eax, 1
jmp 0x510126
xor eax, eax
mov cx, word [esp + 0x28]
cmp bl, 0x43
mov dword [esi + 0x40], eax
mov eax, dword [esp + 0x40]
mov dword [esi + 0x24], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x28], eax
movzx eax, bl
mov word [esi + 0x14], ax
setne al
dec al
mov word [esi + 0x16], cx
and al, 0x20
mov dword [esi + 0x34], 0
mov byte [esi + 0x1a], al
mov dword [esi + 0x30], 0
movzx eax, word [ebp + 0x2e]
sub eax, 0xc
movzx ecx, cx
add ecx, 8
cdq
idiv ecx
push dword [esp + 0x44]
mov word [esi + 0x78], ax
push esi
mov dword [esi + 0x44], 1
call fcn.005163b0
add esp, 8
mov eax, esi
pop esi
pop ebp
pop ebx
ret