joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423e72
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.004216d0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x423f0d
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 [0x463a70]
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 0x423f0d
cmp eax, 1
je 0x423f2e
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 0x423f0d
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x423eda
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x423f09
xor eax, eax
inc eax
jmp 0x423f4d
cmp edi, eax
jae 0x423f11
xor eax, eax
jmp 0x423f4d
cmp eax, esi
jae 0x423f18
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 [0x463a70]
jmp 0x423f31
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 0x424abb
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x44f480]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x44f1a8]
je 0x424af0
inc eax
cmp eax, 0x13
jb 0x424ae1
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x44f1a8]
jne 0x424c16
mov eax, dword [0x463a50]
cmp eax, 1
je 0x424bee
cmp eax, edx
jne 0x424b20
cmp dword [0x44edd4], 1
je 0x424bee
cmp ecx, 0xfc
je 0x424c16
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x424b56
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00421930
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00422010
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x424b8a
mov eax, edi
push eax
call fcn.00422010
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x42c220
push edi
call fcn.00421710
add esp, 0x10
push edi
call fcn.00422010
push dword [esi + 0x44f1ac]
mov ebx, eax
call fcn.00422010
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004216d0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00421930
push edi
push ebx
call fcn.00421940
push 0x42c200
push ebx
call fcn.00421940
push dword [esi + 0x44f1ac]
push ebx
call fcn.00421940
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00427a2e
add esp, 0x2c
jmp 0x424c16
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x44f1ac]
push dword [esi]
call fcn.00422010
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.004269b4
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x42626b
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 0x426296
cmp eax, 1
je 0x426296
jle 0x42629e
cmp eax, 3
jle 0x426296
cmp eax, 4
jne 0x42629e
mov byte [ebp - 1], 1
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
jmp 0x4262c7
mov dword [0x463a64], 0x16
mov dword [0x463a68], ebx
or eax, 0xffffffff
jmp 0x426439
inc eax
cmp byte [eax], bl
jne 0x4262b6
lea ecx, [eax + 1]
cmp byte [ecx], bl
je 0x4262c7
mov byte [eax], 0x20
mov eax, ecx
cmp byte [eax], bl
jne 0x4262b6
push esi
push 0x44
pop esi
push esi
lea eax, [ebp - 0x68]
push ebx
push eax
call fcn.00421540
mov dword [ebp - 0x68], esi
mov esi, dword [0x463cc4]
add esp, 0xc
cmp esi, ebx
je 0x42630a
lea eax, [esi - 1]
mov ecx, eax
sar ecx, 5
mov ecx, dword [ecx*4 + 0x463ce0]
mov edx, eax
and edx, 0x1f
cmp byte [ecx + edx*8 + 4], bl
jne 0x42630a
dec esi
dec eax
cmp esi, ebx
jne 0x4262ed
lea eax, [esi + esi*4 + 4]
mov word [ebp - 0x36], ax
push edi
movzx eax, ax
push 1
push eax
call fcn.0042769b
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 0x42636f
mov eax, dword [ebp - 8]
mov edi, dword [ebp - 8]
sar eax, 5
mov eax, dword [eax*4 + 0x463ce0]
and edi, 0x1f
lea edi, [eax + edi*8]
mov al, byte [edi + 4]
test al, 0x10
jne 0x42635b
mov byte [ecx], al
mov eax, dword [edi]
mov dword [edx], eax
jmp 0x426360
mov byte [ecx], bl
or dword [edx], 0xffffffff
inc dword [ebp - 8]
inc ecx
add edx, 4
cmp dword [ebp - 8], esi
jl 0x426336
mov eax, dword [ebp - 0x34]
cmp byte [ebp - 1], bl
je 0x4263a0
lea ecx, [eax + 4]
xor edx, edx
lea eax, [eax + esi + 4]
cmp esi, 3
jge 0x426386
mov edi, esi
jmp 0x426389
push 3
pop edi
cmp edx, edi
jge 0x426399
mov byte [ecx], bl
or dword [eax], 0xffffffff
inc edx
inc ecx
add eax, 4
jmp 0x42637d
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 [0x463a64], ebx
push dword [ebp - 0xc]
mov dword [0x463a68], 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.00423db6
cmp esi, ebx
pop ecx
jne 0x4263ee
push edi
call fcn.00426649
pop ecx
or eax, 0xffffffff
jmp 0x426437
cmp dword [ebp + 8], 2
jne 0x4263fa
push ebx
call fcn.00422e11
cmp dword [ebp + 8], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x426427
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 0x426430
cmp dword [ebp + 8], 4
je 0x426420
mov ebx, dword [ebp - 0x24]
push dword [ebp - 0x20]
call esi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4277fa
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x463cc4]
mov eax, dword [0x44f480]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x4279c0
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x463ce0]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x4279c0
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x427864
xor eax, eax
jmp 0x4279d4
test al, 0x20
je 0x427875
push 2
push edi
push edi
push ecx
call fcn.00428f3b
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x42794a
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x427991
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x4278d7
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4278c8
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x4278aa
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x427917
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x427923
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x42789e
jmp 0x427925
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x4279bb
cmp dword [ebp + 0x3a4], edi
je 0x427991
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x427983
mov dword [0x463a68], eax
jmp 0x4279c7
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x427975
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x427925
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x427925
push dword [ebp + 0x3a4]
call fcn.00426649
pop ecx
jmp 0x4279d1
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4279a9
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x42785d
mov dword [0x463a64], 0x1c
mov dword [0x463a68], edi
jmp 0x4279d1
sub eax, dword [ebp - 0x7c]
jmp 0x4279d4
and dword [0x463a68], 0
mov dword [0x463a64], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.004269b4
add ebp, 0x39c
leave
ret
Function at 0x427a2e
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x463c84], ebx
push esi
push edi
jne 0x427aae
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x427ae9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42c2e4
push edi
call esi
test eax, eax
mov dword [0x463c84], eax
je 0x427ae9
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x463c88], eax
call esi
cmp dword [0x463a70], 2
mov dword [0x463c8c], eax
jne 0x427aae
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x463c94], eax
je 0x427aae
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x463c90], eax
mov eax, dword [0x463c90]
test eax, eax
je 0x427af3
call eax
test eax, eax
je 0x427ada
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x463c94]
test eax, eax
je 0x427ada
test byte [ebp - 8], 1
jne 0x427af3
cmp dword [0x463a7c], 4
jb 0x427aed
or byte [ebp + 0x12], 0x20
jmp 0x427b12
xor eax, eax
jmp 0x427b22
or byte [ebp + 0x12], 4
jmp 0x427b12
mov eax, dword [0x463c88]
test eax, eax
je 0x427b12
call eax
mov ebx, eax
test ebx, ebx
je 0x427b12
mov eax, dword [0x463c8c]
test eax, eax
je 0x427b12
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x463c84]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x428a55
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 0x428a6e
or eax, 0xffffffff
jmp 0x428acf
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x428acb
push 0x3d
push esi
call fcn.00426148
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x428acb
cmp esi, eax
je 0x428acb
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x463a90]
sete cl
cmp eax, dword [0x463a94]
mov dword [ebp - 8], ecx
jne 0x428ab1
mov edi, eax
call fcn.004289f4
mov dword [0x463a90], eax
cmp eax, ebx
jne 0x428b0a
cmp dword [ebp + 0xc], ebx
je 0x428ad3
cmp dword [0x463a98], ebx
je 0x428ad3
call fcn.004266e7
test eax, eax
je 0x428b0a
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x428adc
xor eax, eax
jmp 0x428ace
push 4
call fcn.00423e60
cmp eax, ebx
pop ecx
mov dword [0x463a90], eax
je 0x428acb
mov dword [eax], ebx
cmp dword [0x463a98], ebx
jne 0x428b0a
push 4
call fcn.00423e60
cmp eax, ebx
pop ecx
mov dword [0x463a98], eax
je 0x428acb
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x463a90]
call fcn.004289a7
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x428b6b
cmp dword [esi], ebx
je 0x428b6b
lea esi, [esi + edi*4]
push dword [esi]
call fcn.00423db6
cmp dword [ebp - 8], ebx
pop ecx
jne 0x428b4e
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x428bac
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x428b45
mov eax, edi
shl eax, 2
push eax
push dword [0x463a90]
call fcn.0042846d
cmp eax, ebx
pop ecx
pop ecx
je 0x428bac
jmp 0x428ba7
cmp dword [ebp - 8], ebx
jne 0x428c17
cmp edi, ebx
jge 0x428b7a
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x463a90]
call fcn.0042846d
cmp eax, ebx
pop ecx
pop ecx
je 0x428acb
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 [0x463a90], eax
cmp dword [ebp + 0xc], ebx
je 0x428c01
push dword [ebp - 4]
call fcn.00422010
inc eax
inc eax
push eax
call fcn.00423e60
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x428c01
push dword [ebp - 4]
push esi
call fcn.00421930
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 0x428bfa
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.00423db6
pop ecx
cmp dword [ebp - 8], ebx
je 0x428c0f
push dword [ebp - 4]
call fcn.00423db6
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x428ace
push dword [ebp - 4]
call fcn.00423db6
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x428ad8
Function at 0x408f8c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x417b90]
jne 0x408f96
repz ret
jmp fcn.0041199c

Function at 0x40b5eb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x417b90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00404cb1
and dword [ebp - 0x14], 0
cmp dword [0x445aa4], 0
mov dword [ebp - 0x18], eax
jne 0x40b69e
push 0x402acc
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40b746
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402ac0
push ebx
call edi
test eax, eax
je 0x40b746
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x402ab0
push ebx
mov dword [0x445aa4], eax
call edi
push eax
call esi
push 0x402a9c
push ebx
mov dword [0x445aa8], eax
call edi
push eax
call esi
push 0x402a80
push ebx
mov dword [0x445aac], eax
call edi
push eax
call esi
mov dword [0x445ab4], eax
test eax, eax
je 0x40b69e
push 0x402a68
push ebx
call edi
push eax
call esi
mov dword [0x445ab0], eax
mov eax, dword [0x445ab0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40b6f7
cmp dword [0x445ab4], ecx
je 0x40b6f7
push eax
call esi
push dword [0x445ab4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40b6f7
test ebx, ebx
je 0x40b6f7
call edi
test eax, eax
je 0x40b6ee
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40b6ee
test byte [ebp - 8], 1
jne 0x40b6f7
or dword [ebp + 0x10], 0x200000
jmp 0x40b72a
mov eax, dword [0x445aa8]
cmp eax, dword [ebp - 0x18]
je 0x40b72a
push eax
call esi
test eax, eax
je 0x40b72a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40b72a
mov eax, dword [0x445aac]
cmp eax, dword [ebp - 0x18]
je 0x40b72a
push eax
call esi
test eax, eax
je 0x40b72a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x445aa4]
call esi
test eax, eax
je 0x40b746
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40b748
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408f8c
leave
ret

Function at 0x4144c0
Capabilities:
Delete file
Get uefi variable

Disassembly:
sub esp, 0xc18
cmp dword [0x2b6f5fc], 0x37
jne 0x414528
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessId]
push 0
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
push 0
lea eax, [esp + 0x1c]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableW]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0xc]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputW]
push 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0
lea eax, [esp + 0x41c]
push eax
push 0x403408
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointW]
mov ecx, dword [0x2b6fa10]
mov eax, dword [0x2b6f0e0]
mov dl, byte [ecx + esi + 0x38d6]
mov byte [eax + esi], dl
add esp, 0xc18
ret
Function at 0x4144f2
Capabilities:
Get uefi variable

Disassembly:
sub esp, 0xc18
cmp dword [0x2b6f5fc], 0x37
jne 0x414528
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessId]
push 0
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
push 0
lea eax, [esp + 0x1c]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableW]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0xc]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputW]
push 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0
lea eax, [esp + 0x41c]
push eax
push 0x403408
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointW]
mov ecx, dword [0x2b6fa10]
mov eax, dword [0x2b6f0e0]
mov dl, byte [ecx + esi + 0x38d6]
mov byte [eax + esi], dl
add esp, 0xc18
ret
Function at 0x40c604
Capabilities:
Check http status code

Disassembly:
mov eax, 0x4a73dd
call fcn.0045797c
sub esp, 0x2c
push ebx
push esi
xor eax, eax
xor ebx, ebx
push edi
inc eax
mov edi, ecx
push eax
push eax
call fcn.004b6c00
pop ecx
push eax
lea eax, [ebp - 0x18]
push 0x4d6580
push eax
call fcn.0043fa6b
sub esp, 0x10
mov dword [ebp - 4], ebx
mov ecx, eax
mov esi, esp
call dword [sym.imp.mfc140u.dll_Ordinal_1663]
push eax
mov ecx, esi
call fcn.00443c24
mov ecx, edi
call fcn.0043333d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
cmp byte [edi + 0x18], bl
je 0x40c720
lea eax, [ebp - 0x38]
push ebx
push eax
call fcn.004b70b0
pop ecx
pop ecx
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], 1
jb 0x40c682
mov eax, dword [eax]
push ebx
push 0x4883000
push ebx
push ebx
push str.HTTP_1.0
push 0x4c768c
push eax
push dword [edi + 0x20]
call fcn.00439229
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
add esp, 0x20
mov esi, eax
call fcn.00443e59
test esi, esi
je 0x40c719
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 4
push eax
lea eax, [ebp - 0x10]
push eax
push 0x1f
push esi
call fcn.0041a554
or dword [ebp - 0x10], 0x180
lea eax, [ebp - 0x10]
push 4
push eax
push 0x1f
push esi
call fcn.0040d8ae
push ebx
push ebx
push ebx
push ebx
push esi
call fcn.004222d3
push ebx
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], ebx
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x20], 4
push eax
push 0x20000013
push esi
call fcn.0042d75d
add esp, 0x48
movzx ebx, bl
cmp dword [ebp - 0x14], 0xc8
push 1
pop ecx
cmove ebx, ecx
push esi
call fcn.004951d1
pop ecx
mov ecx, edi
call fcn.0046ae68
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x419e44
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 4]
or ecx, 0xffffffff
mov al, byte [edx]
test al, al
je 0x419e77
push esi
movzx eax, al
push 7
xor ecx, eax
pop esi
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor ecx, eax
sub esi, 1
jns 0x419e5a
inc edx
mov al, byte [edx]
test al, al
jne 0x419e52
pop esi
not ecx
mov eax, ecx
ret
Function at 0x43ce61
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov edx, dword [esp + 4]
movsx eax, byte [esp + 8]
mov ecx, dword [edx]
xor eax, ecx
movzx eax, al
shr ecx, 8
mov eax, dword [eax*4 + 0x4d51a8]
xor eax, ecx
mov ecx, dword [edx + 8]
mov dword [edx], eax
movzx eax, al
add eax, dword [edx + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4d51a8]
mov dword [edx + 8], ecx
ret
Function at 0x4410a6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0
push ebx
push edi
mov edi, ecx
mov dword [ebp - 8], edi
jne 0x4410cb
xor ebx, ebx
push ebx
push ebx
push ebx
push 2
call fcn.00442914
xor al, al
jmp 0x4411a2
push esi
call fcn.00440440
lea ecx, [edi + 4]
call fcn.0043fe4a
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
xor ebx, ebx
push 2
push ebx
push dword [ebp + 8]
call esi
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], eax
call esi
mov eax, dword [ebp - 4]
add esp, 0x1c
test eax, eax
jg 0x44110d
push ebx
push ebx
push ebx
push 0xc
jmp 0x44113d
inc eax
push eax
call dword [sym.imp.mfc140u.dll_operator_1]
push dword [ebp + 8]
mov esi, eax
push 1
push dword [ebp - 4]
push esi
mov byte [esi], bl
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x14
cmp eax, 1
je 0x441148
push esi
call dword [sym.imp.mfc140u.dll_operator]
pop ecx
push ebx
push ebx
push ebx
push 2
mov ecx, edi
call fcn.00442914
xor al, al
jmp 0x4411a1
mov edx, dword [ebp - 4]
mov eax, esi
mov ecx, esi
mov byte [esi + edx], bl
mov dl, byte [esi]
test dl, dl
je 0x441182
mov dword [ebp - 4], eax
lea edi, [ecx + 1]
inc eax
mov dword [ebp + 8], edi
cmp dl, 0xd
jne 0x441174
mov byte [ecx], 0xa
cmp byte [eax], 0xa
cmovne eax, dword [ebp - 4]
inc eax
jmp 0x441176
mov byte [ecx], dl
mov dl, byte [eax]
mov ecx, dword [ebp + 8]
test dl, dl
jne 0x441158
mov edi, dword [ebp - 8]
push dword [ebp + 0xc]
mov byte [ecx], bl
mov ecx, edi
mov eax, dword [edi]
push ebx
push esi
call dword [eax + 8]
push esi
call dword [sym.imp.mfc140u.dll_operator]
pop ecx
mov ecx, edi
call fcn.0044018b
xor al, 1
pop esi
pop edi
pop ebx
leave
ret 8

Function at 0x445cfa
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, ecx
sub esp, 0xc
cmp byte [edx + 4], 0
je 0x445d31
push esi
xor esi, esi
cmp dword [edx + 0x3cc], esi
jle 0x445d2c
mov ecx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
sub edi, ecx
mov al, byte [edi + ecx]
xor byte [ecx], al
inc ecx
inc esi
cmp esi, dword [edx + 0x3cc]
jl 0x445d1c
pop edi
pop esi
leave
ret 8
push dword [0x500910]
lea ecx, [ebp - 0xc]
call fcn.00445c68
push 0x4ed3d8
lea eax, [ebp - 0xc]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x4461e3
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push 0x2e
pop eax
push 0x6e
mov word [ebp - 0x20], ax
xor ebx, ebx
pop eax
push 0x65
pop edx
push 0x32
mov word [ebp - 0x2a], ax
pop eax
push 0x6c
mov word [ebp - 0x22], ax
pop eax
push 0x64
pop ecx
push 0x72
mov word [ebp - 0x1c], ax
mov word [ebp - 0x1a], ax
mov word [ebp - 0x26], ax
pop eax
push 0x33
mov word [ebp - 0x2c], ax
pop eax
mov word [ebp - 0x24], ax
push 0x4b
pop eax
mov word [ebp - 0x30], ax
xor eax, eax
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x30]
mov word [ebp - 0x2e], dx
push eax
mov word [ebp - 0x28], dx
mov word [ebp - 0x1e], cx
mov word [ebp - 0xe], 0x6c75
mov byte [ebp - 0x13], dl
mov byte [ebp - 0xc], dl
mov byte [ebp - 8], dl
mov word [ebp - 0x11], 0x6f4d
mov word [ebp - 0xa], 0x6c69
mov byte [ebp - 4], dl
mov word [ebp - 3], 0x57
mov byte [ebp - 0xf], cl
mov byte [ebp - 0xb], 0x46
mov word [ebp - 6], 0x6d61
mov byte [ebp - 7], 0x4e
mov byte [ebp - 0x14], 0x47
mov byte [ebp - 0x12], 0x74
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4462a0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
mov ebx, eax
mov eax, ebx
pop ebx
leave
ret