joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d0cad
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4ec638
push 0x4ec630
push str.FlsSetValue
push 0x22
call fcn.004d0a5b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4d0ce7
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4e9824]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4d779d
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 + 0x5187f0]
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 0x4d77dd
cmp byte [ebx], 0xa
jne 0x4d77dd
or byte [edi + eax + 0x28], 4
jmp 0x4d77e2
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 0x4d78e1
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4d78c4
inc eax
cmp dl, 0xd
je 0x4d780e
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4d7834
cmp eax, ecx
jae 0x4d7842
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 0x4d77f6
jmp 0x4d78e1
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 0x4d78bf
cmp dword [ebp - 0x10], 0
je 0x4d78bf
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x5187f0]
test byte [eax + edi + 0x28], 0x48
je 0x4d7899
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4d7884
mov byte [esi], dl
jmp 0x4d7895
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x5187f0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4d78e1
cmp byte [ebp - 1], 0xa
jne 0x4d78a8
cmp esi, ebx
jne 0x4d78a8
mov byte [esi], 0xa
jmp 0x4d78e0
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004d773f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4d78e1
mov byte [esi], 0xd
jmp 0x4d78e0
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x5187f0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4d78de
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4d78e1
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4d78ea
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 + 0x5187f0]
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 0x4d7930
cmp word [ebx], dx
jne 0x4d7930
or byte [eax + edi + 0x28], 4
jmp 0x4d7935
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 0x4d7a98
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 0x4d7a78
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4d7976
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4d79ac
cmp eax, edx
jae 0x4d79ba
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 0x4d7951
jmp 0x4d7a98
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 0x4d7a73
cmp dword [ebp - 0x18], 0
je 0x4d7a73
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x5187f0]
test byte [eax + edi + 0x28], 0x48
je 0x4d7a49
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 0x4d7a0d
mov word [esi], cx
jmp 0x4d7a44
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x5187f0]
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 + 0x5187f0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x5187f0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4d7a98
pop eax
cmp word [ebp - 4], ax
jne 0x4d7a59
cmp esi, ebx
jne 0x4d7a59
mov word [esi], ax
jmp 0x4d7a95
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004d773f
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4d7a98
push 0xd
pop eax
jmp 0x4d7a54
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x5187f0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4d7a92
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4d7a98
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 0x4d963a
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 0x4d96d7
push ebx
push esi
call fcn.004d9603
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.004d3cb9
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4d9684
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4d96d6
push edi
push eax
call fcn.004c7eb5
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4d96a4
call fcn.004c7e0e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4d96d5
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004d3cb9
add esp, 0x20
test eax, eax
jne 0x4d96c3
push edi
call fcn.004c7e0e
jmp 0x4d96cb
push ebx
call fcn.004c7e0e
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 0x4d96da
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4d96eb
pop esi
ret
push ebx
push edi
push esi
call fcn.004d9603
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004c7eb5
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4d9713
push ebx
push esi
push edi
call fcn.004b8db0
add esp, 0xc
push 0
call fcn.004c7e0e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4d9e6d
Capabilities:
Set environment variable

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

Function at 0x4dc2cb
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004d04cb
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 0x4dc33a
cmp esi, dword [ebp - 4]
je 0x4dc335
cmp dword [ebp + 0xc], 0
je 0x4dc335
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4dc312
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004dbe1d
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4dc33c
xor eax, eax
inc eax
jmp 0x4dc33c
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4dc3a1
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x513010]
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.004d04cb
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.004d04cb
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 0x4dc418
cmp word [ecx], dx
je 0x4dc418
mov eax, dword [0x4ed8e4]
push edi
dec eax
push eax
push 0x4ed7d0
call fcn.004dc340
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4dc48b
cmp word [eax], dx
je 0x4dc48b
mov eax, dword [edi]
test eax, eax
je 0x4dc43c
cmp word [eax], dx
je 0x4dc43c
lea eax, [ebp - 0x10]
push eax
call fcn.004dbd23
jmp 0x4dc445
lea eax, [ebp - 0x10]
push eax
call fcn.004dbdbe
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4dc4b5
mov eax, dword [0x4ed7cc]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4ed4c0
call fcn.004dc340
add esp, 0xc
test al, al
je 0x4dc4b5
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x4dc480
cmp word [eax], di
je 0x4dc480
lea eax, [ebp - 0x10]
push eax
call fcn.004dbd23
pop ecx
jmp 0x4dc4b7
lea eax, [ebp - 0x10]
push eax
call fcn.004dbdbe
jmp 0x4dc47d
mov eax, dword [edi]
test eax, eax
je 0x4dc4a2
cmp word [eax], dx
je 0x4dc4a2
lea eax, [ebp - 0x10]
push eax
call fcn.004dbcd8
pop ecx
jmp 0x4dc4b5
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 0x4dc580
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004dc1c5
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4dc580
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4dc580
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4dc580
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4dc50d
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004d0e89
test ebx, ebx
je 0x4dc57b
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004d0e89
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4dc580
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 0x4dc580
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004c9256
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4dc582
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b7879
leave
ret
Function at 0x4df7ce
Capabilities:
Read file via mapping

Disassembly:
call 0x391762af
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor eax, eax
cmp byte [ecx], al
je 0x4df7e8
pushal
pushfd
test edx, ebx
jo 0x4df7a4
sub ebx, eax
add eax, edi
mov eax, 0x72a7fa0
jg 0x4df814
pop es
mov ecx, ebx
rol eax, 0x11
xor esi, eax
call fcn.004143dd
shr esi, 0x18
xor esi, eax
mov edx, 0x300e5bd
dec edi
mov edx, dword [0x516578]
xor ecx, 0x2b80c2dc
xor eax, esi
and esi, edi
mov eax, edx
xor ebx, ebx
mov ecx, ecx
rol esi, 7
mov ecx, 0x4cd100
call fcn.004e5c5e
add dword [0x520810], ecx
shr edi, 0x19
dec eax
or dword [0x520872], ecx
sbb dword [eax + 9], ecx
or eax, 0x520872
inc eax
dec eax
mov dword [0x5209d0], 0x17051d06
neg eax
inc eax
loop 0x4df820
neg eax
mov ecx, 0x486e15
mov dword [0x520910], esi
xchg eax, eax
rol eax, 0xa
xchg eax, eax
or dword [0x520880], edi
and edi, dword [0x51552c]
rol eax, 0xa
test edx, edi
jb 0x4df82d
xchg edx, esi
call fcn.00413d43
test esp, esp
jo 0x4df8bc
inc esi
call fcn.00412823
loop 0x4df84d
mov ecx, 0xb89c98
xchg edx, esi
neg edx
call fcn.00412823
inc edi
dec esi
inc edi
call fcn.004143dd
rol ebx, 0xf
not eax
mov dword [0x520a6c], 0x27e6d8a
loop 0x4df885
mov edx, 0x1e160d
xor ecx, esp
and edx, 0xcfb253a
push 0
xchg eax, esi
inc ecx
ror edx, 6
call fcn.00413d43
add esi, eax
xor ecx, dword [0x517fcc]
ror esi, 0x17
dec ebx
sub edi, dword [0x5139b0]
sub ebx, dword [str.UUUU]
call fcn.00403459
and dword [0x520a31], 0x125b7263
neg eax
sub ebx, eax
sub ecx, dword [0x513893]
sub esi, dword [0x513bf4]
add edx, 0x1a8da2a6
xor eax, 0x6a3d728
inc esi
xchg edi, eax
call fcn.00406ec2
call fcn.004049aa
mov ebx, 0x88b
inc eax
xor ebx, dword [0x520ebc]
xor edi, dword [0x520d1c]
add ecx, esp
xor dword [0x520695], 0xf22e9d
sub edx, eax
xor edx, dword [0x520f08]
add edi, dword [0x520e07]
inc edi
xor esi, eax
xor esi, eax
dec edi
add edx, eax
sub dword [0x520a01], 0x12fa728
sub ecx, esp
dec eax
push ebx
mov dword [0x5206c4], ecx
call fcn.00406097
not eax
xor edx, 0x240be10
or dword [0x5209dc], ecx
xor esi, eax
neg esi
xchg esi, edx
not ecx
add eax, ecx
xor esi, eax
mov dword [0x5206a0], edx
not edi
not edi
xor dword [0x520a6f], edx
xor esi, eax
sub eax, ecx
not ecx
xchg esi, edx
neg esi
xor esi, eax
mov dword [0x5209e8], ecx
xor edx, 0x240be10
not eax
and dword [0x520808], esi
push 0
xor ecx, dword [0x520cac]
xor esi, eax
sub esi, eax
call fcn.004075dd
inc esi
xor ebx, edx
xor dword [0x5207ff], esi
xor eax, 0x5207ff
xor dword [0x520a58], ecx
mov dword [0x520a1d], 0xb93866e
xor esi, eax
or dword [0x520798], 0x7290720
add byte [eax], ah
pop es
sub dword [edi], eax
dec esi
xor esi, 0x15296515
xor dword [0x520a7e], 0xd2017e6
not esi
add esi, 0x1ebde66
xor esi, eax
call fcn.00403fdb
inc eax
sub edi, dword [0x520db6]
dec eax
call fcn.00406c36
Function at 0x4df9bd
Capabilities:
Read file via mapping

Disassembly:
call 0x391762af
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor eax, eax
cmp byte [ecx], al
je 0x4df7e8
pushal
pushfd
test edx, ebx
jo 0x4df7a4
sub ebx, eax
add eax, edi
mov eax, 0x72a7fa0
jg 0x4df814
pop es
mov ecx, ebx
rol eax, 0x11
xor esi, eax
call fcn.004143dd
shr esi, 0x18
xor esi, eax
mov edx, 0x300e5bd
dec edi
mov edx, dword [0x516578]
xor ecx, 0x2b80c2dc
xor eax, esi
and esi, edi
mov eax, edx
xor ebx, ebx
mov ecx, ecx
rol esi, 7
mov ecx, 0x4cd100
call fcn.004e5c5e
add dword [0x520810], ecx
shr edi, 0x19
dec eax
or dword [0x520872], ecx
sbb dword [eax + 9], ecx
or eax, 0x520872
inc eax
dec eax
mov dword [0x5209d0], 0x17051d06
neg eax
inc eax
loop 0x4df820
neg eax
mov ecx, 0x486e15
mov dword [0x520910], esi
xchg eax, eax
rol eax, 0xa
xchg eax, eax
or dword [0x520880], edi
and edi, dword [0x51552c]
rol eax, 0xa
test edx, edi
jb 0x4df82d
xchg edx, esi
call fcn.00413d43
test esp, esp
jo 0x4df8bc
inc esi
call fcn.00412823
loop 0x4df84d
mov ecx, 0xb89c98
xchg edx, esi
neg edx
call fcn.00412823
inc edi
dec esi
inc edi
call fcn.004143dd
rol ebx, 0xf
not eax
mov dword [0x520a6c], 0x27e6d8a
loop 0x4df885
mov edx, 0x1e160d
xor ecx, esp
and edx, 0xcfb253a
push 0
xchg eax, esi
inc ecx
ror edx, 6
call fcn.00413d43
add esi, eax
xor ecx, dword [0x517fcc]
ror esi, 0x17
dec ebx
sub edi, dword [0x5139b0]
sub ebx, dword [str.UUUU]
call fcn.00403459
and dword [0x520a31], 0x125b7263
neg eax
sub ebx, eax
sub ecx, dword [0x513893]
sub esi, dword [0x513bf4]
add edx, 0x1a8da2a6
xor eax, 0x6a3d728
inc esi
xchg edi, eax
call fcn.00406ec2
call fcn.004049aa
mov ebx, 0x88b
inc eax
xor ebx, dword [0x520ebc]
xor edi, dword [0x520d1c]
add ecx, esp
xor dword [0x520695], 0xf22e9d
sub edx, eax
xor edx, dword [0x520f08]
add edi, dword [0x520e07]
inc edi
xor esi, eax
xor esi, eax
dec edi
add edx, eax
sub dword [0x520a01], 0x12fa728
sub ecx, esp
dec eax
push ebx
mov dword [0x5206c4], ecx
call fcn.00406097
not eax
xor edx, 0x240be10
or dword [0x5209dc], ecx
xor esi, eax
neg esi
xchg esi, edx
not ecx
add eax, ecx
xor esi, eax
mov dword [0x5206a0], edx
not edi
not edi
xor dword [0x520a6f], edx
xor esi, eax
sub eax, ecx
not ecx
xchg esi, edx
neg esi
xor esi, eax
mov dword [0x5209e8], ecx
xor edx, 0x240be10
not eax
and dword [0x520808], esi
push 0
xor ecx, dword [0x520cac]
xor esi, eax
sub esi, eax
call fcn.004075dd
inc esi
xor ebx, edx
xor dword [0x5207ff], esi
xor eax, 0x5207ff
xor dword [0x520a58], ecx
mov dword [0x520a1d], 0xb93866e
xor esi, eax
or dword [0x520798], 0x7290720
add byte [eax], ah
pop es
sub dword [edi], eax
dec esi
xor esi, 0x15296515
xor dword [0x520a7e], 0xd2017e6
not esi
add esi, 0x1ebde66
xor esi, eax
call fcn.00403fdb
inc eax
sub edi, dword [0x520db6]
dec eax
call fcn.00406c36
Function at 0x4df9d9
Capabilities:
Read file via mapping

Disassembly:
call 0x391762af
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor eax, eax
cmp byte [ecx], al
je 0x4df7e8
pushal
pushfd
test edx, ebx
jo 0x4df7a4
sub ebx, eax
add eax, edi
mov eax, 0x72a7fa0
jg 0x4df814
pop es
mov ecx, ebx
rol eax, 0x11
xor esi, eax
call fcn.004143dd
shr esi, 0x18
xor esi, eax
mov edx, 0x300e5bd
dec edi
mov edx, dword [0x516578]
xor ecx, 0x2b80c2dc
xor eax, esi
and esi, edi
mov eax, edx
xor ebx, ebx
mov ecx, ecx
rol esi, 7
mov ecx, 0x4cd100
call fcn.004e5c5e
add dword [0x520810], ecx
shr edi, 0x19
dec eax
or dword [0x520872], ecx
sbb dword [eax + 9], ecx
or eax, 0x520872
inc eax
dec eax
mov dword [0x5209d0], 0x17051d06
neg eax
inc eax
loop 0x4df820
neg eax
mov ecx, 0x486e15
mov dword [0x520910], esi
xchg eax, eax
rol eax, 0xa
xchg eax, eax
or dword [0x520880], edi
and edi, dword [0x51552c]
rol eax, 0xa
test edx, edi
jb 0x4df82d
xchg edx, esi
call fcn.00413d43
test esp, esp
jo 0x4df8bc
inc esi
call fcn.00412823
loop 0x4df84d
mov ecx, 0xb89c98
xchg edx, esi
neg edx
call fcn.00412823
inc edi
dec esi
inc edi
call fcn.004143dd
rol ebx, 0xf
not eax
mov dword [0x520a6c], 0x27e6d8a
loop 0x4df885
mov edx, 0x1e160d
xor ecx, esp
and edx, 0xcfb253a
push 0
xchg eax, esi
inc ecx
ror edx, 6
call fcn.00413d43
add esi, eax
xor ecx, dword [0x517fcc]
ror esi, 0x17
dec ebx
sub edi, dword [0x5139b0]
sub ebx, dword [str.UUUU]
call fcn.00403459
and dword [0x520a31], 0x125b7263
neg eax
sub ebx, eax
sub ecx, dword [0x513893]
sub esi, dword [0x513bf4]
add edx, 0x1a8da2a6
xor eax, 0x6a3d728
inc esi
xchg edi, eax
call fcn.00406ec2
call fcn.004049aa
mov ebx, 0x88b
inc eax
xor ebx, dword [0x520ebc]
xor edi, dword [0x520d1c]
add ecx, esp
xor dword [0x520695], 0xf22e9d
sub edx, eax
xor edx, dword [0x520f08]
add edi, dword [0x520e07]
inc edi
xor esi, eax
xor esi, eax
dec edi
add edx, eax
sub dword [0x520a01], 0x12fa728
sub ecx, esp
dec eax
push ebx
mov dword [0x5206c4], ecx
call fcn.00406097
not eax
xor edx, 0x240be10
or dword [0x5209dc], ecx
xor esi, eax
neg esi
xchg esi, edx
not ecx
add eax, ecx
xor esi, eax
mov dword [0x5206a0], edx
not edi
not edi
xor dword [0x520a6f], edx
xor esi, eax
sub eax, ecx
not ecx
xchg esi, edx
neg esi
xor esi, eax
mov dword [0x5209e8], ecx
xor edx, 0x240be10
not eax
and dword [0x520808], esi
push 0
xor ecx, dword [0x520cac]
xor esi, eax
sub esi, eax
call fcn.004075dd
inc esi
xor ebx, edx
xor dword [0x5207ff], esi
xor eax, 0x5207ff
xor dword [0x520a58], ecx
mov dword [0x520a1d], 0xb93866e
xor esi, eax
or dword [0x520798], 0x7290720
add byte [eax], ah
pop es
sub dword [edi], eax
dec esi
xor esi, 0x15296515
xor dword [0x520a7e], 0xd2017e6
not esi
add esi, 0x1ebde66
xor esi, eax
call fcn.00403fdb
inc eax
sub edi, dword [0x520db6]
dec eax
call fcn.00406c36
Function at 0x4e0bfa
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.004e0b76
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4e0d69
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4e0d69
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4e0d1e
jg 0x4e0c56
test eax, eax
je 0x4e0d14
push 1
push 0x1000
call fcn.004c7db1
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4e0c79
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4e0d0b
push 0x8000
push ebx
call fcn.004cdb97
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4e0ca2
jg 0x4e0c9d
cmp ecx, 0x1000
jb 0x4e0ca2
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004d5937
add esp, 0x10
cmp eax, 0xffffffff
je 0x4e0ce7
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 0x4e0c9d
jl 0x4e0cce
test ecx, ecx
jne 0x4e0c8f
push dword [ebp - 0xc]
push ebx
call fcn.004cdb97
push esi
call fcn.004c7e0e
add esp, 0xc
xor ebx, ebx
jmp 0x4e0d77
cmp byte [edi + 0x24], 0
je 0x4e0cfe
cmp dword [edi + 0x20], 5
jne 0x4e0cfe
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4e0d09
mov ebx, dword [edi + 0x18]
jmp 0x4e0d0b
xor ebx, ebx
push esi
call fcn.004c7e0e
pop ecx
jmp 0x4e0d77
test ecx, ecx
jg 0x4e0ce0
jl 0x4e0d1e
test eax, eax
jae 0x4e0ce0
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004d773f
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4e0d3e
cmp byte [edi + 0x1c], 0
je 0x4e0ce0
jmp 0x4e0d6f
push ebx
call fcn.004d399f
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4e0ce0
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 0x4e0d77
cmp byte [edi + 0x1c], 0
je 0x4e0d74
mov ebx, dword [edi + 0x18]
jmp 0x4e0d77
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004d773f
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4e3a80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4e3aad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4e3aad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret