joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415597
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0040f910
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x415632
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x422104]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x415632
cmp eax, 1
je 0x415653
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x415632
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4155ff
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x41562e
xor eax, eax
inc eax
jmp 0x415672
cmp edi, eax
jae 0x415636
xor eax, eax
jmp 0x415672
cmp eax, esi
jae 0x41563d
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x422104]
jmp 0x415656
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4172e5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x422334], ebx
push esi
push edi
jne 0x417365
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4173a0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41efb0
push edi
call esi
test eax, eax
mov dword [0x422334], eax
je 0x4173a0
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x422338], eax
call esi
cmp dword [0x422104], 2
mov dword [0x42233c], eax
jne 0x417365
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x422344], eax
je 0x417365
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x422340], eax
mov eax, dword [0x422340]
test eax, eax
je 0x4173aa
call eax
test eax, eax
je 0x417391
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x422344]
test eax, eax
je 0x417391
test byte [ebp - 8], 1
jne 0x4173aa
cmp dword [0x422110], 4
jb 0x4173a4
or byte [ebp + 0x12], 0x20
jmp 0x4173c9
xor eax, eax
jmp 0x4173d9
or byte [ebp + 0x12], 4
jmp 0x4173c9
mov eax, dword [0x422338]
test eax, eax
je 0x4173c9
call eax
mov ebx, eax
test ebx, ebx
je 0x4173c9
mov eax, dword [0x42233c]
test eax, eax
je 0x4173c9
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x422334]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4173de
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x41740c
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x417413
cmp ebx, dword [eax + 4]
jae 0x417413
xor eax, eax
jmp 0x417603
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x417424
xor eax, eax
inc eax
jmp 0x417602
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x41743a
cmp ecx, edx
jae 0x41757f
cmp dword [eax + 4], 0
je 0x417443
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x41742b
cmp dword [ebp + 8], 0
je 0x417465
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x41757f
cmp eax, esi
jae 0x41757f
mov eax, dword [0x422348]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x41748a
cmp dword [esi*4 + 0x422350], edi
je 0x417583
inc esi
cmp esi, eax
jl 0x417478
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4175ff
cmp dword [ebp - 8], 0x1000000
jne 0x4175ff
test byte [ebp - 0xc], 0xcc
je 0x417508
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4175ff
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4175ff
cmp word [eax + 0x18], 0x10b
jne 0x4175ff
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4175ff
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x417508
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x417508
test byte [ecx + 0x27], 0x80
jne 0x41757f
push 1
push 0x422390
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x41741c
mov ecx, dword [0x422348]
test ecx, ecx
mov edx, ecx
jle 0x41753c
lea eax, [ecx*4 + 0x42234c]
cmp dword [eax], edi
je 0x41753c
dec edx
sub eax, 4
test edx, edx
jg 0x417530
test edx, edx
jne 0x41756d
push 0xf
pop ebx
cmp ecx, ebx
jg 0x417549
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x417561
lea eax, [edx*4 + 0x422350]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x41754f
cmp ecx, 0x10
jge 0x41756d
inc ecx
mov dword [0x422348], ecx
push 0
push 0x422390
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x41741c
xor eax, eax
jmp 0x417602
test esi, esi
jle 0x41741c
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x422390
call ebx
test eax, eax
jne 0x41741c
cmp dword [esi*4 + 0x422350], edi
je 0x4175d9
mov eax, dword [0x422348]
lea esi, [eax - 1]
test esi, esi
jl 0x4175c7
cmp dword [esi*4 + 0x422350], edi
je 0x4175c3
dec esi
jns 0x4175b7
test esi, esi
jge 0x4175d7
cmp eax, 0x10
jge 0x4175d2
inc eax
mov dword [0x422348], eax
lea esi, [eax - 1]
jmp 0x4175d9
je 0x4175f1
xor ecx, ecx
test esi, esi
jl 0x4175f1
lea eax, [ecx*4 + 0x422350]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4175df
push 0
push 0x422390
call ebx
jmp 0x41741c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4178c8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x42248c]
push edi
jae 0x417a9d
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x4224a0]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x417a9d
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x417973
test dl, 2
jne 0x417973
test dl, 0x48
je 0x41793d
cmp byte [eax + 5], 0xa
je 0x41793d
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x417986
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x41796e
mov dword [0x4220fc], ecx
jmp 0x417aa4
cmp eax, 0x6d
jne 0x41797a
xor eax, eax
jmp 0x417ab1
push eax
call fcn.00414182
pop ecx
jmp 0x417aae
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x417a98
test eax, eax
je 0x4179ad
cmp byte [ebx], 0xa
jne 0x4179ad
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x4179b6
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x417a92
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x417a82
cmp al, 0xd
je 0x4179e8
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x417a74
dec ecx
cmp dword [ebp - 8], ecx
jae 0x417a02
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x4179fd
add dword [ebp - 8], 2
jmp 0x417a56
mov dword [ebp - 8], eax
jmp 0x417a70
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x417a2a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x417a70
cmp dword [ebp - 0x10], 0
je 0x417a70
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x417a4b
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x417a56
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x417a73
cmp ebx, dword [ebp + 0xc]
jne 0x417a5b
cmp byte [ebp - 1], 0xa
jne 0x417a5b
mov byte [ebx], 0xa
jmp 0x417a73
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004139fc
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x417a74
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x4179cc
jmp 0x417a92
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x417a92
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x417ab1
and dword [0x4220fc], 0
mov dword [0x4220f8], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41836b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0xc], ebx
mov byte [ebp - 1], bl
je 0x418396
cmp eax, 1
je 0x418396
jle 0x41839e
cmp eax, 3
jle 0x418396
cmp eax, 4
jne 0x41839e
mov byte [ebp - 1], 1
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
jmp 0x4183c7
mov dword [0x4220f8], 0x16
mov dword [0x4220fc], ebx
or eax, 0xffffffff
jmp 0x418539
inc eax
cmp byte [eax], bl
jne 0x4183b6
lea ecx, [eax + 1]
cmp byte [ecx], bl
je 0x4183c7
mov byte [eax], 0x20
mov eax, ecx
cmp byte [eax], bl
jne 0x4183b6
push esi
push 0x44
pop esi
push esi
lea eax, [ebp - 0x68]
push ebx
push eax
call fcn.004149e0
mov dword [ebp - 0x68], esi
mov esi, dword [0x42248c]
add esp, 0xc
cmp esi, ebx
je 0x41840a
lea eax, [esi - 1]
mov ecx, eax
sar ecx, 5
mov ecx, dword [ecx*4 + 0x4224a0]
mov edx, eax
and edx, 0x1f
cmp byte [ecx + edx*8 + 4], bl
jne 0x41840a
dec esi
dec eax
cmp esi, ebx
jne 0x4183ed
lea eax, [esi + esi*4 + 4]
mov word [ebp - 0x36], ax
push edi
movzx eax, ax
push 1
push eax
call fcn.0040f662
cmp esi, ebx
mov dword [ebp - 0x34], eax
pop ecx
mov dword [eax], esi
mov eax, dword [ebp - 0x34]
pop ecx
mov dword [ebp - 8], ebx
lea ecx, [eax + 4]
lea edx, [eax + esi + 4]
jle 0x41846f
mov eax, dword [ebp - 8]
mov edi, dword [ebp - 8]
sar eax, 5
mov eax, dword [eax*4 + 0x4224a0]
and edi, 0x1f
lea edi, [eax + edi*8]
mov al, byte [edi + 4]
test al, 0x10
jne 0x41845b
mov byte [ecx], al
mov eax, dword [edi]
mov dword [edx], eax
jmp 0x418460
mov byte [ecx], bl
or dword [edx], 0xffffffff
inc dword [ebp - 8]
inc ecx
add edx, 4
cmp dword [ebp - 8], esi
jl 0x418436
mov eax, dword [ebp - 0x34]
cmp byte [ebp - 1], bl
je 0x4184a0
lea ecx, [eax + 4]
xor edx, edx
lea eax, [eax + esi + 4]
cmp esi, 3
jge 0x418486
mov edi, esi
jmp 0x418489
push 3
pop edi
cmp edx, edi
jge 0x418499
mov byte [ecx], bl
or dword [eax], 0xffffffff
inc edx
inc ecx
add eax, 4
jmp 0x41847d
mov dword [ebp - 0xc], 8
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
push dword [ebp + 0x14]
mov dword [0x4220f8], ebx
push dword [ebp - 0xc]
mov dword [0x4220fc], ebx
push 1
push ebx
push ebx
push dword [ebp - 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x34]
mov edi, eax
call fcn.0040e757
cmp esi, ebx
pop ecx
jne 0x4184ee
push edi
call fcn.00414182
pop ecx
or eax, 0xffffffff
jmp 0x418537
cmp dword [ebp + 8], 2
jne 0x4184fa
push ebx
call fcn.00410619
cmp dword [ebp + 8], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x418527
push 0xffffffffffffffff
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ebx, dword [ebp - 0x14]
push dword [ebp - 0x24]
call esi
jmp 0x418530
cmp dword [ebp + 8], 4
je 0x418520
mov ebx, dword [ebp - 0x24]
push dword [ebp - 0x20]
call esi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x418946
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x41efc8
call fcn.00413024
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x4223c0], edi
jne 0x41898a
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x418975
mov dword [0x4223c0], ebx
jmp 0x41898a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x41898a
mov dword [0x4223c0], 2
mov eax, dword [0x4223c0]
cmp eax, ebx
jne 0x4189aa
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x418a6d
cmp eax, 2
je 0x4189b3
cmp eax, edi
jne 0x4189db
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x4189c6
mov eax, dword [0x4222bc]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x4189e2
xor eax, eax
jmp 0x418a6d
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.0040f910
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x418a15
cmp esi, edi
jne 0x418a2b
push dword [ebp - 0x20]
call fcn.0040e898
pop ecx
mov esi, eax
cmp esi, edi
je 0x4189db
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x418a5e
cmp dword [ebp + 0x14], edi
jne 0x418a48
push edi
push edi
jmp 0x418a4e
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x418a6a
push esi
call fcn.0040e757
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.0041305f
ret
Function at 0x418a76
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x41efd8
call fcn.00413024
xor esi, esi
cmp dword [0x4223c4], esi
jne 0x418aba
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x418aa5
mov dword [0x4223c4], edi
jmp 0x418aba
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x418aba
mov dword [0x4223c4], 2
mov eax, dword [0x4223c4]
cmp eax, 2
je 0x418b9b
cmp eax, esi
je 0x418b9b
cmp eax, 1
jne 0x418aff
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x418ae8
mov eax, dword [0x4222bc]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x418b06
xor eax, eax
jmp 0x418bad
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.0040f910
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x418b3c
cmp edi, esi
jne 0x418b57
lea eax, [ebx + ebx]
push eax
call fcn.0040e898
pop ecx
mov edi, eax
cmp edi, esi
je 0x418aff
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x418b8a
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x418b74
push esi
push esi
jmp 0x418b7a
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x418b96
push edi
call fcn.0040e757
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x418bad
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.0041305f
ret
Function at 0x419cdb
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x419cf4
or eax, 0xffffffff
jmp 0x419d55
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x419d51
push 0x3d
push esi
call fcn.00418304
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x419d51
cmp esi, eax
je 0x419d51
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x422124]
sete cl
cmp eax, dword [0x422128]
mov dword [ebp - 8], ecx
jne 0x419d37
mov edi, eax
call fcn.00419c7a
mov dword [0x422124], eax
cmp eax, ebx
jne 0x419d90
cmp dword [ebp + 0xc], ebx
je 0x419d59
cmp dword [0x42212c], ebx
je 0x419d59
call fcn.00418788
test eax, eax
je 0x419d90
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x419d62
xor eax, eax
jmp 0x419d54
push 4
call fcn.0040e898
cmp eax, ebx
pop ecx
mov dword [0x422124], eax
je 0x419d51
mov dword [eax], ebx
cmp dword [0x42212c], ebx
jne 0x419d90
push 4
call fcn.0040e898
cmp eax, ebx
pop ecx
mov dword [0x42212c], eax
je 0x419d51
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x422124]
call fcn.00419c2d
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x419df1
cmp dword [esi], ebx
je 0x419df1
lea esi, [esi + edi*4]
push dword [esi]
call fcn.0040e757
cmp dword [ebp - 8], ebx
pop ecx
jne 0x419dd4
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x419e32
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x419dcb
mov eax, edi
shl eax, 2
push eax
push dword [0x422124]
call fcn.00416c90
cmp eax, ebx
pop ecx
pop ecx
je 0x419e32
jmp 0x419e2d
cmp dword [ebp - 8], ebx
jne 0x419e9d
cmp edi, ebx
jge 0x419e00
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x422124]
call fcn.00416c90
cmp eax, ebx
pop ecx
pop ecx
je 0x419d51
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x422124], eax
cmp dword [ebp + 0xc], ebx
je 0x419e87
push dword [ebp - 4]
call fcn.00410710
inc eax
inc eax
push eax
call fcn.0040e898
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x419e87
push dword [ebp - 4]
push esi
call fcn.00413230
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x419e80
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.0040e757
pop ecx
cmp dword [ebp - 8], ebx
je 0x419e95
push dword [ebp - 4]
call fcn.0040e757
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x419d54
push dword [ebp - 4]
call fcn.0040e757
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x419d5e
Function at 0x41a031
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0040f910
mov eax, dword [0x421260]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0x42248c]
mov dword [ebp - 4], eax
jae 0x41a174
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x4224a0]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x41a174
push 1
push esi
push ebx
call fcn.004139fc
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0x1008], eax
je 0x41a17e
push 2
push esi
push ebx
call fcn.004139fc
add esp, 0xc
cmp eax, 0xffffffff
je 0x41a17e
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x41a11e
push 0x1000
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.004149e0
push 0x8000
push ebx
call fcn.0041a470
add esp, 0x14
mov dword [ebp + 8], eax
mov eax, 0x1000
cmp edi, eax
jge 0x41a0dd
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push ebx
call fcn.0041350b
add esp, 0xc
cmp eax, 0xffffffff
je 0x41a0fb
sub edi, eax
test edi, edi
jg 0x41a0d2
jmp 0x41a111
cmp dword [0x4220fc], 5
jne 0x41a10e
mov dword [0x4220f8], 0xd
or esi, 0xffffffff
push dword [ebp + 8]
push ebx
call fcn.0041a470
pop ecx
pop ecx
jmp 0x41a15e
jge 0x41a15e
push 0
push dword [ebp + 0xc]
push ebx
call fcn.004139fc
push ebx
call fcn.0041788c
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, 0xffffffff
jne 0x41a15e
mov dword [0x4220f8], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4220fc], eax
push 0
push dword [ebp - 0x1008]
push ebx
call fcn.004139fc
add esp, 0xc
mov eax, esi
pop edi
jmp 0x41a181
mov dword [0x4220f8], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0040e818
leave
ret
Function at 0x41a4f8
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push 0x128
push 0x41f188
call fcn.00413024
mov eax, dword [0x421260]
mov dword [ebp - 0x1c], eax
lea edi, [ebp - 0x124]
xor ebx, ebx
mov dword [ebp - 0x130], ebx
or dword [ebp - 0x12c], 0xffffffff
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x41a605
mov eax, edi
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
mov dword [ebp - 0x134], esi
cmp esi, 0x104
jle 0x41a5b6
mov dword [ebp - 4], ebx
lea eax, [esi + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.0040f910
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x138], edi
jmp 0x41a5a3
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x41a605
push edi
inc esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
cmp esi, ebx
je 0x41a605
mov al, byte [edi]
cmp al, 0x5c
je 0x41a5c4
cmp al, 0x2f
jne 0x41a5c9
cmp al, byte [edi + 1]
je 0x41a5ff
mov byte [ebp - 0x128], 0x3d
movzx eax, byte [edi]
push eax
call fcn.0041a63b
pop ecx
mov byte [ebp - 0x127], al
mov byte [ebp - 0x126], 0x3a
mov byte [ebp - 0x125], bl
push edi
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
je 0x41a605
mov dword [ebp - 0x12c], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00414182
pop ecx
cmp dword [ebp - 0x130], ebx
je 0x41a621
push edi
call fcn.0040e757
pop ecx
mov eax, dword [ebp - 0x12c]
lea esp, [ebp - 0x144]
mov ecx, dword [ebp - 0x1c]
call fcn.0040e818
call fcn.0041305f
ret