joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10008900
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x124
mov eax, dword [0x10063040]
xor eax, esp
mov dword [esp + 0x120], eax
cmp dword [0x10063ad8], 1
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov esi, ecx
je 0x10008954
mov eax, dword [0x10063ad4]
test eax, eax
je 0x10008954
cmp eax, 0x3e7
je 0x10008943
dec eax
mov dword [0x10063ad4], eax
test esi, esi
jne 0x1000896b
push str.GetAchievementAndUnlockTime_Failed_____pchName_is_nullptr__r_n
call fcn.100020e0
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.1002bc62
mov esp, ebp
pop ebp
ret
test ebx, ebx
jne 0x10008976
push str.GetAchievementAndUnlockTime_Failed_____pbAchieved_is_nullptr__r_n
jmp 0x1000894c
test edi, edi
jne 0x10008982
push str.GetAchievementAndUnlockTime_Failed_____prtTime_is_nullptr__r_n
nop
jmp 0x1000894c
push esi
push str.GetAchievementAndUnlockTime______s_r_n
call fcn.100020e0
push 0x104
lea eax, [esp + 0x2c]
mov byte [ebx], 0
push 0
push eax
mov dword [edi], 0
call fcn.1002d740
add esp, 0x14
lea eax, [esp + 0x20]
push esi
push str._s_Time
push 0xffffffffffffffff
push 0x104
push eax
call fcn.100013a0
add esp, 0x14
mov byte [esp + 0xf], 0
lea edx, [esp + 0xf]
mov ecx, esi
push 1
call fcn.10008540
add esp, 4
cmp byte [esp + 0xf], 1
jne 0x10008a70
push esi
push str.GetAchievementAndUnlockTime______s_r_n
call fcn.100020e0
add esp, 8
mov byte [ebx], 1
lea eax, [esp + 0x10]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x1c], 4
push eax
push 0x20019
push 0
push 0x10067850
push 0x80000001
mov dword [esp + 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10008a70
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x24]
push eax
push 0
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword ds:[esp + 0x10]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x10008a70
mov eax, dword [esp + 0x14]
mov dword [edi], eax
mov ecx, dword ds:[esp + 0x12c]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1002bc62
mov esp, ebp
pop ebp
ret
Function at 0x10024e40
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10063040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
cmp eax, 1
jne 0x10025007
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.ntdll.dll
call esi
push str.RtlImageNtHeader
push eax
mov dword [0x10067e88], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.steamclient.dll
mov dword [0x10066480], eax
call esi
mov esi, eax
test esi, esi
je 0x10024ed8
push esi
call dword [0x10066480]
push str.xxx____x____x____
push 0x1005bbcc
mov ecx, esi
mov edx, dword [eax + 0x50]
call fcn.10001d40
add esp, 8
mov dword [0x10072dc0], eax
test eax, eax
je 0x10024ed8
push ecx
lea edx, [ebp - 0xc]
mov word [ebp - 0xc], 0x18eb
call fcn.10001dc0
add esp, 4
lea eax, [ebp - 8]
mov dword [0x10066898], edi
push eax
push 0
push 2
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
jne 0x10024f12
push 0x10
push str.GreenLuma_2023
push str.Unable_to_get_exe_path___1_
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x104
push 0x10067958
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x10024f46
push 0x10
push str.GreenLuma_2023
push str.Unable_to_get_exe_path___2_
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x7a
jne 0x10024f6f
push 0x10
push str.GreenLuma_2023
push str.Unable_to_get_exe_path___3_
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x104
push 0x10066068
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x10024fa6
push 0x10
push str.GreenLuma_2023
push str.Unable_to_get_dll_path___1_
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call esi
cmp eax, 0x7a
jne 0x10024fce
push 0x10
push str.GreenLuma_2023
push str.Unable_to_get_dll_path___2_
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x10067958
push 0x104
push 0x10068500
call fcn.10035f1d
push 0x10066068
push 0x104
push 0x10072ba8
call fcn.10035f1d
add esp, 0x18
xor ecx, ecx
call fcn.100230a0
jmp 0x1002506a
test eax, eax
jne 0x1002506a
cmp byte [0x10065c45], al
jne 0x1002506a
call fcn.10026af0
cmp dword [0x100731ec], 0
nop
je 0x10025029
xor ecx, ecx
call fcn.10026a60
xor eax, eax
mov ecx, 0x100731e8
xchg dword [ecx], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtCreateUserProcess
push dword [0x10067e88]
call esi
mov ecx, eax
call fcn.10026f60
push str.NtResumeThread
push dword [0x10067e88]
call esi
mov ecx, eax
call fcn.10026f60
call fcn.10026b40
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.1002bc62
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10026960
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10063040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
imul esi, ecx, 0x2c
mov ebx, edx
mov dword [ebp - 8], 0
push edi
add esi, dword [0x10073218]
mov eax, dword [esi]
mov cl, byte [esi + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ecx, [ebp - 8]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push edi
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x100269c9
pop edi
pop esi
mov eax, 0xa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002bc62
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x100269eb
mov byte ds:[edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x10026a0c
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x10026a0c
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x10026a06
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x10026a0c
mov al, byte [esi + 0x10]
mov byte [edi + 4], al
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov cl, bl
xor eax, eax
add cl, cl
shl bl, 2
xor cl, byte [esi + 0x14]
and cl, 2
xor cl, byte [esi + 0x14]
xor bl, cl
and bl, 4
xor bl, cl
mov ecx, dword [ebp - 4]
pop edi
mov byte [esi + 0x14], bl
xor ecx, ebp
pop esi
pop ebx
call fcn.1002bc62
mov esp, ebp
pop ebp
ret
Function at 0x1002f692
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10049d70
mov eax, dword [0x10063040]
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.1003b132
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1002f6d4
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1002f830
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10049cc0
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 + 0x100656a8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1003b341
mov ecx, dword [esi*4 + 0x100656a8]
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 0x1002f829
cmp eax, dword [ecx + edi + 0x24]
jne 0x1002f829
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 0x1002f829
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1003b341
add esp, 0x14
test edx, edx
jl 0x1002f829
jg 0x1002f79f
test eax, eax
jb 0x1002f829
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1002f829
jl 0x1002f7b9
cmp dword [ebp - 0x1008], eax
ja 0x1002f829
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1002f7d7
test ebx, ebx
je 0x1002f810
cmp ecx, edi
jae 0x1002f810
mov al, byte [ecx]
cmp al, 0xd
jne 0x1002f7f1
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1002f7fd
cmp byte [ecx + 1], 0xa
jne 0x1002f7fd
inc ecx
jmp 0x1002f7fd
movzx eax, al
movsx eax, byte [eax + 0x10063240]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1002f7d7
cmp edx, ebx
jne 0x1002f7d7
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1002f82e
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1002bc62
leave
ret

Function at 0x1003a243
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1003a282
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1003a282
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1003a282
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1003a282
cmp dword [ecx + 0x74], 0xe
jbe 0x1003a282
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1003bab2
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 + 0x100656a8]
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 0x1003baf2
cmp byte [ebx], 0xa
jne 0x1003baf2
or byte [edi + eax + 0x28], 4
jmp 0x1003baf7
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 0x1003bbf6
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1003bbd9
inc eax
cmp dl, 0xd
je 0x1003bb23
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1003bb49
cmp eax, ecx
jae 0x1003bb57
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 0x1003bb0b
jmp 0x1003bbf6
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 0x1003bbd4
cmp dword [ebp - 0x10], 0
je 0x1003bbd4
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100656a8]
test byte [eax + edi + 0x28], 0x48
je 0x1003bbae
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1003bb99
mov byte [esi], dl
jmp 0x1003bbaa
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100656a8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1003bbf6
cmp byte [ebp - 1], 0xa
jne 0x1003bbbd
cmp esi, ebx
jne 0x1003bbbd
mov byte [esi], 0xa
jmp 0x1003bbf5
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1003b35f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1003bbf6
mov byte [esi], 0xd
jmp 0x1003bbf5
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100656a8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1003bbf3
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1003bbf6
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1003bbff
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 + 0x100656a8]
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 0x1003bc45
cmp word [ebx], dx
jne 0x1003bc45
or byte [eax + edi + 0x28], 4
jmp 0x1003bc4a
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 0x1003bdad
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 0x1003bd8d
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1003bc8b
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1003bcc1
cmp eax, edx
jae 0x1003bccf
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 0x1003bc66
jmp 0x1003bdad
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 0x1003bd88
cmp dword [ebp - 0x18], 0
je 0x1003bd88
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x100656a8]
test byte [eax + edi + 0x28], 0x48
je 0x1003bd5e
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 0x1003bd22
mov word [esi], cx
jmp 0x1003bd59
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x100656a8]
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 + 0x100656a8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100656a8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1003bdad
pop eax
cmp word [ebp - 4], ax
jne 0x1003bd6e
cmp esi, ebx
jne 0x1003bd6e
mov word [esi], ax
jmp 0x1003bdaa
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1003b35f
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1003bdad
push 0xd
pop eax
jmp 0x1003bd69
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x100656a8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1003bda7
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1003bdad
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 0x1003e21b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1004dad8
push 0x1004dad0
push str.FlsAlloc
push 0x1f
call fcn.1003e0da
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1003e24f
push dword [ebp + 8]
mov ecx, esi
call dword [0x1004b1ac]
call esi
jmp 0x1003e255
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1003e299
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1004dae8
push 0x1004dae0
push str.FlsGetValue
push 0x21
call fcn.1003e0da
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1003e2d0
push dword [ebp + 8]
mov ecx, esi
call dword [0x1004b1ac]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1003e2d8
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1004daf0
push 0x1004dae8
push str.FlsSetValue
push 0x22
call fcn.1003e0da
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1003e312
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1004b1ac]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10041327
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 0x100413c4
push ebx
push esi
call fcn.100412f0
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.10041284
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10041371
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100413c3
push edi
push eax
call fcn.1003c65e
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10041391
call fcn.1003c624
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100413c2
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10041284
add esp, 0x20
test eax, eax
jne 0x100413b0
push edi
call fcn.1003c624
jmp 0x100413b8
push ebx
call fcn.1003c624
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 0x100413c7
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x100413d8
pop esi
ret
push ebx
push edi
push esi
call fcn.100412f0
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1003c65e
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10041400
push ebx
push esi
push edi
call fcn.1002d900
add esp, 0xc
push 0
call fcn.1003c624
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x100417d0
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10041415
Function at 0x100479e1
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.1004795d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10047b50
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10047b50
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10047b05
jg 0x10047a3d
test eax, eax
je 0x10047afb
push 1
push 0x1000
call fcn.1003df49
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10047a60
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10047af2
push 0x8000
push ebx
call fcn.1004788e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x10047a89
jg 0x10047a84
cmp ecx, 0x1000
jb 0x10047a89
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10045c42
add esp, 0x10
cmp eax, 0xffffffff
je 0x10047ace
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 0x10047a84
jl 0x10047ab5
test ecx, ecx
jne 0x10047a76
push dword [ebp - 0xc]
push ebx
call fcn.1004788e
push esi
call fcn.1003c624
add esp, 0xc
xor ebx, ebx
jmp 0x10047b5e
cmp byte [edi + 0x24], 0
je 0x10047ae5
cmp dword [edi + 0x20], 5
jne 0x10047ae5
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10047af0
mov ebx, dword [edi + 0x18]
jmp 0x10047af2
xor ebx, ebx
push esi
call fcn.1003c624
pop ecx
jmp 0x10047b5e
test ecx, ecx
jg 0x10047ac7
jl 0x10047b05
test eax, eax
jae 0x10047ac7
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1003b35f
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10047b25
cmp byte [edi + 0x1c], 0
je 0x10047ac7
jmp 0x10047b56
push ebx
call fcn.10042060
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10047ac7
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 0x10047b5e
cmp byte [edi + 0x1c], 0
je 0x10047b5b
mov ebx, dword [edi + 0x18]
jmp 0x10047b5e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1003b35f
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10049c10
Capabilities:
Parse pe header

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

Disassembly:
cmp dword [0x42c60c], 0
push esi
jne 0x405cf2
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405ccc
mov dword [ecx*4 + 0x42c608], eax
inc ecx
cmp ecx, 0x100
jl 0x405cc7
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405d23
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42c608]
xor eax, esi
inc ecx
dec edx
jne 0x405d05
pop edi
not eax
pop esi
ret 0xc

Function at 0x4ca25b
Capabilities:
Encode data using xor

Disassembly:
push esp
sbb byte [edi - 0x91b963f], 0x84
paddw mm3, qword [esi]
mov byte [eax], ch
ljmp 0xfb06
test byte [ecx - 0x23f4a90a], al
fldcw word [eax + 0x6a]
inc eax
pushfd
imul byte [eax + 0x2c]
xor byte [esi + esi*4], dh
jecxz 0x4ca265
mov dh, 0xe3
neg dword [0x6fdef8a1]
sbb eax, 0x6fdef8a1
sub byte [eax], 0x81
mov dh, 0x75
ja 0x4ca26b
out dx, al
cmp byte [eax], 0x85
inc edx
pop edx
inc ebp
sti
jnp 0x4ca221
in al, 0xed
inc esp
dec eax
mul dword [ecx]
push edi
push ecx
lodsb al, byte [esi]
not edx
fmul qword [ebp + 0x200bc038]
ljmp 0xd420