joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401b93
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x474d70
call fcn.004034ac
mov edi, 0x94
mov eax, edi
call fcn.00403500
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x4766fc], ecx
mov eax, dword [esi + 4]
mov dword [0x476708], eax
mov edx, dword [esi + 8]
mov dword [0x47670c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x476700], esi
cmp ecx, 2
je 0x401bf3
or esi, 0x8000
mov dword [0x476700], esi
shl eax, 8
add eax, edx
mov dword [0x476704], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x401c2e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401c2e
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x401c46
cmp eax, 0x20b
je 0x401c33
mov dword [ebp - 0x1c], esi
jmp 0x401c5a
cmp dword [ecx + 0x84], 0xe
jbe 0x401c2e
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x401c54
cmp dword [ecx + 0x74], 0xe
jbe 0x401c2e
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.0040345a
pop ecx
test eax, eax
jne 0x401c86
cmp dword [0x4766ec], 1
jne 0x401c73
call fcn.00402c03
push 0x1c
call fcn.00402a8c
push 0xff
call fcn.00401fa0
pop ecx
pop ecx
call fcn.004033b8
mov dword [ebp - 4], esi
call fcn.0040320d
test eax, eax
jge 0x401c9f
push 0x1b
call fcn.00401b6e
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x477c94], eax
call fcn.004030eb
mov dword [0x4766e4], eax
call fcn.00403049
test eax, eax
jge 0x401cc5
push 8
call fcn.00401b6e
pop ecx
call fcn.00402e16
test eax, eax
jge 0x401cd6
push 9
call fcn.00401b6e
pop ecx
call fcn.00401fd0
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x401ce9
push eax
call fcn.00401b6e
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00402dad
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x401d0a
movzx eax, word [ebp - 0x34]
jmp 0x401d0d
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.00401654
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x401d2b
push edi
call fcn.004020f7
call fcn.00402119
jmp 0x401d5d
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004034e7
ret
Function at 0x402035
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x47673c], esi
push edi
jne 0x402055
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x476738], esi
mov byte [0x476734], al
jne 0x4020bb
mov ecx, dword [0x477c88]
test ecx, ecx
je 0x40209c
mov eax, dword [0x477c84]
sub eax, 4
cmp eax, ecx
jmp 0x402095
mov eax, dword [eax]
test eax, eax
je 0x402087
call eax
mov eax, dword [0x477c84]
sub eax, 4
cmp eax, dword [0x477c88]
mov dword [0x477c84], eax
jae 0x40207f
mov eax, 0x476024
mov esi, 0x47602c
cmp eax, esi
mov edi, eax
jae 0x4020bb
mov eax, dword [edi]
test eax, eax
je 0x4020b4
call eax
add edi, 4
cmp edi, esi
jb 0x4020ac
mov eax, 0x476030
mov esi, 0x476038
cmp eax, esi
mov edi, eax
jae 0x4020da
mov eax, dword [edi]
test eax, eax
je 0x4020d3
call eax
add edi, 4
cmp edi, esi
jb 0x4020cb
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x4020f5
push dword [ebp + 8]
mov dword [0x47673c], 1
call fcn.00401fa0
pop ecx
pop ebp
ret

Function at 0x402a8c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x476440]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x476090]
je 0x402ab9
inc eax
cmp eax, 0x12
jb 0x402aaa
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x476090]
jne 0x402bed
mov eax, dword [0x4766ec]
cmp eax, 1
je 0x402bc8
cmp eax, edx
jne 0x402ae9
cmp dword [0x47607c], 1
je 0x402bc8
cmp ecx, 0xfc
je 0x402bed
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x402b22
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.00404a30
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.00404c60
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x402b64
lea eax, [ebp - 0x10c]
push eax
call fcn.00404c60
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x475150
push edi
call fcn.00404b30
add esp, 0x10
push edi
call fcn.00404c60
push dword [esi + 0x476094]
mov ebx, eax
call fcn.00404c60
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00403500
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00404a30
push edi
push ebx
call fcn.00404a40
push 0x475130
push ebx
call fcn.00404a40
push dword [esi + 0x476094]
push ebx
call fcn.00404a40
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00404935
add esp, 0x2c
jmp 0x402bed
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x476094]
push dword [esi]
call fcn.00404c60
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 - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.00404d1c
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404935
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x476878], ebx
push esi
push edi
jne 0x4049b5
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4049f0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x476878], eax
je 0x4049f0
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x47687c], eax
call esi
cmp dword [0x4766fc], 2
mov dword [0x476880], eax
jne 0x4049b5
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x476888], eax
je 0x4049b5
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x476884], eax
mov eax, dword [0x476884]
test eax, eax
je 0x4049fa
call eax
test eax, eax
je 0x4049e1
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x476888]
test eax, eax
je 0x4049e1
test byte [ebp - 8], 1
jne 0x4049fa
cmp dword [0x476708], 4
jb 0x4049f4
or byte [ebp + 0x12], 0x20
jmp 0x404a19
xor eax, eax
jmp 0x404a29
or byte [ebp + 0x12], 4
jmp 0x404a19
mov eax, dword [0x47687c]
test eax, eax
je 0x404a19
call eax
mov ebx, eax
test ebx, ebx
je 0x404a19
mov eax, dword [0x476880]
test eax, eax
je 0x404a19
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x476878]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405814
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00403500
mov eax, dword [0x476440]
xor eax, dword [ebp + 4]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0x477b68]
mov dword [ebp - 4], eax
jae 0x405954
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x477b80]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x405954
push 1
push esi
push ebx
call fcn.00405b50
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x40595e
push 2
push esi
push ebx
call fcn.00405b50
add esp, 0xc
cmp eax, 0xffffffff
je 0x40595e
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x405901
push 0x1000
lea eax, [ebp - 0x1008]
push esi
push eax
call fcn.00406840
push 0x8000
push ebx
call fcn.00406b01
add esp, 0x14
mov dword [ebp + 8], eax
mov eax, 0x1000
cmp edi, eax
jge 0x4058c0
mov eax, edi
push eax
lea eax, [ebp - 0x1008]
push eax
push ebx
call fcn.004068f6
add esp, 0xc
cmp eax, 0xffffffff
je 0x4058de
sub edi, eax
test edi, edi
jg 0x4058b5
jmp 0x4058f4
cmp dword [0x4766f4], 5
jne 0x4058f1
mov dword [0x4766f0], 0xd
or esi, 0xffffffff
push dword [ebp + 8]
push ebx
call fcn.00406b01
pop ecx
pop ecx
jmp 0x405941
jge 0x405941
push 0
push dword [ebp + 0xc]
push ebx
call fcn.00405b50
push ebx
call fcn.00405d6a
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 0x405941
mov dword [0x4766f0], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4766f4], eax
push 0
push dword [ebp - 8]
push ebx
call fcn.00405b50
add esp, 0xc
mov eax, esi
pop edi
jmp 0x405961
mov dword [0x4766f0], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.00404d1c
leave
ret
Function at 0x405970
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 [0x477b68]
push edi
jae 0x405b37
mov eax, esi
sar eax, 5
lea ebx, [eax*4 + 0x477b80]
mov eax, dword [ebx]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x405b37
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov edi, dword [ebp + 0xc]
mov ecx, edi
je 0x405a16
test dl, 2
jne 0x405a16
test dl, 0x48
je 0x4059e0
mov al, byte [eax + 5]
cmp al, 0xa
je 0x4059e0
dec dword [ebp + 0x10]
mov byte [edi], al
mov eax, dword [ebx]
lea ecx, [edi + 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 [ebx]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x405a29
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x405a11
mov dword [0x4766f4], ecx
jmp 0x405b3e
cmp eax, 0x6d
jne 0x405a1d
xor eax, eax
jmp 0x405b4b
push eax
call fcn.00405da6
pop ecx
jmp 0x405b48
mov eax, dword [ebx]
mov edx, dword [ebp - 0x10]
add dword [ebp - 0xc], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x405b32
test edx, edx
je 0x405a4c
cmp byte [edi], 0xa
jne 0x405a4c
or al, 4
jmp 0x405a4e
and al, 0xfb
mov byte [ecx], al
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 0x405b2c
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x405b1c
cmp al, 0xd
je 0x405a82
mov byte [edi], al
inc edi
inc dword [ebp - 8]
jmp 0x405b0e
dec ecx
cmp dword [ebp - 8], ecx
jae 0x405a9c
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x405a97
add dword [ebp - 8], 2
jmp 0x405af0
mov dword [ebp - 8], eax
jmp 0x405b0a
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x405ac4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x405b0a
cmp dword [ebp - 0x10], 0
je 0x405b0a
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x48
je 0x405ae5
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x405af0
mov byte [edi], 0xd
mov ecx, dword [ebx]
mov byte [ecx + esi + 5], al
jmp 0x405b0d
cmp edi, dword [ebp + 0xc]
jne 0x405af5
cmp byte [ebp - 1], 0xa
jne 0x405af5
mov byte [edi], 0xa
jmp 0x405b0d
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00405b50
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x405b0e
mov byte [edi], 0xd
inc edi
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x405a66
jmp 0x405b2c
mov eax, dword [ebx]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x405b2c
or al, 2
mov byte [esi], al
sub edi, dword [ebp + 0xc]
mov dword [ebp - 0xc], edi
mov eax, dword [ebp - 0xc]
jmp 0x405b4b
and dword [0x4766f4], 0
mov dword [0x4766f0], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4068f6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x476440]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x477b68]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
jae 0x406a86
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x477b80]
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 - 0x18], ebx
je 0x406a86
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x14], edi
jne 0x406955
xor eax, eax
jmp 0x406a9a
test al, 0x20
je 0x406966
push 2
push edi
push edi
push ecx
call fcn.00406e8c
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x406a22
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov dword [ebp + 8], edi
jbe 0x406a5a
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x41c]
cmp ecx, dword [ebp + 0x10]
jae 0x4069bc
mov edx, dword [ebp - 8]
inc dword [ebp - 8]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4069ad
inc dword [ebp - 0x14]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x18]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x406992
mov edi, eax
lea eax, [ebp - 0x41c]
sub edi, eax
push 0
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0x41c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4069fc
mov eax, dword [ebp - 0x10]
add dword [ebp - 0xc], eax
cmp eax, edi
jl 0x406a05
mov eax, dword [ebp - 8]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x406986
jmp 0x406a07
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
xor edi, edi
mov eax, dword [ebp - 0xc]
cmp eax, edi
jne 0x406a81
cmp dword [ebp + 8], edi
je 0x406a5a
push 5
pop eax
cmp dword [ebp + 8], eax
jne 0x406a4f
mov dword [0x4766f4], eax
jmp 0x406a8d
push edi
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x406a44
mov eax, dword [ebp - 0x10]
mov dword [ebp + 8], edi
mov dword [ebp - 0xc], eax
jmp 0x406a07
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x406a07
push dword [ebp + 8]
call fcn.00405da6
pop ecx
jmp 0x406a97
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x406a6f
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
je 0x40694e
mov dword [0x4766f0], 0x1c
mov dword [0x4766f4], edi
jmp 0x406a97
sub eax, dword [ebp - 0x14]
jmp 0x406a9a
and dword [0x4766f4], 0
mov dword [0x4766f0], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
pop esi
pop ebx
call fcn.00404d1c
leave
ret
Function at 0x406d90
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.00403500
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x406e25
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x4766fc]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x406e25
cmp eax, 1
je 0x406e3d
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x406e25
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x406dfa
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x406e21
xor eax, eax
inc eax
jmp 0x406e59
cmp esi, ebx
jae 0x406e29
xor eax, eax
jmp 0x406e59
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4766fc]
jmp 0x406e3f
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41c500
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x427850], 0
jne 0x41c581
cmp dword [0x427870], 0
jne 0x41c530
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x427870], eax
test eax, eax
jne 0x41c530
push str.GetEnvironmentStrings_failed
call fcn.0041bd1c
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x427870]
jmp 0x41c544
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004168a4
pop ecx
mov edi, eax
test eax, eax
jne 0x41c53c
lea edi, [ebp + 1]
push edi
call fcn.004161a8
pop ecx
mov ebx, eax
mov dword [0x427854], ebx
test ebx, ebx
jne 0x41c56e
xor eax, eax
jmp 0x41c644
push edi
mov edx, dword [0x427870]
push edx
push ebx
call fcn.00416754
add esp, 0xc
jmp 0x41c5a1
xor esi, esi
mov ebx, dword [0x427850]
jmp 0x41c59b
push eax
call fcn.004168a4
pop ecx
test eax, eax
jne 0x41c597
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41c58b
lea ebx, [esi + 4]
push 4
mov dword [0x427858], ebx
inc ebx
push ebx
call fcn.00415c80
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x41c5c4
xor eax, eax
jmp 0x41c644
cmp dword [0x427850], 0
jne 0x41c5f5
xor esi, esi
mov ebx, dword [0x427854]
mov eax, dword [esp]
mov ebp, eax
jmp 0x41c5e6
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004168a4
pop ecx
mov edi, eax
test eax, eax
jne 0x41c5dc
jmp 0x41c626
xor esi, esi
mov ebx, dword [0x427850]
mov eax, dword [esp]
mov edi, eax
jmp 0x41c620
push eax
call fcn.004168a4
pop ecx
test eax, eax
je 0x41c615
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x41c619
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41c604
mov eax, dword [0x427850]
test eax, eax
je 0x41c636
push eax
call fcn.004161b8
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x427850], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x457558
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x457558
lcall 0x5de5, 0x8b10c483
jmp loc.0096a7dc
Function at 0x405a63
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x405a75
push 0xd
pop eax
jmp 0x405aa7
mov ecx, edx
push ebx
push edi
xor ebx, ebx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x405a7e
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x408438
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x124
mov eax, dword [0x45c040]
xor eax, esp
mov dword [esp + 0x120], eax
push esi
mov esi, ecx
cmp byte [esi + 0x2d8], 0
je 0x4084a5
push 0x110
lea eax, [esp + 0x10]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 8], 0x114
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0xc], 5
jne 0x408495
mov ecx, esi
call fcn.00408144
jmp 0x4084a7
cmp dword [esp + 0xc], 6
jb 0x4084a5
mov ecx, esi
call fcn.00407995
jmp 0x4084a7
xor eax, eax
mov ecx, dword [esp + 0x124]
pop esi
xor ecx, esp
call fcn.0043570c
mov esp, ebp
pop ebp
ret
Function at 0x40b35c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x40b37f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
jmp 0x40b43e
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
test ecx, ecx
je 0x40b3a5
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x40b3aa
xor ecx, ecx
mov dword [ebp - 8], eax
mov eax, ecx
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x40b40a
jg 0x40b3bf
test esi, esi
je 0x40b40a
test ecx, ecx
jl 0x40b405
jg 0x40b3c9
test eax, eax
je 0x40b405
cmp edi, ecx
jg 0x40b3db
jl 0x40b3d3
cmp esi, eax
jae 0x40b3db
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], edi
push eax
push dword [ebp + 8]
push dword [ebp - 0xc]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 8]
add esp, 0xc
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [ebp - 4]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x40b40d
mov ecx, dword [ebp + 8]
jmp 0x40b417
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x40b432
jg 0x40b417
test esi, esi
je 0x40b432
cmp dword [ebx + 0x4c], 0
je 0x40b432
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40b443
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 4], ecx
test esi, esi
jg 0x40b465
jl 0x40b45c
test ebx, ebx
jne 0x40b465
xor eax, eax
xor edx, edx
jmp 0x40b52d
cmp dword [ecx + 0x38], 0
je 0x40b47b
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
jmp 0x40b52d
mov eax, dword [ecx + 0x1c]
push edi
mov edi, ebx
mov edx, dword [eax]
test edx, edx
je 0x40b4bf
mov eax, dword [ecx + 0x2c]
cmp dword [eax], 0
jbe 0x40b4bf
cmp dword [eax], ebx
mov esi, ebx
mov edi, dword [ebp + 8]
cmovb esi, dword [eax]
push esi
push edx
push edi
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp - 4]
add edi, esi
mov dword [ebp + 8], edi
add esp, 0xc
mov edi, ebx
sub edi, esi
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp + 0x10]
jmp 0x40b4c5
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
cmp dword [ecx + 0x4c], 0
je 0x40b523
call fcn.0040bda8
mov edx, dword [ebp + 8]
mov eax, edi
cmp edi, 0xfff
jbe 0x40b50d
push dword [ecx + 0x4c]
push 0xfff
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov edx, dword [ebp + 8]
mov ecx, 0xfff
add edx, eax
add esp, 0x10
sub edi, eax
mov dword [ebp + 8], edx
cmp eax, ecx
jne 0x40b523
cmp edi, ecx
mov ecx, dword [ebp - 4]
ja 0x40b4dd
mov eax, edi
test eax, eax
je 0x40b523
push dword [ecx + 0x4c]
push edi
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
sub edi, eax
sub ebx, edi
mov eax, ebx
sbb esi, 0
mov edx, esi
pop edi
pop esi
pop ebx
leave
ret 0xc